(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[78],{2302:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return v}));var r=n(29),a=n(89),c=n(86),i=n(84),s=n(12),o=n(91),u=n(92),f=n(83),p=n.n(f),w=n(121),d=n(134),b=n(122),l=n(82),h=n(999),v=function(e){Object(o.a)(n,e);var t=Object(u.a)(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).windowSize=1e3,e.windowDelta=1e3,e.gcMode="content",e}return Object(s.a)(n,[{key:"configure",value:function(){var e=Object(c.a)(p.a.mark((function e(){var t,n,r;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(l.readConfObject)(this.config,"sequenceAdapter"),e.next=3,null===(t=this.getSubAdapter)||void 0===t?void 0:t.call(this,n);case 3:if(r=e.sent){e.next=6;break}throw new Error("Error getting subadapter");case 6:return e.abrupt("return",r.dataAdapter);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getRefNames",value:function(){var e=Object(c.a)(p.a.mark((function e(){var t;return p.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.configure();case 2:return t=e.sent,e.abrupt("return",t.getRefNames());case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(e,t){var n=this;return this.windowSize=1e3,this.windowDelta=1e3,this.gcMode="content",Object(d.ObservableCreate)(function(){var i=Object(c.a)(p.a.mark((function c(i){var s,o,u,f,w,d,l,v,g,j,O,k,x,m,y,S,z,A;return p.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,n.configure();case 2:if(s=c.sent,o=1===n.windowSize?1:n.windowSize/2,u=1===n.windowSize,f=e.start,w=e.end,f=Math.max(0,f-o),!((w+=o)<0||f>w)){c.next=11;break}return i.complete(),c.abrupt("return");case 11:return d=s.getFeatures(Object(a.a)(Object(a.a)({},e),{},{start:f,end:w}),t),c.next=14,d.pipe(Object(h.a)()).toPromise();case 14:for(l=c.sent,v=Object(r.a)(l,1),g=v[0],j=g.get("seq"),O=o;O<j.length-o;O+=n.windowDelta){for(k=u?j[O]:j.slice(O-o,O+o),x=0,m=0,y=0,S=0;S<k.length;S++)"c"===k[S]||"C"===k[S]?x++:"g"!==k[S]&&"G"!==k[S]||m++,"N"!==k[S]&&y++;z=f,A=void 0,"content"===n.gcMode?A=(m+x)/(y||1):"skew"===n.gcMode&&(A=(m-x)/(m+x||1)),i.next(new b.a({uniqueId:"".concat(n.id,"_").concat(z+O),start:z+O,end:z+O+n.windowDelta,score:A}))}i.complete();case 20:case"end":return c.stop()}}),c)})));return function(e){return i.apply(this,arguments)}}())}},{key:"freeResources",value:function(){}}]),n}(w.BaseFeatureDataAdapter);v.capabilities=["hasLocalStats"]}}]);
//# sourceMappingURL=78.1de0b1d2.chunk.js.map