PageSourceSearch

https://static.linear.app/web/_next/static/chunks/DAMvCRKg.js

js linear.app collected 2026-09-24 07:28:09 UTC 8,369 bytes, 1 lines download raw bytes

1var e,t,n,r,o,i,a,s,c,u,d,l,f,g,v,h,p,m,w,y,b,E,_,O,R,S,k,L,T,V,D,C,x,I,P,M,W,F,A,j,q,J,N,U,$,H,z,B,G,K,Q,X;import{o as Y}from"./C_JJxWoe.js";import{Vr as Z}from"./CGcjPoY7.js";import{t as ee}from"./CQOI1JvT.js";e=ee(),t=Y(Z(),1),n=new WeakMap,r={},o={},i=()=>{},a=Object,s=e=>void 0===e,c=e=>"function"==typeof e,u=(e,t)=>({...e,...t}),d="undefined",l=typeof document!=d,f=()=>typeof window.requestAnimationFrame!=d,g=(e,t)=>{const i=n.get(e);return[()=>e.get(t)||r,n=>{if(!s(t)){const a=e.get(t);t in o||(o[t]=a),i[5](t,u(a,n),a||r)}},i[6],()=>!s(t)&&t in o?o[t]:e.get(t)||r]},v=new WeakMap,h=0,p=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(a(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=v.get(e),o)return o;if(o=++h+"~",v.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=p(e[i])+",";v.set(e,o)}if(n==a){o="#";const t=a.keys(e).sort();for(;!s(i=t.pop());)s(e[i])||(o+=i+":"+p(e[i])+",");v.set(e,o)}}return o},m=!0,w=()=>m;var[te,ne]=window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i];async function re(...e){const[t,r,o,i]=e,a=u({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let d=a.populateCache;const l=a.rollbackOnError;let f=a.optimisticData;const v=!1!==a.revalidate,h=a.throwOnError;if(c(r)){const e=r,n=[],o=t.keys();for(let r=o.next();!r.done;r=o.next()){const o=r.value;!o.startsWith("$inf$")&&e(t.get(o)._k)&&n.push(o)}return Promise.all(n.map(p))}return p(r);async function p(r){const[i]=L(r);if(!i)return;const[a,u]=g(t,i),[p,m,w]=n.get(t),y=p[i],b=()=>v&&(delete w[i],y&&y[0])?y[0](D).then(()=>a().data):a().data;if(e.length<3)return b();let E,_=o;const O=V();m[i]=[O,0];const R=!s(f),S=a(),k=S.data,T=S._c,C=s(T)?k:T;if(R&&(f=c(f)?f(C):f,u({data:f,_c:C})),c(_))try{_=_(C)}catch(I){E=I}if(_&&c(_.then)){if(_=await _.catch(e=>{E=e}),O!==m[i][0]){if(E)throw E;return _}E&&R&&(e=>"function"==typeof l?l(e):!1!==l)(E)&&(d=!0,_=C,u({data:_,_c:void 0}))}d&&(E||(c(d)&&(_=d(_,C)),u({data:_,_c:void 0}))),m[i][1]=V();const x=await b();if(u({_c:void 0}),!E)return d?x:_;if(h)throw E}}y={isOnline:w,isVisible:()=>{const e=l&&document.visibilityState;return s(e)||"hidden"!==e}},b={initFocus:e=>(l&&document.addEventListener("visibilitychange",e),te("focus",e),()=>{l&&document.removeEventListener("visibilitychange",e),ne("focus",e)}),initReconnect:e=>{const t=()=>{m=!0,e()},n=()=>{m=!1};return te("online",t),te("offline",n),()=>{ne("online",t),ne("offline",n)}}},E=!t.useId,_="Deno"in window,O=e=>f()?window.requestAnimationFrame(e):setTimeout(e,1),R=_?t.useEffect:t.useLayoutEffect,S="undefined"!=typeof navigator&&navigator.connection,k=!_&&S&&(["slow-2g","2g"].includes(S.effectiveType)||S.saveData),L=e=>{if(c(e))try{e=e()}catch(n){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?p(e):"",t]},T=0,V=()=>++T,C=D=2,x=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},I=(e,t)=>{if(!n.has(e)){const r=u(b,t),o={},a=re.bind(void 0,e);let s=i;const c={},d=(e,t)=>{const n=c[e]||[];return c[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const o=c[t];if(o)for(let e=o.length;e--;)o[e](n,r)},f=()=>{if(!n.has(e)&&(n.set(e,[o,{},{},{},a,l,d]),!_)){const t=r.initFocus(setTimeout.bind(void 0,x.bind(void 0,o,0))),i=r.initReconnect(setTimeout.bind(void 0,x.bind(void 0,o,1)));s=()=>{t&&t(),i&&i(),n.delete(e)}}};return f(),[e,a,f,s]}return[e,n.get(e)[4]]},P=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,c=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!s(i)&&a>i||setTimeout(r,c,o)},M=(e,t)=>p(e)==p(t);var[oe,ie]=I(new Map);W=u({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:P,onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:k?5e3:3e3,compare:M,isPaused:()=>!1,cache:oe,mutate:ie,fallback:{}},y),F=(e,t)=>{const n=u(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=u(o,a))}return n},A=(0,t.createContext)({}),j=e=>{const{value:n}=e,r=(0,t.useContext)(A),o=c(n),i=(0,t.useMemo)(()=>o?n(r):n,[o,r,n]),a=(0,t.useMemo)(()=>o?i:F(r,i),[o,r,i]),s=i&&i.provider,[d]=(0,t.useState)(()=>s?I(s(a.cache||oe),i):void 0);
1return d&&(a.cache=d[0],a.mutate=d[1]),R(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,t.createElement)(A.Provider,u(e,{value:a}))},J=(q=window.__SWR_DEVTOOLS_USE__)?window.__SWR_DEVTOOLS_USE__:[],N=()=>{q&&(window.__SWR_DEVTOOLS_REACT__=t.default)},U=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],$=()=>u(W,(0,t.useContext)(A)),H=e=>(t,r,o)=>e(t,r&&((...e)=>{const o=L(t)[0],[,,,i]=n.get(oe),a=i[o];return a?(delete i[o],a):r(...e)}),o),z=J.concat(H),B=e=>function(...t){const n=$(),[r,o,i]=U(t),a=F(n,i);let s=e;const{use:c}=a,u=(c||[]).concat(z);for(let e=u.length;e--;)s=u[e](s);return s(r,o||a.fetcher||null,a)},G=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},N(),K={dedupe:!0},Q=(r,o,i)=>{const{cache:a,compare:d,suspense:l,fallbackData:f,revalidateOnMount:v,revalidateIfStale:h,refreshInterval:p,refreshWhenHidden:m,refreshWhenOffline:w,keepPreviousData:y}=i,[b,S,k]=n.get(a),[T,D]=L(r),x=(0,t.useRef)(!1),I=(0,t.useRef)(!1),P=(0,t.useRef)(T),M=(0,t.useRef)(o),W=(0,t.useRef)(i),F=()=>W.current,A=()=>F().isVisible()&&F().isOnline(),[j,q,J,N]=g(a,T),U=(0,t.useRef)({}).current,$=s(f)?i.fallback[T]:f,H=(e,t)=>{let n=!0;for(const r in U){const o=r;"data"===o?d(t[o],e[o])||s(e[o])&&d(t[o],ne)||(n=!1):t[o]!==e[o]&&(n=!1)}return n},z=(0,t.useMemo)(()=>{const e=!!T&&!!o&&(s(v)?!F().isPaused()&&!l&&(!!s(h)||h):v),t=t=>{const n=u(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n};let n=t(j());const r=t(N());return[()=>{const e=t(j());return H(e,n)?n:n=e},()=>r]},[a,T]),B=(0,e.useSyncExternalStore)((0,t.useCallback)(e=>J(T,(t,n)=>{H(n,t)||e()}),[a,T]),z[0],z[1]),Q=!x.current,X=b[T]&&b[T].length>0,Y=B.data,Z=s(Y)?$:Y,ee=B.error,te=(0,t.useRef)(Z),ne=y?s(Y)?te.current:Y:Z,oe=!(X&&!s(ee))&&(Q&&!s(v)?v:!F().isPaused()&&(l?!s(Z)&&h:s(Z)||h)),ie=!!(T&&o&&Q&&oe),ae=s(B.isValidating)?ie:B.isValidating,se=s(B.isLoading)?ie:B.isLoading,ce=(0,t.useCallback)(async e=>{const t=M.current;if(!T||!t||I.current||F().isPaused())return!1;let n,r,o=!0;const a=e||{},u=!k[T]||!a.dedupe,l=()=>E?!I.current&&T===P.current&&x.current:T===P.current,f={isValidating:!1,isLoading:!1},g=()=>{q(f)},v=()=>{const e=k[T];e&&e[1]===r&&delete k[T]},h={isValidating:!0};s(j().data)&&(h.isLoading=!0);try{if(u&&(q(h),i.loadingTimeout&&s(j().data)&&setTimeout(()=>{o&&l()&&F().onLoadingSlow(T,i)},i.loadingTimeout),k[T]=[t(D),V()]),[n,r]=k[T],n=await n,u&&setTimeout(v,i.dedupingInterval),!k[T]||k[T][1]!==r)return u&&l()&&F().onDiscarded(T),!1;f.error=void 0;const e=S[T];if(!s(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return g(),u&&l()&&F().onDiscarded(T),!1;const a=j().data;f.data=d(a,n)?a:n,u&&l()&&F().onSuccess(n,T,i)}catch(p){v();const e=F(),{shouldRetryOnError:t}=e;e.isPaused()||(f.error=p,u&&l()&&(e.onError(p,T,e),(!0===t||c(t)&&t(p))&&A()&&e.onErrorRetry(p,T,e,ce,{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,g(),!0},[T,a]),ue=(0,t.useCallback)((...e)=>re(a,P.current,...e),[]);if(R(()=>{M.current=o,W.current=i,s(Y)||(te.current=Y)}),R(()=>{if(!T)return;const e=ce.bind(void 0,K);let t=0;const n=G(T,b,n=>{if(0==n){const n=Date.now();F().revalidateOnFocus&&n>t&&A()&&(t=n+F().focusThrottleInterval,e())}else if(1==n)F().revalidateOnReconnect&&A()&&e();else if(n==C)return ce()});return I.current=!1,P.current=T,x.current=!0,q({_k:D}),oe&&(s(Z)||_?e():O(e)),()=>{I.current=!0,n()}},[T]),R(()=>{let e;function t(){const t=c(p)?p(Z):p;t&&-1!==e&&(e=setTimeout(n,t))}function n(){j().error||!m&&!F().isVisible()||!w&&!F().isOnline()?t():ce(K).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,m,w,T]),(0,t.useDebugValue)(ne),l&&s(Z)&&T){if(!E&&_)throw new Error("Fallback data is required when using suspense in SSR.");throw M.current=o,W.current=i,I.current=!1,s(ee)?ce(K):ee}return{mutate:ue,get data(){return U.data=!0,ne},get error(){return U.error=!0,ee},get isValidating(){return U.isValidating=!0,ae},get isLoading(){return U.isLoading=!0,se}}},a.defineProperty(j,"defaultValue",{value:W}),X=B(Q);export{X as t};

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.