(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[80],{2299:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var n=r(29),a=r(86),c=r(84),i=r(12),u=r(91),s=r(92),o=r(83),f=r.n(o),b=r(121),p=r(110),h=r(134),v=r(122),l=r(2166),m=r(82),d=function(e){Object(u.a)(r,e);var t=Object(s.a)(r);function r(e,n,a){var i;return Object(c.a)(this,r),(i=t.call(this,e,n,a)).twobit=void 0,i.chromSizesData=void 0,i.chromSizesData=i.initChromSizes(),i.twobit=new l.a({filehandle:Object(p.openLocation)(Object(m.readConfObject)(e,"twoBitLocation"),i.pluginManager)}),i}return Object(i.a)(r,[{key:"initChromSizes",value:function(){var e=Object(a.a)(f.a.mark((function e(){var t,r,a;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("/path/to/default.chrom.sizes"===(t=Object(m.readConfObject)(this.config,"chromSizesLocation")).uri||""===t.uri){e.next=7;break}return r=Object(p.openLocation)(t,this.pluginManager),e.next=5,r.readFile("utf8");case 5:return a=e.sent,e.abrupt("return",Object.fromEntries(null===a||void 0===a?void 0:a.split("\n").filter((function(e){return!!e.trim()})).map((function(e){var t=e.split("\t"),r=Object(n.a)(t,2);return[r[0],+r[1]]}))));case 7:return e.abrupt("return",void 0);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getRefNames",value:function(){var e=Object(a.a)(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.chromSizesData;case 2:if(!(t=e.sent)){e.next=5;break}return e.abrupt("return",Object.keys(t));case 5:return e.abrupt("return",this.twobit.getSequenceNames());case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getRegions",value:function(){var e=Object(a.a)(f.a.mark((function e(){var t,r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.chromSizesData;case 2:if(!(t=e.sent)){e.next=5;break}return e.abrupt("return",Object.keys(t).map((function(e){return{refName:e,start:0,end:t[e]}})));case 5:return e.next=7,this.twobit.getSequenceSizes();case 7:return r=e.sent,e.abrupt("return",Object.keys(r).map((function(e){return{refName:e,start:0,end:r[e]}})));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(e){var t=this,r=e.refName,n=e.start,c=e.end;return Object(h.ObservableCreate)(function(){var e=Object(a.a)(f.a.mark((function e(a){var i,u,s;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.twobit.getSequenceSize(r);case 2:return i=e.sent,u=void 0!==i?Math.min(i,c):c,e.next=6,t.twobit.getSequence(r,n,u);case 6:(s=e.sent)&&a.next(new v.a({id:"".concat(r," ").concat(n,"-").concat(u),data:{refName:r,start:n,end:u,seq:s}})),a.complete();case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},{key:"freeResources",value:function(){}}]),r}(b.BaseFeatureDataAdapter)}}]);
//# sourceMappingURL=80.790c9e09.chunk.js.map