1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[46554],{46554:(e,t,r)=>{r.d(t,{I:()=>n});var s=r(49343),i=r(83219);function n(e,t){return(0,i.t)(e,s.$,t)}},49343:(e,t,r)=>{r.d(t,{$:()=>o});var s=r(92636),i=r(18787),n=r(16305),u=r(32097),a=r(14442),h=r(1972),l=r(23632),c=r(67917),o=class extends a.Q{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,h.T)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#i=void 0;#n=void 0;#u;#a;#r;#t;#h;#l;#c;#o;#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.#b(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.nU)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#Q(),this.#s.setOptions(this.options),t._defaulted&&!(0,l.f8)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&f(this.#s,r,this.options,t)&&this.#y(),this.updateResult(),s&&(this.#s!==r||(0,l.nU)(this.options.enabled,this.#s)!==(0,l.nU)(t.enabled,this.#s)||(0,l.d2)(this.options.staleTime,this.#s)!==(0,l.d2)(t.staleTime,this.#s))&&this.#m();let i=this.#I();s&&(this.#s!==r||(0,l.nU)(this.options.enabled,this.#s)!==(0,l.nU)(t.enabled,this.#s)||i!==this.#p)&&this.#g(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,l.f8)(t.getCurrentResult(),r)||(this.#n=i,this.#a=this.options,this.#u=this.#s.state),i}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(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(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#y({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#y(e){this.#Q();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.lQ)),t}#m(){this.#v();let e=(0,l.d2)(this.options.staleTime,this.#s);if(i.H.isServer()||this.#n.isStale||!(0,l.gn)(e))return;let t=(0,l.j3)(this.#n.dataUpdatedAt,e);this.#o=c.zs.setTimeout(()=>{this.#n.isStale||this.updateResult()},t+1)}#I(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#g(e){this.#b(),this.#p=e,!i.H.isServer()&&!1!==(0,l.nU)(this.options.enabled,this.#s)&&(0,l.gn)(this.#p)&&0!==this.#p&&(this.#d=c.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||s.m.isFocused())&&this.#y()},this.#p))}#R(){this.#m(),this.#g(this.#I())}#v(){void 0!==this.#o&&(c.zs.clearTimeout(this.#o),this.#o=void 0)}#b(){void 0!==this.#d&&(c.zs.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,s=this.#s,i=this.options,n=this.#n,a=this.#u,c=this.#a,o=e!==s?e.state:this.#i,{state:p}=e,R={...p},v=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&d(e,t),a=r&&f(e,s,t,i);(n||a)&&(R={...R,...(0,u.k)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(R.fetchStatus="idle")}let{error:b,errorUpdatedAt:Q,status:m}=R;r=R.data;let I=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===m){let e;n?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=n.data,I=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(m="success",r=(0,l.pl)(n?.data,e,t),v=!0)}if(t.select&&void 0!==r&&!I)if(n&&r===a?.data&&t.select===this.#h)r=this.#l;else try{this.#h=t.select,r=t.select(r),r=(0,l.pl)(n?.data,r,t),this.#l=r,this.#t=null}catch(e){this.#t=e}this.#t&&(b=this.#t,r=this.#l,Q=Date.now(),m="error");let g="fetching"===R.fetchStatus,O="pending"===m,T="error"===m,S=O&&g,C=void 0!==r,E={status:m,fetchStatus:R.fetchStatus,isPending:O,isSuccess:"success"===m,isError:T,isInitialLoading:S,isLoading:S,data:r,dataUpdatedAt:R.dataUpdatedAt,error:b,errorUpdatedAt:Q,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdate
1Count:R.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:R.dataUpdateCount>o.dataUpdateCount||R.errorUpdateCount>o.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:T&&!C,isPaused:"paused"===R.fetchStatus,isPlaceholderData:v,isRefetchError:T&&C,isStale:y(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,l.nU)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==E.data,r="error"===E.status&&!t,i=e=>{r?e.reject(E.error):t&&e.resolve(E.data)},n=()=>{i(this.#r=E.promise=(0,h.T)())},u=this.#r;switch(u.status){case"pending":e.queryHash===s.queryHash&&i(u);break;case"fulfilled":(r||E.data!==u.value)&&n();break;case"rejected":r&&E.error===u.reason||n()}}return E}updateResult(){let e=this.#n,t=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,l.f8)(t,e))return;this.#n=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;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(t=>this.#n[t]!==e[t]&&s.has(t))};this.#O({listeners:r()})}#Q(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}#O(e){n.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,l.nU)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,l.nU)(t.retryOnMount,e))||void 0!==e.state.data&&p(e,t,t.refetchOnMount)}function p(e,t,r){if(!1!==(0,l.nU)(t.enabled,e)&&"static"!==(0,l.d2)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&y(e,t)}return!1}function f(e,t,r,s){return(e!==t||!1===(0,l.nU)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&y(e,r)}function y(e,t){return!1!==(0,l.nU)(t.enabled,e)&&e.isStaleByTime((0,l.d2)(t.staleTime,e))}},83219:(e,t,r)=>{r.d(t,{t:()=>o});var s=r(9066),i=r(16305),n=r(23632),u=r(18787),a=r(76719);r(66);var h=s.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),l=s.createContext(!1);l.Provider;var c=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function o(e,t,r){var o,d,p,f;let y=s.useContext(l),R=s.useContext(h),v=(0,a.jE)(r),b=v.defaultQueryOptions(e);
1null==(d=v.getDefaultOptions().queries)||null==(o=d._experimental_beforeQuery)||o.call(d,b);let Q=v.getQueryCache().get(b.queryHash);if(b._optimisticResults=y?"isRestoring":"optimistic",b.suspense){let e=e=>"static"===e?e:Math.max(null!=e?e:1e3,1e3),t=b.staleTime;b.staleTime="function"==typeof t?function(){for(var r=arguments.length,s=Array(r),i=0;i<r;i++)s[i]=arguments[i];return e(t(...s))}:e(t),"number"==typeof b.gcTime&&(b.gcTime=Math.max(b.gcTime,1e3))}let m=(null==Q?void 0:Q.state.error)&&"function"==typeof b.throwOnError?(0,n.GU)(b.throwOnError,[Q.state.error,Q]):b.throwOnError;(b.suspense||b.experimental_prefetchInRender||m)&&!R.isReset()&&(b.retryOnMount=!1),s.useEffect(()=>{R.clearReset()},[R]);let I=!v.getQueryCache().get(b.queryHash),[g]=s.useState(()=>new t(v,b)),O=g.getOptimisticResult(b),T=!y&&!1!==e.subscribed;if(s.useSyncExternalStore(s.useCallback(e=>{let t=T?g.subscribe(i.jG.batchCalls(e)):n.lQ;return g.updateResult(),t},[g,T]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),s.useEffect(()=>{g.setOptions(b)},[b,g]),(null==b?void 0:b.suspense)&&O.isPending)throw c(b,g,R);if((e=>{let{result:t,errorResetBoundary:r,throwOnError:s,query:i,suspense:u}=e;return t.isError&&!r.isReset()&&!t.isFetching&&i&&(u&&void 0===t.data||(0,n.GU)(s,[t.error,i]))})({result:O,errorResetBoundary:R,throwOnError:b.throwOnError,query:Q,suspense:b.suspense}))throw O.error;if(null==(f=v.getDefaultOptions().queries)||null==(p=f._experimental_afterQuery)||p.call(f,b,O),b.experimental_prefetchInRender&&!u.H.isServer()&&O.isLoading&&O.isFetching&&!y){let e=I?c(b,g,R):null==Q?void 0:Q.promise;null==e||e.catch(n.lQ).finally(()=>{g.updateResult()})}return b.notifyOnChangeProps?O:g.trackResult(O)}}}]);
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.