@lensjs/core 1.0.6 → 1.0.7

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 (21) hide show
  1. package/dist/ui/assets/QueriesContainer-DHnHEGG1.js +2 -0
  2. package/dist/ui/assets/{QueryDetailsContainer-BAT2wB5L.js → QueryDetailsContainer-BkaktbOw.js} +1 -1
  3. package/dist/ui/assets/QueryTable-DegVNDkJ.js +1 -0
  4. package/dist/ui/assets/{RequestDetails-tHepW82n.js → RequestDetails-zrL0n6gL.js} +1 -1
  5. package/dist/ui/assets/{RequestDetailsContainer-BgqtcO2z.js → RequestDetailsContainer-CsHWDxn7.js} +2 -2
  6. package/dist/ui/assets/{RequestsContainer-C1EP5an3.js → RequestsContainer-zoWMoB7o.js} +2 -2
  7. package/dist/ui/assets/{RequetsTable-CPE6Q8n4.js → RequetsTable-1K9hhs0W.js} +1 -1
  8. package/dist/ui/assets/{StatusCode-BWWAporK.js → StatusCode-DH20lQ6a.js} +1 -1
  9. package/dist/ui/assets/{TabbedDataViewer-EN6cPPrM.js → TabbedDataViewer-DDVxzZiW.js} +1 -1
  10. package/dist/ui/assets/{Table-4XTvSMgl.js → Table-HwlddLhp.js} +2 -2
  11. package/dist/ui/assets/{date-D4hQ6oAL.js → date-CZdBf-JH.js} +1 -1
  12. package/dist/ui/assets/{index-BZL6Xmfs.js → index-C-9tn0L6.js} +14 -14
  13. package/dist/ui/assets/index-DaNx3ROH.css +1 -0
  14. package/dist/ui/assets/{useLensApi-B_mHSSRc.js → useLensApi-Bmk2bGb0.js} +1 -1
  15. package/dist/ui/assets/{useLoadMore-Dq8oeHnX.js → useLoadMore-CvIajdjM.js} +1 -1
  16. package/dist/ui/assets/{useQueries-SgNjl9M_.js → useQueries-DuyhGJyf.js} +1 -1
  17. package/dist/ui/index.html +2 -2
  18. package/package.json +1 -1
  19. package/dist/ui/assets/QueriesContainer-BCIu2qYI.js +0 -2
  20. package/dist/ui/assets/QueryTable-QMHnJtqC.js +0 -1
  21. package/dist/ui/assets/index-C4Vyfz2T.css +0 -1
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./QueryTable-DegVNDkJ.js","./index-C-9tn0L6.js","./index-DaNx3ROH.css","./Table-HwlddLhp.js","./date-CZdBf-JH.js"])))=>i.map(i=>d[i]);
2
+ import{r as t,j as s,_ as a}from"./index-C-9tn0L6.js";import{u as i}from"./useQueries-DuyhGJyf.js";import{u}from"./useLoadMore-CvIajdjM.js";import"./useLensApi-Bmk2bGb0.js";const m=t.lazy(()=>a(()=>import("./QueryTable-DegVNDkJ.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),l=()=>{const{loadMoreRequests:o,fetchQueries:r}=i(),e=u({paginatedPage:o});return t.useEffect(()=>{r()},[]),console.log("data",e.data),s.jsx(m,{hasMoreObject:e})};export{l as default};
@@ -1,4 +1,4 @@
1
- import{o as zt,r as D,j as N,q as Ht,L as Jt,v as Zt,k as te,m as ee}from"./index-BZL6Xmfs.js";import{u as ie}from"./useQueries-SgNjl9M_.js";import{D as se,T as ne}from"./TabbedDataViewer-EN6cPPrM.js";import{f as _e}from"./date-D4hQ6oAL.js";import"./useLensApi-B_mHSSRc.js";/**
1
+ import{o as zt,r as D,j as N,q as Ht,L as Jt,v as Zt,k as te,m as ee}from"./index-C-9tn0L6.js";import{u as ie}from"./useQueries-DuyhGJyf.js";import{D as se,T as ne}from"./TabbedDataViewer-DDVxzZiW.js";import{f as _e}from"./date-CZdBf-JH.js";import"./useLensApi-Bmk2bGb0.js";/**
2
2
  * @license lucide-react v0.541.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -0,0 +1 @@
1
+ import{v as r,k as o,j as e,L as i}from"./index-C-9tn0L6.js";import{C as l,T as d,L as c}from"./Table-HwlddLhp.js";import{h as x}from"./date-CZdBf-JH.js";function m(a){return e.jsx("span",{className:"text-red-600 dark:text-red-400 font-mono",children:a})}const u=()=>{const a=r(o());return[{name:"Query",render:t=>e.jsx("div",{className:"max-w-xl",children:e.jsx("code",{className:"text-sm font-mono text-slate-800 dark:text-slate-300 leading-relaxed line-clamp-1",title:t.data.query,children:m(t.data.query)})})},{name:"Duration",render:t=>e.jsx("div",{className:"col-span-1 text-right",children:e.jsx("span",{className:"text-sm text-slate-600 dark:text-slate-400 font-mono",children:t.data.duration})})},{name:"Provider",render:t=>e.jsx("div",{className:"col-span-2 text-right",children:e.jsx("span",{className:"text-sm text-slate-600 dark:text-slate-400 font-mono",children:t.data.type})})},{name:"Happened",render:t=>{const{label:s,exact:n}=x(t.data.createdAt);return e.jsx("span",{className:"text-nowrap",title:n,children:s})},position:"end",class:"min-w-32"},{name:"Actions",render:t=>e.jsx(i,{to:`${a.QUERIES}/${t.id}`,className:"transition-colors duration-100 hover:text-white",children:e.jsx(l,{size:20})}),position:"end"}]},f=({hasMoreObject:a})=>e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"overflow-x-auto",children:e.jsx(d,{columns:u(),data:a.data})}),e.jsx(c,{paginatedPage:a})]});export{f as default};
@@ -1 +1 @@
1
- import{r as l,j as t}from"./index-BZL6Xmfs.js";import{D as d,T as o}from"./TabbedDataViewer-EN6cPPrM.js";import{f as m}from"./date-D4hQ6oAL.js";import{M as i,S as n}from"./StatusCode-BWWAporK.js";const x=({request:a})=>{const e=l.useMemo(()=>m(a?.data?.createdAt),[a?.data?.createdAt]);if(!a||!a.data)return t.jsx(d,{title:"Request Details",items:[],emptyMessage:"No request data available"});const s=()=>a?.data?.headers?.host||"Unknown",r=l.useMemo(()=>[{label:"Time",value:e,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.data.method?t.jsx(i,{method:a.data.method}):"Unknown"},{label:"Request ID",value:a.data.id||"N/A",className:"text-gray-700 dark:text-gray-300 font-mono text-sm"},{label:"Path",value:a.data.path||"N/A",className:"text-gray-900 dark:text-gray-100 font-mono"},{label:"Status",value:a.data.status?t.jsx(n,{status:a.data.status}):"N/A"},{label:"Duration",value:a.data.duration||"N/A",className:"text-gray-900 dark:text-gray-100 font-medium"},{label:"IP Address",value:a.data.ip||"N/A",className:"text-gray-900 dark:text-gray-100 font-mono"}],[a.data,e]);return t.jsx(d,{title:"Request Details",items:r})},u=({request:a})=>{const e=[{id:"payload",label:"Payload",data:a.data.body},{id:"headers",label:"Headers",data:a.data.headers}],s=[{id:"response-body",label:"Body",data:a.data.response.json},{id:"response-headers",label:"Headers",data:a.data.response.headers}];return t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(x,{request:a}),a.data.user&&t.jsx(d,{title:"User",items:[{label:"ID",value:a?.data?.user?.id},{label:"Email",value:a?.data?.user?.email},{label:"Name",value:a?.data?.user?.name}]}),t.jsx(o,{tabs:e,title:"Request Data",defaultActiveTab:"payload"}),t.jsx(o,{tabs:s,title:"Response Data",defaultActiveTab:"response-body"})]})};export{u as default};
1
+ import{r as l,j as t}from"./index-C-9tn0L6.js";import{D as d,T as o}from"./TabbedDataViewer-DDVxzZiW.js";import{f as m}from"./date-CZdBf-JH.js";import{M as i,S as n}from"./StatusCode-DH20lQ6a.js";const x=({request:a})=>{const e=l.useMemo(()=>m(a?.data?.createdAt),[a?.data?.createdAt]);if(!a||!a.data)return t.jsx(d,{title:"Request Details",items:[],emptyMessage:"No request data available"});const s=()=>a?.data?.headers?.host||"Unknown",r=l.useMemo(()=>[{label:"Time",value:e,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.data.method?t.jsx(i,{method:a.data.method}):"Unknown"},{label:"Request ID",value:a.data.id||"N/A",className:"text-gray-700 dark:text-gray-300 font-mono text-sm"},{label:"Path",value:a.data.path||"N/A",className:"text-gray-900 dark:text-gray-100 font-mono"},{label:"Status",value:a.data.status?t.jsx(n,{status:a.data.status}):"N/A"},{label:"Duration",value:a.data.duration||"N/A",className:"text-gray-900 dark:text-gray-100 font-medium"},{label:"IP Address",value:a.data.ip||"N/A",className:"text-gray-900 dark:text-gray-100 font-mono"}],[a.data,e]);return t.jsx(d,{title:"Request Details",items:r})},u=({request:a})=>{const e=[{id:"payload",label:"Payload",data:a.data.body},{id:"headers",label:"Headers",data:a.data.headers}],s=[{id:"response-body",label:"Body",data:a.data.response.json},{id:"response-headers",label:"Headers",data:a.data.response.headers}];return t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(x,{request:a}),a.data.user&&t.jsx(d,{title:"User",items:[{label:"ID",value:a?.data?.user?.id},{label:"Email",value:a?.data?.user?.email},{label:"Name",value:a?.data?.user?.name}]}),t.jsx(o,{tabs:e,title:"Request Data",defaultActiveTab:"payload"}),t.jsx(o,{tabs:s,title:"Response Data",defaultActiveTab:"response-body"})]})};export{u as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequestDetails-tHepW82n.js","./index-BZL6Xmfs.js","./index-C4Vyfz2T.css","./TabbedDataViewer-EN6cPPrM.js","./date-D4hQ6oAL.js","./StatusCode-BWWAporK.js"])))=>i.map(i=>d[i]);
2
- import{S as V,p as M,a as l,s as w,b as m,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-BZL6Xmfs.js";var tt=class extends V{constructor(t,e){super(),this.options=e,this.#s=t,this.#i=null,this.#r=M(),this.options.experimental_prefetchInRender||this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#n;#c;#r;#i;#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.#m())}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 r=this.hasListeners();r&&B(this.#t,s,this.options,e)&&this.#u(),this.updateResult(),r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||m(this.options.staleTime,this.#t)!==m(e.staleTime,this.#t))&&this.#b();const a=this.#v();r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||a!==this.#a)&&this.#y(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,r)=>(this.trackProp(r),e?.(r),Reflect.get(s,r))})}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=m(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}#y(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))}#m(){this.#b(),this.#y(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,r=this.options,a=this.#e,u=this.#n,i=this.#c,o=t!==s?t.state:this.#p,{state:d}=t;let n={...d},y=!1,h;if(e._optimisticResults){const c=this.hasListeners(),g=!c&&A(t,e),v=c&&B(t,s,e,r);(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===i?.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),y=!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.#i=null}catch(c){this.#i=c}this.#i&&(_=this.#i,h=this.#l,P=Date.now(),R="error");const O=n.fetchStatus==="fetching",S=R==="pending",E=R==="error",U=S&&O,k=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&&!k,isPaused:n.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:E&&k,isStale:F(t,e),refetch:this.refetch,promise:this.#r,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.#r=f.promise=M();c(C)},v=this.#r;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:r}=this.options,a=typeof r=="function"?r():r;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(i=>{const b=i;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.#m()}#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&&m(e.staleTime,t)!=="static"){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&F(t,e)}return!1}function B(t,e,s,r){return(t!==e||l(r.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&F(t,s)}function F(t,e){return l(e.enabled,t)!==!1&&t.isStaleByTime(m(e.staleTime,t))}function st(t,e){return!w(t.getCurrentResult(),e)}var z=p.createContext(!1),rt=()=>p.useContext(z);z.Provider;function it(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var at=p.createContext(it()),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:r,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(a&&t.data===void 0||N(s,[t.error,r])),ct=t=>{if(t.suspense){const e=r=>r==="static"?r:Math.max(r??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...r)=>e(s(...r)):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 r=rt(),a=nt(),u=J(),i=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(i),i._optimisticResults=r?"isRestoring":"optimistic",ct(i),ot(i,a),ht(a);const b=!u.getQueryCache().get(i.queryHash),[o]=p.useState(()=>new e(u,i)),d=o.getOptimisticResult(i),n=!r&&t.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(y=>{const h=n?o.subscribe(H.batchCalls(y)):x;return o.updateResult(),h},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),p.useEffect(()=>{o.setOptions(i)},[i,o]),dt(i,d))throw q(i,o,a);if(ut({result:d,errorResetBoundary:a,throwOnError:i.throwOnError,query:u.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw d.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(i,d),i.experimental_prefetchInRender&&!I&&lt(d,r)&&(b?q(i,o,a):u.getQueryCache().get(i.queryHash)?.promise)?.catch(x).finally(()=>{o.updateResult()}),i.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-tHepW82n.js"),__vite__mapDeps([0,1,2,3,4,5]),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-zrL0n6gL.js","./index-C-9tn0L6.js","./index-DaNx3ROH.css","./TabbedDataViewer-DDVxzZiW.js","./date-CZdBf-JH.js","./StatusCode-DH20lQ6a.js"])))=>i.map(i=>d[i]);
2
+ import{S as V,p as M,a as l,s as w,b as m,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-C-9tn0L6.js";var tt=class extends V{constructor(t,e){super(),this.options=e,this.#s=t,this.#i=null,this.#r=M(),this.options.experimental_prefetchInRender||this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#n;#c;#r;#i;#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.#m())}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 r=this.hasListeners();r&&B(this.#t,s,this.options,e)&&this.#u(),this.updateResult(),r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||m(this.options.staleTime,this.#t)!==m(e.staleTime,this.#t))&&this.#b();const a=this.#v();r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||a!==this.#a)&&this.#y(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,r)=>(this.trackProp(r),e?.(r),Reflect.get(s,r))})}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=m(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}#y(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))}#m(){this.#b(),this.#y(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,r=this.options,a=this.#e,u=this.#n,i=this.#c,o=t!==s?t.state:this.#p,{state:d}=t;let n={...d},y=!1,h;if(e._optimisticResults){const c=this.hasListeners(),g=!c&&A(t,e),v=c&&B(t,s,e,r);(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===i?.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),y=!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.#i=null}catch(c){this.#i=c}this.#i&&(_=this.#i,h=this.#l,P=Date.now(),R="error");const O=n.fetchStatus==="fetching",S=R==="pending",E=R==="error",U=S&&O,k=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&&!k,isPaused:n.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:E&&k,isStale:F(t,e),refetch:this.refetch,promise:this.#r,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.#r=f.promise=M();c(C)},v=this.#r;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:r}=this.options,a=typeof r=="function"?r():r;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(i=>{const b=i;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.#m()}#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&&m(e.staleTime,t)!=="static"){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&F(t,e)}return!1}function B(t,e,s,r){return(t!==e||l(r.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&F(t,s)}function F(t,e){return l(e.enabled,t)!==!1&&t.isStaleByTime(m(e.staleTime,t))}function st(t,e){return!w(t.getCurrentResult(),e)}var z=p.createContext(!1),rt=()=>p.useContext(z);z.Provider;function it(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var at=p.createContext(it()),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:r,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(a&&t.data===void 0||N(s,[t.error,r])),ct=t=>{if(t.suspense){const e=r=>r==="static"?r:Math.max(r??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...r)=>e(s(...r)):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 r=rt(),a=nt(),u=J(),i=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(i),i._optimisticResults=r?"isRestoring":"optimistic",ct(i),ot(i,a),ht(a);const b=!u.getQueryCache().get(i.queryHash),[o]=p.useState(()=>new e(u,i)),d=o.getOptimisticResult(i),n=!r&&t.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(y=>{const h=n?o.subscribe(H.batchCalls(y)):x;return o.updateResult(),h},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),p.useEffect(()=>{o.setOptions(i)},[i,o]),dt(i,d))throw q(i,o,a);if(ut({result:d,errorResetBoundary:a,throwOnError:i.throwOnError,query:u.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw d.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(i,d),i.experimental_prefetchInRender&&!I&&lt(d,r)&&(b?q(i,o,a):u.getQueryCache().get(i.queryHash)?.promise)?.catch(x).finally(()=>{o.updateResult()}),i.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-zrL0n6gL.js"),__vite__mapDeps([0,1,2,3,4,5]),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-CPE6Q8n4.js","./index-BZL6Xmfs.js","./index-C4Vyfz2T.css","./Table-4XTvSMgl.js","./StatusCode-BWWAporK.js","./date-D4hQ6oAL.js"])))=>i.map(i=>d[i]);
2
- import{r as e,j as m,_ as p}from"./index-BZL6Xmfs.js";import{D as _,u as h}from"./useLensApi-B_mHSSRc.js";import{u as y}from"./useLoadMore-Dq8oeHnX.js";const E={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,u]=e.useState([]),[n,i]=e.useState(E),[l,s]=e.useState(!1),[c,f]=e.useState(_),{getAllRequests:a,getRequestById:d}=h(),q=e.useCallback(async r=>{s(!0),d(r).then(o=>{i(o.data)}).finally(()=>{s(!1)})},[d]),R=e.useCallback(async r=>{s(!0),a(r).then(o=>{u(o.data),f(o.meta)}).finally(()=>{s(!1)})},[a]);return{loadMoreRequests:e.useMemo(()=>({initialData:t,meta:c,loading:l,fetchRawPage:a}),[t,c,l,a]),fetchRequests:R,fetchRequest:q,request:n}}const g=e.lazy(()=>p(()=>import("./RequetsTable-CPE6Q8n4.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),L=()=>{const{loadMoreRequests:t,fetchRequests:u}=M(),n=y({paginatedPage:t});return e.useEffect(()=>{u()},[]),m.jsx(g,{hasMoreObject:n})};export{L as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequetsTable-1K9hhs0W.js","./index-C-9tn0L6.js","./index-DaNx3ROH.css","./Table-HwlddLhp.js","./StatusCode-DH20lQ6a.js","./date-CZdBf-JH.js"])))=>i.map(i=>d[i]);
2
+ import{r as e,j as m,_ as p}from"./index-C-9tn0L6.js";import{D as _,u as h}from"./useLensApi-Bmk2bGb0.js";import{u as y}from"./useLoadMore-CvIajdjM.js";const E={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,u]=e.useState([]),[n,i]=e.useState(E),[l,s]=e.useState(!1),[c,f]=e.useState(_),{getAllRequests:a,getRequestById:d}=h(),q=e.useCallback(async r=>{s(!0),d(r).then(o=>{i(o.data)}).finally(()=>{s(!1)})},[d]),R=e.useCallback(async r=>{s(!0),a(r).then(o=>{u(o.data),f(o.meta)}).finally(()=>{s(!1)})},[a]);return{loadMoreRequests:e.useMemo(()=>({initialData:t,meta:c,loading:l,fetchRawPage:a}),[t,c,l,a]),fetchRequests:R,fetchRequest:q,request:n}}const g=e.lazy(()=>p(()=>import("./RequetsTable-1K9hhs0W.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),L=()=>{const{loadMoreRequests:t,fetchRequests:u}=M(),n=y({paginatedPage:t});return e.useEffect(()=>{u()},[]),m.jsx(g,{hasMoreObject:n})};export{L as default};
@@ -1 +1 @@
1
- import{v as o,k as d,j as e,L as s}from"./index-BZL6Xmfs.js";import{C as i,T as m,L as l}from"./Table-4XTvSMgl.js";import{M as u,S as x}from"./StatusCode-BWWAporK.js";import{h as c}from"./date-D4hQ6oAL.js";const h=()=>{const a=o(d());return[{name:"Method",render:t=>e.jsx(u,{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(i,{size:20})}),position:"end"}]},S=({hasMoreObject:a})=>e.jsxs("div",{children:[e.jsx(m,{columns:h(),data:a.data}),e.jsx(l,{paginatedPage:a})]});export{S as default};
1
+ import{v as o,k as d,j as e,L as s}from"./index-C-9tn0L6.js";import{C as i,T as m,L as l}from"./Table-HwlddLhp.js";import{M as u,S as x}from"./StatusCode-DH20lQ6a.js";import{h as c}from"./date-CZdBf-JH.js";const h=()=>{const a=o(d());return[{name:"Method",render:t=>e.jsx(u,{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(i,{size:20})}),position:"end"}]},S=({hasMoreObject:a})=>e.jsxs("div",{children:[e.jsx(m,{columns:h(),data:a.data}),e.jsx(l,{paginatedPage:a})]});export{S as default};
@@ -1 +1 @@
1
- import{j as r}from"./index-BZL6Xmfs.js";function g({method:e}){const t={GET:"bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white",POST:"bg-blue-100 text-blue-800 dark:bg-blue-600 dark:text-white",PUT:"bg-yellow-100 text-yellow-800 dark:bg-yellow-600 dark:text-white",DELETE:"bg-red-100 text-red-800 dark:bg-red-600 dark:text-white"};return r.jsx("span",{className:`rounded px-2 py-1 text-sm font-semibold ${t[e.toUpperCase()]||"bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white"}`,children:e})}const d=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",l=({status:e})=>r.jsx("span",{className:`rounded-lg px-2 py-1 text-sm font-semibold ${d(e)}`,children:e});export{g as M,l as S};
1
+ import{j as r}from"./index-C-9tn0L6.js";function g({method:e}){const t={GET:"bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white",POST:"bg-blue-100 text-blue-800 dark:bg-blue-600 dark:text-white",PUT:"bg-yellow-100 text-yellow-800 dark:bg-yellow-600 dark:text-white",DELETE:"bg-red-100 text-red-800 dark:bg-red-600 dark:text-white"};return r.jsx("span",{className:`rounded px-2 py-1 text-sm font-semibold ${t[e.toUpperCase()]||"bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white"}`,children:e})}const d=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",l=({status:e})=>r.jsx("span",{className:`rounded-lg px-2 py-1 text-sm font-semibold ${d(e)}`,children:e});export{g as M,l as S};
@@ -1 +1 @@
1
- import{j as e,r as b}from"./index-BZL6Xmfs.js";const N=({title:n,items:l,emptyMessage:c="No data available"})=>!l||l.length===0||l.every(s=>!s.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:n})," ",e.jsx("p",{className:"text-center text-gray-500 dark:text-gray-400",children:c})]}):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:n})}),e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"space-y-4",children:l.map((s,i)=>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:s.label})}),e.jsx("div",{className:"flex-1",children:typeof s.value=="string"?e.jsx("span",{className:`text-sm ${s.className||""}`,children:s.value}):s.value})]},i))})})]});function t(n="key"){return n+"-"+Math.random().toString(36).substr(2,9)}const k=({data:n})=>{const[l,c]=b.useState(!1),s=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(n,null,2)),c(!0),setTimeout(()=>c(!1),2e3)}catch(d){console.error("Failed to copy: ",d)}},i=()=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),e.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]}),a=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})}),h=(d,p=0)=>{const r=[],x=" ".repeat(p);if(Array.isArray(d))r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"["},t("open-bracket"))),d.forEach((u,m)=>{r.push(e.jsx("br",{},t("br"))),r.push(e.jsxs("span",{className:"text-transparent",children:[x," "]},t("indent"))),r.push(...h(u,p+1)),m<d.length-1&&r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:","},t("comma")))}),r.push(e.jsx("br",{},t("br-close"))),r.push(e.jsx("span",{className:"text-transparent",children:x},t("indent-close"))),r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"]"},t("close-bracket")));else if(typeof d=="object"&&d!==null){r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"{"},t("open-brace")));const u=Object.entries(d);u.forEach(([m,o],g)=>{r.push(e.jsx("br",{},t("br"))),r.push(e.jsxs("span",{className:"text-transparent",children:[x," "]},t("indent"))),r.push(e.jsxs("span",{className:"text-blue-600 dark:text-blue-400",children:['"',m,'"']},t("key"))),r.push(e.jsxs("span",{className:"text-neutral-600 dark:text-neutral-400",children:[":"," "]},t("colon"))),typeof o=="string"?r.push(e.jsxs("span",{className:"text-green-600 dark:text-green-400",children:['"',o,'"']},t("value-string"))):typeof o=="number"?r.push(e.jsx("span",{className:"text-orange-600 dark:text-orange-400",children:o},t("value-number"))):typeof o=="boolean"?r.push(e.jsx("span",{className:"text-purple-600 dark:text-purple-400",children:o.toString()},t("value-boolean"))):o===null?r.push(e.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:"null"},t("value-null"))):r.push(...h(o,p+1)),g<u.length-1&&r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:","},t("comma")))}),r.push(e.jsx("br",{},t("br-close"))),r.push(e.jsx("span",{className:"text-transparent",children:x},t("indent-close"))),r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"}"},t("close-brace")))}return r};return e.jsxs("div",{className:"bg-neutral-50 dark:bg-slate-900 rounded-lg p-4 font-mono text-sm overflow-x-auto relative",children:[e.jsx("button",{onClick:s,className:`absolute top-3 right-3 p-2 rounded-md transition-colors ${l?"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:l?"Copied!":"Copy to clipboard",children:l?e.jsx(a,{}):e.jsx(i,{})}),e.jsx("pre",{className:"whitespace-pre-wrap pr-12 text-neutral-800 dark:text-neutral-200",children:h(n)})]})},f=({tabs:n,title:l,defaultActiveTab:c})=>{const[s,i]=b.useState(c||n[0]?.id||"");return e.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-[15px] shadow-sm",children:[l&&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:l})}),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:n.map(a=>e.jsx("button",{onClick:()=>i(a.id),className:`py-4 px-1 border-b-2 font-medium text-sm transition-colors duration-200 ${s===a.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:a.label},a.id))})}),e.jsx("div",{className:"p-6 ",children:n.map(a=>e.jsx("div",{className:s===a.id?"block":"hidden",children:a.content?e.jsx("div",{children:a.content}):e.jsx(e.Fragment,{children:a.data&&e.jsx(k,{data:a.data})})},a.id))})]})};export{N as D,f as T};
1
+ import{j as e,r as b}from"./index-C-9tn0L6.js";const N=({title:n,items:l,emptyMessage:c="No data available"})=>!l||l.length===0||l.every(s=>!s.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:n})," ",e.jsx("p",{className:"text-center text-gray-500 dark:text-gray-400",children:c})]}):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:n})}),e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"space-y-4",children:l.map((s,i)=>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:s.label})}),e.jsx("div",{className:"flex-1",children:typeof s.value=="string"?e.jsx("span",{className:`text-sm ${s.className||""}`,children:s.value}):s.value})]},i))})})]});function t(n="key"){return n+"-"+Math.random().toString(36).substr(2,9)}const k=({data:n})=>{const[l,c]=b.useState(!1),s=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(n,null,2)),c(!0),setTimeout(()=>c(!1),2e3)}catch(d){console.error("Failed to copy: ",d)}},i=()=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),e.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]}),a=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})}),h=(d,p=0)=>{const r=[],x=" ".repeat(p);if(Array.isArray(d))r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"["},t("open-bracket"))),d.forEach((u,m)=>{r.push(e.jsx("br",{},t("br"))),r.push(e.jsxs("span",{className:"text-transparent",children:[x," "]},t("indent"))),r.push(...h(u,p+1)),m<d.length-1&&r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:","},t("comma")))}),r.push(e.jsx("br",{},t("br-close"))),r.push(e.jsx("span",{className:"text-transparent",children:x},t("indent-close"))),r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"]"},t("close-bracket")));else if(typeof d=="object"&&d!==null){r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"{"},t("open-brace")));const u=Object.entries(d);u.forEach(([m,o],g)=>{r.push(e.jsx("br",{},t("br"))),r.push(e.jsxs("span",{className:"text-transparent",children:[x," "]},t("indent"))),r.push(e.jsxs("span",{className:"text-blue-600 dark:text-blue-400",children:['"',m,'"']},t("key"))),r.push(e.jsxs("span",{className:"text-neutral-600 dark:text-neutral-400",children:[":"," "]},t("colon"))),typeof o=="string"?r.push(e.jsxs("span",{className:"text-green-600 dark:text-green-400",children:['"',o,'"']},t("value-string"))):typeof o=="number"?r.push(e.jsx("span",{className:"text-orange-600 dark:text-orange-400",children:o},t("value-number"))):typeof o=="boolean"?r.push(e.jsx("span",{className:"text-purple-600 dark:text-purple-400",children:o.toString()},t("value-boolean"))):o===null?r.push(e.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:"null"},t("value-null"))):r.push(...h(o,p+1)),g<u.length-1&&r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:","},t("comma")))}),r.push(e.jsx("br",{},t("br-close"))),r.push(e.jsx("span",{className:"text-transparent",children:x},t("indent-close"))),r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"}"},t("close-brace")))}return r};return e.jsxs("div",{className:"bg-neutral-50 dark:bg-slate-900 rounded-lg p-4 font-mono text-sm overflow-x-auto relative",children:[e.jsx("button",{onClick:s,className:`absolute top-3 right-3 p-2 rounded-md transition-colors ${l?"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:l?"Copied!":"Copy to clipboard",children:l?e.jsx(a,{}):e.jsx(i,{})}),e.jsx("pre",{className:"whitespace-pre-wrap pr-12 text-neutral-800 dark:text-neutral-200 min-h-10",children:h(n)})]})},f=({tabs:n,title:l,defaultActiveTab:c})=>{const[s,i]=b.useState(c||n[0]?.id||"");return e.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-[15px] shadow-sm",children:[l&&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:l})}),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:n.map(a=>e.jsx("button",{onClick:()=>i(a.id),className:`py-4 px-1 border-b-2 font-medium text-sm transition-colors duration-200 ${s===a.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:a.label},a.id))})}),e.jsx("div",{className:"p-6 ",children:n.map(a=>e.jsx("div",{className:s===a.id?"block":"hidden",children:a.content?e.jsx("div",{children:a.content}):e.jsx(e.Fragment,{children:a.data&&e.jsx(k,{data:a.data})})},a.id))})]})};export{N as D,f as T};
@@ -1,6 +1,6 @@
1
- import{o as je,j as w}from"./index-BZL6Xmfs.js";/**
1
+ import{o as Ie,j as y}from"./index-C-9tn0L6.js";/**
2
2
  * @license lucide-react v0.541.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const Pe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],ur=je("circle-arrow-right",Pe),ie="-",Ge=e=>{const a=Te(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(ie);return u[0]===""&&u.length!==1&&u.shift(),ke(u,a)||Ne(l)},getConflictingClassGroupIds:(l,u)=>{const p=s[l]||[];return u&&r[l]?[...p,...r[l]]:p}}},ke=(e,a)=>{if(e.length===0)return a.classGroupId;const s=e[0],r=a.nextPart.get(s),c=r?ke(e.slice(1),r):void 0;if(c)return c;if(a.validators.length===0)return;const n=e.join(ie);return a.validators.find(({validator:l})=>l(n))?.classGroupId},be=/^\[(.+)\]$/,Ne=e=>{if(be.test(e)){const a=be.exec(e)[1],s=a?.substring(0,a.indexOf(":"));if(s)return"arbitrary.."+s}},Te=e=>{const{theme:a,classGroups:s}=e,r={nextPart:new Map,validators:[]};for(const c in s)se(s[c],r,c,a);return r},se=(e,a,s,r)=>{e.forEach(c=>{if(typeof c=="string"){const n=c===""?a:he(a,c);n.classGroupId=s;return}if(typeof c=="function"){if(Ee(c)){se(c(r),a,s,r);return}a.validators.push({validator:c,classGroupId:s});return}Object.entries(c).forEach(([n,l])=>{se(l,he(a,n),s,r)})})},he=(e,a)=>{let s=e;return a.split(ie).forEach(r=>{s.nextPart.has(r)||s.nextPart.set(r,{nextPart:new Map,validators:[]}),s=s.nextPart.get(r)}),s},Ee=e=>e.isThemeGetter,Le=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,s=new Map,r=new Map;const c=(n,l)=>{s.set(n,l),a++,a>e&&(a=0,r=s,s=new Map)};return{get(n){let l=s.get(n);if(l!==void 0)return l;if((l=r.get(n))!==void 0)return c(n,l),l},set(n,l){s.has(n)?s.set(n,l):c(n,l)}}},ne="!",ae=":",Ve=ae.length,_e=e=>{const{prefix:a,experimentalParseClassName:s}=e;let r=c=>{const n=[];let l=0,u=0,p=0,b;for(let k=0;k<c.length;k++){let v=c[k];if(l===0&&u===0){if(v===ae){n.push(c.slice(p,k)),p=k+Ve;continue}if(v==="/"){b=k;continue}}v==="["?l++:v==="]"?l--:v==="("?u++:v===")"&&u--}const h=n.length===0?c:c.substring(p),S=Oe(h),O=S!==h,F=b&&b>p?b-p:void 0;return{modifiers:n,hasImportantModifier:O,baseClassName:S,maybePostfixModifierPosition:F}};if(a){const c=a+ae,n=r;r=l=>l.startsWith(c)?n(l.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(s){const c=r;r=n=>s({className:n,parseClassName:c})}return r},Oe=e=>e.endsWith(ne)?e.substring(0,e.length-1):e.startsWith(ne)?e.substring(1):e,Fe=e=>{const a=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const c=[];let n=[];return r.forEach(l=>{l[0]==="["||a[l]?(c.push(...n.sort(),l),n=[]):n.push(l)}),c.push(...n.sort()),c}},Be=e=>({cache:Le(e.cacheSize),parseClassName:_e(e),sortModifiers:Fe(e),...Ge(e)}),We=/\s+/,$e=(e,a)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:n}=a,l=[],u=e.trim().split(We);let p="";for(let b=u.length-1;b>=0;b-=1){const h=u[b],{isExternal:S,modifiers:O,hasImportantModifier:F,baseClassName:k,maybePostfixModifierPosition:v}=s(h);if(S){p=h+(p.length>0?" "+p:p);continue}let G=!!v,R=r(G?k.substring(0,v):k);if(!R){if(!G){p=h+(p.length>0?" "+p:p);continue}if(R=r(k),!R){p=h+(p.length>0?" "+p:p);continue}G=!1}const q=n(O).join(":"),B=F?q+ne:q,N=B+R;if(l.includes(N))continue;l.push(N);const T=c(R,G);for(let I=0;I<T.length;++I){const W=T[I];l.push(B+W)}p=h+(p.length>0?" "+p:p)}return p};function Ue(){let e=0,a,s,r="";for(;e<arguments.length;)(a=arguments[e++])&&(s=we(a))&&(r&&(r+=" "),r+=s);return r}const we=e=>{if(typeof e=="string")return e;let a,s="";for(let r=0;r<e.length;r++)e[r]&&(a=we(e[r]))&&(s&&(s+=" "),s+=a);return s};function qe(e,...a){let s,r,c,n=l;function l(p){const b=a.reduce((h,S)=>S(h),e());return s=Be(b),r=s.cache.get,c=s.cache.set,n=u,u(p)}function u(p){const b=r(p);if(b)return b;const h=$e(p,s);return c(p,h),h}return function(){return n(Ue.apply(null,arguments))}}const f=e=>{const a=s=>s[e]||[];return a.isThemeGetter=!0,a},ve=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ze=/^\((?:(\w[\w-]*):)?(.+)\)$/i,He=/^\d+\/\d+$/,Je=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,De=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>He.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),A=e=>!!e&&Number.isInteger(Number(e)),oe=e=>e.endsWith("%")&&m(e.slice(0,-1)),M=e=>Je.test(e),Ye=()=>!0,Ze=e=>Xe.test(e)&&!De.test(e),Ce=()=>!1,er=e=>Ke.test(e),rr=e=>Qe.test(e),or=e=>!o(e)&&!t(e),tr=e=>V(e,Ae,Ce),o=e=>ve.test(e),P=e=>V(e,Re,Ze),te=e=>V(e,lr,m),xe=e=>V(e,Me,Ce),sr=e=>V(e,Se,rr),Q=e=>V(e,Ie,er),t=e=>ze.test(e),$=e=>_(e,Re),nr=e=>_(e,cr),ye=e=>_(e,Me),ar=e=>_(e,Ae),ir=e=>_(e,Se),Y=e=>_(e,Ie,!0),V=(e,a,s)=>{const r=ve.exec(e);return r?r[1]?a(r[1]):s(r[2]):!1},_=(e,a,s=!1)=>{const r=ze.exec(e);return r?r[1]?a(r[1]):s:!1},Me=e=>e==="position"||e==="percentage",Se=e=>e==="image"||e==="url",Ae=e=>e==="length"||e==="size"||e==="bg-size",Re=e=>e==="length",lr=e=>e==="number",cr=e=>e==="family-name",Ie=e=>e==="shadow",dr=()=>{const e=f("color"),a=f("font"),s=f("text"),r=f("font-weight"),c=f("tracking"),n=f("leading"),l=f("breakpoint"),u=f("container"),p=f("spacing"),b=f("radius"),h=f("shadow"),S=f("inset-shadow"),O=f("text-shadow"),F=f("drop-shadow"),k=f("blur"),v=f("perspective"),G=f("aspect"),R=f("ease"),q=f("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...N(),t,o],I=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],d=()=>[t,o,p],z=()=>[L,"full","auto",...d()],le=()=>[A,"none","subgrid",t,o],ce=()=>["auto",{span:["full",A,t,o]},A,t,o],H=()=>[A,"auto",t,o],de=()=>["auto","min","max","fr",t,o],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...d()],j=()=>[L,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...d()],i=()=>[e,t,o],me=()=>[...N(),ye,xe,{position:[t,o]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",ar,tr,{size:[t,o]}],ee=()=>[oe,$,P],x=()=>["","none","full",b,t,o],y=()=>["",m,$,P],J=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[m,oe,ye,xe],ge=()=>["","none",k,t,o],X=()=>["none",m,t,o],D=()=>["none",m,t,o],re=()=>[m,t,o],K=()=>[L,"full",...d()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[Ye],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[or],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",m],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",L,o,t,G]}],container:["container"],columns:[{columns:[m,o,t,u]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[A,"auto",t,o]}],basis:[{basis:[L,"full","auto",u,...d()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,L,"auto","initial","none",o]}],grow:[{grow:["",m,t,o]}],shrink:[{shrink:["",m,t,o]}],order:[{order:[A,"first","last","none",t,o]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:d()}],"gap-x":[{"gap-x":d()}],"gap-y":[{"gap-y":d()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:d()}],px:[{px:d()}],py:[{py:d()}],ps:[{ps:d()}],pe:[{pe:d()}],pt:[{pt:d()}],pr:[{pr:d()}],pb:[{pb:d()}],pl:[{pl:d()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":d()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":d()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[u,"screen",...j()]}],"min-w":[{"min-w":[u,"screen","none",...j()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",s,$,P]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,t,te]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",oe,o]}],"font-family":[{font:[nr,o,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,t,o]}],"line-clamp":[{"line-clamp":[m,"none",t,te]}],leading:[{leading:[n,...d()]}],"list-image":[{"list-image":["none",t,o]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",t,o]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:i()}],"text-color":[{text:i()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",t,P]}],"text-decoration-color":[{decoration:i()}],"underline-offset":[{"underline-offset":[m,"auto",t,o]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",t,o]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",t,o]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},A,t,o],radial:["",t,o],conic:[A,t,o]},ir,sr]}],"bg-color":[{bg:i()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:i()}],"gradient-via":[{via:i()}],"gradient-to":[{to:i()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:y()}],"border-w-x":[{"border-x":y()}],"border-w-y":[{"border-y":y()}],"border-w-s":[{"border-s":y()}],"border-w-e":[{"border-e":y()}],"border-w-t":[{"border-t":y()}],"border-w-r":[{"border-r":y()}],"border-w-b":[{"border-b":y()}],"border-w-l":[{"border-l":y()}],"divide-x":[{"divide-x":y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:i()}],"border-color-x":[{"border-x":i()}],"border-color-y":[{"border-y":i()}],"border-color-s":[{"border-s":i()}],"border-color-e":[{"border-e":i()}],"border-color-t":[{"border-t":i()}],"border-color-r":[{"border-r":i()}],"border-color-b":[{"border-b":i()}],"border-color-l":[{"border-l":i()}],"divide-color":[{divide:i()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,t,o]}],"outline-w":[{outline:["",m,$,P]}],"outline-color":[{outline:i()}],shadow:[{shadow:["","none",h,Y,Q]}],"shadow-color":[{shadow:i()}],"inset-shadow":[{"inset-shadow":["none",S,Y,Q]}],"inset-shadow-color":[{"inset-shadow":i()}],"ring-w":[{ring:y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:i()}],"ring-offset-w":[{"ring-offset":[m,P]}],"ring-offset-color":[{"ring-offset":i()}],"inset-ring-w":[{"inset-ring":y()}],"inset-ring-color":[{"inset-ring":i()}],"text-shadow":[{"text-shadow":["none",O,Y,Q]}],"text-shadow-color":[{"text-shadow":i()}],opacity:[{opacity:[m,t,o]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":i()}],"mask-image-linear-to-color":[{"mask-linear-to":i()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":i()}],"mask-image-t-to-color":[{"mask-t-to":i()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":i()}],"mask-image-r-to-color":[{"mask-r-to":i()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":i()}],"mask-image-b-to-color":[{"mask-b-to":i()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":i()}],"mask-image-l-to-color":[{"mask-l-to":i()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":i()}],"mask-image-x-to-color":[{"mask-x-to":i()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":i()}],"mask-image-y-to-color":[{"mask-y-to":i()}],"mask-image-radial":[{"mask-radial":[t,o]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":i()}],"mask-image-radial-to-color":[{"mask-radial-to":i()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":i()}],"mask-image-conic-to-color":[{"mask-conic-to":i()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",t,o]}],filter:[{filter:["","none",t,o]}],blur:[{blur:ge()}],brightness:[{brightness:[m,t,o]}],contrast:[{contrast:[m,t,o]}],"drop-shadow":[{"drop-shadow":["","none",F,Y,Q]}],"drop-shadow-color":[{"drop-shadow":i()}],grayscale:[{grayscale:["",m,t,o]}],"hue-rotate":[{"hue-rotate":[m,t,o]}],invert:[{invert:["",m,t,o]}],saturate:[{saturate:[m,t,o]}],sepia:[{sepia:["",m,t,o]}],"backdrop-filter":[{"backdrop-filter":["","none",t,o]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[m,t,o]}],"backdrop-contrast":[{"backdrop-contrast":[m,t,o]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,t,o]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,t,o]}],"backdrop-invert":[{"backdrop-invert":["",m,t,o]}],"backdrop-opacity":[{"backdrop-opacity":[m,t,o]}],"backdrop-saturate":[{"backdrop-saturate":[m,t,o]}],"backdrop-sepia":[{"backdrop-sepia":["",m,t,o]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":d()}],"border-spacing-x":[{"border-spacing-x":d()}],"border-spacing-y":[{"border-spacing-y":d()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",t,o]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",t,o]}],ease:[{ease:["linear","initial",R,t,o]}],delay:[{delay:[m,t,o]}],animate:[{animate:["none",q,t,o]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,t,o]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:D()}],"scale-x":[{"scale-x":D()}],"scale-y":[{"scale-y":D()}],"scale-z":[{"scale-z":D()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[t,o,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:i()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:i()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",t,o]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",t,o]}],fill:[{fill:["none",...i()]}],"stroke-w":[{stroke:[m,$,P,te]}],stroke:[{stroke:["none",...i()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},U=qe(dr);function fr({paginatedPage:e}){return e.hasMore?w.jsx("div",{className:"flex justify-center p-4",children:w.jsx("button",{onClick:e.loadMore,disabled:e.loading,className:U("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",e.loading&&"opacity-50 cursor-not-allowed"),children:e.loading?"Loading...":"Load More"})}):null}function mr(e,a){return a.trim()?a.split(".").reduce((s,r)=>{if(typeof s=="object"&&s!==null&&r in s)return s[r]},e):e}function gr({columns:e,data:a}){const s=e.filter(r=>!r.hidden);return w.jsx("div",{className:"relative overflow-x-auto",children:w.jsxs("table",{className:"w-full text-start",children:[w.jsx("thead",{children:w.jsx("tr",{children:s.map((r,c)=>w.jsx("th",{scope:"col",className:U("min-w-32 bg-gray-50 dark:bg-neutral-900 p-5 text-sm font-semibold text-gray-900 dark:text-neutral-200 first:rounded-s-lg last:rounded-e-lg",r.position==="end"?"text-end":""),children:w.jsxs("div",{className:U("flex items-center gap-2",r.position==="end"?"justify-end":"justify-start"),children:[r.headPrefix&&r.headPrefix(),r.name]})},c))})}),w.jsx("tbody",{children:a.map((r,c)=>w.jsx("tr",{className:"max-h-none overflow-hidden rounded-lg text-sm font-medium text-gray-800 dark:text-neutral-400 even:[&_td]:bg-gray-25 dark:even:[&_td]:bg-neutral-950 transition-colors",children:s.map((n,l)=>w.jsx("td",{className:U("p-5 first:rounded-s-lg last:rounded-e-lg bg-white dark:bg-transparent",n.position==="end"?"text-end":"text-start"),children:w.jsxs("div",{className:U("flex items-center gap-1",l<s.length-1&&n.position!=="end"&&"pe-8",n.class,n.position==="end"?"justify-end":"justify-start"),children:[n.icon&&n.icon(r),n.prefix&&n.prefix(r),n.render?n.render(r):n.key?String(mr(r,n.key)??"-"):n.value?n.value(r):"-",n.suffix&&n.suffix(r)]})},l))},c))})]})})}export{ur as C,fr as L,gr as T};
6
+ */const Pe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],ur=Ie("circle-arrow-right",Pe),ie="-",Ne=e=>{const n=Te(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(ie);return u[0]===""&&u.length!==1&&u.shift(),ke(u,n)||Ge(l)},getConflictingClassGroupIds:(l,u)=>{const p=o[l]||[];return u&&r[l]?[...p,...r[l]]:p}}},ke=(e,n)=>{if(e.length===0)return n.classGroupId;const o=e[0],r=n.nextPart.get(o),c=r?ke(e.slice(1),r):void 0;if(c)return c;if(n.validators.length===0)return;const a=e.join(ie);return n.validators.find(({validator:l})=>l(a))?.classGroupId},be=/^\[(.+)\]$/,Ge=e=>{if(be.test(e)){const n=be.exec(e)[1],o=n?.substring(0,n.indexOf(":"));if(o)return"arbitrary.."+o}},Te=e=>{const{theme:n,classGroups:o}=e,r={nextPart:new Map,validators:[]};for(const c in o)se(o[c],r,c,n);return r},se=(e,n,o,r)=>{e.forEach(c=>{if(typeof c=="string"){const a=c===""?n:he(n,c);a.classGroupId=o;return}if(typeof c=="function"){if(Ee(c)){se(c(r),n,o,r);return}n.validators.push({validator:c,classGroupId:o});return}Object.entries(c).forEach(([a,l])=>{se(l,he(n,a),o,r)})})},he=(e,n)=>{let o=e;return n.split(ie).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Ee=e=>e.isThemeGetter,Le=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,o=new Map,r=new Map;const c=(a,l)=>{o.set(a,l),n++,n>e&&(n=0,r=o,o=new Map)};return{get(a){let l=o.get(a);if(l!==void 0)return l;if((l=r.get(a))!==void 0)return c(a,l),l},set(a,l){o.has(a)?o.set(a,l):c(a,l)}}},ne="!",ae=":",Ve=ae.length,_e=e=>{const{prefix:n,experimentalParseClassName:o}=e;let r=c=>{const a=[];let l=0,u=0,p=0,b;for(let w=0;w<c.length;w++){let v=c[w];if(l===0&&u===0){if(v===ae){a.push(c.slice(p,w)),p=w+Ve;continue}if(v==="/"){b=w;continue}}v==="["?l++:v==="]"?l--:v==="("?u++:v===")"&&u--}const h=a.length===0?c:c.substring(p),S=Oe(h),O=S!==h,F=b&&b>p?b-p:void 0;return{modifiers:a,hasImportantModifier:O,baseClassName:S,maybePostfixModifierPosition:F}};if(n){const c=n+ae,a=r;r=l=>l.startsWith(c)?a(l.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(o){const c=r;r=a=>o({className:a,parseClassName:c})}return r},Oe=e=>e.endsWith(ne)?e.substring(0,e.length-1):e.startsWith(ne)?e.substring(1):e,Fe=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const c=[];let a=[];return r.forEach(l=>{l[0]==="["||n[l]?(c.push(...a.sort(),l),a=[]):a.push(l)}),c.push(...a.sort()),c}},Be=e=>({cache:Le(e.cacheSize),parseClassName:_e(e),sortModifiers:Fe(e),...Ne(e)}),We=/\s+/,$e=(e,n)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:a}=n,l=[],u=e.trim().split(We);let p="";for(let b=u.length-1;b>=0;b-=1){const h=u[b],{isExternal:S,modifiers:O,hasImportantModifier:F,baseClassName:w,maybePostfixModifierPosition:v}=o(h);if(S){p=h+(p.length>0?" "+p:p);continue}let N=!!v,R=r(N?w.substring(0,v):w);if(!R){if(!N){p=h+(p.length>0?" "+p:p);continue}if(R=r(w),!R){p=h+(p.length>0?" "+p:p);continue}N=!1}const q=a(O).join(":"),B=F?q+ne:q,G=B+R;if(l.includes(G))continue;l.push(G);const T=c(R,N);for(let j=0;j<T.length;++j){const W=T[j];l.push(B+W)}p=h+(p.length>0?" "+p:p)}return p};function Ue(){let e=0,n,o,r="";for(;e<arguments.length;)(n=arguments[e++])&&(o=we(n))&&(r&&(r+=" "),r+=o);return r}const we=e=>{if(typeof e=="string")return e;let n,o="";for(let r=0;r<e.length;r++)e[r]&&(n=we(e[r]))&&(o&&(o+=" "),o+=n);return o};function qe(e,...n){let o,r,c,a=l;function l(p){const b=n.reduce((h,S)=>S(h),e());return o=Be(b),r=o.cache.get,c=o.cache.set,a=u,u(p)}function u(p){const b=r(p);if(b)return b;const h=$e(p,o);return c(p,h),h}return function(){return a(Ue.apply(null,arguments))}}const f=e=>{const n=o=>o[e]||[];return n.isThemeGetter=!0,n},ve=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ze=/^\((?:(\w[\w-]*):)?(.+)\)$/i,He=/^\d+\/\d+$/,Je=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ye=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,De=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ke=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>He.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),A=e=>!!e&&Number.isInteger(Number(e)),oe=e=>e.endsWith("%")&&m(e.slice(0,-1)),M=e=>Je.test(e),Qe=()=>!0,Ze=e=>Xe.test(e)&&!Ye.test(e),Ce=()=>!1,er=e=>De.test(e),rr=e=>Ke.test(e),or=e=>!t(e)&&!s(e),tr=e=>V(e,Ae,Ce),t=e=>ve.test(e),P=e=>V(e,Re,Ze),te=e=>V(e,lr,m),xe=e=>V(e,Me,Ce),sr=e=>V(e,Se,rr),K=e=>V(e,je,er),s=e=>ze.test(e),$=e=>_(e,Re),nr=e=>_(e,cr),ye=e=>_(e,Me),ar=e=>_(e,Ae),ir=e=>_(e,Se),Q=e=>_(e,je,!0),V=(e,n,o)=>{const r=ve.exec(e);return r?r[1]?n(r[1]):o(r[2]):!1},_=(e,n,o=!1)=>{const r=ze.exec(e);return r?r[1]?n(r[1]):o:!1},Me=e=>e==="position"||e==="percentage",Se=e=>e==="image"||e==="url",Ae=e=>e==="length"||e==="size"||e==="bg-size",Re=e=>e==="length",lr=e=>e==="number",cr=e=>e==="family-name",je=e=>e==="shadow",dr=()=>{const e=f("color"),n=f("font"),o=f("text"),r=f("font-weight"),c=f("tracking"),a=f("leading"),l=f("breakpoint"),u=f("container"),p=f("spacing"),b=f("radius"),h=f("shadow"),S=f("inset-shadow"),O=f("text-shadow"),F=f("drop-shadow"),w=f("blur"),v=f("perspective"),N=f("aspect"),R=f("ease"),q=f("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...G(),s,t],j=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],d=()=>[s,t,p],z=()=>[L,"full","auto",...d()],le=()=>[A,"none","subgrid",s,t],ce=()=>["auto",{span:["full",A,s,t]},A,s,t],H=()=>[A,"auto",s,t],de=()=>["auto","min","max","fr",s,t],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...d()],I=()=>[L,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...d()],i=()=>[e,s,t],me=()=>[...G(),ye,xe,{position:[s,t]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",ar,tr,{size:[s,t]}],ee=()=>[oe,$,P],x=()=>["","none","full",b,s,t],k=()=>["",m,$,P],J=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[m,oe,ye,xe],ge=()=>["","none",w,s,t],X=()=>["none",m,s,t],Y=()=>["none",m,s,t],re=()=>[m,s,t],D=()=>[L,"full",...d()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[Qe],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[or],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",m],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",L,t,s,N]}],container:["container"],columns:[{columns:[m,t,s,u]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[A,"auto",s,t]}],basis:[{basis:[L,"full","auto",u,...d()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,L,"auto","initial","none",t]}],grow:[{grow:["",m,s,t]}],shrink:[{shrink:["",m,s,t]}],order:[{order:[A,"first","last","none",s,t]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:d()}],"gap-x":[{"gap-x":d()}],"gap-y":[{"gap-y":d()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:d()}],px:[{px:d()}],py:[{py:d()}],ps:[{ps:d()}],pe:[{pe:d()}],pt:[{pt:d()}],pr:[{pr:d()}],pb:[{pb:d()}],pl:[{pl:d()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":d()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":d()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[u,"screen",...I()]}],"min-w":[{"min-w":[u,"screen","none",...I()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",o,$,P]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,s,te]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",oe,t]}],"font-family":[{font:[nr,t,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,s,t]}],"line-clamp":[{"line-clamp":[m,"none",s,te]}],leading:[{leading:[a,...d()]}],"list-image":[{"list-image":["none",s,t]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s,t]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:i()}],"text-color":[{text:i()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",s,P]}],"text-decoration-color":[{decoration:i()}],"underline-offset":[{"underline-offset":[m,"auto",s,t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s,t]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s,t]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},A,s,t],radial:["",s,t],conic:[A,s,t]},ir,sr]}],"bg-color":[{bg:i()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:i()}],"gradient-via":[{via:i()}],"gradient-to":[{to:i()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:i()}],"border-color-x":[{"border-x":i()}],"border-color-y":[{"border-y":i()}],"border-color-s":[{"border-s":i()}],"border-color-e":[{"border-e":i()}],"border-color-t":[{"border-t":i()}],"border-color-r":[{"border-r":i()}],"border-color-b":[{"border-b":i()}],"border-color-l":[{"border-l":i()}],"divide-color":[{divide:i()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,s,t]}],"outline-w":[{outline:["",m,$,P]}],"outline-color":[{outline:i()}],shadow:[{shadow:["","none",h,Q,K]}],"shadow-color":[{shadow:i()}],"inset-shadow":[{"inset-shadow":["none",S,Q,K]}],"inset-shadow-color":[{"inset-shadow":i()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:i()}],"ring-offset-w":[{"ring-offset":[m,P]}],"ring-offset-color":[{"ring-offset":i()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":i()}],"text-shadow":[{"text-shadow":["none",O,Q,K]}],"text-shadow-color":[{"text-shadow":i()}],opacity:[{opacity:[m,s,t]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":i()}],"mask-image-linear-to-color":[{"mask-linear-to":i()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":i()}],"mask-image-t-to-color":[{"mask-t-to":i()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":i()}],"mask-image-r-to-color":[{"mask-r-to":i()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":i()}],"mask-image-b-to-color":[{"mask-b-to":i()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":i()}],"mask-image-l-to-color":[{"mask-l-to":i()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":i()}],"mask-image-x-to-color":[{"mask-x-to":i()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":i()}],"mask-image-y-to-color":[{"mask-y-to":i()}],"mask-image-radial":[{"mask-radial":[s,t]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":i()}],"mask-image-radial-to-color":[{"mask-radial-to":i()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":i()}],"mask-image-conic-to-color":[{"mask-conic-to":i()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s,t]}],filter:[{filter:["","none",s,t]}],blur:[{blur:ge()}],brightness:[{brightness:[m,s,t]}],contrast:[{contrast:[m,s,t]}],"drop-shadow":[{"drop-shadow":["","none",F,Q,K]}],"drop-shadow-color":[{"drop-shadow":i()}],grayscale:[{grayscale:["",m,s,t]}],"hue-rotate":[{"hue-rotate":[m,s,t]}],invert:[{invert:["",m,s,t]}],saturate:[{saturate:[m,s,t]}],sepia:[{sepia:["",m,s,t]}],"backdrop-filter":[{"backdrop-filter":["","none",s,t]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[m,s,t]}],"backdrop-contrast":[{"backdrop-contrast":[m,s,t]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,s,t]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,s,t]}],"backdrop-invert":[{"backdrop-invert":["",m,s,t]}],"backdrop-opacity":[{"backdrop-opacity":[m,s,t]}],"backdrop-saturate":[{"backdrop-saturate":[m,s,t]}],"backdrop-sepia":[{"backdrop-sepia":["",m,s,t]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":d()}],"border-spacing-x":[{"border-spacing-x":d()}],"border-spacing-y":[{"border-spacing-y":d()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",s,t]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",s,t]}],ease:[{ease:["linear","initial",R,s,t]}],delay:[{delay:[m,s,t]}],animate:[{animate:["none",q,s,t]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,s,t]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[s,t,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:D()}],"translate-x":[{"translate-x":D()}],"translate-y":[{"translate-y":D()}],"translate-z":[{"translate-z":D()}],"translate-none":["translate-none"],accent:[{accent:i()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:i()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",s,t]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s,t]}],fill:[{fill:["none",...i()]}],"stroke-w":[{stroke:[m,$,P,te]}],stroke:[{stroke:["none",...i()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},U=qe(dr);function fr({paginatedPage:e}){return e.hasMore?y.jsx("div",{className:"flex justify-center p-4",children:y.jsx("button",{onClick:e.loadMore,disabled:e.loading,className:U("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",e.loading&&"opacity-50 cursor-not-allowed"),children:e.loading?"Loading...":"Load More"})}):null}function mr(e,n){return n.trim()?n.split(".").reduce((o,r)=>{if(typeof o=="object"&&o!==null&&r in o)return o[r]},e):e}function gr({columns:e,data:n}){const o=e.filter(r=>!r.hidden);return y.jsx("div",{className:"relative overflow-x-auto",children:y.jsxs("table",{className:"w-full text-start",children:[y.jsx("thead",{children:y.jsx("tr",{children:o.map((r,c)=>y.jsx("th",{scope:"col",className:U("min-w-32 bg-gray-50 dark:bg-neutral-900 p-5 text-sm font-semibold text-gray-900 dark:text-neutral-200 first:rounded-s-lg last:rounded-e-lg",r.position==="end"?"text-end":""),children:y.jsxs("div",{className:U("flex items-center gap-2",r.position==="end"?"justify-end":"justify-start"),children:[r.headPrefix&&r.headPrefix(),r.name]})},c))})}),y.jsxs("tbody",{children:[!n.length&&y.jsx("tr",{children:y.jsx("td",{colSpan:o.length,className:"p-5 text-center text-neutral-400",children:"No Entries Recorded Yet!"})}),n.map((r,c)=>y.jsx("tr",{className:"max-h-none overflow-hidden rounded-lg text-sm font-medium text-gray-800 dark:text-neutral-400 even:[&_td]:bg-gray-25 dark:even:[&_td]:bg-neutral-950 transition-colors",children:o.map((a,l)=>y.jsx("td",{className:U("p-5 first:rounded-s-lg last:rounded-e-lg bg-white dark:bg-transparent",a.position==="end"?"text-end":"text-start"),children:y.jsxs("div",{className:U("flex items-center gap-1",l<o.length-1&&a.position!=="end"&&"pe-8",a.class,a.position==="end"?"justify-end":"justify-start"),children:[a.icon&&a.icon(r),a.prefix&&a.prefix(r),a.render?a.render(r):a.key?String(mr(r,a.key)??"-"):a.value?a.value(r):"-",a.suffix&&a.suffix(r)]})},l))},c))]})]})})}export{ur as C,fr as L,gr as T};
@@ -1 +1 @@
1
- import{w as o}from"./index-BZL6Xmfs.js";function a(){return o.tz.guess()}function n(t){return o.utc(t).tz(a())}const s=t=>{const r=n(t);return{label:r.fromNow(),exact:r.format("YYYY-MM-DD HH:mm:ss")}};function i(t,r="en"){if(!t)return"N/A";const e=n(t);return e.isValid()?`${e.locale(r).format("MMMM D, YYYY h:mm A")} (${e.fromNow()})`:"N/A"}export{i as f,s as h};
1
+ import{w as o}from"./index-C-9tn0L6.js";function a(){return o.tz.guess()}function n(t){return o.utc(t).tz(a())}const s=t=>{const r=n(t);return{label:r.fromNow(),exact:r.format("YYYY-MM-DD HH:mm:ss")}};function i(t,r="en"){if(!t)return"N/A";const e=n(t);return e.isValid()?`${e.locale(r).format("MMMM D, YYYY h:mm A")} (${e.fromNow()})`:"N/A"}export{i as f,s as h};