this.webpackChunk([35,2],{1085:function(e,t,n){"use strict";n.r(t),n.d(t,"bufferToString",(function(){return s})),n.d(t,"parseCsvBuffer",(function(){return p})),n.d(t,"parseTsvBuffer",(function(){return v}));var r=n(5),a=n(6),u=n(10),i=n(4),o=n.n(i),c=n(7);function s(e){return new TextDecoder("utf-8",{fatal:!0}).decode(e)}function m(e){return f.apply(this,arguments)}function f(){return f=Object(u.a)(o.a.mark((function e(t){var a,u,i=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,n.e(37).then(n.t.bind(null,1194,7)).then((function(e){return e.default}));case 3:return u=e.sent,e.abrupt("return",u(Object(r.a)({noheader:!0,output:"csv"},a)).fromString(s(t)));case 5:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function l(e,t,n){var r,a=e.rows[0].cells[t].text||"",u="Text";try{r=Object(c.parseLocString)(a,n)}catch(i){}return r&&r.refName&&"number"===typeof r.start?u="LocString":/^\d+(\.\d+)?$/.test(a)&&(u="Number"),u}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{hasColumnNameLine:!1,columnNameLineNumber:1,isValidRefName:function(){return!1}},n=0,r={isLoaded:!0,rows:e.map((function(e,r){var a=r+(t.hasColumnNameLine?0:1);return e.length>n&&(n=e.length),{id:String(a),cells:e.map((function(e,t){return{columnNumber:t,text:e}}))}}))},u={};if(t.hasColumnNameLine&&void 0!==t.columnNameLineNumber){var i=r.rows.splice(t.columnNameLineNumber-1,1),o=Object(a.a)(i,1),s=o[0];s&&s.cells.forEach((function(e,t){u[t]=e.text||""}))}for(var m=[],f=[],d=function(e){f.push(e);var n=l(r,e,t.isValidRefName);"LocString"===n&&r.rows.forEach((function(n){var r=n.cells[e];r.extendedData=Object(c.parseLocString)(r.text,t.isValidRefName)})),m[e]={name:u[e],dataType:{type:n}}},p=0;p<n;p+=1)d(p);return{rowSet:r,columnDisplayOrder:f,hasColumnNames:!!t.hasColumnNameLine,columns:m,assemblyName:t.selectedAssemblyName}}function p(e){return h.apply(this,arguments)}function h(){return h=Object(u.a)(o.a.mark((function e(t){var n,r,a=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{hasColumnNameLine:!1,columnNameLineNumber:1,isValidRefName:function(){return!1}},e.next=3,m(t);case 3:return r=e.sent,e.abrupt("return",d(r,n));case 5:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function v(e){return N.apply(this,arguments)}function N(){return N=Object(u.a)(o.a.mark((function e(t){var n,r,a=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{hasColumnNameLine:!1,columnNameLineNumber:1,isValidRefName:function(){return!1}},e.next=3,m(t,{delimiter:"\t"});case 3:return r=e.sent,e.abrupt("return",d(r,n));case 5:case"end":return e.stop()}}),e)}))),N.apply(this,arguments)}},1883:function(e,t,n){"use strict";n.r(t),n.d(t,"parseVcfBuffer",(function(){return c})),n.d(t,"splitVcfFileHeaderAndBody",(function(){return s}));var r=n(122),a=n(573),u=n(1085),i=[{name:"CHROM",type:"Text"},{name:"POS",type:"Number"},{name:"ID",type:"Text"},{name:"REF",type:"Text"},{name:"ALT",type:"Text"},{name:"QUAL",type:"Number"},{name:"FILTER",type:"Text"},{name:"INFO",type:"Text"},{name:"FORMAT",type:"Text"}];function o(e,t,n){var r=e.parseLine(t),u=new a.a({variant:r,parser:e,id:"vcf-".concat(n)}),i=t.split("\t").map((function(e){return"."===e?"":e}));return 8===i.length&&i.push(""),{id:String(n+1),extendedData:{vcfFeature:u.toJSON()},cells:i.map((function(e,t){return{columnNumber:t,text:e}}))}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{hasColumnNameLine:!1,columnNameLineNumber:0,isValidRefName:function(){return!1}},n=s(Object(u.bufferToString)(e)),a=n.header,c=n.body,m=[],f=new r.a({header:a});a="",c.split("\n").forEach((function(e,t){/\S/.test(e)&&m.push(o(f,e,t))})),c="";for(var l={isLoaded:!0,rows:m},d=[],p=[],h=0;h<i.length;h+=1)d.push(h),p[h]={name:i[h].name,dataType:{type:i[h].type}};for(var v=0;v<f.samples.length;v+=1){var N=i.length+v;d.push(N),p[N]={name:f.samples[v],dataType:{type:"Text"}}}return d.push(d.length),p.unshift({name:"Location",dataType:{type:"LocString"},isDerived:!0,derivationFunctionText:"jexl:{text:row.extendedData.vcfFeature.refName+':'\n\n    +row.extendedData.vcfFeature.start+'..'+row.extendedData.vcfFeature.end, extendedData:\n\n    {refName:row.extendedData.vcfFeature.refName,start:row.extendedData.vcfFeature.start,end:row.extendedData.vcfFeature.end}}"}),{rowSet:l,columnDisplayOrder:d,hasColumnNames:!0,columns:p,assemblyName:t.selectedAssemblyName}}function s(e){for(var t,n=0;n<e.length;n+=1){var r=e[n];if("\n"===t&&"#"!==r)break;t=r}return{header:e.substr(0,n),body:e.substr(n)}}}});
//# sourceMappingURL=35.235027ab1390991c7cb1.worker.js.map