"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3175],{43175:(e,s,n)=>{n.r(s),n.d(s,{default:()=>t});var a=n(46377),i=n(99834);class t extends a.BaseAdapter{async getRefNameAliases(){const e=this.getConf("location");if(""===e.uri||"/path/to/my/sequence_report.tsv"===e.uri)return[];const s=this.getConf("useNameOverride"),n=(await(0,i.openLocation)(e,this.pluginManager).readFile("utf8")).split(/\n|\r\n|\r/).filter(e=>!!e.trim()).map(e=>e.split("\t")),a=n[0]||[],t=a.indexOf("GenBank seq accession"),r=a.indexOf("RefSeq seq accession"),c=a.indexOf("UCSC style name"),l=a.indexOf("Sequence name");if(-1===t||-1===r||-1===c)throw new Error('Header line must include "GenBank seq accession", "RefSeq seq accession", "UCSC style name", and "Sequence name"');return n.slice(1).filter(e=>!!e[c]||!!e[l]).map(e=>({refName:e[c]||e[l],aliases:[e[t],e[r],e[c],e[l]].filter(e=>!!e),override:s})).filter(e=>!!e.refName)}}}}]);
//# sourceMappingURL=3175.59940d52.chunk.js.map