1"use strict";(self.webpackChunkcov_spectrum_website=self.webpackChunkcov_spectrum_website||[]).push([[1656],{1656:(e,t,s)=>{s.r(t),s.d(t,{default:()=>c});var a=s(6312),r=(s(5876),s(1599)),i=s(9062),n=s(2779);class u extends a.B{async getView(e,t){const{zoomLevels:s,refsByName:r,uncompressBufSize:i}=await this.getHeader(t),n=1/e;for(let u=s.length-1;u>=0;u-=1){const e=s[u];if(e&&e.reductionLevel<=2*n)return new a.a(this.bbi,r,e.indexOffset,i>0,"summary")}return this.getUnzoomedView(t)}}var o=(0,i.b6)();class c extends r.B.BaseFeatureDataAdapter{async setupPre(e){const{statusCallback:t=()=>{}}=e||{},s=this.pluginManager,a=new u({filehandle:i.a4.openLocation(this.getConf("bigWigLocation"),s)});return{bigwig:a,header:await i.u.updateStatus("Downloading bigwig header",t,(()=>a.getHeader(e)))}}async setup(e){return this.setupP||(this.setupP=this.setupPre(e).catch((e=>{throw this.setupP=void 0,e}))),this.setupP}async getRefNames(e){const{header:t}=await this.setup(e);return Object.keys(t.refsByName)}async refIdToName(e){var t;const{header:s}=await this.setup();return null===(t=s.refsByNumber[e])||void 0===t?void 0:t.name}async getGlobalStats(e){const{header:t}=await this.setup(e);return o.rectifyStats(t.totalSummary)}getFeatures(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{refName:s,start:a,end:r}=e,{bpPerPx:u=0,resolution:o=1,stopToken:c,statusCallback:l=()=>{}}=t;return n.r.ObservableCreate((async n=>{const c=this.getConf("source"),h=this.getConf("resolutionMultiplier"),{bigwig:d}=await this.setup(t),g=await i.u.updateStatus("Downloading bigwig data",l,(()=>d.getFeatures(s,a,r,{...t,basesPerSpan:u/o*h})));for(const t of g){c&&(t.source=c);const a=`${c}:${e.refName}:${t.start}-${t.end}`;t.refName=s,t.uniqueId=a,n.next({get:e=>t[e],id:()=>a,toJSON:()=>t})}n.complete()}),c)}async getMultiRegionFeatureDensityStats(e){return{featureDensity:0}}}c.capabilities=["hasResolution","hasLocalStats","hasGlobalStats"]}}]); 2//# sourceMappingURL=1656.73ee2e2c.chunk.js.map
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.