PageSourceSearch

https://www.saba.edu/_next/static/chunks/1820-cce30d33b18922dc.js

js saba.edu collected 2026-10-02 11:39:24 UTC 7,459 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1820],{48568:(t,e,r)=>{"use strict";r.d(e,{p:()=>m});var o=r(36840),s=r(24697),n=r(82344);async function a(t,e){for(let r=0;r<t.length;r++)await e(t[r],r,t)}var i=r(8947),l=r(76984),u=r(97508),h=r(24800),p=r(23200),d=r(32027),c=r(18184),g=r(7545),f=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>e.indexOf(o)&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,o=Object.getOwnPropertySymbols(t);s<o.length;s++)0>e.indexOf(o[s])&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(r[o[s]]=t[o[s]]);return r};class m extends c.e{constructor(){super(...arguments),this.path="",this.locale="",this.optimizeYoastPayload=!1}getDefaultEndpoint(){return l.v.posts}getDefaultParams(){return Object.assign({_embed:!0},super.getDefaultParams())}getParamsFromURL(t,e={}){var r,n,a,i,l;let u=(0,o.vd)(this.baseURL);this.locale=(null==(n=null==(r=u.integrations)?void 0:r.polylang)?void 0:n.enable)&&e.lang?e.lang:"",this.path=t,this.optimizeYoastPayload=!!(null==(i=null==(a=u.integrations)?void 0:a.yoastSEO)?void 0:i.optimizeYoastPayload);let h=[...p.rc];if("string"==typeof e.taxonomy){let r=(0,o.RR)(e.taxonomy,this.baseURL);if(!r)throw new s.xL(`Taxonomy "${e.taxonomy}" not found`);let n=null!=(l=r.rewrite)?l:r.slug,a=h.filter(t=>"date"!==t.name&&!t.name.includes("author")).map(t=>Object.assign(Object.assign({},t),{name:`${t.name}-taxonomy`,pattern:`/(.*)?/:${n}${t.pattern}`}));return a.push({name:"taxonomy-term-slug",priority:30,pattern:`/(.*)?/:${n}`}),(0,d.R)(a,t)}let c=(0,o.dd)(this.baseURL);return null==c||c.forEach(t=>{var e;let r=null!=(e=null==t?void 0:t.rewrite)?e:t.slug;h.push({name:t.slug,priority:30,pattern:`/${r}/:${r}`}),h.push({name:`${t.slug}-with-pagination`,priority:30,pattern:`/${r}/:${r}/page/:page`})}),(0,d.R)(h,t)}buildEndpointURL(t){let e=(0,o.vd)(this.baseURL),{category:r,tag:n,postType:a,taxonomy:i}=t,l=f(t,["category","tag","postType","taxonomy"]);if((0,o.dd)(this.baseURL).forEach(t=>{var e;let r=null!=(e=t.rewrite)?e:t.slug;l[r]&&delete l[r]}),t.postType){let e=(0,o.uj)(t.postType,this.baseURL);if(!e)throw new s.xL("Unknown post type, did you forget to add it to headless.config.js?");this.setEndpoint(e.endpoint)}return t.author&&"string"==typeof t.author&&!e.useWordPressPlugin&&delete l.author,super.buildEndpointURL(l)}prepareResponse(t,e){var r,a;let i=this.getQueriedObject(t,e),l=decodeURIComponent(this.path).replace(/\/?$/,"/"),u="",h="";if((null==(r=null==i?void 0:i.term)?void 0:r.link)&&(u=null==(a=decodeURIComponent((0,n.H)({link:i.term.link,backendUrl:this.baseURL})))?void 0:a.replace(/\/?$/,"/"),h=i.term.taxonomy),u&&h){let t=(0,o.RR)(h,this.baseURL),r=(null==t?void 0:t.matchArchivePath)||e.matchArchivePath||!1,n=["",(null==t?void 0:t.rewrite)?`/${null==t?void 0:t.rewrite}`:null,(null==t?void 0:t.restParam)?`/${null==t?void 0:t.restParam}`:null,(null==t?void 0:t.slug)?`/${null==t?void 0:t.slug}`:null].filter(t=>null!==t);if(r){let t=!1;for(let e of n)if(u===`${e}${l}`||u===`/${this.locale}${e}${l}`){t=!0;break}if(!t)throw new s.m_(`Posts were found but did not match current path: "${this.path}"`)}}return Object.assign(Object.assign({},t),{queriedObject:i,result:t.result})}async fetcher(t,e,r={}){var n;let{burstCache:l=!1}=r,u=t,p=(0,o.vd)(this.baseURL),d={},c=null!=(n=r.headers)?n:{};r.cache&&(d.cache=r.cache),Object.keys(c).length>0&&(d.headers=c);let g=(0,o.dd)(this.baseURL);if(g&&await a(g,async t=>{var r,o;let n=null!=(r=null==t?void 0:t.rewrite)?r:t.slug,a=null!=(o=null==t?void 0:t.restParam)?o:t.slug;if(e[n])if(p.useWordPressPlugin)u=(0,i.FS)(u,{[a]:e[n]});else{let r=await (0,h.V)(`${this.baseURL}${t.endpoint}?slug=${e[n]}`,d,l);if(r.json.length>0)u=(0,i.FS)(u,{[a]:r.json[0].id});else throw new s.m_(`Term "${e[n]}" from "${t.slug}" has not been found`)}}),e.author&&"string"==typeof e.author&&!p.useWordPressPlugin){let t=await (0,h.V)(`${this.baseURL}/wp-json/wp/v2/users?slug=${e.author}`,d,l);if(t.json.length>0)u=(0,i.FS)(u,{author:t.json[0].id});else throw new s.m_(`Author "${e.author}" not found`)}return this.optimizeYoastPayload&&(u=(0,i.FS)(u,{optimizeYoastPayload:!0})),super.fetcher(u,e,r)}getQueriedObject(t,e){let r={};if(!Array.isArray(t.result))return r;let s=t.result.map(t=>Object.assign(Object.assign({},t),{author:(0,u.wO)(t),terms:(0,u.gp)(t)}));if(e.author&&s[0].author){let t=s[0].author.find(t=>"number"==typeof e.author?t.id===e.author:"string"==typeof e.author&&"string"==typeof t.slug?decodeURIComponent(t.slug)===decodeURIComponent(e.author):!!Array.isArray(e.author)&&e.author.includes(t.id));t&&(r.author=t)}
1return(0,o.dd)(this.baseURL).forEach(t=>{var o,n,a,i,l;let u=t.slug,h=e[null!=(o=t.rewrite)?o:t.slug];if(h&&(null==(a=null==(n=s[0])?void 0:n.terms)?void 0:a[u])){let t=null==(l=null==(i=s[0])?void 0:i.terms)?void 0:l[u].find(t=>{var e;return"string"==typeof h?decodeURIComponent(null!=(e=t.slug)?e:"")===decodeURIComponent(null!=h?h:""):"number"==typeof h?Number(t.id)===Number(h):!!Array.isArray(h)&&h.includes(t.id)});t&&(r.term=t)}}),r}filterData(t,e){if(void 0!==e)return super.filterData(t,e);let r=["_links"],o=Object.assign({},t.queriedObject);o.author&&(o.author=(0,g._)(r,o.author)),o.term&&(o.term=(0,g._)(r,o.term));let s=(0,g._)(r,t.result).map(t=>(0,u.pk)(r,t));return Object.assign(Object.assign({},t),{queriedObject:o,result:s})}}},50630:(t,e,r)=>{"use strict";r.d(e,{t:()=>d});var o=r(1616),s=r(97508),n=r(48568),a=r(92145),i=r(36840);function l(t,e){let{sourceUrl:r}=e,o={isPostArchive:!1,isSearch:!1,isAuthorArchive:!1,isPostTypeArchive:!1,postType:"",isCategoryArchive:!1,isTagArchive:!1,isTaxonomyArchive:!1,taxonomy:""};return t.author&&(o.isPostArchive=!0,o.isAuthorArchive=!0),t.category&&(o.isPostArchive=!0,o.isCategoryArchive=!0),t.tag&&(o.isPostArchive=!0,o.isTagArchive=!0),t.postType?(o.isPostArchive=!1,o.isPostTypeArchive=!0,o.postType=t.postType):o.isPostArchive=!0,(0,i.dd)(r).forEach(e=>{let{slug:r}=e;t[r]&&(o.isTaxonomyArchive=!0,o.taxonomy=r)}),o}async function u(t={},e,r){let{params:o={},options:n,path:h=""}=t,p=null!=e?e:(0,i.WN)(),{data:d,isMainQuery:c,params:g}=await (0,a.v)(null!=r?r:u.fetcher(),p,o,n,h),f=l(g,p),{result:m,pageInfo:y,queriedObject:v}=d;return{data:{posts:m.map(t=>Object.assign(Object.assign({},t),{author:(0,s.wO)(t),terms:(0,s.gp)(t)})),pageInfo:y,queriedObject:null!=v?v:{}},pageType:f,isMainQuery:c}}u.fetcher=(t,e)=>new n.p(null!=t?t:(0,i.BS)(),e);var h=r(6113),p=r(24980);function d(t={},e={},r="",n){let{data:a,error:i,params:u,isMainQuery:c,mutate:g}=(0,o.st)(t,null!=n?n:d.fetcher(),e,r),f=l(u,(0,p.t)());if(i||!a)return{error:i,loading:!a,pageType:f,data:{posts:(0,h.O)("posts"),pageInfo:(0,h.O)("pageInfo"),queriedObject:(0,h.O)("queriedObject")},isMainQuery:c,mutate:g};let{result:m,pageInfo:y,queriedObject:v}=a;return{data:{posts:m.map(t=>Object.assign(Object.assign({},t),{author:(0,s.wO)(t),terms:(0,s.gp)(t)})),pageInfo:y,queriedObject:null!=v?v:{}},loading:!1,pageType:f,isMainQuery:c,mutate:g}}(d||(d={})).fetcher=(t,e)=>new n.p(null!=t?t:(0,i.BS)(),e)},55595:(t,e,r)=>{var o=r(49994),s=void 0!==o&&o.pid?o.pid.toString(36):"";function n(){var t=Date.now(),e=n.last||t;return n.last=t>e?t:e+1}t.exports=t.exports.default=function(t,e){return(t||"")+""+s+n().toString(36)+(e||"")},t.exports.process=function(t,e){return(t||"")+s+n().toString(36)+(e||"")},t.exports.time=function(t,e){return(t||"")+n().toString(36)+(e||"")}}}]);

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.