PageSourceSearch

https://trybounty.ai/assets/explore-row-BCcToKA4.js

js trybounty.ai collected 2026-10-05 13:09:03 UTC 12,992 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[t]=`5e0846ea-a0a4-449b-bd96-33d431b1916b`)}catch{}})();import{r as e}from"./rolldown-runtime-Dp6oDxSW.js";import{n as t,t as n}from"./jsx-runtime-BN_2YB3D.js";import{r,t as i}from"./utils-Czoftbae.js";import{_ as a,d as o,f as s,g as c,h as l,i as u,m as d,p as f,u as p,v as m,y as h}from"./api-DyYVlJgZ.js";import{t as g}from"./chevron-left-C7pzhMFp.js";import{t as _}from"./chevron-right-DkxtBIba.js";import{s as v,t as y}from"./notifyManager-C2YaRXhZ.js";var b=Object.defineProperty,x=(e,t,n)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t,n)=>x(e,typeof t==`symbol`?t:t+``,n),C=void 0,w=class{constructor(e,t){if(S(this,`address`),S(this,`auth`),S(this,`adminAuth`),S(this,`encodedTsPromise`),S(this,`debug`),S(this,`fetchOptions`),S(this,`fetch`),S(this,`logger`),S(this,`mutationQueue`,[]),S(this,`isProcessingQueue`,!1),typeof t==`boolean`)throw Error("skipConvexDeploymentUrlCheck as the second argument is no longer supported. Please pass an options object, `{ skipConvexDeploymentUrlCheck: true }`.");(t??{}).skipConvexDeploymentUrlCheck!==!0&&h(e),this.logger=t?.logger===!1?s({verbose:!1}):t?.logger!==!0&&t?.logger?t.logger:o({verbose:!1}),this.address=e,this.debug=!0,this.auth=void 0,this.adminAuth=void 0,this.fetch=t?.fetch,t?.auth&&this.setAuth(t.auth)}backendUrl(){return`${this.address}/api`}get url(){return this.address}setAuth(e){this.clearAuth(),this.auth=e}setAdminAuth(e,t){if(this.clearAuth(),t!==void 0){let n=new TextEncoder().encode(JSON.stringify(t)),r=btoa(String.fromCodePoint(...n));this.adminAuth=`${e}:${r}`}else this.adminAuth=e}clearAuth(){this.auth=void 0,this.adminAuth=void 0}setDebug(e){this.debug=e}setFetchOptions(e){this.fetchOptions=e}async consistentQuery(e,...t){let n=m(t[0]),r=this.getTimestamp();return await this.queryInner(e,n,{timestampPromise:r})}async getTimestamp(){return this.encodedTsPromise?this.encodedTsPromise:this.encodedTsPromise=this.getTimestampInner()}async getTimestampInner(){let e=this.fetch||C||fetch,t={"Content-Type":`application/json`,"Convex-Client":`npm-${d}`},n=await e(`${this.address}/api/query_ts`,{...this.fetchOptions,method:`POST`,headers:t});if(!n.ok)throw Error(await n.text());let{ts:r}=await n.json();return r}async query(e,...t){let n=m(t[0]);return await this.queryInner(e,n,{})}async queryInner(e,t,n){let r=p(e),i=[c(t)],o={"Content-Type":`application/json`,"Convex-Client":`npm-${d}`};this.adminAuth?o.Authorization=`Convex ${this.adminAuth}`:this.auth&&(o.Authorization=`Bearer ${this.auth}`);let s=this.fetch||C||fetch,u=n.timestampPromise?await n.timestampPromise:void 0,m=JSON.stringify({path:r,format:`convex_encoded_json`,args:i,...u?{ts:u}:{}}),h=await s(u?`${this.address}/api/query_at_ts`:`${this.address}/api/query`,{...this.fetchOptions,body:m,method:`POST`,headers:o});if(!h.ok&&h.status!==560)throw Error(await h.text());let g=await h.json();if(this.debug)for(let e of g.logLines??[])f(this.logger,`info`,`query`,r,e);switch(g.status){case`success`:return a(g.value);case`error`:throw g.errorData===void 0?Error(g.errorMessage):T(g.errorData,new l(g.errorMessage));default:throw Error(`Invalid response: ${JSON.stringify(g)}`)}}async mutationInner(e,t){let n=p(e),r=JSON.stringify({path:n,format:`convex_encoded_json`,args:[c(t)]}),i={"Content-Type":`application/json`,"Convex-Client":`npm-${d}`};this.adminAuth?i.Authorization=`Convex ${this.adminAuth}`:this.auth&&(i.Authorization=`Bearer ${this.auth}`);let o=await(this.fetch||C||fetch)(`${this.address}/api/mutation`,{...this.fetchOptions,body:r,method:`POST`,headers:i});if(!o.ok&&o.status!==560)throw Error(await o.text());let s=await o.json();if(this.debug)for(let e of s.logLines??[])f(this.logger,`info`,`mutation`,n,e);switch(s.status){case`success`:return a(s.value);case`error`:throw s.errorData===void 0?Error(s.errorMessage):T(s.errorData,new l(s.errorMessage));default:throw Error(`Invalid response: ${JSON.stringify(s)}`)}}async processMutationQueue(){if(!this.isProcessingQueue){for(this.isProcessingQueue=!0;
1this.mutationQueue.length>0;){let{mutation:e,args:t,resolve:n,reject:r}=this.mutationQueue.shift();try{n(await this.mutationInner(e,t))}catch(e){r(e)}}this.isProcessingQueue=!1}}enqueueMutation(e,t){return new Promise((n,r)=>{this.mutationQueue.push({mutation:e,args:t,resolve:n,reject:r}),this.processMutationQueue()})}async mutation(e,...t){let[n,r]=t,i=m(n);return r?.skipQueue?await this.mutationInner(e,i):await this.enqueueMutation(e,i)}async action(e,...t){let n=m(t[0]),r=p(e),i=JSON.stringify({path:r,format:`convex_encoded_json`,args:[c(n)]}),o={"Content-Type":`application/json`,"Convex-Client":`npm-${d}`};this.adminAuth?o.Authorization=`Convex ${this.adminAuth}`:this.auth&&(o.Authorization=`Bearer ${this.auth}`);let s=await(this.fetch||C||fetch)(`${this.address}/api/action`,{...this.fetchOptions,body:i,method:`POST`,headers:o});if(!s.ok&&s.status!==560)throw Error(await s.text());let u=await s.json();if(this.debug)for(let e of u.logLines??[])f(this.logger,`info`,`action`,r,e);switch(u.status){case`success`:return a(u.value);case`error`:throw u.errorData===void 0?Error(u.errorMessage):T(u.errorData,new l(u.errorMessage));default:throw Error(`Invalid response: ${JSON.stringify(u)}`)}}async function(e,t,...n){let r=m(n[0]),i=typeof e==`string`?e:p(e),o=JSON.stringify({componentPath:t,path:i,format:`convex_encoded_json`,args:c(r)}),s={"Content-Type":`application/json`,"Convex-Client":`npm-${d}`};this.adminAuth?s.Authorization=`Convex ${this.adminAuth}`:this.auth&&(s.Authorization=`Bearer ${this.auth}`);let u=await(this.fetch||C||fetch)(`${this.address}/api/function`,{...this.fetchOptions,body:o,method:`POST`,headers:s});if(!u.ok&&u.status!==560)throw Error(await u.text());let h=await u.json();if(this.debug)for(let e of h.logLines??[])f(this.logger,`info`,`any`,i,e);switch(h.status){case`success`:return a(h.value);case`error`:throw h.errorData===void 0?Error(h.errorMessage):T(h.errorData,new l(h.errorMessage));default:throw Error(`Invalid response: ${JSON.stringify(h)}`)}}};function T(e,t){return t.data=a(e),t}var E=typeof window>`u`;function D(e){return e.length>=2&&[`convexQuery`,`convexAction`].includes(e[0])&&e[2]===`skip`}function O(e){return e.length>=2&&e[0]===`convexQuery`}function k(e){return e.length>=2&&e[0]===`convexAction`}function A(e){return`convexQuery|${p(e[1])}|${JSON.stringify(c(e[2]))}`}var j=class{convexClient;subscriptions;unsubscribe;serverHttpClient;_queryClient;ssrQueryMode;get queryClient(){if(!this._queryClient)throw Error(`ConvexQueryClient not connected to TanStack QueryClient.`);return this._queryClient}constructor(e,t={}){this.convexClient=typeof e==`string`?new u(e,t):e,this.ssrQueryMode=t.dangerouslyUseInconsistentQueriesDuringSSR?`inconsistent`:`consistent`,this.subscriptions={},t.queryClient&&(this._queryClient=t.queryClient,this.unsubscribe=this.subscribeInner(t.queryClient.getQueryCache())),E&&(this.serverHttpClient=new w(this.convexClient.url))}connect(e){if(this.unsubscribe)throw Error(`already subscribed!`);this._queryClient=e,this.unsubscribe=this.subscribeInner(e.getQueryCache())}onUpdate=()=>{y.batch(()=>{for(let e of Object.keys(this.subscriptions))this.onUpdateQueryKeyHash(e)})};onUpdateQueryKeyHash(e){let t=this.subscriptions[e];if(!t)throw Error(`Internal ConvexQueryClient error: onUpdateQueryKeyHash called for ${e}`);let n=this.queryClient.getQueryCache().get(e);if(!n)return;let{queryKey:r,watch:i}=t,a;try{a={ok:!0,value:i.localQueryResult()}}catch(e){a={ok:!1,error:e}}if(a.ok){let e=a.value;this.queryClient.setQueryData(r,t=>{if(t!==void 0)return e})}else{let{error:e}=a;n?.setState({error:e,errorUpdateCount:n.state.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.state.fetchFailureCount+1,fetchFailureReason:e,fetchStatus:`idle`,status:`error`},{meta:`set by ConvexQueryClient`})}}subscribeInner(e){return E?()=>{}:e.subscribe(e=>{if(O(e.query.queryKey)&&!D(e.query.queryKey))switch(e.type){case`removed`:this.subscriptions[e.query.queryHash].unsubscribe(),delete this.subscriptions[e.query.queryHash];break;case`added`:{let[t,n,r,i]=e.query.queryKey,a=this.convexClient.watchQuery(n,r,{}),o=a.onUpdate(()=>{this.onUpdateQueryKeyHash(e.query.queryHash)});this.subscriptions[e.query.queryHash]={queryKey:e.query.queryKey,watch:a,unsubscribe:o};break}case`observerAdded`:break;case`observerRemoved`:e.query.getObserversCount();break;case`observerResultsUpdated`:break;case`updated`:if(e.action.type===`setState`&&e.action.setStateOptions?.meta===`set by ConvexQueryClient`)break}})}queryFn(e=N){return async t=>{if(D(t.queryKey))throw Error(`Skipped query should not actually be run, should { enabled: false }`);if(O(t.queryKey)){let[e,n,r]=t.queryKey;return E?this.ssrQueryMode===`consistent`?await this.serverHttpClient.consistentQuery(n,r):await this.serverHttpClient.query(n,r):await this.convexClient.query(n,r)}if(k(t.queryKey)){let[e,n,r]=t.queryKey;return E?await this.serverHttpClient.action(n,r):await this.convexClient.action(n,r)}return e(t)}}hashFn(e=v){return t=>O(t)?A(t):e(t)}queryOptions=(e,t)=>({queryKey:[`convexQuery`,p(e),t],queryFn:this.queryFn(),staleTime:1/0})};function M(e,...t){let n=t[0]??{};return{queryKey:[`convexQuery`,p(e),n===`skip`?`skip`:n],staleTime:1/0,...n===`skip`?{enabled:!1}:{}}}function N(e){throw Error(`Query key is not for a Convex Query: `+e.queryKey)}var P=r(),F=e(t(),1),I=n(),L=.8,R=`flex size-11 shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground transition-[filter,opacity] hover:brightness-95 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-deep disabled:opacity-30 disabled:hover:brightness-100`,z=`container-inset`;function B(e){let t=(0,P.c)(40),{id:n,title:r,count:a,seeAll:o,children:s}=e,c=(0,F.useRef)(null),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={atStart:!0,atEnd:!1},t[0]=l):l=t[0];let[u,d]=(0,F.useState)(l),f;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>
1{let e=c.current;e&&d({atStart:e.scrollLeft<=1,atEnd:e.scrollLeft+e.clientWidth>=e.scrollWidth-1})},t[1]=f):f=t[1];let p=f,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>{c.current=e,p()},t[2]=m):m=t[2];let h=m,v;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(v=e=>{let t=c.current;t&&t.scrollBy({left:e*t.clientWidth*L,behavior:`smooth`})},t[3]=v):v=t[3];let y=v,b=`${n}-title`,x;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(x=i(`flex w-full items-center justify-between gap-4`,z),t[4]=x):x=t[4];let S;t[5]!==b||t[6]!==r?(S=(0,I.jsx)(`h2`,{id:b,className:`font-display text-2xl leading-7 text-foreground md:text-3xl md:leading-8`,children:r}),t[5]=b,t[6]=r,t[7]=S):S=t[7];let C;t[8]===a?C=t[9]:(C=a?(0,I.jsx)(`span`,{className:`shrink-0 text-base leading-5 font-medium text-muted-foreground`,children:a}):null,t[8]=a,t[9]=C);let w;t[10]!==S||t[11]!==C?(w=(0,I.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[S,C]}),t[10]=S,t[11]=C,t[12]=w):w=t[12];let T=`Scroll ${r} back`,E;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(E=()=>y(-1),t[13]=E):E=t[13];let D;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,I.jsx)(g,{"aria-hidden":!0,className:`size-4`,strokeWidth:2}),t[14]=D):D=t[14];let O;t[15]!==u.atStart||t[16]!==T?(O=(0,I.jsx)(`button`,{type:`button`,"aria-label":T,disabled:u.atStart,onClick:E,className:R,children:D}),t[15]=u.atStart,t[16]=T,t[17]=O):O=t[17];let k=`Scroll ${r} forward`,A;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>y(1),t[18]=A):A=t[18];let j;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,I.jsx)(_,{"aria-hidden":!0,className:`size-4`,strokeWidth:2}),t[19]=j):j=t[19];let M;t[20]!==u.atEnd||t[21]!==k?(M=(0,I.jsx)(`button`,{type:`button`,"aria-label":k,disabled:u.atEnd,onClick:A,className:R,children:j}),t[20]=u.atEnd,t[21]=k,t[22]=M):M=t[22];let N;t[23]!==O||t[24]!==M?(N=(0,I.jsxs)(`div`,{className:`hidden gap-2 md:flex`,children:[O,M]}),t[23]=O,t[24]=M,t[25]=N):N=t[25];let B;t[26]!==o||t[27]!==N?(B=(0,I.jsxs)(`div`,{className:`flex shrink-0 items-center gap-4`,children:[o,N]}),t[26]=o,t[27]=N,t[28]=B):B=t[28];let V;t[29]!==B||t[30]!==w?(V=(0,I.jsxs)(`div`,{className:x,children:[w,B]}),t[29]=B,t[30]=w,t[31]=V):V=t[31];let H;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(H=i(`flex min-w-0 snap-x snap-mandatory gap-4 overflow-x-auto pt-7 pb-14 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,z),t[32]=H):H=t[32];let U;t[33]===s?U=t[34]:(U=(0,I.jsx)(`div`,{ref:h,onScroll:p,className:H,children:s}),t[33]=s,t[34]=U);let W;return t[35]!==b||t[36]!==n||t[37]!==V||t[38]!==U?(W=(0,I.jsxs)(`section`,{id:n,"aria-labelledby":b,className:`min-w-0 scroll-mt-24`,children:[V,U]}),t[35]=b,t[36]=n,t[37]=V,t[38]=U,t[39]=W):W=t[39],W}export{M as a,j as i,z as n,B as r,R as t};
2//# chunkId=5e0846ea-a0a4-449b-bd96-33d431b1916b

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.