"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[2094],{22094:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var r=n(33028),a=n(34795),u=n(9249),s=n(87371),i=n(45754),c=n(86906),o=n(77162),f=n.n(o),p=n(78982),l=n(29598),v=n(33528),b=n(81073),h=n(26131),d=n(14956),w=n(91750),g=n(84040),k=n(9077),y=n(66518),m=function(e){(0,i.Z)(n,e);var t=(0,c.Z)(n);function n(e,r,a){var s;return(0,u.Z)(this,n),(s=t.call(this,e,r,a)).bigwig=void 0,s.bigwig=new p.B({filehandle:(0,v.openLocation)((0,k.readConfObject)(e,"bigWigLocation"),s.pluginManager)}),s}return(0,s.Z)(n,[{key:"setup",value:function(){var e=(0,a.Z)(f().mark((function e(t){var n,r,a=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t||{}).statusCallback,r=void 0===n?function(){}:n,e.abrupt("return",(0,b.updateStatus)("Downloading bigwig header",r,(function(){return a.bigwig.getHeader(t)})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"getRefNames",value:function(){var e=(0,a.Z)(f().mark((function e(t){var n,r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup(t);case 2:return n=e.sent,r=n.refsByName,e.abrupt("return",Object.keys(r));case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refIdToName",value:function(){var e=(0,a.Z)(f().mark((function e(t){var n,r,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup();case 2:return r=e.sent,a=r.refsByNumber,e.abrupt("return",null===(n=a[t])||void 0===n?void 0:n.name);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getGlobalStats",value:function(){var e=(0,a.Z)(f().mark((function e(t){var n,r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup(t);case 2:return n=e.sent,r=n.totalSummary,e.abrupt("return",(0,y.I9)(r));case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=e.refName,s=e.start,i=e.end,c=n.bpPerPx,o=void 0===c?0:c,p=n.signal,l=n.resolution,v=void 0===l?1:l,b=n.statusCallback,k=void 0===b?function(){}:b;return(0,h.ObservableCreate)(function(){var e=(0,a.Z)(f().mark((function e(a){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k("Downloading bigwig data"),e.next=3,t.bigwig.getFeatureStream(u,s,i,(0,r.Z)((0,r.Z)({},n),{},{basesPerSpan:o/v}));case 3:e.sent.pipe((0,w.J)(),(0,g.U)((function(e){return new d.Z({id:"".concat(u,":").concat(e.start,"-").concat(e.end),data:(0,r.Z)((0,r.Z)({},e),{},{refName:u})})}))).subscribe(a);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p)}},{key:"estimateRegionsStats",value:function(){var e=(0,a.Z)(f().mark((function e(t){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{featureDensity:0});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"freeResources",value:function(){}}]),n}(l.BaseFeatureDataAdapter);m.capabilities=["hasResolution","hasLocalStats","hasGlobalStats"]}}]);
//# sourceMappingURL=2094.64189e1a.chunk.js.map