"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[4284],{94284:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u,isGzip:()=>o});var n=a(7706),r=a(99546),i=a(99834),s=a(46377);function o(e){return 31===e[0]&&139===e[1]&&8===e[2]}class u extends s.BaseAdapter{async getData(){const e=this.pluginManager,t=this.getConf("cytobandLocation");if(""===t.uri||"/path/to/cytoband.txt.gz"===t.uri)return[];const a=await(0,i.openLocation)(t,e).readFile(),s=o(a)?await(0,n.unzip)(a):a;return new TextDecoder("utf8",{fatal:!0}).decode(s).split(/\n|\r\n|\r/).filter((e=>!!e.trim())).map(((e,t)=>{const[a,n,i,s,o]=e.split("\t");return new r.SimpleFeature({uniqueId:`${t}`,refName:a,start:+n,end:+i,name:s,type:o})}))}freeResources(){}}}}]);
//# sourceMappingURL=4284.d478f4ad.chunk.js.map