1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1307],{2954:(t,e,r)=>{r.d(e,{$:()=>l});var s=r(56195),i=r(17788),n=r(74268),u=r(31668),a=r(38445),o=r(83515),h=r(34049),c=r(37126),l=class extends a.Q{constructor(t,e){super(),this.options=e,this.#t=t,this.#e=null,this.#r=(0,o.T)(),this.bindMethods(),this.setOptions(e)}#t;#s=void 0;#i=void 0;#n=void 0;#u;#a;#r;#e;#o;#h;#c;#l;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),d(this.#s,this.options)?this.#y():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return p(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return p(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#m(),this.#s.removeObserver(this)}setOptions(t){let e=this.options,r=this.#s;if(this.options=this.#t.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,h.nU)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#s.setOptions(this.options),e._defaulted&&!(0,h.f8)(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&f(this.#s,r,this.options,e)&&this.#y(),this.updateResult(),s&&(this.#s!==r||(0,h.nU)(this.options.enabled,this.#s)!==(0,h.nU)(e.enabled,this.#s)||(0,h.d2)(this.options.staleTime,this.#s)!==(0,h.d2)(e.staleTime,this.#s))&&this.#Q();let i=this.#O();s&&(this.#s!==r||(0,h.nU)(this.options.enabled,this.#s)!==(0,h.nU)(e.enabled,this.#s)||i!==this.#p)&&this.#g(i)}getOptimisticResult(t){var e,r;let s=this.#t.getQueryCache().build(this.#t,t),i=this.createResult(s,t);return e=this,r=i,(0,h.f8)(e.getCurrentResult(),r)||(this.#n=i,this.#a=this.options,this.#u=this.#s.state),i}getCurrentResult(){return this.#n}trackResult(t,e){return new Proxy(t,{get:(t,r)=>(this.trackProp(r),e?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,r))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#s}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#t.defaultQueryOptions(t),r=this.#t.getQueryCache().build(this.#t,e);return r.fetch().then(()=>this.createResult(r,e))}fetch(t){return this.#y({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#y(t){this.#b();let e=this.#s.fetch(this.options,t);return t?.throwOnError||(e=e.catch(h.lQ)),e}#Q(){this.#v();let t=(0,h.d2)(this.options.staleTime,this.#s);if(i.H.isServer()||this.#n.isStale||!(0,h.gn)(t))return;let e=(0,h.j3)(this.#n.dataUpdatedAt,t);this.#l=c.zs.setTimeout(()=>{this.#n.isStale||this.updateResult()},e+1)}#O(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#g(t){this.#m(),this.#p=t,!i.H.isServer()&&!1!==(0,h.nU)(this.options.enabled,this.#s)&&(0,h.gn)(this.#p)&&0!==this.#p&&(this.#d=c.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||s.m.isFocused())&&this.#y()},this.#p))}#R(){this.#Q(),this.#g(this.#O())}#v(){void 0!==this.#l&&(c.zs.clearTimeout(this.#l),this.#l=void 0)}#m(){void 0!==this.#d&&(c.zs.clearInterval(this.#d),this.#d=void 0)}createResult(t,e){let r,s=this.#s,i=this.options,n=this.#n,a=this.#u,c=this.#a,l=t!==s?t.state:this.#i,{state:p}=t,R={...p},v=!1;if(e._optimisticResults){let r=this.hasListeners(),n=!r&&d(t,e),a=r&&f(t,s,e,i);(n||a)&&(R={...R,...(0,u.k)(p.data,t.options)}),"isRestoring"===e._optimisticResults&&(R.fetchStatus="idle")}let{error:m,errorUpdatedAt:b,status:Q}=R;r=R.data;let O=!1;if(void 0!==e.placeholderData&&void 0===r&&"pending"===Q){let t;n?.isPlaceholderData&&e.placeholderData===c?.placeholderData?(t=n.data,O=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#c?.state.data,this.#c):e.placeholderData,void 0!==t&&(Q="success",r=(0,h.pl)(n?.data,t,e),v=!0)}if(e.select&&void 0!==r&&!O)if(n&&r===a?.data&&e.select===this.#o)r=this.#h;else try{this.#o=e.select,r=e.select(r),r=(0,h.pl)(n?.data,r,e),this.#h=r,this.#e=null}catch(t){this.#e=t}this.#e&&(m=this.#e,r=this.#h,b=Date.now(),Q="error");let g="fetching"===R.fetchStatus,I="pending"===Q,E="error"===Q,S=I&&g,C=void 0!==r,T={status:Q,fetchStatus:R.fetchStatus,isPending:I,isSuccess:"success"===Q,isError:E,isInitialLoading:S,isLoading:S,data:r,dataUpdatedAt:R.dataUpdatedAt,error:m,errorUpdatedAt:b,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdate
1Count:R.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:R.dataUpdateCount>l.dataUpdateCount||R.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!I,isLoadingError:E&&!C,isPaused:"paused"===R.fetchStatus,isPlaceholderData:v,isRefetchError:E&&C,isStale:y(t,e),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,h.nU)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=void 0!==T.data,r="error"===T.status&&!e,i=t=>{r?t.reject(T.error):e&&t.resolve(T.data)},n=()=>{i(this.#r=T.promise=(0,o.T)())},u=this.#r;switch(u.status){case"pending":t.queryHash===s.queryHash&&i(u);break;case"fulfilled":(r||T.data!==u.value)&&n();break;case"rejected":r&&T.error===u.reason||n()}}return T}updateResult(){let t=this.#n,e=this.createResult(this.#s,this.options);if(this.#u=this.#s.state,this.#a=this.options,void 0!==this.#u.data&&(this.#c=this.#s),(0,h.f8)(e,t))return;this.#n=e;let r=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#n).some(e=>this.#n[e]!==t[e]&&s.has(e))};this.#I({listeners:r()})}#b(){let t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#s)return;let e=this.#s;this.#s=t,this.#i=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}#I(t){n.jG.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#t.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function d(t,e){return!1!==(0,h.nU)(e.enabled,t)&&void 0===t.state.data&&("error"!==t.state.status||!1!==(0,h.nU)(e.retryOnMount,t))||void 0!==t.state.data&&p(t,e,e.refetchOnMount)}function p(t,e,r){if(!1!==(0,h.nU)(e.enabled,t)&&"static"!==(0,h.d2)(e.staleTime,t)){let s="function"==typeof r?r(t):r;return"always"===s||!1!==s&&y(t,e)}return!1}function f(t,e,r,s){return(t!==e||!1===(0,h.nU)(s.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&y(t,r)}function y(t,e){return!1!==(0,h.nU)(e.enabled,t)&&t.isStaleByTime((0,h.d2)(e.staleTime,t))}},33742:(t,e,r)=>{r.d(e,{IsRestoringProvider:()=>u,useIsRestoring:()=>n});var s=r(12115),i=s.createContext(!1),n=()=>s.useContext(i),u=i.Provider},36687:(t,e,r)=>{r.d(e,{$1:()=>a,LJ:()=>n,wZ:()=>u});var s=r(12115),i=r(34049),n=(t,e,r)=>{let s=(null==r?void 0:r.state.error)&&"function"==typeof t.throwOnError?(0,i.GU)(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||s)&&!e.isReset()&&(t.retryOnMount=!1)},u=t=>{s.useEffect(()=>{t.clearReset()},[t])},a=t=>{let{result:e,errorResetBoundary:r,throwOnError:s,query:n,suspense:u}=t;return e.isError&&!r.isReset()&&!e.isFetching&&n&&(u&&void 0===e.data||(0,i.GU)(s,[e.error,n]))}},47785:(t,e,r)=>{r.d(e,{QueryErrorResetBoundary:()=>o,useQueryErrorResetBoundary:()=>a});var s=r(12115),i=r(95155);function n(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var u=s.createContext(n()),a=()=>s.useContext(u),o=t=>{let{children:e}=t,[r]=s.useState(()=>n());return(0,i.jsx)(u.Provider,{value:r,children:"function"==typeof e?e(r):e})}},53455:(t,e,r)=>{r.d(e,{useQuery:()=>n});var s=r(2954),i=r(56384);function n(t,e){return(0,i.t)(t,s.$,e)}},56384:(t,e,r)=>{r.d(e,{t:()=>d});var s=r(12115),i=r(74268),n=r(34049),u=r(17788),a=r(99776),o=r(47785),h=r(36687),c=r(33742),l=r(95822);function d(t,e,r){var d,p,f,y;let R=(0,c.useIsRestoring)(),v=(0,o.useQueryErrorResetBoundary)(),m=(0,a.useQueryClient)(r),b=m.defaultQueryOptions(t);null==(p=m.getDefaultOptions().queries)||null==(d=p._experimental_beforeQuery)||d.call(p,b);let Q=m.getQueryCache().get(b.queryHash);b._optimisticResults=R?"isRestoring":"optimistic",(0,l.jv)(b),(0,h.LJ)(b,v,Q),(0,h.wZ)(v);let O=!m.getQueryCache().get(b.queryHash),[g]=s.useState(()=>new e(m,b)),I=g.getOptimisticResult(b),E=!R&&!1!==t.subscribed;if(s.useSyncExternalStore(s.useCallback(t=>{let e=E?g.subscribe(i.jG.batchCalls(t)):n.lQ;return g.updateResult(),e},[g,E]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),s.useEffect(()=>{g.setOptions(b)},[b,g]),(0,l.EU)(b,I))throw(0,l.iL)(b,g,v);if((0,h.$1)({result:I,errorResetBoundary:v,throwOnError:b.throwOnError,query:Q,suspense:b.suspense}))throw I.error;if(null==(y=m.getDefaultOptions().queries)||null==(f=y._experimental_afterQuery)||f.call(y,b,I),b.experimental_prefetchInRender&&!u.H.isServer()&&(0,l.nE)(I,R)){let t=O?(0,l.iL)(b,g,v):null==Q?void 0:Q.promise;null==t||t.catch(n.lQ).finally(()=>{g.updateResult()})}return b.notifyOnChangeProps?I:g.trackResult(I)}},80549:(t,e,r)=>{r.d(e,{useMutation:()=>c});var s=r(12115),i=r(38559),n=r(74268),u=r(38445),a=r(34049),o=class extends u.Q{#t;#n=void 0;#E;#S;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#C()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#E,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.EN)(e.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#E?.state.status==="pending"&&this.#E.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#E?.removeObserver(this)}onMutationUpdate(t){this.#C(),this.#I(t)}getCurrentResult(){return this.#n}
1reset(){this.#E?.removeObserver(this),this.#E=void 0,this.#C(),this.#I()}mutate(t,e){return this.#S=e,this.#E?.removeObserver(this),this.#E=this.#t.getMutationCache().build(this.#t,this.options),this.#E.addObserver(this),this.#E.execute(t)}#C(){let t=this.#E?.state??(0,i.$)();this.#n={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#I(t){n.jG.batch(()=>{if(this.#S&&this.hasListeners()){let e=this.#n.variables,r=this.#n.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#S.onSuccess?.(t.data,e,r,s)}catch(t){Promise.reject(t)}try{this.#S.onSettled?.(t.data,null,e,r,s)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#S.onError?.(t.error,e,r,s)}catch(t){Promise.reject(t)}try{this.#S.onSettled?.(void 0,t.error,e,r,s)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#n)})})}},h=r(99776);function c(t,e){let r=(0,h.useQueryClient)(e),[i]=s.useState(()=>new o(r,t));s.useEffect(()=>{i.setOptions(t)},[i,t]);let u=s.useSyncExternalStore(s.useCallback(t=>i.subscribe(n.jG.batchCalls(t)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=s.useCallback((t,e)=>{i.mutate(t,e).catch(a.lQ)},[i]);if(u.error&&(0,a.GU)(i.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:c,mutateAsync:u.mutate}}},95822:(t,e,r)=>{r.d(e,{EU:()=>u,R3:()=>s,iL:()=>a,jv:()=>i,nE:()=>n});var s=(t,e)=>void 0===e.state.data,i=t=>{if(t.suspense){let e=t=>"static"===t?t:Math.max(t??1e3,1e3),r=t.staleTime;t.staleTime="function"==typeof r?(...t)=>e(r(...t)):e(r),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3))}},n=(t,e)=>t.isLoading&&t.isFetching&&!e,u=(t,e)=>t?.suspense&&e.isPending,a=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()})}}]);
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.