PageSourceSearch

https://popstory.vercel.app/_next/static/chunks/7865-a7f0aa7af61adbc7.js

js popstory.vercel.app collected 2026-10-03 07:31:06 UTC 14,961 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7865,8214],{1043:(e,t,r)=>{r.d(t,{useIsMutating:()=>u,useMutationState:()=>l});var s=r(12115),n=r(34049),i=r(74268),a=r(99776);function u(e,t){let r=(0,a.useQueryClient)(t);return l({filters:{...e,status:"pending"}},r).length}function o(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=(0,a.useQueryClient)(t).getMutationCache(),u=s.useRef(e),l=s.useRef(null);return null===l.current&&(l.current=o(r,e)),s.useEffect(()=>{u.current=e}),s.useSyncExternalStore(s.useCallback(e=>r.subscribe(()=>{let t=(0,n.BH)(l.current,o(r,u.current));l.current!==t&&(l.current=t,i.jG.schedule(e))}),[r]),()=>l.current,()=>l.current)}},5947:(e,t,r)=>{r.d(t,{useSuspenseQueries:()=>i});var s=r(11515),n=r(95822);function i(e,t){return(0,s.useQueries)({...e,queries:e.queries.map(e=>({...e,suspense:!0,throwOnError:n.R3,enabled:!0,placeholderData:void 0}))},t)}},8828:(e,t,r)=>{e.exports=r(83654)},11515:(e,t,r)=>{r.d(t,{useQueries:()=>v});var s=r(12115),n=r(74268),i=r(2954),a=r(38445),u=r(34049);function o(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var l=class extends a.Q{#e;#t;#r;#s;#n;#i;#a;#u;#o;#l=[];constructor(e,t,r){super(),this.#e=e,this.#s=r,this.#r=[],this.#n=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#n.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#s=t,n.jG.batch(()=>{let e=this.#n,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let r=t.map(e=>e.observer),s=r.map(e=>e.getCurrentResult()),n=e.length!==r.length,i=r.some((t,r)=>t!==e[r]),a=n||i,l=!!a||s.some((e,t)=>{let r=this.#t[t];return!r||!(0,u.f8)(e,r)});(a||l)&&(a&&(this.#l=t,this.#n=r),this.#t=s,this.hasListeners()&&(a&&(o(e,r).forEach(e=>{e.destroy()}),o(r,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#n.map(e=>e.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(e,t){let r=this.#d(e),s=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),n=r.map(e=>e.defaultedQueryOptions.queryHash);return[s,e=>this.#f(e??s,t,n),()=>this.#g(s,r)]}#g(e,t){return t.map((r,s)=>{let n=e[s];return r.defaultedQueryOptions.notifyOnChangeProps?n:r.observer.trackResult(n,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#f(e,t,r){if(t){let s=this.#o,n=void 0!==r&&void 0!==s&&(s.length!==r.length||r.some((e,t)=>e!==s[t]));return(!this.#i||this.#t!==this.#u||n||t!==this.#a)&&(this.#a=t,this.#u=this.#t,void 0!==r&&(this.#o=r),this.#i=(0,u.BH)(this.#i,t(e))),this.#i}return e}#v(){return this.#s?.combine!==void 0&&this.#n.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#n.forEach(e=>{let r=e.options.queryHash;if(!r)return;let s=t.get(r);s?s.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let s=this.#e.defaultQueryOptions(e),n=t.get(s.queryHash)?.shift()??new i.$(this.#e,s);r.push({defaultedQueryOptions:s,observer:n})}),r}#c(e,t){let r=this.#n.indexOf(e);-1!==r&&(this.#t=function(e,t,r){let s=e.slice(0);return s[t]=r,s}(this.#t,r,t),this.#h())}#h(){if(this.hasListeners()){let e=this.#g(this.#t,this.#l),t=this.#v(),r=this.#i,s=t?r:this.#f(e,this.#s?.combine);(t||r!==s)&&n.jG.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},c=r(99776),d=r(33742),h=r(47785),f=r(36687),g=r(95822);function v(e,t){let{queries:r,...a}=e,o=(0,c.useQueryClient)(t),v=(0,d.useIsRestoring)(),p=(0,h.useQueryErrorResetBoundary)(),b=s.useMemo(()=>r.map(e=>{let t=o.defaultQueryOptions(e);return t._optimisticResults=v?"isRestoring":"optimistic",t}),[r,o,v]);b.forEach(e=>{(0,g.jv)(e);let t=o.getQueryCache().get(e.queryHash);(0,f.LJ)(e,p,t)}),(0,f.wZ)(p);let[m]=s.useState(()=>new l(o,b,a)),[y,S,E]=m.getOptimisticResult(b,a.combine),w=!v&&!1!==a.subscribed;s.useSyncExternalStore(s.useCallback(e=>
1w?m.subscribe(n.jG.batchCalls(e)):u.lQ,[m,w]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),s.useEffect(()=>{m.setQueries(b,a)},[b,a,m]);let O=y.some((e,t)=>(0,g.EU)(b[t],e))?y.flatMap((e,t)=>{let r=b[t];if(r&&(0,g.EU)(r,e)){let e=new i.$(o,r);return(0,g.iL)(r,e,p)}return[]}):[];if(O.length>0)throw Promise.all(O);let R=y.find((e,t)=>{let r=b[t];return r&&(0,f.$1)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:o.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(null==R?void 0:R.error)throw R.error;return S(E())}},14806:(e,t,r)=>{e.exports=r(30125)},18298:(e,t,r)=>{r.d(t,{HydrationBoundary:()=>l});var s=r(12115),n=r(83515),i=r(34049);function a(e){return e}function u(e,t,r){if("object"!=typeof t||null===t)return;let s=e.getMutationCache(),u=e.getQueryCache(),o=r?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??a,l=t.mutations||[],c=t.queries||[];l.forEach(({state:t,...n})=>{s.build(e,{...e.getDefaultOptions().hydrate?.mutations,...r?.defaultOptions?.mutations,...n},t)}),c.forEach(({queryKey:t,state:s,queryHash:a,meta:l,promise:c,dehydratedAt:d,queryType:h})=>{let f=c?(0,n.b)(c):void 0,g=void 0===s.data?f?.data:s.data,v=void 0===g?g:o(g),p=u.get(a),b=p?.state.status==="pending",m=p?.state.fetchStatus==="fetching";if(p){let e=f&&void 0!==d&&d>p.state.dataUpdatedAt;if(s.dataUpdatedAt>p.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=s;p.setState({...t,data:v,..."pending"===s.status&&void 0!==v&&{status:"success",...!m&&{fetchStatus:"idle"}}})}}else p=u.build(e,{...e.getDefaultOptions().hydrate?.queries,...r?.defaultOptions?.queries,queryKey:t,queryHash:a,meta:l,_type:h},{...s,data:v,fetchStatus:"idle",status:"pending"===s.status&&void 0!==v?"success":s.status});!c||f||b||m||void 0!==d&&!(d>p.state.dataUpdatedAt)||p.fetch(void 0,{initialPromise:Promise.resolve(c).then(o)}).catch(i.lQ)})}var o=r(99776),l=e=>{let{children:t,options:r={},state:n,queryClient:i}=e,a=(0,o.useQueryClient)(i),l=s.useRef(r);s.useEffect(()=>{l.current=r});let c=s.useMemo(()=>{if(n){if("object"!=typeof n)return;let e=a.getQueryCache(),t=n.queries||[],r=[],s=[];for(let n of t){let t=e.get(n.queryHash);t?(n.state.dataUpdatedAt>t.state.dataUpdatedAt||n.promise&&"pending"!==t.state.status&&"fetching"!==t.state.fetchStatus&&void 0!==n.dehydratedAt&&n.dehydratedAt>t.state.dataUpdatedAt)&&s.push(n):r.push(n)}if(r.length>0&&u(a,{queries:r},l.current),s.length>0)return s}},[a,n]);return s.useEffect(()=>{c&&u(a,{queries:c},l.current)},[a,c]),t}},25979:(e,t,r)=>{r.d(t,{useInfiniteQuery:()=>i});var s=r(83614),n=r(56384);function i(e,t){return(0,n.t)(e,s.z,t)}},30125:(e,t,r)=>{var s=r(12115),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=s.useState,a=s.useEffect,u=s.useLayoutEffect,o=s.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),s=i({inst:{value:r,getSnapshot:t}}),n=s[0].inst,c=s[1];return u(function(){n.value=r,n.getSnapshot=t,l(n)&&c({inst:n})},[e,r,t]),a(function(){return l(n)&&c({inst:n}),e(function(){l(n)&&c({inst:n})})},[e]),o(r),r};t.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},45339:(e,t,r)=>{r.d(t,{useSuspenseInfiniteQuery:()=>a});var s=r(83614),n=r(56384),i=r(95822);function a(e,t){return(0,n.t)({...e,enabled:!0,suspense:!0,throwOnError:i.R3},s.z,t)}},59441:(e,t,r)=>{r.d(t,{useIsFetching:()=>a});var s=r(12115),n=r(74268),i=r(99776);function a(e,t){let r=(0,i.useQueryClient)(t),a=r.getQueryCache();return s.useSyncExternalStore(s.useCallback(e=>a.subscribe(n.jG.batchCalls(e)),[a]),()=>r.isFetching(e),()=>r.isFetching(e))}},83614:(e,t,r)=>{r.d(t,{z:()=>i});var s=r(2954),n=r(66902),i=class extends s.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}
1fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,s=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:u,isRefetchError:o}=s,l=r.fetchMeta?.fetchMore?.direction,c=u&&"forward"===l,d=i&&"forward"===l,h=u&&"backward"===l,f=i&&"backward"===l;return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.rB)(t,r.data),hasPreviousPage:(0,n.RQ)(t,r.data),isFetchNextPageError:c,isFetchingNextPage:d,isFetchPreviousPageError:h,isFetchingPreviousPage:f,isRefetchError:o&&!c&&!h,isRefetching:a&&!d&&!f}}}},83654:(e,t,r)=>{var s=r(12115),n=r(14806),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useSyncExternalStore,u=s.useRef,o=s.useEffect,l=s.useMemo,c=s.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,s,n){var d=u(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=a(e,(d=l(function(){function e(e){if(!o){if(o=!0,a=e,e=s(e),void 0!==n&&h.hasValue){var t=h.value;if(n(t,e))return u=t}return u=e}if(t=u,i(a,e))return t;var r=s(e);return void 0!==n&&n(t,r)?(a=e,t):(a=e,u=r)}var a,u,o=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,s,n]))[0],d[1]);return o(function(){h.hasValue=!0,h.value=f},[f]),c(f),f}},86639:(e,t,r)=>{r.d(t,{useSuspenseQuery:()=>a});var s=r(2954),n=r(56384),i=r(95822);function a(e,t){return(0,n.t)({...e,enabled:!0,suspense:!0,throwOnError:i.R3,placeholderData:void 0},s.$,t)}},89863:(e,t,r)=>{function s(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var s;let n=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),i=null!=(s=r.getItem(e))?s:null;return i instanceof Promise?i.then(n):n(i)},setItem:(e,s)=>r.setItem(e,JSON.stringify(s,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}r.d(t,{KU:()=>s,Zr:()=>i});let n=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>n(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>n(t)(e)}}},i=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(r,s,i)=>{let a,u,o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,c=new Set,d=new Set;try{a=o.getStorage()}catch(e){}if(!a)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...e)},s,i);let h=n(o.serialize),f=()=>{let e,t=h({state:o.partialize({...s()}),version:o.version}).then(e=>a.setItem(o.name,e)).catch(t=>{e=t});if(e)throw e;return t},g=i.setState;i.setState=(e,t)=>{g(e,t),f()};let v=e((...e)=>{r(...e),f()},s,i),p=()=>{var e;if(!a)return;l=!1,c.forEach(e=>e(s()));let t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,s()))||void 0;return n(a.getItem.bind(a))(o.name).then(e=>{if(e)return o.deserialize(e)}).then(e=>{if(e)if("number"!=typeof e.version||e.version===o.version)return e.state;else{if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return r(u=o.merge(e,null!=(t=s())?t:v),!0),f()}).then(()=>{null==t||t(u,void 0),l=!0,d.forEach(e=>e(u))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(a=e.getStorage())},clearStorage:()=>{null==a||a.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>p(),hasHydrated:()=>l,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},p(),u||v})(e,t)):((e,t)=>(r,i,a)=>{let u,o={storage:s(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,c=new Set,d=new Set,h=o.storage;if(!h)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...e)},i,a);let f=()=>{let e=o.partialize({...i()});return h.setItem(o.name,{state:e,version:o.version})},g=a.setState;a.setState=(e,t)=>
1{g(e,t),f()};let v=e((...e)=>{r(...e),f()},i,a);a.getInitialState=()=>v;let p=()=>{var e,t;if(!h)return;l=!1,c.forEach(e=>{var t;return e(null!=(t=i())?t:v)});let s=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=i())?e:v))||void 0;return n(h.getItem.bind(h))(o.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];else{if(o.migrate)return[!0,o.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[s,n]=e;if(r(u=o.merge(n,null!=(t=i())?t:v),!0),s)return f()}).then(()=>{null==s||s(u,void 0),u=i(),l=!0,d.forEach(e=>e(u))}).catch(e=>{null==s||s(void 0,e)})};return a.persist={setOptions:e=>{o={...o,...e},e.storage&&(h=e.storage)},clearStorage:()=>{null==h||h.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>p(),hasHydrated:()=>l,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},o.skipHydration||p(),u||v})(e,t)},95988:(e,t,r)=>{r.d(t,{vt:()=>c});let s=e=>{let t,r=new Set,s=(e,s)=>{let n="function"==typeof e?e(t):e;if(!Object.is(n,t)){let e=t;t=(null!=s?s:"object"!=typeof n||null===n)?n:Object.assign({},t,n),r.forEach(r=>r(t,e))}},n=()=>t,i={setState:s,getState:n,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},a=t=e(s,n,i);return i};var n=r(12115),i=r(8828);let{useDebugValue:a}=n,{useSyncExternalStoreWithSelector:u}=i,o=!1,l=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?(e=>e?s(e):s)(e):e,r=(e,r)=>(function(e,t=e=>e,r){r&&!o&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),o=!0);let s=u(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return a(s),s})(t,e,r);return Object.assign(r,t),r},c=e=>e?l(e):l}}]);

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.