PageSourceSearch

https://www.academicjobs.com/_next/static/chunks/4109-c549c1725cfba33c.js

js academicjobs.com collected 2026-10-02 10:03:55 UTC 15,600 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4109],{4109:(t,e,s)=>{let r;s.d(e,{I:()=>b});var i=s(35625),a=s(12115);let n=a.createContext(!1);n.Provider,s(95155);let h=a.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}));var u=s(5858),o=s(31967),c=s(83599),l=s(20297),d=s(98216),p=s(20562),f=s(85086),y=class extends d.Q{#t;#e=void 0;#s=void 0;#r=void 0;#i;#a;#n;#h;#u;#o;#c;#l;#d;#p=new Set;constructor(t,e){super(),this.options=e,this.#t=t,this.#n=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#e.addObserver(this),v(this.#e,this.options)?this.#f():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return m(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return m(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#m(),this.#e.removeObserver(this)}setOptions(t){let e=this.options,s=this.#e;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,u.GF)(this.options.enabled,this.#e))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#e.setOptions(this.options),e._defaulted&&!(0,u.f8)(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});let r=this.hasListeners();r&&R(this.#e,s,this.options,e)&&this.#f(),this.updateResult(),r&&(this.#e!==s||(0,u.GF)(this.options.enabled,this.#e)!==(0,u.GF)(e.enabled,this.#e)||(0,u.GF)(this.options.staleTime,this.#e)!==(0,u.GF)(e.staleTime,this.#e))&&this.#g();let i=this.#b();r&&(this.#e!==s||(0,u.GF)(this.options.enabled,this.#e)!==(0,u.GF)(e.enabled,this.#e)||i!==this.#d)&&this.#S(i)}getOptimisticResult(t){let e=this.#t.getQueryCache().build(this.#t,t),s=this.createResult(e,t);return(0,u.f8)(this.getCurrentResult(),s)||(this.#r=s,this.#a=this.options,this.#i=this.#e.state),s}getCurrentResult(){return this.#r}trackResult(t,e){return new Proxy(t,{get:(t,s)=>(this.trackProp(s),e?.(s),Reflect.get(t,s))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e,s=this.#t.defaultQueryOptions(t),r=this.#t.getQueryCache().build(this.#t,s),i=()=>{},a=new Promise(t=>{e=t,i=this.#t.getQueryCache().subscribe(e=>{"updated"===e.type&&e.query.queryHash===r.queryHash&&void 0!==r.state.data&&(i(),t(this.createResult(r,s)))})});return Promise.race([r.fetch().then(()=>{let t=this.createResult(r,s);return e?.(t),t}).finally(()=>{i()}),a])}fetch(t){return this.#f({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(t){this.#R();let e=this.#e.fetch(this.options,t);return t?.throwOnError||(e=e.catch(u.lQ)),e}#F(t){return!(0,l.S)()&&!1!==(0,u.GF)(this.options.enabled,this.#e)&&(0,u.gn)(t)}#g(){this.#v();let t=(0,u.GF)(this.options.staleTime,this.#e);if(this.#r.isStale||!this.#F(t))return;let e=(0,u.j3)(this.#r.dataUpdatedAt,t)+1;this.#c=c.zs.setTimeout(()=>{this.#r.isStale||this.updateResult()},e)}#b(){return(0,u.GF)(this.options.refetchInterval,this.#e)??!1}#S(t){this.#m(),this.#d=t,0!==this.#d&&this.#F(this.#d)&&(this.#l=c.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||p.m.isFocused())&&this.#f()},this.#d))}#y(){this.#g(),this.#S(this.#b())}#v(){void 0!==this.#c&&(c.zs.clearTimeout(this.#c),this.#c=void 0)}#m(){void 0!==this.#l&&(c.zs.clearInterval(this.#l),this.#l=void 0)}createResult(t,e){let s,r=this.#e,i=this.options,a=this.#r,n=this.#i,h=this.#a,o=t!==r?t.state:this.#s,{state:c}=t,l={...c},d=!1;if(e._optimisticResults){let s=this.hasListeners(),a=!s&&v(t,e),n=s&&R(t,r,e,i);(a||n)&&(l={...l,...(0,f.k)(c.data,t.options)}),"isRestoring"===e._optimisticResults&&(l.fetchStatus="idle")}let{error:p,errorUpdatedAt:y,status:m}=l;s=l.data;let b=!1;if(void 0!==e.placeholderData&&void 0===s&&"pending"===m){let t;a?.isPlaceholderData&&e.placeholderData===h?.placeholderData?(t=a.data,b=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#o?.state.data,this.#o):e.placeholderData,void 0!==t&&(m="success",s=(0,u.pl)(a?.data,t,e),d=!0)}if(e.select&&void 0!==s&&!b)if(a&&s===n?.data&&e.select===this.#h)s=this.#u;else try{this.#h=e.select,s=e.select(s),s=(0,u.pl)(a?.data,s,e),this.#u=s,this.#n=null}catch(t){this.#n=t}else void 0===s&&(this.#n=null);this.#n&&(p=this.#n,s=this.#u,y=Date.now(),m="error",d=!1);let S="fetching"===l.fetchStatus,F="pending"===m,Q="error"===m,O=F&&S,C=void 0!==s;return{status:m,fetchStatus:l.fetchStatus,isPending:F,isSuccess:"success"===m,isError:Q,isInitialLoading:O,isLoading:O,data:s,dataUpdatedAt:l.dataUpdatedAt,error:p,errorUpdatedAt:y,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdate
1Count:l.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:l.dataUpdateCount>o.dataUpdateCount||l.errorUpdateCount>o.errorUpdateCount,isFetching:S,isRefetching:S&&!F,isLoadingError:Q&&!C,isPaused:"paused"===l.fetchStatus,isPlaceholderData:d,isRefetchError:Q&&C,isStale:g(t,e),refetch:this.refetch,isEnabled:!1!==(0,u.GF)(e.enabled,t)}}updateResult(){let t=this.#r,e=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#a=this.options,void 0!==this.#i.data&&(this.#o=this.#e),(0,u.f8)(e,t))return;this.#r=e;let s=(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!this.#p.size)return!0;let r=new Set(s??this.#p);return this.options.throwOnError&&r.add("error"),Object.keys(this.#r).some(e=>this.#r[e]!==t[e]&&r.has(e))})();o.jG.batch(()=>{s&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}#R(){let t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#e)return;let e=this.#e;this.#e=t,this.#s=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function v(t,e){return!1!==(0,u.GF)(e.enabled,t)&&void 0===t.state.data&&("error"!==t.state.status||!1!==(0,u.GF)(e.retryOnMount,t))||void 0!==t.state.data&&m(t,e,e.refetchOnMount)}function m(t,e,s){if(!1!==(0,u.GF)(e.enabled,t)&&"static"!==(0,u.GF)(e.staleTime,t)){let r=(0,u.GF)(s,t);return"always"===r||!1!==r&&g(t,e)}return!1}function R(t,e,s,r){return(t!==e||!1===(0,u.GF)(r.enabled,t))&&(!s.suspense||"error"!==t.state.status)&&g(t,s)}function g(t,e){return!1!==(0,u.GF)(e.enabled,t)&&t.isStaleByTime((0,u.GF)(e.staleTime,t))}function b(t,e){return function(t,e,s){let r,c=a.useContext(n),l=a.useContext(h),d=(0,i.jE)(s),p=d.defaultQueryOptions(t),f=d.getQueryCache().get(p.queryHash),y=!1!==t.subscribed;if(p._optimisticResults=c?"isRestoring":y?"optimistic":void 0,p.suspense){let t=t=>"static"===t?t:Math.max(t??1e3,1e3),e=p.staleTime;p.staleTime="function"==typeof e?(...s)=>t(e(...s)):t(e),"number"==typeof p.gcTime&&(p.gcTime=Math.max(p.gcTime,1e3))}r=f?.state.error&&"function"==typeof p.throwOnError?(0,u.GU)(p.throwOnError,[f.state.error,f]):p.throwOnError,(p.suspense||r)&&!l.isReset()&&(p.retryOnMount=!1),a.useEffect(()=>{l.clearReset()},[l]);let[v]=a.useState(()=>new e(d,p)),m=v.getOptimisticResult(p),R=!c&&y;if(a.useSyncExternalStore(a.useCallback(t=>{let e=R?v.subscribe(o.jG.batchCalls(t)):u.lQ;return v.updateResult(),e},[v,R]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),a.useEffect(()=>{v.setOptions(p)},[p,v]),p?.suspense&&m.isPending)throw v.fetchOptimistic(p).catch(()=>{l.clearReset()});if((({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&void 0===t.data||(0,u.GU)(s,[t.error,r])))({result:m,errorResetBoundary:l,throwOnError:p.throwOnError,query:f,suspense:p.suspense}))throw m.error;return p.notifyOnChangeProps?m:v.trackResult(m)}(t,y,e)}},85086:(t,e,s)=>{s.d(e,{X:()=>o,k:()=>c});var r=s(5858),i=s(31967),a=s(9846),n=s(99190);function h(t,{pages:e,pageParams:s}){let r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,s[r],s):void 0}function u(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}var o=class extends n.k{#Q;#O;#C;#I;#t;#w;#T;#U;constructor(t){super(),this.#U=!1,this.#T=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#t=t.client,this.#I=this.#t.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#O=d(this.options),this.state=t.state??this.#O,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#Q}get promise(){return this.#w?.promise}setOptions(t){if(this.options={...this.#T,...t},t?._type&&(this.#Q=t._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=d(this.options);void 0!==t.data&&(this.setState(l(t.data,t.dataUpdatedAt)),this.#O=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#I.remove(this)}setData(t,e){let s=(0,r.pl)(this.state.data,t,this.options);return this.#P({data:s,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),s}setState(t){this.#P({type:"setState",state:t})}cancel(t){let e=this.#w?.promise;return this.#w?.cancel(t),e?e.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#O}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==(0,r.GF)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.hT||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
vendor: 5,819 bytes, line 1
1Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===(0,r.GF)(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,r.j3)(this.state.dataUpdatedAt,t))}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#w?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#w?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#I.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){let e=this.observers.indexOf(t);-1!==e&&(this.observers.splice(e,1),this.observers.length||(this.#w&&(this.#U||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#w.cancel({revert:!0}):this.#w.cancelRetry()),this.scheduleGc()),this.#I.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#P({type:"invalidate"})}async fetch(t,e){var s;let i;if("idle"!==this.state.fetchStatus&&this.#w?.status()!=="rejected"){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#w)return this.#w.continueRetry(),this.#w.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let n=new AbortController,o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#U=!0,n.signal)})},c=()=>{let t,s=(0,r.ZM)(this.options,e),i=(o(t={client:this.#t,queryKey:this.queryKey,meta:this.meta}),t);return(this.#U=!1,this.options.persister)?this.options.persister(s,i,this):s(i)},l=(o(i={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#t,state:this.state,fetchFn:c}),i);("infinite"===this.#Q?(s=this.options.pages,{onFetch:(t,e)=>{let i=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,n=t.state.data?.pages||[],o=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},l=0,d=async()=>{let e=!1,d=(0,r.ZM)(t.options,t.fetchOptions),p=async(s,i,a)=>{let n;if(e)return Promise.reject(t.signal.reason);if(null==i&&s.pages.length)return Promise.resolve(s);let h=(n={client:t.client,queryKey:t.queryKey,pageParam:i,direction:a?"backward":"forward",meta:t.options.meta},(0,r.ox)(n,()=>t.signal,()=>e=!0),n),u=await d(h),{maxPages:o}=t.options,c=a?r.ZZ:r.y9;return{pages:c(s.pages,u,o),pageParams:c(s.pageParams,i,o)}};if(a&&n.length){let t="backward"===a,e=t?u:h,s={pages:n,pageParams:o};c=await p(s,e(i,s),t)}else{let t=s??n.length;do{let t=0===l?o[0]??i.initialPageParam:h(i,c);if(l>0&&null==t)break;c=await p(c,t),l++}while(l<t)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e):t.fetchFn=d}}):this.options.behavior)?.onFetch(l,this),this.#C=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#P({type:"fetch",meta:l.fetchOptions?.meta});let d=this.#w=(0,a.II)({initialPromise:e?.initialPromise,fn:l.fetchFn,onCancel:t=>{t instanceof a.cc&&t.revert&&this.setState({...this.#C,fetchStatus:"idle"}),n.abort()},onFail:(t,e)=>{this.#P({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#P({type:"pause"})},onContinue:()=>{this.#P({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{let t=await d.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#I.config.onSuccess?.(t,this),this.#I.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof a.cc){if(t.silent)return this.#w.promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#P({type:"error",error:t}),this.#I.config.onError?.(t,this),this.#I.config.onSettled?.(this.state.data,t,this),t}finally{this.#w===d&&(this.#w=void 0),this.scheduleGc()}}#P(t){let e=e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...c(e.data,this.options),fetchMeta:t.meta??null};case"success":let s={...e,...l(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#C=t.manual?s:void 0,s;case"error":let r=t.error;return{...e,error:r,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),i.jG.batch(()=>{this.observers.slice().forEach(t=>{t.onQueryUpdate()}),this.#I.notify({query:this,type:"updated",action:t})})}};function c(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,a.v_)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function l(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function d(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,r=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}}}]);

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.