(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[81],{2390:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return O}));var n=a(91),r=a(83),u=a.n(r),c=a(88),s=a(85),i=a(90),o=a(93),b=a(95),p=a(1263),f=a(126),l=a(115),v=a(144),h=a(128),d=a(600),g=a(216),w=a(82),j=a(1119),O=function(e){Object(o.a)(a,e);var t=Object(b.a)(a);function a(e,n,r){var u;return Object(s.a)(this,a),(u=t.call(this,e,n,r)).bigwig=void 0,u.bigwig=new p.BigWig({filehandle:Object(l.openLocation)(Object(w.readConfObject)(e,"bigWigLocation"),u.pluginManager)}),u}return Object(i.a)(a,[{key:"setup",value:function(){var e=Object(c.a)(u.a.mark((function e(t){var a,n,r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(t||{}).statusCallback,(n=void 0===a?function(){}:a)("Downloading bigwig header"),e.next=4,this.bigwig.getHeader(t);case 4:return r=e.sent,n(""),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getRefNames",value:function(){var e=Object(c.a)(u.a.mark((function e(t){var a;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup(t);case 2:return a=e.sent,e.abrupt("return",Object.keys(a.refsByName));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refIdToName",value:function(){var e=Object(c.a)(u.a.mark((function e(t){var a;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup();case 2:return a=e.sent,e.abrupt("return",(a.refsByNumber[t]||{name:void 0}).name);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getGlobalStats",value:function(){var e=Object(c.a)(u.a.mark((function e(t){var a;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup(t);case 2:return a=e.sent,e.abrupt("return",Object(j.b)(a.totalSummary));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.refName,s=e.start,i=e.end,o=a.bpPerPx,b=void 0===o?0:o,p=a.signal,f=a.resolution,l=void 0===f?1:f,w=a.statusCallback,j=void 0===w?function(){}:w;return Object(v.ObservableCreate)(function(){var e=Object(c.a)(u.a.mark((function e(c){return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j("Downloading bigwig data"),e.next=3,t.bigwig.getFeatureStream(r,s,i,Object(n.a)(Object(n.a)({},a),{},{basesPerSpan:b/l}));case 3:e.sent.pipe(Object(d.a)(),Object(g.a)((function(e){return new h.a({id:"".concat(r,":").concat(e.start,"-").concat(e.end),data:Object(n.a)(Object(n.a)({},e),{},{refName:r})})}))).subscribe(c);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p)}},{key:"freeResources",value:function(){}}]),a}(f.BaseFeatureDataAdapter);O.capabilities=["hasResolution","hasLocalStats","hasGlobalStats"]}}]);
//# sourceMappingURL=81.755f5eb5.chunk.js.map