"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[6833],{86833:(e,t,s)=>{s.r(t),s.d(t,{default:()=>c,makeFeatures:()=>u});var a=s(68584),r=s(46377),n=s(66885),o=s(6434);function u(e){const t=new Map;for(const s of e){const e=new o.A(s),a=e.get("refName");let r=t.get(a);r||(r=[],t.set(a,r)),r.push(e)}for(const e of t.values())e.sort((e,t)=>e.get("start")-t.get("start"));return t}class c extends r.BaseFeatureDataAdapter{constructor(e,t,s){super(e,t,s);const r=(0,a.readConfObject)(e,"features");this.features=u(r)}async getRefNames(){return[...this.features.keys()]}async getRefNameAliases(){return[...this.features.values()].map(e=>({refName:e[0].get("refName"),aliases:e[0].get("aliases")}))}getFeatures(e){const{refName:t,start:s,end:a}=e;return(0,n.ObservableCreate)(async e=>{const r=this.features.get(t)||[];for(const t of r)t.get("end")>s&&t.get("start")<a&&e.next(t);e.complete()})}}}}]);
//# sourceMappingURL=6833.212f8bd1.chunk.js.map