PageSourceSearch

https://chatspark.io/_next/static/chunks/5323-9f221d7be80709cf.js

js chatspark.io collected 2026-10-04 16:08:45 UTC 11,845 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5323],{24369:function(e,t,n){var r=n(2265),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=r.useState,o=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=u({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return a(function(){i.value=n,i.getSnapshot=t,c(i)&&s({inst:i})},[e,n,t]),o(function(){return c(i)&&s({inst:i}),e(function(){c(i)&&s({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},53941:function(e,t,n){e.exports=n(24369)},6952:function(e,t,n){n.d(t,{B:function(){return g},I:function(){return R},O:function(){return c},S:function(){return J},U:function(){return l},a:function(){return f},b:function(){return o},c:function(){return $},d:function(){return z},e:function(){return s},f:function(){return B},g:function(){return Y},i:function(){return w},j:function(){return q},m:function(){return d},n:function(){return N},o:function(){return M},r:function(){return L},s:function(){return A},t:function(){return T},u:function(){return V},z:function(){return O}});var r=n(2265),i=n(98183),u=Object.prototype.hasOwnProperty;let o=new WeakMap,a=()=>{},l=a(),c=Object,s=e=>e===l,f=e=>"function"==typeof e,d=(e,t)=>({...e,...t}),g=e=>f(e.then),v={},h={},p="undefined",w=typeof window!=p,y=typeof document!=p,b=w&&"Deno"in window,m=()=>w&&typeof window.requestAnimationFrame!=p,O=(e,t)=>{let n=o.get(e);return[()=>!s(t)&&e.get(t)||v,r=>{if(!s(t)){let i=e.get(t);t in h||(h[t]=i),n[5](t,d(i,r),i||v)}},n[6],()=>!s(t)&&t in h?h[t]:!s(t)&&e.get(t)||v]},S=!0,[E,_]=w&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],k={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{let t=()=>{S=!0,e()},n=()=>{S=!1};
1return E("online",t),E("offline",n),()=>{_("online",t),_("offline",n)}}},R=!r.useId,L=!w||b,T=e=>m()?window.requestAnimationFrame(e):setTimeout(e,1),V=L?r.useEffect:r.useLayoutEffect,j="undefined"!=typeof navigator&&navigator.connection,D=!L&&j&&(["slow-2g","2g"].includes(j.effectiveType)||j.saveData),C=new WeakMap,x=e=>c.prototype.toString.call(e),I=(e,t)=>e==="[object ".concat(t,"]"),P=0,U=e=>{let t,n;let r=typeof e,i=x(e),u=I(i,"Date"),o=I(i,"RegExp"),a=I(i,"Object");if(c(e)!==e||u||o)t=u?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=C.get(e))return t;if(t=++P+"~",C.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=U(e[n])+",";C.set(e,t)}if(a){t="#";let r=c.keys(e).sort();for(;!s(n=r.pop());)s(e[n])||(t+=n+":"+U(e[n])+",");C.set(e,t)}}return t},A=e=>{if(f(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?U(e):"",t]},F=0,M=()=>++F;async function N(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,u,a,c]=t,v=d({populateCache:!0,throwOnError:!0},"boolean"==typeof c?{revalidate:c}:c||{}),h=v.populateCache,p=v.rollbackOnError,w=v.optimisticData,y=e=>"function"==typeof p?p(e):!1!==p,b=v.throwOnError;
1if(f(u)){let e=[];for(let t of r.keys())!/^\$(inf|sub)\$/.test(t)&&u(r.get(t)._k)&&e.push(t);return Promise.all(e.map(m))}return m(u);async function m(e){let n;let[u]=A(e);if(!u)return;let[c,d]=O(r,u),[p,m,S,E]=o.get(r),_=()=>{let t=p[u];return(f(v.revalidate)?v.revalidate(c().data,e):!1!==v.revalidate)&&(delete S[u],delete E[u],t&&t[0])?t[0](i.QQ).then(()=>c().data):c().data};if(t.length<3)return _();let k=a,R=!1,L=M();m[u]=[L,0];let T=!s(w),V=c(),j=V.data,D=V._c,C=s(D)?j:D;if(T&&d({data:w=f(w)?w(C,j):w,_c:C}),f(k))try{k=k(C)}catch(e){n=e,R=!0}if(k&&g(k)){if(k=await k.catch(e=>{n=e,R=!0}),L!==m[u][0]){if(R)throw n;return k}R&&T&&y(n)&&(h=!0,d({data:C,_c:l}))}if(h&&!R&&(f(h)?d({data:h(k,C),error:l,_c:l}):d({data:k,error:l,_c:l})),m[u][1]=M(),Promise.resolve(_()).then(()=>{d({_c:l})}),R){if(b)throw n;return}return k}}let W=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},Q=(e,t)=>{if(!o.has(e)){let n=d(k,t),r=Object.create(null),u=N.bind(l,e),c=a,s=Object.create(null),f=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},g=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},v=()=>{if(!o.has(e)&&(o.set(e,[r,Object.create(null),Object.create(null),Object.create(null),u,g,f]),!L)){let t=n.initFocus(setTimeout.bind(l,W.bind(l,r,i.N4))),u=n.initReconnect(setTimeout.bind(l,W.bind(l,r,i.l2)));c=()=>{t&&t(),u&&u(),o.delete(e)}}};return v(),[e,u,v,c]}return[e,o.get(e)[4]]},[$,q]=Q(new Map),z=d({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:(e,t,n,r,i)=>{let u=n.errorRetryCount,o=i.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(s(u)||!(o>u))&&setTimeout(r,a,i)},onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:D?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:D?5e3:3e3,compare:function e(t,n){var r,i;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((i=t.length)===n.length)for(;i--&&e(t[i],n[i]););return -1===i}if(!r||"object"==typeof t){for(r in i=0,t)if(u.call(t,r)&&++i&&!u.call(n,r)||!(r in n)||!e(t[r],n[r]))return!1;return Object.keys(n).length===i}}return t!=t&&n!=n},isPaused:()=>!1,cache:$,mutate:q,fallback:{}},{isOnline:()=>S,isVisible:()=>{let e=y&&document.visibilityState;return s(e)||"hidden"!==e}}),B=(e,t)=>{let n=d(e,t);if(t){let{use:r,fallback:i}=e,{use:u,fallback:o}=t;r&&u&&(n.use=r.concat(u)),i&&o&&(n.fallback=d(i,o))}return n},J=(0,r.createContext)({}),Y=e=>{let{value:t}=e,n=(0,r.useContext)(J),i=f(t),u=(0,r.useMemo)(()=>i?t(n):t,[i,n,t]),o=(0,r.useMemo)(()=>i?u:B(n,u),[i,n,u]),a=u&&u.provider,c=(0,r.useRef)(l);a&&!c.current&&(c.current=Q(a(o.cache||$),u));let s=c.current;return s&&(o.cache=s[0],o.mutate=s[1]),V(()=>{if(s)return s[2]&&s[2](),s[3]},[]),(0,r.createElement)(J.Provider,d(e,{value:o}))}},58034:function(e,t,n){n.d(t,{U:function(){return r}});let r="$inf$"},98183:function(e,t,n){n.d(t,{N4:function(){return r},QQ:function(){return u},aU:function(){return o},l2:function(){return i}});let r=0,i=1,u=2,o=3},62827:function(e,t,n){n.d(t,{kY:function(){return c},ko:function(){return d},s6:function(){return f},xD:function(){return g}});var r=n(6952),i=n(58034),u=n(2265);let o=r.i&&window.__SWR_DEVTOOLS_USE__,a=o?window.__SWR_DEVTOOLS_USE__:[],l=e=>(0,r.a)(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],c=()=>{let e=(0,u.useContext)(r.S);return(0,u.useMemo)(()=>(0,r.m)(r.d,e),[e])},s=a.concat(e=>(t,n,u)=>{let o=n&&((...e)=>{let[u]=(0,r.s)(t),[,,,o]=r.b.get(r.c);if(u.startsWith(i.U))return n(...e);let a=o[u];return(0,r.e)(a)?n(...e):(delete o[u],a)});return e(t,o,u)}),f=e=>function(...t){let n=c(),[i,u,o]=l(t),a=(0,r.f)(n,o),f=e,{use:d}=a,g=(d||[]).concat(s);for(let e=g.length;e--;)f=g[e](f);return f(i,u||a.fetcher||null,a)},d=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},g=(e,t)=>(...n)=>{let[r,i,u]=l(n),o=(u.use||[]).concat(t);return e(r,i,{...u,use:o})};o&&(window.__SWR_DEVTOOLS_REACT__=u)},85323:function(e,t,n){n.d(t,{ZP:function(){return d}});var r=n(2265),i=n(53941),u=n(6952),o=n(98183),a=n(62827);let l=()=>{};l(),new WeakMap;let c=r.use||(e=>
1{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),s={dedupe:!0},f=Promise.resolve(u.U);u.O.defineProperty(u.g,"defaultValue",{value:u.d});let d=(0,a.s6)((e,t,n)=>{let{cache:l,compare:d,suspense:g,fallbackData:v,revalidateOnMount:h,revalidateIfStale:p,refreshInterval:w,refreshWhenHidden:y,refreshWhenOffline:b,keepPreviousData:m}=n,[O,S,E,_]=u.b.get(l),[k,R]=(0,u.s)(e),L=(0,r.useRef)(!1),T=(0,r.useRef)(!1),V=(0,r.useRef)(k),j=(0,r.useRef)(t),D=(0,r.useRef)(n),C=()=>D.current,x=()=>C().isVisible()&&C().isOnline(),[I,P,U,A]=(0,u.z)(l,k),F=(0,r.useRef)({}).current,M=(0,u.e)(v)?(0,u.e)(n.fallback)?u.U:n.fallback[k]:v,N=(e,t)=>{for(let n in F)if("data"===n){if(!d(e[n],t[n])&&(!(0,u.e)(e[n])||!d(Z,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},W=(0,r.useMemo)(()=>{let e=!!k&&!!t&&((0,u.e)(h)?!C().isPaused()&&!g&&!1!==p:h),n=t=>{let n=(0,u.m)(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=I(),i=A(),o=n(r),a=r===i?o:n(i),l=o;return[()=>{let e=n(I());return N(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>a]},[l,k]),Q=(0,i.useSyncExternalStore)((0,r.useCallback)(e=>U(k,(t,n)=>{N(n,t)||e()}),[l,k]),W[0],W[1]),$=!L.current,q=O[k]&&O[k].length>0,z=Q.data,B=(0,u.e)(z)?M&&(0,u.B)(M)?c(M):M:z,J=Q.error,Y=(0,r.useRef)(B),Z=m?(0,u.e)(z)?(0,u.e)(Y.current)?B:Y.current:z:B,G=(!q||!!(0,u.e)(J))&&($&&!(0,u.e)(h)?h:!C().isPaused()&&(g?!(0,u.e)(B)&&p:(0,u.e)(B)||p)),H=!!(k&&t&&$&&G),K=(0,u.e)(Q.isValidating)?H:Q.isValidating,X=(0,u.e)(Q.isLoading)?H:Q.isLoading,ee=(0,r.useCallback)(async e=>{let t,r;let i=j.current;if(!k||!i||T.current||C().isPaused())return!1;let a=!0,l=e||{},c=!E[k]||!l.dedupe,s=()=>u.I?!T.current&&k===V.current&&L.current:k===V.current,f={isValidating:!1,isLoading:!1},g=()=>{P(f)},v=()=>{let e=E[k];e&&e[1]===r&&delete E[k]},h={isValidating:!0};(0,u.e)(I().data)&&(h.isLoading=!0);try{if(c&&(P(h),n.loadingTimeout&&(0,u.e)(I().data)&&setTimeout(()=>{a&&s()&&C().onLoadingSlow(k,n)},n.loadingTimeout),E[k]=[i(R),(0,u.o)()]),[t,r]=E[k],t=await t,c&&setTimeout(v,n.dedupingInterval),!E[k]||E[k][1]!==r)return c&&s()&&C().onDiscarded(k),!1;f.error=u.U;let e=S[k];if(!(0,u.e)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return g(),c&&s()&&C().onDiscarded(k),!1;let o=I().data;f.data=d(o,t)?o:t,c&&s()&&C().onSuccess(t,k,n)}catch(n){v();let e=C(),{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=n,c&&s()&&(e.onError(n,k,e),(!0===t||(0,u.a)(t)&&t(n))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||x())&&e.onErrorRetry(n,k,e,e=>{let t=O[k];t&&t[0]&&t[0](o.aU,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return a=!1,g(),!0},[k,l]),et=(0,r.useCallback)((...e)=>(0,u.n)(l,V.current,...e),[]);if((0,u.u)(()=>{j.current=t,D.current=n,(0,u.e)(z)||(Y.current=z)}),(0,u.u)(()=>{if(!k)return;let e=ee.bind(u.U,s),t=0;C().revalidateOnFocus&&(t=Date.now()+C().focusThrottleInterval);let n=(0,a.ko)(k,O,(n,r={})=>{if(n==o.N4){let n=Date.now();C().revalidateOnFocus&&n>t&&x()&&(t=n+C().focusThrottleInterval,e())}else if(n==o.l2)C().revalidateOnReconnect&&x()&&e();else if(n==o.QQ)return ee();else if(n==o.aU)return ee(r)});return T.current=!1,V.current=k,L.current=!0,P({_k:R}),G&&!E[k]&&((0,u.e)(B)||u.r?e():(0,u.t)(e)),()=>{T.current=!0,n()}},[k]),(0,u.u)(()=>{let e;function t(){let t=(0,u.a)(w)?w(I().data):w;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!I().error&&(y||C().isVisible())&&(b||C().isOnline())?ee(s).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[w,y,b,k]),(0,r.useDebugValue)(Z),g){let e=k&&(0,u.e)(B);if(!u.I&&u.r&&e)throw Error("Fallback data is required when using Suspense in SSR.");e&&(j.current=t,D.current=n,T.current=!1);let r=_[k];if(c(!(0,u.e)(r)&&e?et(r):f),!(0,u.e)(J)&&e)throw J;let i=e?ee(s):f;!(0,u.e)(Z)&&e&&(i.status="fulfilled",i.value=!0),c(i)}return{mutate:et,get data(){return F.data=!0,Z},get error(){return F.error=!0,J},get isValidating(){return F.isValidating=!0,K},get isLoading(){return F.isLoading=!0,X}}})}}]);

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.