UNPKG

ideogram

Version:

Chromosome visualization with D3.js

10 lines • 184 kB
/*! Ideogram.js, version 0.13.0.  Developed by Eric Weitz.  https://github.com/eweitz/ideogram.  Public domain (CC0 1.0). */
!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=91)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(22);n.d(e,"creator",function(){return r.a});var i=n(93);n.d(e,"local",function(){return i.a});var o=n(44);n.d(e,"matcher",function(){return o.a});var a=n(94);n.d(e,"mouse",function(){return a.a});var s=n(23);n.d(e,"namespace",function(){return s.a});var c=n(24);n.d(e,"namespaces",function(){return c.a});var u=n(95);n.d(e,"select",function(){return u.a});var f=n(123);n.d(e,"selectAll",function(){return f.a});var l=n(2);n.d(e,"selection",function(){return l.b});var h=n(28);n.d(e,"selector",function(){return h.a});var d=n(45);n.d(e,"selectorAll",function(){return d.a});var p=n(48);n.d(e,"style",function(){return p.b});var g=n(124);n.d(e,"touch",function(){return g.a});var m=n(125);n.d(e,"touches",function(){return m.a});var b=n(29);n.d(e,"window",function(){return b.a});var _=n(26);n.d(e,"event",function(){return _.c}),n.d(e,"customEvent",function(){return _.a})},function(t,e,n){"use strict";function r(t,e,n,a){function s(e){return t(e=new Date(+e)),e}return s.floor=s,s.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},s.range=function(n,r,i){var o=[];if(n=s.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return o;do{o.push(new Date(+n))}while(e(n,i),t(n),n<r);return o},s.filter=function(n){return r(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(s.count=function(e,r){return i.setTime(+e),o.setTime(+r),t(i),t(o),Math.floor(n(i,o))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?function(e){return a(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}e.a=r;var i=new Date,o=new Date},function(t,e,n){"use strict";function r(t,e){this._groups=t,this._parents=e}function i(){return new r([[document.documentElement]],D)}n.d(e,"c",function(){return D}),e.a=r;var o=n(96),a=n(97),s=n(98),c=n(99),u=n(46),f=n(101),l=n(102),h=n(103),d=n(104),p=n(105),g=n(106),m=n(107),b=n(108),_=n(109),v=n(110),y=n(111),w=n(48),x=n(112),O=n(113),M=n(114),C=n(115),k=n(116),A=n(117),j=n(118),T=n(119),S=n(120),L=n(121),E=n(26),P=n(122),D=[null];r.prototype=i.prototype={constructor:r,select:o.a,selectAll:a.a,filter:s.a,data:c.a,enter:u.b,exit:f.a,merge:l.a,order:h.a,sort:d.a,call:p.a,nodes:g.a,node:m.a,size:b.a,empty:_.a,each:v.a,attr:y.a,style:w.a,property:x.a,classed:O.a,text:M.a,html:C.a,raise:k.a,lower:A.a,append:j.a,insert:T.a,remove:S.a,datum:L.a,on:E.b,dispatch:P.a},e.b=i},function(t,e,n){"use strict";function r(t,e){var n=t.__transition;if(!n||!(n=n[e])||n.state>l)throw new Error("too late");return n}function i(t,e){var n=t.__transition;if(!n||!(n=n[e])||n.state>d)throw new Error("too late");return n}function o(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("too late");return n}function a(t,e,n){function r(t){n.state=h,n.timer.restart(i,n.delay,n.time),n.delay<=t&&i(t-n.delay)}function i(r){var f,l,m,_;if(n.state!==h)return a();for(f in u)if(_=u[f],_.name===n.name){if(_.state===p)return Object(c.b)(i);_.state===g?(_.state=b,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete u[f]):+f<e&&(_.state=b,_.timer.stop(),delete u[f])}if(Object(c.b)(function(){n.state===p&&(n.state=g,n.timer.restart(o,n.delay,n.time),o(r))}),n.state=d,n.on.call("start",t,t.__data__,n.index,n.group),n.state===d){for(n.state=p,s=new Array(m=n.tween.length),f=0,l=-1;f<m;++f)(_=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(s[++l]=_);s.length=l+1}}function o(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=m,1),i=-1,o=s.length;++i<o;)s[i].call(null,r);n.state===m&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){n.state=b,n.timer.stop(),delete u[e];for(var r in u)return;delete t.__transition}var s,u=t.__transition;u[e]=n,n.timer=Object(c.c)(r,0,n.time)}n.d(e,"c",function(){return h}),n.d(e,"d",function(){return d}),n.d(e,"b",function(){return m}),n.d(e,"a",function(){return b}),e.g=r,e.h=i,e.f=o;var s=n(8),c=n(62),u=Object(s.dispatch)("start","end","interrupt"),f=[],l=0,h=1,d=2,p=3,g=4,m=5,b=6;e.e=function(t,e,n,r,i,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};a(t,n,{name:e,index:r,group:i,on:u,tween:f,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:l})}},function(t,e,n){"use strict";var r=n(65);n.d(e,"b",function(){return r.a});var i=n(11);n.d(e,"a",function(){return i.a});var o=n(66);n.d(e,"c",function(){return o.a});var a=(n(188),n(189),n(68),n(70),n(190),n(193),n(194),n(74),n(195));n.d(e,"d",function(){return a.a});var s=(n(196),n(197),n(198),n(75),n(67),n(199),n(38));n.d(e,"e",function(){return s.a});var c=n(72);n.d(e,"f",function(){return c.a});var u=(n(200),n(201),n(202),n(73));n.d(e,"i",function(){return u.a}),n.d(e,"g",function(){return u.b}),n.d(e,"h",function(){return u.c});n(76),n(69),n(203)},function(t,e,n){"use strict";var r=n(33);n.d(e,"a",function(){return r.a});var i=(n(57),n(36),n(55),n(58),n(18));n.d(e,"c",function(){return i.a});var o=(n(59),n(140));n.d(e,"e",function(){return o.a});var a=n(60);n.d(e,"f",function(){return a.a});var s=n(141);n.d(e,"g",function(){return s.a}),n.d(e,"h",function(){return s.b});var c=(n(144),n(54));n.d(e,"d",function(){return c.a});var u=(n(145),n(146),n(147),n(148));n.d(e,"b",function(){return u.a});n(149)},function(t,e,n){"use strict";var r=n(34);n.d(e,"a",function(){return r.e}),n.d(e,"f",function(){return r.g}),n.d(e,"d",function(){return r.f});var i=n(138);n.d(e,"e",function(){return i.a}),n.d(e,"c",function(){return i.b});var o=n(139);n.d(e,"b",function(){return o.a})},function(t,e,n){"use strict";n.d(e,"d",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"a",function(){return a}),n.d(e,"e",function(){return s});var r=1e3,i=6e4,o=36e5,a=864e5,s=6048e5},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(126);n.d(e,"dispatch",function(){return r.a})},function(t,e,n){"use strict";function r(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function i(t){return Object(a.selection)().transition(t)}function o(){return++M}e.a=r,e.b=o;var a=n(0),s=n(156),c=n(157),u=n(158),f=n(159),l=n(160),h=n(161),d=n(162),p=n(163),g=n(164),m=n(165),b=n(166),_=n(167),v=n(168),y=n(169),w=n(170),x=n(171),O=n(19),M=0,C=a.selection.prototype;r.prototype=i.prototype={constructor:r,select:m.a,selectAll:b.a,filter:h.a,merge:d.a,selection:_.a,transition:x.a,call:C.call,nodes:C.nodes,node:C.node,size:C.size,empty:C.empty,each:C.each,on:p.a,attr:s.a,attrTween:c.a,style:v.a,styleTween:y.a,text:w.a,remove:g.a,tween:O.a,delay:u.a,duration:f.a,ease:l.a}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=Array.prototype,i=r.map,o=r.slice},function(t,e,n){"use strict";e.a=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}},function(t,e,n){"use strict";function r(t,e){return function(n){return t+n*e}}function i(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function o(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(c.a)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?i(e,n,t):Object(c.a)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?r(t,n):Object(c.a)(isNaN(t)?e:t)}e.c=o,e.b=a,e.a=s;var c=n(56)},function(t,e,n){"use strict";e.a=function(t){return null===t?NaN:+t}},function(t,e,n){"use strict";function r(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(o.i)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return Object(c.a)(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,s=i.length-1,c=i[a],u=i[s];return u<c&&(r=c,c=u,u=r,r=a,a=s,s=r),r=Object(o.g)(c,u,n),r>0?(c=Math.floor(c/r)*r,u=Math.ceil(u/r)*r,r=Object(o.g)(c,u,n)):r<0&&(c=Math.ceil(c*r)/r,u=Math.floor(u*r)/r,r=Object(o.g)(c,u,n)),r>0?(i[a]=Math.floor(c/r)*r,i[s]=Math.ceil(u/r)*r,e(i)):r<0&&(i[a]=Math.ceil(c*r)/r,i[s]=Math.floor(u*r)/r,e(i)),t},t}function i(){var t=Object(s.b)(s.c,a.c);return t.copy=function(){return Object(s.a)(t,i())},r(t)}e.b=r,e.a=i;var o=n(4),a=n(5),s=n(20),c=n(205)},function(t,e,n){"use strict";e.a=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(30);n.d(e,"request",function(){return r.a});var i=n(127);n.d(e,"html",function(){return i.a});var o=n(128);n.d(e,"json",function(){return o.a});var a=n(129);n.d(e,"text",function(){return a.a});var s=n(130);n.d(e,"xml",function(){return s.a});var c=n(131);n.d(e,"csv",function(){return c.a});var u=n(132);n.d(e,"tsv",function(){return u.a})},function(t,e,n){"use strict";var r=n(30);e.a=function(t,e){return function(n,i){var o=Object(r.a)(n).mimeType(t).response(e);if(null!=i){if("function"!=typeof i)throw new Error("invalid callback: "+i);return o.get(i)}return o}}},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){"use strict";function r(t,e){var n,r;return function(){var i=Object(a.h)(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,c=r.length;s<c;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function i(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Object(a.h)(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var c={name:e,value:n},u=0,f=i.length;u<f;++u)if(i[u].name===e){i[u]=c;break}u===f&&i.push(c)}o.tween=i}}function o(t,e,n){var r=t._id;return t.each(function(){var t=Object(a.h)(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Object(a.f)(t,r).value[e]}}e.b=o;var a=n(3);e.a=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var o,s=Object(a.f)(this.node(),n).tween,c=0,u=s.length;c<u;++c)if((o=s[c]).name===t)return o.value;return null}return this.each((null==e?r:i)(n,t,e))}},function(t,e,n){"use strict";function r(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Object(d.a)(e)}function i(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}function o(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}function a(t,e,n,r){var i=t[0],o=t[1],a=e[0],s=e[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(t){return a(i(t))}}function s(t,e,n,r){var i=Math.min(t.length,e.length)-1,o=new Array(i),a=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=n(t[s],t[s+1]),a[s]=r(e[s],e[s+1]);return function(e){var n=Object(f.b)(t,e,1,i)-1;return a[n](o[n](e))}}function c(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function u(t,e){function n(){return u=Math.min(m.length,b.length)>2?s:a,f=d=null,c}function c(e){return(f||(f=u(m,b,v?i(t):t,_)))(+e)}var u,f,d,m=g,b=g,_=l.a,v=!1;return c.invert=function(t){return(d||(d=u(b,m,r,v?o(e):e)))(+t)},c.domain=function(t){return arguments.length?(m=h.a.call(t,p.a),n()):m.slice()},c.range=function(t){return arguments.length?(b=h.b.call(t),n()):b.slice()},c.rangeRound=function(t){return b=h.b.call(t),_=l.e,n()},c.clamp=function(t){return arguments.length?(v=!!t,n()):v},c.interpolate=function(t){return arguments.length?(_=t,n()):_},n()}e.c=r,e.a=c,e.b=u;var f=n(4),l=n(5),h=n(10),d=n(39),p=n(78),g=[0,1]},function(t,e,n){"use strict";var r=n(40);e.a=function(t){return t=Object(r.a)(Math.abs(t)),t?t[1]:NaN}},function(t,e,n){"use strict";function r(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===a.b&&e.documentElement.namespaceURI===a.b?e.createElement(t):e.createElementNS(n,t)}}function i(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var o=n(23),a=n(24);e.a=function(t){var e=Object(o.a)(t);return(e.local?i:r)(e)}},function(t,e,n){"use strict";var r=n(24);e.a=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";var r=n(26);e.a=function(){for(var t,e=r.c;t=e.sourceEvent;)e=t;return e}},function(t,e,n){"use strict";function r(t,e,n){return t=i(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function i(t,e,n){return function(r){var i=f;f=r;try{t.call(this,this.__data__,e,n)}finally{f=i}}}function o(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function a(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function s(t,e,n){var o=u.hasOwnProperty(t.type)?r:i;return function(r,i,a){var s,c=this.__on,u=o(e,i,a);if(c)for(var f=0,l=c.length;f<l;++f)if((s=c[f]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=u,s.capture=n),void(s.value=e);this.addEventListener(t.type,u,n),s={type:t.type,name:t.name,value:e,listener:u,capture:n},c?c.push(s):this.__on=[s]}}function c(t,e,n,r){var i=f;t.sourceEvent=f,f=t;try{return e.apply(n,r)}finally{f=i}}n.d(e,"c",function(){return f}),e.a=c;var u={},f=null;if("undefined"!=typeof document){"onmouseenter"in document.documentElement||(u={mouseenter:"mouseover",mouseleave:"mouseout"})}e.b=function(t,e,n){var r,i,c=o(t+""),u=c.length;{if(!(arguments.length<2)){for(f=e?s:a,null==n&&(n=!1),r=0;r<u;++r)this.each(f(c[r],e,n));return this}var f=this.node().__on;if(f)for(var l,h=0,d=f.length;h<d;++h)for(r=0,l=f[h];r<u;++r)if((i=c[r]).type===l.type&&i.name===l.name)return l.value}}},function(t,e,n){"use strict";e.a=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}},function(t,e,n){"use strict";function r(){}e.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";function r(t){return function(e,n){t(null==e?n:null)}}function i(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}var o=n(31),a=(n.n(o),n(8));e.a=function(t,e){function n(t){var e,n=d.status;if(!n&&i(d)||n>=200&&n<300||304===n){if(u)try{e=u.call(s,d)}catch(t){return void l.call("error",s,t)}else e=d;l.call("load",s,e)}else l.call("error",s,t)}var s,c,u,f,l=Object(a.dispatch)("beforesend","progress","load","error"),h=Object(o.map)(),d=new XMLHttpRequest,p=null,g=null,m=0;if("undefined"==typeof XDomainRequest||"withCredentials"in d||!/^(http(s)?:)?\/\//.test(t)||(d=new XDomainRequest),"onload"in d?d.onload=d.onerror=d.ontimeout=n:d.onreadystatechange=function(t){d.readyState>3&&n(t)},d.onprogress=function(t){l.call("progress",s,t)},s={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?h.get(t):(null==e?h.remove(t):h.set(t,e+""),s)},mimeType:function(t){return arguments.length?(c=null==t?null:t+"",s):c},responseType:function(t){return arguments.length?(f=t,s):f},timeout:function(t){return arguments.length?(m=+t,s):m},user:function(t){return arguments.length<1?p:(p=null==t?null:t+"",s)},password:function(t){return arguments.length<1?g:(g=null==t?null:t+"",s)},response:function(t){return u=t,s},get:function(t,e){return s.send("GET",t,e)},post:function(t,e){return s.send("POST",t,e)},send:function(e,n,i){return d.open(e,t,!0,p,g),null==c||h.has("accept")||h.set("accept",c+",*/*"),d.setRequestHeader&&h.each(function(t,e){d.setRequestHeader(e,t)}),null!=c&&d.overrideMimeType&&d.overrideMimeType(c),null!=f&&(d.responseType=f),m>0&&(d.timeout=m),null==i&&"function"==typeof n&&(i=n,n=null),null!=i&&1===i.length&&(i=r(i)),null!=i&&s.on("error",i).on("load",function(t){i(null,t)}),l.call("beforesend",s,d),d.send(null==n?null:n),s},abort:function(){return d.abort(),s},on:function(){var t=l.on.apply(l,arguments);return t===l?s:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return s.get(e)}return s}},function(t,e,n){!function(t,n){n(e)}(0,function(t){"use strict";function e(){}function n(t,n){var r=new e;if(t instanceof e)t.each(function(t,e){r.set(e,t)});else if(Array.isArray(t)){var i,o=-1,a=t.length;if(null==n)for(;++o<a;)r.set(o,t[o]);else for(;++o<a;)r.set(n(i=t[o],o,t),i)}else if(t)for(var s in t)r.set(s,t[s]);return r}function r(){function t(e,i,o,a){if(i>=f.length)return null!=c?c(e):null!=r?e.sort(r):e;for(var s,u,l,h=-1,d=e.length,p=f[i++],g=n(),m=o();++h<d;)(l=g.get(s=p(u=e[h])+""))?l.push(u):g.set(s,[u]);return g.each(function(e,n){a(m,n,t(e,i,o,a))}),m}function e(t,n){if(++n>f.length)return t;var r,i=l[n-1];return null!=c&&n>=f.length?r=t.entries():(r=[],t.each(function(t,i){r.push({key:i,values:e(t,n)})})),null!=i?r.sort(function(t,e){return i(t.key,e.key)}):r}var r,c,u,f=[],l=[];return u={object:function(e){return t(e,0,i,o)},map:function(e){return t(e,0,a,s)},entries:function(n){return e(t(n,0,a,s),0)},key:function(t){return f.push(t),u},sortKeys:function(t){return l[f.length-1]=t,u},sortValues:function(t){return r=t,u},rollup:function(t){return c=t,u}}}function i(){return{}}function o(t,e,n){t[e]=n}function a(){return n()}function s(t,e,n){t.set(e,n)}function c(){}function u(t,e){var n=new c;if(t instanceof c)t.each(function(t){n.add(t)});else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}function f(t){var e=[];for(var n in t)e.push(n);return e}function l(t){var e=[];for(var n in t)e.push(t[n]);return e}function h(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e}e.prototype=n.prototype={constructor:e,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var d=n.prototype;c.prototype=u.prototype={constructor:c,has:d.has,add:function(t){return t+="",this["$"+t]=t,this},remove:d.remove,clear:d.clear,values:d.keys,size:d.size,empty:d.empty,each:d.each},t.nest=r,t.set=u,t.map=n,t.keys=f,t.values=l,t.entries=h,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(0,function(t){"use strict";function e(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}function n(t,n){var r=e(t);return function(e,i){return n(r(e),i,t)}}function r(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var r in t)r in e||n.push(e[r]=r)}),n}function i(t){function i(t,r){var i,a,s=o(t,function(t,o){if(i)return i(t,o-1);a=t,i=r?n(t,r):e(t)});return s.columns=a,s}function o(t,e){function n(){if(u>=c)return a;if(i)return i=!1,o;var e,n=u;if(34===t.charCodeAt(n)){for(var r=n;r++<c;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return u=r+2,e=t.charCodeAt(r+1),13===e?(i=!0,10===t.charCodeAt(r+2)&&++u):10===e&&(i=!0),t.slice(n+1,r).replace(/""/g,'"')}for(;u<c;){var s=1;if(10===(e=t.charCodeAt(u++)))i=!0;else if(13===e)i=!0,10===t.charCodeAt(u)&&(++u,++s);else if(e!==l)continue;return t.slice(n,u-s)}return t.slice(n)}for(var r,i,o={},a={},s=[],c=t.length,u=0,f=0;(r=n())!==a;){for(var h=[];r!==o&&r!==a;)h.push(r),r=n();e&&null==(h=e(h,f++))||s.push(h)}return s}function a(e,n){return null==n&&(n=r(e)),[n.map(u).join(t)].concat(e.map(function(e){return n.map(function(t){return u(e[t])}).join(t)})).join("\n")}function s(t){return t.map(c).join("\n")}function c(e){return e.map(u).join(t)}function u(t){return null==t?"":f.test(t+="")?'"'+t.replace(/\"/g,'""')+'"':t}var f=new RegExp('["'+t+"\n]"),l=t.charCodeAt(0);return{parse:i,parseRows:o,format:a,formatRows:s}}var o=i(","),a=o.parse,s=o.parseRows,c=o.format,u=o.formatRows,f=i("\t"),l=f.parse,h=f.parseRows,d=f.format,p=f.formatRows;t.dsvFormat=i,t.csvParse=a,t.csvParseRows=s,t.csvFormat=c,t.csvFormatRows=u,t.tsvParse=l,t.tsvParseRows=h,t.tsvFormat=d,t.tsvFormatRows=p,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){"use strict";var r=n(6),i=n(54),o=n(57),a=n(58),s=n(18),c=n(59),u=n(60),f=n(56);e.a=function(t,e){var n,l=typeof e;return null==e||"boolean"===l?Object(f.a)(e):("number"===l?s.a:"string"===l?(n=Object(r.a)(e))?(e=n,i.a):u.a:e instanceof r.a?i.a:e instanceof Date?a.a:Array.isArray(e)?o.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.a:s.a)(t,e)}},function(t,e,n){"use strict";function r(){}function i(t){var e;return t=(t+"").trim().toLowerCase(),(e=w.exec(t))?(e=parseInt(e[1],16),new u(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=x.exec(t))?o(parseInt(e[1],16)):(e=O.exec(t))?new u(e[1],e[2],e[3],1):(e=M.exec(t))?new u(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=C.exec(t))?a(e[1],e[2],e[3],e[4]):(e=k.exec(t))?a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=A.exec(t))?f(e[1],e[2]/100,e[3]/100,1):(e=j.exec(t))?f(e[1],e[2]/100,e[3]/100,e[4]):T.hasOwnProperty(t)?o(T[t]):"transparent"===t?new u(NaN,NaN,NaN,0):null}function o(t){return new u(t>>16&255,t>>8&255,255&t,1)}function a(t,e,n,r){return r<=0&&(t=e=n=NaN),new u(t,e,n,r)}function s(t){return t instanceof r||(t=i(t)),t?(t=t.rgb(),new u(t.r,t.g,t.b,t.opacity)):new u}function c(t,e,n,r){return 1===arguments.length?s(t):new u(t,e,n,null==r?1:r)}function u(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function f(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new d(t,e,n,r)}function l(t){if(t instanceof d)return new d(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=i(t)),!t)return new d;if(t instanceof d)return t;t=t.rgb();var e=t.r/255,n=t.g/255,o=t.b/255,a=Math.min(e,n,o),s=Math.max(e,n,o),c=NaN,u=s-a,f=(s+a)/2;return u?(c=e===s?(n-o)/u+6*(n<o):n===s?(o-e)/u+2:(e-n)/u+4,u/=f<.5?s+a:2-s-a,c*=60):u=f>0&&f<1?0:c,new d(c,u,f,t.opacity)}function h(t,e,n,r){return 1===arguments.length?l(t):new d(t,e,n,null==r?1:r)}function d(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function p(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=r,n.d(e,"d",function(){return m}),n.d(e,"c",function(){return b}),e.e=i,e.h=s,e.g=c,e.b=u,e.f=h;var g=n(35),m=.7,b=1/m,_="\\s*([+-]?\\d+)\\s*",v="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",y="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",w=/^#([0-9a-f]{3})$/,x=/^#([0-9a-f]{6})$/,O=new RegExp("^rgb\\("+[_,_,_]+"\\)$"),M=new RegExp("^rgb\\("+[y,y,y]+"\\)$"),C=new RegExp("^rgba\\("+[_,_,_,v]+"\\)$"),k=new RegExp("^rgba\\("+[y,y,y,v]+"\\)$"),A=new RegExp("^hsl\\("+[v,y,y]+"\\)$"),j=new RegExp("^hsla\\("+[v,y,y,v]+"\\)$"),T={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(g.a)(r,i,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(g.a)(u,c,Object(g.b)(r,{brighter:function(t){return t=null==t?b:Math.pow(b,t),new u(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?m:Math.pow(m,t),new u(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Object(g.a)(d,h,Object(g.b)(r,{brighter:function(t){return t=null==t?b:Math.pow(b,t),new d(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?m:Math.pow(m,t),new d(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new u(p(t>=240?t-240:t+120,i,r),p(t,i,r),p(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e.b=r,e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,c=i<e-1?t[i+2]:2*a-o;return r((n-i/e)*e,s,o,a,c)}}},function(t,e,n){"use strict";function r(){return v||(x(i),v=w.now()+y)}function i(){v=0}function o(){this._call=this._time=this._next=null}function a(t,e,n){var r=new o;return r.restart(t,e,n),r}function s(){r(),++p;for(var t,e=h;e;)(t=v-e._time)>=0&&e._call.call(null,t),e=e._next;--p}function c(){v=(_=w.now())+y,p=g=0;try{s()}finally{p=0,f(),v=0}}function u(){var t=w.now(),e=t-_;e>b&&(y-=e,_=t)}function f(){for(var t,e,n=h,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:h=e);d=t,l(r)}function l(t){if(!p){g&&(g=clearTimeout(g));var e=t-v;e>24?(t<1/0&&(g=setTimeout(c,e)),m&&(m=clearInterval(m))):(m||(_=v,m=setInterval(u,b)),p=1,x(c))}}e.b=r,e.a=o,e.c=a;var h,d,p=0,g=0,m=0,b=1e3,_=0,v=0,y=0,w="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};o.prototype=a.prototype={constructor:o,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||d===this||(d?d._next=this:h=this,d=this),this._call=t,this._time=n,l()},stop:function(){this._call&&(this._call=null,this._time=1/0,l())}}},function(t,e,n){"use strict";var r=n(13);e.a=function(t,e,n){if(null==n&&(n=r.a),i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,o=(i-1)*e,a=Math.floor(o),s=+n(t[a],a,t);return s+(+n(t[a+1],a+1,t)-s)*(o-a)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}},function(t,e,n){"use strict";var r=(n(1),n(220));n.d(e,"c",function(){return r.a}),n.d(e,"m",function(){return r.a});var i=n(221);n.d(e,"g",function(){return i.a}),n.d(e,"q",function(){return i.a});var o=n(222);n.d(e,"d",function(){return o.a});var a=n(223);n.d(e,"b",function(){return a.a});var s=n(224);n.d(e,"a",function(){return s.a});var c=n(225);n.d(e,"i",function(){return c.b}),n.d(e,"h",function(){return c.b}),n.d(e,"e",function(){return c.a});var u=n(226);n.d(e,"f",function(){return u.a});var f=n(227);n.d(e,"j",function(){return f.a});var l=n(228);n.d(e,"n",function(){return l.a});var h=n(229);n.d(e,"l",function(){return h.a});var d=n(230);n.d(e,"k",function(){return d.a});var p=n(231);n.d(e,"s",function(){return p.b}),n.d(e,"r",function(){return p.b}),n.d(e,"o",function(){return p.a});var g=n(232);n.d(e,"p",function(){return g.a});var m=n(233);n.d(e,"t",function(){return m.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return s});var r,i,o,a,s,c=n(87);!function(t){r=Object(c.a)(t),i=r.format,o=r.parse,a=r.utcFormat,s=r.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},function(t,e,n){!function(e,r){t.exports=r(n(244))}(0,function(t){"use strict";function e(t,e){return function(){for(var n=arguments.length,r=Array(n),i=0;n>i;i++)r[i]=arguments[i];return new Promise(function(n,i){var o=function(t,e){return t?void i(Error(t)):void n(e)};e.apply(t,r.concat(o))})}}var n={};return["csv","tsv","json","xml","text","html"].forEach(function(r){n[r]=e(t,t[r])}),n})},function(t,e,n){"use strict";var r=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var i=document.documentElement;if(!i.matches){var o=i.webkitMatchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector;r=function(t){return function(){return o.call(this,t)}}}}e.a=r},function(t,e,n){"use strict";function r(){return[]}e.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";function r(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}e.a=r;var i=n(47),o=n(2);e.b=function(){return new o.a(this._enter||this._groups.map(i.a),this._parents)},r.prototype={constructor:r,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return new Array(t.length)}},function(t,e,n){"use strict";function r(t){return function(){this.style.removeProperty(t)}}function i(t,e,n){return function(){this.style.setProperty(t,e,n)}}function o(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function a(t,e){return t.style.getPropertyValue(e)||Object(s.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.b=a;var s=n(29);e.a=function(t,e,n){return arguments.length>1?this.each((null==e?r:"function"==typeof e?o:i)(t,e,null==n?"":n)):a(this.node(),t)}},function(t,e,n){"use strict";function r(t,e){return function(n){return t(n.responseText,e)}}var i=n(30);e.a=function(t,e){return function(n,o,a){arguments.length<3&&(a=o,o=null);var s=Object(i.a)(n).mimeType(t);return s.row=function(t){return arguments.length?s.response(r(e,o=t)):o},s.row(o),a?s.get(a):s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(133);n.d(e,"brush",function(){return r.d}),n.d(e,"brushX",function(){return r.b}),n.d(e,"brushY",function(){return r.c}),n.d(e,"brushSelection",function(){return r.a})},function(t,e,n){"use strict";function r(t,e){var n=t.document.documentElement,r=Object(i.select)(t).on("dragstart.drag",null);e&&(r.on("click.drag",o.a,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}e.b=r;var i=n(0),o=n(52);e.a=function(t){var e=t.document.documentElement,n=Object(i.select)(t).on("dragstart.drag",o.a,!0);"onselectstart"in e?n.on("selectstart.drag",o.a,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}},function(t,e,n){"use strict";function r(){i.event.stopImmediatePropagation()}e.b=r;var i=n(0);e.a=function(){i.event.preventDefault(),i.event.stopImmediatePropagation()}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";function r(t){return function(e){var n,r,o=e.length,a=new Array(o),s=new Array(o),c=new Array(o);for(n=0;n<o;++n)r=Object(i.f)(e[n]),a[n]=r.r||0,s[n]=r.g||0,c[n]=r.b||0;return a=t(a),s=t(s),c=t(c),r.opacity=1,function(t){return r.r=a(t),r.g=s(t),r.b=c(t),r+""}}}var i=n(6),o=n(36),a=n(55),s=n(12);e.a=function t(e){function n(t,e){var n=r((t=Object(i.f)(t)).r,(e=Object(i.f)(e)).r),o=r(t.g,e.g),a=r(t.b,e.b),c=Object(s.a)(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=a(e),t.opacity=c(e),t+""}}var r=Object(s.b)(e);return n.gamma=t,n}(1);r(o.b),r(a.a)},function(t,e,n){"use strict";var r=n(36);e.a=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),o=t[(i+e-1)%e],a=t[i%e],s=t[(i+1)%e],c=t[(i+2)%e];return Object(r.a)((n-i/e)*e,o,a,s,c)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(33);e.a=function(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(i),s=new Array(i);for(n=0;n<o;++n)a[n]=Object(r.a)(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<o;++n)s[n]=a[n](t);return s}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}}},function(t,e,n){"use strict";var r=n(33);e.a=function(t,e){var n,i={},o={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?i[n]=Object(r.a)(t[n],e[n]):o[n]=e[n];return function(t){for(n in i)o[n]=i[n](t);return o}}},function(t,e,n){"use strict";function r(t){return function(){return t}}function i(t){return function(e){return t(e)+""}}var o=n(18),a=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,s=new RegExp(a.source,"g");e.a=function(t,e){var n,c,u,f=a.lastIndex=s.lastIndex=0,l=-1,h=[],d=[];for(t+="",e+="";(n=a.exec(t))&&(c=s.exec(e));)(u=c.index)>f&&(u=e.slice(f,u),h[l]?h[l]+=u:h[++l]=u),(n=n[0])===(c=c[0])?h[l]?h[l]+=c:h[++l]=c:(h[++l]=null,d.push({i:l,x:Object(o.a)(n,c)})),f=s.lastIndex;return f<e.length&&(u=e.slice(f),h[l]?h[l]+=u:h[++l]=u),h.length<2?d[0]?i(d[0].x):r(e):(e=d.length,function(t){for(var n,r=0;r<e;++r)h[(n=d[r]).i]=n.x(t);return h.join("")})}},function(t,e,n){"use strict";var r=n(3);e.a=function(t,e){var n,i,o,a=t.__transition,s=!0;if(a){e=null==e?null:e+"";for(o in a)(n=a[o]).name===e?(i=n.state>r.d&&n.state<r.b,n.state=r.a,n.timer.stop(),i&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete a[o]):s=!1;s&&delete t.__transition}}},function(t,e,n){"use strict";var r=n(37);n.d(e,"a",function(){return r.b}),n.d(e,"c",function(){return r.c});var i=n(153);n.d(e,"b",function(){return i.a});n(154)},function(t,e,n){"use strict";var r=n(6),i=n(5);e.a=function(t,e){var n;return("number"==typeof e?i.c:e instanceof r.a?i.d:(n=Object(r.a)(e))?(e=n,i.d):i.f)(t,e)}},function(t,e,n){"use strict";var r=(n(187),n(204),n(14));n.d(e,"a",function(){return r.a});n(215),n(77),n(216),n(217),n(218),n(219),n(85),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243)},function(t,e,n){"use strict";var r=n(11),i=n(66),o=Object(i.a)(r.a),a=o.right;o.left;e.a=a},function(t,e,n){"use strict";function r(t){return function(e,n){return Object(i.a)(t(e),n)}}var i=n(11);e.a=function(t){return 1===t.length&&(t=r(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}},function(t,e,n){"use strict";function r(t,e){return[t,e]}e.a=r},function(t,e,n){"use strict";var r=n(69);e.a=function(t,e){var n=Object(r.a)(t,e);return n?Math.sqrt(n):n}},function(t,e,n){"use strict";var r=n(13);e.a=function(t,e){var n,i,o=t.length,a=0,s=-1,c=0,u=0;if(null==e)for(;++s<o;)isNaN(n=Object(r.a)(t[s]))||(i=n-c,c+=i/++a,u+=i*(n-c));else for(;++s<o;)isNaN(n=Object(r.a)(e(t[s],s,t)))||(i=n-c,c+=i/++a,u+=i*(n-c));if(a>1)return u/(a-1)}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=i=n;++a<o;)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});var r=Array.prototype,i=r.slice,o=r.map},function(t,e,n){"use strict";e.a=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}},function(t,e,n){"use strict";function r(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),c=r/Math.pow(10,i);return i>=0?(c>=o?10:c>=a?5:c>=s?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(c>=o?10:c>=a?5:c>=s?2:1)}function i(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),c=r/i;return c>=o?i*=10:c>=a?i*=5:c>=s&&(i*=2),e<t?-i:i}e.b=r,e.c=i;var o=Math.sqrt(50),a=Math.sqrt(10),s=Math.sqrt(2);e.a=function(t,e,n){var i,o,a,s=e<t,c=-1;if(s&&(i=t,t=e,e=i),0===(a=r(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++c<i;)o[c]=(t+c)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++c<i;)o[c]=(t-c)/a;return s&&o.reverse(),o}},function(t,e,n){"use strict";e.a=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&r>n&&(r=n);return r}},function(t,e,n){"use strict";function r(t){return t.length}var i=n(75);e.a=function(t){if(!(a=t.length))return[];for(var e=-1,n=Object(i.a)(t,r),o=new Array(n);++e<n;)for(var a,s=-1,c=o[e]=new Array(a);++s<a;)c[s]=t[s][e];return o}},function(t,e,n){"use strict";function r(t){function e(e){var r=e+"",i=n.get(r);if(!i){if(c!==a)return c;n.set(r,i=s.push(e))}return t[(i-1)%t.length]}var n=Object(i.map)(),s=[],c=a;return t=null==t?[]:o.b.call(t),e.domain=function(t){if(!arguments.length)return s.slice();s=[],n=Object(i.map)();for(var r,o,a=-1,c=t.length;++a<c;)n.has(o=(r=t[a])+"")||n.set(o,s.push(r));return e},e.range=function(n){return arguments.length?(t=o.b.call(n),e):t.slice()},e.unknown=function(t){return arguments.length?(c=t,e):c},e.copy=function(){return r().domain(s).range(t).unknown(c)},e}e.a=r;var i=n(31),o=(n.n(i),n(10)),a={name:"implicit"}},function(t,e,n){"use strict";e.a=function(t){return+t}},function(t,e,n){"use strict";var r=n(206);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});var i=(n(80),n(81));n.d(e,"c",function(){return i.a});var o=n(212);n.d(e,"d",function(){return o.a});var a=n(213);n.d(e,"e",function(){return a.a});var s=n(214);n.d(e,"f",function(){return s.a})},function(t,e,n){"use strict";var r=n(21),i=n(207),o=n(208),a=n(81),s=n(82),c=n(83),u=n(211),f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){function e(t){function e(t){var e,o,a,s=y,h=w;if("c"===v)h=x(t)+h,t="";else{t=+t;var g=t<0;if(t=x(Math.abs(t),_),g&&0==+t&&(g=!1),s=(g?"("===i?i:"-":"-"===i||"("===i?"":i)+s,h=h+("s"===v?f[8+c.b/3]:"")+(g&&"("===i?")":""),O)for(e=-1,o=t.length;++e<o;)if(48>(a=t.charCodeAt(e))||a>57){h=(46===a?d+t.slice(e+1):t.slice(e))+h,t=t.slice(0,e);break}}b&&!u&&(t=l(t,1/0));var M=s.length+t.length+h.length,C=M<m?new Array(m-M+1).join(n):"";switch(b&&u&&(t=l(C+t,C.length?m-h.length:1/0),C=""),r){case"<":t=s+t+h+C;break;case"=":t=s+C+t+h;break;case"^":t=C.slice(0,M=C.length>>1)+s+t+h+C.slice(M);break;default:t=C+s+t+h}return p(t)}t=Object(a.a)(t);var n=t.fill,r=t.align,i=t.sign,o=t.symbol,u=t.zero,m=t.width,b=t.comma,_=t.precision,v=t.type,y="$"===o?h[0]:"#"===o&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",w="$"===o?h[1]:/[%p]/.test(v)?g:"",x=s.a[v],O=!v||/[defgprs%]/.test(v);return _=null==_?v?6:12:/[gprs]/.test(v)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),e.toString=function(){return t+""},e}function n(t,n){var i=e((t=Object(a.a)(t),t.type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3))),s=Math.pow(10,-o),c=f[8+o/3];return function(t){return i(s*t)+c}}var l=t.grouping&&t.thousands?Object(i.a)(t.grouping,t.thousands):u.a,h=t.currency,d=t.decimal,p=t.numerals?Object(o.a)(t.numerals):u.a,g=t.percent||"%";return{format:e,formatPrefix:n}}},function(t,e,n){"use strict";function r(t){return new i(t)}function i(t){if(!(e=a.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",s=e[4]||"",c=!!e[5],u=e[6]&&+e[6],f=!!e[7],l=e[8]&&+e[8].slice(1),h=e[9]||"";"n"===h?(f=!0,h="g"):o.a[h]||(h=""),(c||"0"===n&&"="===r)&&(c=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=s,this.zero=c,this.width=u,this.comma=f,this.precision=l,this.type=h}e.a=r;var o=n(82),a=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;r.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type}},function(t,e,n){"use strict";var r=n(209),i=n(83),o=n(210);e.a={"":r.a,"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Object(o.a)(100*t,e)},r:o.a,s:i.a,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r,i=n(40);e.a=function(t,e){var n=Object(i.a)(t,e);if(!n)return t+"";var o=n[0],a=n[1],s=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,c=o.length;return s===c?o:s>c?o+new Array(s-c+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+Object(i.a)(t,Math.max(0,e+s-1))[0]}},function(t,e,n){"use strict";e.a=function(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}},function(t,e,n){"use strict";function r(t){return new Date(t)}function i(t){return t instanceof Date?+t:+new Date(+t)}function o(t,e,n,_,v,y,w,x,O){function M(r){return(w(r)<r?T:y(r)<r?S:v(r)<r?L:_(r)<r?E:e(r)<r?n(r)<r?P:D:t(r)<r?B:N)(r)}function C(e,n,r,i){if(null==e&&(e=10),"number"==typeof e){var o=Math.abs(r-n)/e,s=Object(a.c)(function(t){return t[2]}).right(F,o);s===F.length?(i=Object(a.h)(n/b,r/b,e),e=t):s?(s=F[o/F[s-1][2]<F[s][2]/o?s-1:s],i=s[1],e=s[0]):(i=Object(a.h)(n,r,e),e=x)}return null==i?e:e.every(i)}var k=Object(u.b)(u.c,s.c),A=k.invert,j=k.domain,T=O(".%L"),S=O(":%S"),L=O("%I:%M"),E=O("%I %p"),P=O("%a %d"),D=O("%b %d"),B=O("%B"),N=O("%Y"),F=[[w,1,l],[w,5,5*l],[w,15,15*l],[w,30,30*l],[y,1,h],[y,5,5*h],[y,15,15*h],[y,30,30*h],[v,1,d],[v,3,3*d],[v,6,6*d],[v,12,12*d],[_,1,p],[_,2,2*p],[n,1,g],[e,1,m],[e,3,3*m],[t,1,b]];return k.invert=function(t){return new Date(A(t))},k.domain=function(t){return arguments.length?j(c.a.call(t,i)):j().map(r)},k.ticks=function(t,e){var n,r=j(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=C(t,i,o,e),n=n?n.range(i,o+1):[],a?n.reverse():n},k.tickFormat=function(t,e){return null==e?M:O(e)},k.nice=function(t,e){var n=j();return(t=C(t,n[0],n[n.length-1],e))?j(Object(f.a)(n,t)):k},k.copy=function(){return Object(u.a)(k,o(t,e,n,_,v,y,w,x,O))},k}e.a=o;var a=n(4),s=n(5),c=(n(41),n(86),n(10)),u=n(20),f=n(84),l=1e3,h=60*l,d=60*h,p=24*d,g=7*p,m=30*p,b=365*p},function(t,e,n){"use strict";var r=n(42);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});n(87),n(88),n(234)},function(t,e,n){"use strict";function r(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function i(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function o(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function a(t){function e(t,e){return function(n){var r,i,o,a=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===t.charCodeAt(s)&&(a.push(t.slice(c,s)),null!=(i=et[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),c=s+1);return a.push(t.slice(c,s)),a.join("")}}function n(t,e){return function(n){var r=o(1900);if(a(r,t,n+="",0)!=n.length)return null;if("p"in r&&(r.H=r.H%12+12*r.p),"W"in r||"U"in r){"w"in r||(r.w="W"in r?1:0);var s="Z"in r?i(o(r.y)).getUTCDay():e(o(r.y)).getDay();r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(s+5)%7:r.w+7*r.U-(s+6)%7}return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,i(r)):e(r)}}function a(t,e,n,r){for(var i,o,a=0,s=e.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=Ft[i in et?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function s(t,e,n){var r=Ct.exec(e.slice(n));return r?(t.p=kt[r[0].toLowerCase()],n+r[0].length):-1}function c(t,e,n){var r=Tt.exec(e.slice(n));return r?(t.w=St[r[0].toLowerCase()],n+r[0].length):-1}function tt(t,e,n){var r=At.exec(e.slice(n));return r?(t.w=jt[r[0].toLowerCase()],n+r[0].length):-1}function nt(t,e,n){var r=Pt.exec(e.slice(n));return r?(t.m=Dt[r[0].toLowerCase()],n+r[0].length):-1}function rt(t,e,n){var r=Lt.exec(e.slice(n));return r?(t.m=Et[r[0].toLowerCase()],n+r[0].length):-1}function it(t,e,n){return a(t,bt,e,n)}function ot(t,e,n){return a(t,_t,e,n)}function at(t,e,n){return a(t,vt,e,n)}function st(t){return xt[t.getDay()]}function ct(t){return wt[t.getDay()]}function ut(t){return Mt[t.getMonth()]}function ft(t){return Ot[t.getMonth()]}function lt(t){return yt[+(t.getHours()>=12)]}function ht(t){return xt[t.getUTCDay()]}function dt(t){return wt[t.getUTCDay()]}function pt(t){return Mt[t.getUTCMonth()]}function gt(t){return Ot[t.getUTCMonth()]}function mt(t){return yt[+(t.getUTCHours()>=12)]}var bt=t.dateTime,_t=t.date,vt=t.time,yt=t.periods,wt=t.days,xt=t.shortDays,Ot=t.months,Mt=t.shortMonths,Ct=u(yt),kt=f(yt),At=u(wt),jt=f(wt),Tt=u(xt),St=f(xt),Lt=u(Ot),Et=f(Ot),Pt=u(Mt),Dt=f(Mt),Bt={a:st,A:ct,b:ut,B:ft,c:null,d:C,e:C,H:k,I:A,j:j,L:T,m:S,M:L,p:lt,S:E,U:P,w:D,W:B,x:null,X:null,y:N,Y:F,Z:I,"%":Z},Nt={a:ht,A:dt,b:pt,B:gt,c:null,d:U,e:U,H:R,I:q,j:W,L:Y,m:H,M:z,p:mt,S:X,U:$,w:K,W:G,x:null,X:null,y:Q,Y:V,Z:J,"%":Z},Ft={a:c,A:tt,b:nt,B:rt,c:it,d:_,e:_,H:y,I:y,j:v,L:O,m:b,M:w,p:s,S:x,U:h,w:l,W:d,x:ot,X:at,y:g,Y:p,Z:m,"%":M};return Bt.x=e(_t,Bt),Bt.X=e(vt,Bt),Bt.c=e(bt,Bt),Nt.x=e(_t,Nt),Nt.X=e(vt,Nt),Nt.c=e(bt,Nt),{format:function(t){var n=e(t+="",Bt);return n.toString=function(){return t},n},parse:function(t){var e=n(t+="",r);return e.toString=function(){return t},e},utcFormat:function(t){var n=e(t+="",Nt);return n.toString=function(){return t},n},utcParse:function(t){var e=n(t,i);return e.toString=function(){return t},e}}}function s(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function c(t){return t.replace(it,"\\$&")}function u(t){return new RegExp("^(?:"+t.map(c).join("|")+")","i")}function f(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function l(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function h(t,e,n){var r=nt.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function d(t,e,n){var r=nt.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function p(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function g(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function m(t,e,n){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function b(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function _(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function v(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function y(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function w(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function x(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function O(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function M(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function C(t,e){return s(t.getDate(),e,2)}function k(t,e){return s(t.getHours(),e,2)}function A(t,e){return s(t.getHours()%12||12,e,2)}function j(t,e){return s(1+tt.a.count(Object(tt.j)(t),t),e,3)}function T(t,e){return s(t.getMilliseconds(),e,3)}function S(t,e){return s(t.getMonth()+1,e,2)}function L(t,e){return s(t.getMinutes(),e,2)}function E(t,e){return s(t.getSeconds(),e,2)}function P(t,e){return s(tt.h.count(Object(tt.j)(t),t),e,2)}function D(t){return t.getDay()}function B(t,e){return s(tt.e.count(Object(tt.j)(t),t),e,2)}function N(t,e){return s(t.getFullYear()%100,e,2)}function F(t,e){return s(t.getFullYear()%1e4,e,4)}function I(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+s(e/60|0,"0",2)+s(e%60,"0",2)}function U(t,e){return s(t.getUTCDate(),e,2)}function R(t,e){return s(t.getUTCHours(),e,2)}function q(t,e){return s(t.getUTCHours()%12||12,e,2)}function W(t,e){return s(1+tt.k.count(Object(tt.t)(t),t),e,3)}function Y(t,e){return s(t.getUTCMilliseconds(),e,3)}function H(t,e){return s(t.getUTCMonth()+1,e,2)}function z(t,e){return s(t.getUTCMinutes(),e,2)}function X(t,e){return s(t.getUTCSeconds(),e,2)}function $(t,e){return s(tt.r.count(Object(tt.t)(t),t),e,2)}function K(t){return t.getUTCDay()}function G(t,e){return s(tt.o.count(Object(tt.t)(t),t),e,2)}function Q(t,e){return s(t.getUTCFullYear()%100,e,2)}function V(t,e){return s(t.getUTCFullYear()%1e4,e,4)}function J(){return"+0000"}function Z(){return"%"}e.a=a;var tt=n(41),et={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,rt=/^%/,it=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g},function(t,e,n){"use strict";function r(t){return t.toISOString()}n.d(e,"a",function(){return o});var i=n(42),o="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Object(i.b)(o)},function(t,e,n){(function(e,r){/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   4.1.1
 */
!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function i(t){return"function"==typeof t}function o(t){z=t}function a(t){X=t}function s(){return void 0!==H?function(){H(u)}:c()}function c(){var t=setTimeout;return function(){return t(u,1)}}function u(){for(var t=0;t<Y;t+=2){(0,J[t])(J[t+1]),J[t]=void 0,J[t+1]=void 0}Y=0}function f(t,e){var n=arguments,r=this,i=new this.constructor(h);void 0===i[tt]&&L(i);var o=r._state;return o?function(){var t=n[o-1];X(function(){return j(o,i,t,r._result)})}():M(r,i,t,e),i}function l(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(h);return y(n,t),n}function h(){}function d(){return new TypeError("You cannot resolve a promise with itself")}function p(){return new TypeError("A promises callback cannot return that same promise.")}function g(t){try{return t.then}catch(t){return it.error=t,it}}function m(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function b(t,e,n){X(function(t){var r=!1,i=m(n,e,function(n){r||(r=!0,e!==n?y(t,n):x(t,n))},function(e){r||(r=!0,O(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&i&&(r=!0,O(t,i))},t)}function _(t,e){e._state===nt?x(t,e._result):e._state===rt?O(t,e._result):M(e,void 0,function(e){return y(t,e)},function(e){return O(t,e)})}function v(t,e,n){e.constructor===t.constructor&&n===f&&e.constructor.resolve===l?_(t,e):n===it?(O(t,it.error),it.error=null):void 0===n?x(t,e):i(n)?b(t,e,n):x(t,e)}function y(e,n){e===n?O(e,d()):t(n)?v(e,n,g(n)):x(e,n)}function w(t){t._onerror&&t._onerror(t._result),C(t)}function x(t,e){t._state===et&&(t._result=e,t._state=nt,0!==t._subscribers.length&&X(C,t))}function O(t,e){t._state===et&&(t._state=rt,t._result=e,X(w,t))}function M(t,e,n,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+nt]=n,i[o+rt]=r,0===o&&t._state&&X(C,t)}function C(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,i=void 0,o=t._result,a=0;a<e.length;a+=3)r=e[a],i=e[a+n],r?j(n,r,i,o):i(o);t._subscribers.length=0}}function k(){this.error=null}function A(t,e){try{return t(e)}catch(t){return ot.error=t,ot}}function j(t,e,n,r){var o=i(n),a=void 0,s=void 0,c=void 0,u=void 0;if(o){if(a=A(n,r),a===ot?(u=!0,s=a.error,a.error=null):c=!0,e===a)return void O(e,p())}else a=r,c=!0;e._state!==et||(o&&c?y(e,a):u?O(e,s):t===nt?x(e,a):t===rt&&O(e,a))}function T(t,e){try{e(function(e){y(t,e)},function(e){O(t,e)})}catch(e){O(t,e)}}function S(){return at++}function L(t){t[tt]=at++,t._state=void 0,t._result=void 0,t._subscribers=[]}function E(t,e){this._instanceConstructor=t,this.promise=new t(h),this.promise[tt]||L(this.promise),W(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?x(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&x(this.promise,this._result))):O(this.promise,P())}function P(){return new Error("Array Methods must be provided an Array")}function D(t){return new E(this,t).promise}function B(t){var e=this;return new e(W(t)?function(n,r){for(var i=t.length,o=0;o<i;o++)e.resolve(t[o]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function N(t){var e=this,n=new e(h);return O(n,t),n}function F(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function I(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function U(t){this[tt]=S(),this._result=this._state=void 0,this._subscribers=[],h!==t&&("function"!=typeof t&&F(),this instanceof U?T(this,t):I())}function R(){var t=void 0;if(void 0!==r)t=r;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=U}var q=void 0;q=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var W=q,Y=0,H=void 0,z=void 0,X=function(t,e){J[Y]=t,J[Y+1]=e,2===(Y+=2)&&(z?z(u):Z())},$="undefined"!=typeof window?window:void 0,K=$||{},G=K.MutationObserver||K.WebKitMutationObserver,Q="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),V="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,J=new Array(1e3),Z=void 0;Z=Q?function(){return function(){return e.nextTick(u)}}():G?function(){var t=0,e=new G(u),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():V?function(){var t=new MessageChannel;return t.port1.onmessage=u,function(){return t.port2.postMessage(0)}}():void 0===$?function(){try{var t=n(249);return H=t.runOnLoop||t.runOnContext,s()}catch(t){return c()}}():c();var tt=Math.random().toString(36).substring(16),et=void 0,nt=1,rt=2,it=new k,ot=new k,at=0;return E.prototype._enumerate=function(t){for(var e=0;this._state===et&&e<t.length;e++)this._eachEntry(t[e],e)},E.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===l){var i=g(t);if(i===f&&t._state!==et)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(n===U){var o=new n(h);v(o,t,i),this._willSettleAt(o,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},E.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===et&&(this._remaining--,t===rt?O(r,n):this._result[e]=n),0===this._remaining&&x(r,this._result)},E.prototype._willSettleAt=function(t,e){var n=this;M(t,void 0,function(t){return n._settledAt(nt,e,t)},function(t){return n._settledAt(rt,e,t)})},U.all=D,U.race=B,U.resolve=l,U.reject=N,U._setScheduler=o,U._setAsap=a,U._asap=X,U.prototype={constructor:U,then:f,catch:function(t){return this.then(null,t)}},U.polyfill=R,U.Promise=U,U})}).call(e,n(247),n(248))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return o});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e){r(this,t),this._config=e,this._description=this._normalize(this._config.ploidyDesc)}return i(t,[{key:"getChromosomesNumber",value:function(t){if(this._config.ploidyDesc){var e=this._config.ploidyDesc[t];return e instanceof Object?Object.keys(e)[0].length:e.length}return this._config.ploidy||1}},{key:"_normalize",value:function(t){var e,n,r;if(!t)return t;e=[];for(n in t)r=t[n],"string"==typeof r?("vertical"===this._config.orientation&&(r=r.split("").reverse()),e.push({ancestors:r,existence:this._getexistenceArray(r.length)})):e.push({ancestors:Object.keys(r)[0],existence:r[Object.keys(r)[0]]});return e}},{key:"_getexistenceArray",value:function(t){for(var e=[],n=0;n<t;n++)e.push("11");return e}},{key:"getSetSize",value:function(t){return this._description?this._description[t].ancestors.length:1}},{key:"getAncestor",value:function(t,e){return this._description?this._description[t].ancestors[e]:""}},{key:"exists",value:function(t,e,n){if(this._description){var r=this._description[t].existence[e][n];return Number(r)>0}return!0}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(92);window.Ideogram=r.a,e.default=r.a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(0),o=n(16),a=n(50),s=n(8),c=n(64),u=n(4),f=n(43),l=(n.n(f),n(245)),h=n(246),d=n(252),p=n(254),g=n(255),m=n(256),b=n(257),_=n(258),v=n(259),y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),w=Object.assign({},i,o,a,s);w.promise=f,w.scaleLinear=c.a,w.max=u.d;var x=function(){function t(e){r(this,t),this.configure=h.a,this.initDrawChromosomes=h.c,this.onLoad=h.d,this.init=h.b,this.onDrawAnnots=d.h,this.processAnnotData=d.i,this.initAnnotSettings=d.g,this.fetchAnnots=d.d,this.drawAnnots=d.a,this.getHistogramBars=d.f,this.fillAnnots=d.e,this.drawProcessedAnnots=d.b,this.drawSynteny=d.c,this.eutils=p.d,this.esearch=p.b,this.esummary=p.c,this.elink=p.a,this.getTaxidFromEutils=p.g,this.getOrganismFromEutils=p.f,this.getTaxids=p.h,this.getAssemblyAndChromosomesFromEutils=p.e,this.getBands=g.c,this.drawBandLabels=g.a,this.getBandColorGradients=g.b,this.processBandData=g.d,this.onBrushMove=m.b,this.createBrush=m.a,this.drawSexChromosomes=b.a,this.setSexChromosomes=b.b,this.convertBpToPx=_.a,this.convertPxToBp=_.b,this.assemblyIsAccession=v.a,this.getDataDir=v.e,this.getChromosomeModel=v.d,this.drawChromosomeLabels=v.c,this.rotateChromosomeLabels=v.h,this.round=v.i,this.drawChromosome=v.b,this.rotateAndToggleDisplay=v.g,this.getSvg=v.f,this.configure(e)}return y(t,null,[{key:"slugify",value:function(t){return t.toLowerCase().replace(" ","-")}},{key:"naturalSort",value:function(e,n){var r,i,o=/(^([+\-]?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?(?=\D|\s|$))|^0x[\da-fA-F]+$|\d+)/g,a=/^\s+|\s+$/g,s=/\s+/g,c=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,u=/^0x[0-9a-f]+$/i,f=/^0/,l=function(e){return(t.naturalSort.insensitive&&String(e).toLowerCase()||String(e)).replace(a,"")},h=l(e),d=l(n),p=h.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),g=d.replace(o,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),m=parseInt(h.match(u),16)||1!==p.length&&Date.parse(h),b=parseInt(d.match(u),16)||m&&d.match(c)&&Date.parse(d)||null,_=function(t,e){return(!t.match(f)||1==e)&&parseFloat(t)||t.replace(s," ").replace(a,"")||0};if(b){if(m<b)return-1;if(m>b)return 1}for(var v=0,y=p.length,w=g.length,x=Math.max(y,w);v<x;v++){if(r=_(p[v]||"",y),i=_(g[v]||"",w),isNaN(r)!==isNaN(i))return isNaN(r)?1:-1;if(/[^\x00-\x80]/.test(r+i)&&r.localeCompare){var O=r.localeCompare(i);return O/Math.abs(O)}if(r<i)return-1;if(r>i)return 1}}},{key:"sortChromosomes",value:function(e,n){var r="nuclear"===e.type,i="nuclear"===n.type,o="chloroplast"===e.type,a="chloroplast"===n.type,s="mitochondrion"===e.type,c="mitochondrion"===n.type;return r&&i?t.naturalSort(e.name,n.name):!r&&i?1:s&&a?1:o&&c?-1:s||o||!c&&!a?void 0:-1}},{key:"version",get:function(){return l.a}},{key:"d3",get:function(){return w}}]),t}();e.a=x},function(t,e,n){"use strict";function r(){return new i}function i(){this._="@"+(++o).toString(36)}e.a=r;var o=0;i.prototype=r.prototype={constructor:i,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},function(t,e,n){"use strict";var r=n(25),i=n(27);e.a=function(t){var e=Object(r.a)();return e.changedTouches&&(e=e.changedTouches[0]),Object(i.a)(t,e)}},function(t,e,n){"use strict";var r=n(2);e.a=function(t){return"string"==typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},function(t,e,n){"use strict";var r=n(2),i=n(28);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,o=new Array(n),a=0;a<n;++a)for(var s,c,u=e[a],f=u.length,l=o[a]=new Array(f),h=0;h<f;++h)(s=u[h])&&(c=t.call(s,s.__data__,h,u))&&("__data__"in s&&(c.__data__=s.__data__),l[h]=c);return new r.a(o,this._parents)}},function(t,e,n){"use strict";var r=n(2),i=n(45);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,o=[],a=[],s=0;s<n;++s)for(var c,u=e[s],f=u.length,l=0;l<f;++l)(c=u[l])&&(o.push(t.call(c,c.__data__,l,u)),a.push(c));return new r.a(o,a)}},function(t,e,n){"use strict";var r=n(2),i=n(44);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,o=new Array(n),a=0;a<n;++a)for(var s,c=e[a],u=c.length,f=o[a]=[],l=0;l<u;++l)(s=c[l])&&t.call(s,s.__data__,l,c)&&f.push(s);return new r.a(o,this._parents)}},function(t,e,n){"use strict";function r(t,e,n,r,i,o){for(var s,c=0,u=e.length,f=o.length;c<f;++c)(s=e[c])?(s.__data__=o[c],r[c]=s):n[c]=new a.a(t,o[c]);for(;c<u;++c)(s=e[c])&&(i[c]=s)}function i(t,e,n,r,i,o,s){var u,f,l,h={},d=e.length,p=o.length,g=new Array(d);for(u=0;u<d;++u)(f=e[u])&&(g[u]=l=c+s.call(f,f.__data__,u,e),l in h?i[u]=f:h[l]=f);for(u=0;u<p;++u)l=c+s.call(t,o[u],u,o),(f=h[l])?(r[u]=f,f.__data__=o[u],h[l]=null):n[u]=new a.a(t,o[u]);for(u=0;u<d;++u)(f=e[u])&&h[g[u]]===f&&(i[u]=f)}var o=n(2),a=n(46),s=n(100),c="$";e.a=function(t,e){if(!t)return b=new Array(this.size()),d=-1,this.each(function(t){b[++d]=t}),b;var n=e?i:r,a=this._parents,c=this._groups;"function"!=typeof t&&(t=Object(s.a)(t));for(var u=c.length,f=new Array(u),l=new Array(u),h=new Array(u),d=0;d<u;++d){var p=a[d],g=c[d],m=g.length,b=t.call(p,p&&p.__data__,d,a),_=b.length,v=l[d]=new Array(_),y=f[d]=new Array(_);n(p,g,v,y,h[d]=new Array(m),b,e);for(var w,x,O=0,M=0;O<_;++O)if(w=v[O]){for(O>=M&&(M=O+1);!(x=y[M])&&++M<_;);w._next=x||null}}return f=new o.a(f,a),f._enter=l,f._exit=h,f}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(47),i=n(2);e.a=function(){return new i.a(this._exit||this._groups.map(r.a),this._parents)}},function(t,e,n){"use strict";var r=n(2);e.a=function(t){for(var e=this._groups,n=t._groups,i=e.length,o=n.length,a=Math.min(i,o),s=new Array(i),c=0;c<a;++c)for(var u,f=e[c],l=n[c],h=f.length,d=s[c]=new Array(h),p=0;p<h;++p)(u=f[p]||l[p])&&(d[p]=u);for(;c<i;++c)s[c]=e[c];return new r.a(s,this._parents)}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this}},function(t,e,n){"use strict";function r(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var i=n(2);e.a=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=r);for(var n=this._groups,o=n.length,a=new Array(o),s=0;s<o;++s){for(var c,u=n[s],f=u.length,l=a[s]=new Array(f),h=0;h<f;++h)(c=u[h])&&(l[h]=c);l.sort(e)}return new i.a(a,this._parents).order()}},function(t,e,n){"use strict";e.a=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}},function(t,e,n){"use strict";e.a=function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}},function(t,e,n){"use strict";e.a=function(){var t=0;return this.each(function(){++t}),t}},function(t,e,n){"use strict";e.a=function(){return!this.node()}},function(t,e,n){"use strict";e.a=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this}},function(t,e,n){"use strict";function r(t){return function(){this.removeAttribute(t)}}function i(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o(t,e){return function(){this.setAttribute(t,e)}}function a(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function s(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function c(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var u=n(23);e.a=function(t,e){var n=Object(u.a)(t);if(arguments.length<2){var f=this.node();return n.local?f.getAttributeNS(n.space,n.local):f.getAttribute(n)}return this.each((null==e?n.local?i:r:"function"==typeof e?n.local?c:s:n.local?a:o)(n,e))}},function(t,e,n){"use strict";function r(t){return function(){delete this[t]}}function i(t,e){return function(){this[t]=e}}function o(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}e.a=function(t,e){return arguments.length>1?this.each((null==e?r:"function"==typeof e?o:i)(t,e)):this.node()[t]}},function(t,e,n){"use strict";function r(t){return t.trim().split(/^|\s+/)}function i(t){return t.classList||new o(t)}function o(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function a(t,e){for(var n=i(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function s(t,e){for(var n=i(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function c(t){return function(){a(this,t)}}function u(t){return function(){s(this,t)}}function f(t,e){return function(){(e.apply(this,arguments)?a:s)(this,t)}}o.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},e.a=function(t,e){var n=r(t+"");if(arguments.length<2){for(var o=i(this.node()),a=-1,s=n.length;++a<s;)if(!o.contains(n[a]))return!1;return!0}return this.each(("function"==typeof e?f:e?c:u)(n,e))}},function(t,e,n){"use strict";function r(){this.textContent=""}function i(t){return function(){this.textContent=t}}function o(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}e.a=function(t){return arguments.length?this.each(null==t?r:("function"==typeof t?o:i)(t)):this.node().textContent}},function(t,e,n){"use strict";function r(){this.innerHTML=""}function i(t){return function(){this.innerHTML=t}}function o(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}e.a=function(t){return arguments.length?this.each(null==t?r:("function"==typeof t?o:i)(t)):this.node().innerHTML}},function(t,e,n){"use strict";function r(){this.nextSibling&&this.parentNode.appendChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";function r(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";var r=n(22);e.a=function(t){var e="function"==typeof t?t:Object(r.a)(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}},function(t,e,n){"use strict";function r(){return null}var i=n(22),o=n(28);e.a=function(t,e){var n="function"==typeof t?t:Object(i.a)(t),a=null==e?r:"function"==typeof e?e:Object(o.a)(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})}},function(t,e,n){"use strict";function r(){var t=this.parentNode;t&&t.removeChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.property("__data__",t):this.node().__data__}},function(t,e,n){"use strict";function r(t,e,n){var r=Object(a.a)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function i(t,e){return function(){return r(this,t,e)}}function o(t,e){return function(){return r(this,t,e.apply(this,arguments))}}var a=n(29);e.a=function(t,e){return this.each(("function"==typeof e?o:i)(t,e))}},function(t,e,n){"use strict";var r=n(2);e.a=function(t){return"string"==typeof t?new r.a([document.querySelectorAll(t)],[document.documentElement]):new r.a([null==t?[]:t],r.c)}},function(t,e,n){"use strict";var r=n(25),i=n(27);e.a=function(t,e,n){arguments.length<3&&(n=e,e=Object(r.a)().changedTouches);for(var o,a=0,s=e?e.length:0;a<s;++a)if((o=e[a]).identifier===n)return Object(i.a)(t,o);return null}},function(t,e,n){"use strict";var r=n(25),i=n(27);e.a=function(t,e){null==e&&(e=Object(r.a)().touches);for(var n=0,o=e?e.length:0,a=new Array(o);n<o;++n)a[n]=Object(i.a)(t,e[n]);return a}},function(t,e,n){"use strict";function r(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new i(r)}function i(t){this._=t}function o(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function a(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function s(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=c,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}var c={value:function(){}};i.prototype=r.prototype={constructor:i,on:function(t,e){var n,r=this._,i=o(t+"",r),c=-1,u=i.length;{if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c<u;)if(n=(t=i[c]).type)r[n]=s(r[n],t.name,e);else if(null==e)for(n in r)r[n]=s(r[n],t.name,null);return this}for(;++c<u;)if((n=(t=i[c]).type)&&(n=a(r[n],t.name)))return n}},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new i(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}},e.a=r},function(t,e,n){"use strict";var r=n(17);e.a=Object(r.a)("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)})},function(t,e,n){"use strict";var r=n(17);e.a=Object(r.a)("application/json",function(t){return JSON.parse(t.responseText)})},function(t,e,n){"use strict";var r=n(17);e.a=Object(r.a)("text/plain",function(t){return t.responseText})},function(t,e,n){"use strict";var r=n(17);e.a=Object(r.a)("application/xml",function(t){var e=t.responseXML;if(!e)throw new Error("parse error");return e})},function(t,e,n){"use strict";var r=n(32),i=(n.n(r),n(49));e.a=Object(i.a)("text/csv",r.csvParse)},function(t,e,n){"use strict";var r=n(32),i=(n.n(r),n(49));e.a=Object(i.a)("text/tab-separated-values",r.tsvParse)},function(t,e,n){"use strict";function r(t){return{type:t}}function i(){return!g.event.button}function o(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function a(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function s(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function c(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function u(){return l(M)}function f(){return l(C)}function l(t){function e(e){var i=e.property("__brush",l).selectAll(".overlay").data([r("overlay")]);i.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",A.overlay).merge(i).each(function(){var t=a(this).extent;Object(g.select)(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),e.selectAll(".selection").data([r("selection")]).enter().append("rect").attr("class","selection").attr("cursor",A.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var o=e.selectAll(".handle").data(t.handles,function(t){return t.type});o.exit().remove(),o.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return A[t.type]}),e.each(n).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",f)}function n(){var t=Object(g.select)(this),e=a(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-B/2:e[0][0]-B/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-B/2:e[0][1]-B/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+B:B}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+B:B})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,e){return t.__brush.emitter||new u(t,e)}function u(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function f(){function e(){var t=Object(g.mouse)(R);!J||I||U||(Math.abs(t[0]-tt[0])>Math.abs(t[1]-tt[1])?U=!0:I=!0),tt=t,F=!0,Object(v.a)(),r()}function r(){var t;switch(B=tt[0]-Z[0],N=tt[1]-Z[1],W){case w:case y:Y&&(B=Math.max(K-f,Math.min(Q-b,B)),l=f+B,_=b+B),H&&(N=Math.max(G-h,Math.min(V-E,N)),p=h+N,D=E+N);break;case x:Y<0?(B=Math.max(K-f,Math.min(Q-f,B)),l=f+B,_=b):Y>0&&(B=Math.max(K-b,Math.min(Q-b,B)),l=f,_=b+B),H<0?(N=Math.max(G-h,Math.min(V-h,N)),p=h+N,D=E):H>0&&(N=Math.max(G-E,Math.min(V-E,N)),p=h,D=E+N);break;case O:Y&&(l=Math.max(K,Math.min(Q,f-B*Y)),_=Math.max(K,Math.min(Q,b+B*Y))),H&&(p=Math.max(G,Math.min(V,h-N*H)),D=Math.max(G,Math.min(V,E+N*H)))}_<l&&(Y*=-1,t=f,f=b,b=t,t=l,l=_,_=t,q in j&&rt.attr("cursor",A[q=j[q]])),D<p&&(H*=-1,t=h,h=E,E=t,t=p,p=D,D=t,q in T&&rt.attr("cursor",A[q=T[q]])),z.selection&&($=z.selection),I&&(l=$[0][0],_=$[1][0]),U&&(p=$[0][1],D=$[1][1]),$[0][0]===l&&$[0][1]===p&&$[1][0]===_&&$[1][1]===D||(z.selection=[[l,p],[_,D]],n.call(R),et.brush())}function i(){if(Object(v.b)(),g.event.touches){if(g.event.touches.length)return;k&&clearTimeout(k),k=setTimeout(function(){k=null},500),nt.on("touchmove.brush touchend.brush touchcancel.brush",null)}else Object(d.b)(g.event.view,F),it.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);nt.attr("pointer-events","all"),rt.attr("cursor",A.overlay),z.selection&&($=z.selection),s($)&&(z.selection=null,n.call(R)),et.end()}function o(){switch(g.event.keyCode){case 16:J=Y&&H;break;case 18:W===x&&(Y&&(b=_-B*Y,f=l+B*Y),H&&(E=D-N*H,h=p+N*H),W=O,r());break;case 32:W!==x&&W!==O||(Y<0?b=_-B:Y>0&&(f=l-B),H<0?E=D-N:H>0&&(h=p-N),W=w,rt.attr("cursor",A.selection),r());break;default:return}Object(v.a)()}function u(){switch(g.event.keyCode){case 16:J&&(I=U=J=!1,r());break;case 18:W===O&&(Y<0?b=_:Y>0&&(f=l),H<0?E=D:H>0&&(h=p),W=x,r());break;case 32:W===w&&(g.event.altKey?(Y&&(b=_-B*Y,f=l+B*Y),H&&(E=D-N*H,h=p+N*H),W=O):(Y<0?b=_:Y>0&&(f=l),H<0?E=D:H>0&&(h=p),W=x),rt.attr("cursor",A[q]),r());break;default:return}Object(v.a)()}if(g.event.touches){if(g.event.changedTouches.length<g.event.touches.length)return Object(v.a)()}else if(k)return;if(P.apply(this,arguments)){var f,l,h,p,b,_,E,D,B,N,F,I,U,R=this,q=g.event.target.__data__.type,W="selection"===(g.event.metaKey?q="overlay":q)?y:g.event.altKey?O:x,Y=t===C?null:S[q],H=t===M?null:L[q],z=a(R),X=z.extent,$=z.selection,K=X[0][0],G=X[0][1],Q=X[1][0],V=X[1][1],J=Y&&H&&g.event.shiftKey,Z=Object(g.mouse)(R),tt=Z,et=c(R,arguments).beforestart();"overlay"===q?z.selection=$=[[f=t===C?K:Z[0],h=t===M?G:Z[1]],[b=t===C?Q:f,E=t===M?V:h]]:(f=$[0][0],h=$[0][1],b=$[1][0],E=$[1][1]),l=f,p=h,_=b,D=E;var nt=Object(g.select)(R).attr("pointer-events","none"),rt=nt.selectAll(".overlay").attr("cursor",A[q]);if(g.event.touches)nt.on("touchmove.brush",e,!0).on("touchend.brush touchcancel.brush",i,!0);else{var it=Object(g.select)(g.event.view).on("keydown.brush",o,!0).on("keyup.brush",u,!0).on("mousemove.brush",e,!0).on("mouseup.brush",i,!0);Object(d.a)(g.event.view)}Object(v.b)(),Object(m.a)(R),n.call(R),et.start()}}function l(){var e=this.__brush||{selection:null};return e.extent=E.apply(this,arguments),e.dim=t,e}var k,E=o,P=i,D=Object(h.dispatch)(e,"start","brush","end"),B=6;return e.move=function(e,r){e.selection?e.on("start.brush",function(){c(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){c(this,arguments).end()}).tween("brush",function(){function e(t){o.selection=1===t&&s(f)?null:l(t),n.call(i),a.brush()}var i=this,o=i.__brush,a=c(i,arguments),u=o.selection,f=t.input("function"==typeof r?r.apply(this,arguments):r,o.extent),l=Object(p.a)(u,f);return u&&f?e:e(1)}):e.each(function(){var e=this,i=arguments,o=e.__brush,a=t.input("function"==typeof r?r.apply(e,i):r,o.extent),u=c(e,i).beforestart();Object(m.a)(e),o.selection=null==a||s(a)?null:a,n.call(e),u.start().brush().end()})},u.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){Object(g.customEvent)(new _.a(e,n,t.output(this.state.selection)),D.apply,D,[n,this.that,this.args])}},e.extent=function(t){return arguments.length?(E="function"==typeof t?t:Object(b.a)([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):E},e.filter=function(t){return arguments.length?(P="function"==typeof t?t:Object(b.a)(!!t),e):P},e.handleSize=function(t){return arguments.length?(B=+t,e):B},e.on=function(){var t=D.on.apply(D,arguments);return t===D?e:t},e}e.a=c,e.b=u,e.c=f;var h=n(8),d=n(134),p=n(5),g=n(0),m=n(150),b=n(184),_=n(185),v=n(186),y={name:"drag"},w={name:"space"},x={name:"handle"},O={name:"center"},M={name:"x",handles:["e","w"].map(r),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},C={name:"y",handles:["n","s"].map(r),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},k={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(r),input:function(t){return t},output:function(t){return t}},A={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},j={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},T={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},S={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},L={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};e.d=function(){return l(k)}},function(t,e,n){"use strict";var r=(n(135),n(51));n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b})},function(t,e,n){"use strict";n(8),n(0),n(51),n(52),n(136),n(137)},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s,c,u){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=s,this.dy=c,this._=u}e.a=r,r.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t}},function(t,e,n){"use strict";function r(t){if(t instanceof o)return new o(t.l,t.a,t.b,t.opacity);if(t instanceof h){var e=t.h*g.a;return new o(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof p.b||(t=Object(p.h)(t));var n=u(t.r),r=u(t.g),i=u(t.b),s=a((.4124564*n+.3575761*r+.1804375*i)/m),c=a((.2126729*n+.7151522*r+.072175*i)/b);return new o(116*c-16,500*(s-c),200*(c-a((.0193339*n+.119192*r+.9503041*i)/_)),t.opacity)}function i(t,e,n,i){return 1===arguments.length?r(t):new o(t,e,n,null==i?1:i)}function o(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function a(t){return t>x?Math.pow(t,1/3):t/w+v}function s(t){return t>y?t*t*t:w*(t-v)}function c(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function u(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function f(t){if(t instanceof h)return new h(t.h,t.c,t.l,t.opacity);t instanceof o||(t=r(t));var e=Math.atan2(t.b,t.a)*g.b;return new h(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function l(t,e,n,r){return 1===arguments.length?f(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}e.a=i,e.b=l;var d=n(35),p=n(34),g=n(53),m=.95047,b=1,_=1.08883,v=4/29,y=6/29,w=3*y*y,x=y*y*y;Object(d.a)(o,i,Object(d.b)(p.a,{brighter:function(t){return new o(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new o(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=b*s(t),e=m*s(e),n=_*s(n),new p.b(c(3.2404542*e-1.5371385*t-.4985314*n),c(-.969266*e+1.8760108*t+.041556*n),c(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Object(d.a)(h,l,Object(d.b)(p.a,{brighter:function(t){return new h(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new h(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(t,e,n){"use strict";function r(t){if(t instanceof o)return new o(t.h,t.s,t.l,t.opacity);t instanceof s.b||(t=Object(s.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(m*r+p*e-g*n)/(m+p-g),a=r-i,u=(d*(n-i)-l*a)/h,f=Math.sqrt(u*u+a*a)/(d*i*(1-i)),b=f?Math.atan2(u,a)*c.b-120:NaN;return new o(b<0?b+360:b,f,i,t.opacity)}function i(t,e,n,i){return 1===arguments.length?r(t):new o(t,e,n,null==i?1:i)}function o(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.a=i;var a=n(35),s=n(34),c=n(53),u=-.14861,f=1.78277,l=-.29227,h=-.90649,d=1.97294,p=d*h,g=d*f,m=f*l-h*u;Object(a.a)(o,i,Object(a.b)(s.a,{brighter:function(t){return t=null==t?s.c:Math.pow(s.c,t),new o(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?s.d:Math.pow(s.d,t),new o(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*c.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new s.b(255*(e+n*(u*r+f*i)),255*(e+n*(l*r+h*i)),255*(e+n*(d*r)),this.opacity)}}))},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";function r(t,e,n,r){function o(t){return t.length?t.pop()+" ":""}function a(t,r,o,a,s,c){if(t!==o||r!==a){var u=s.push("translate(",null,e,null,n);c.push({i:u-4,x:Object(i.a)(t,o)},{i:u-2,x:Object(i.a)(r,a)})}else(o||a)&&s.push("translate("+o+e+a+n)}function s(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Object(i.a)(t,e)})):e&&n.push(o(n)+"rotate("+e+r)}function c(t,e,n,a){t!==e?a.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Object(i.a)(t,e)}):e&&n.push(o(n)+"skewX("+e+r)}function u(t,e,n,r,a,s){if(t!==n||e!==r){var c=a.push(o(a)+"scale(",null,",",null,")");s.push({i:c-4,x:Object(i.a)(t,n)},{i:c-2,x:Object(i.a)(e,r)})}else 1===n&&1===r||a.push(o(a)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),a(e.translateX,e.translateY,n.translateX,n.translateY,r,i),s(e.rotate,n.rotate,r,i),c(e.skewX,n.skewX,r,i),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){for(var e,n=-1,o=i.length;++n<o;)r[(e=i[n]).i]=e.x(t);return r.join("")}}}n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s});var i=n(18),o=n(142),a=r(o.a,"px, ","px)","deg)"),s=r(o.b,", ",")",")")},function(t,e,n){"use strict";function r(t){return"none"===t?u.b:(o||(o=document.createElement("DIV"),a=document.documentElement,s=document.defaultView),o.style.transform=t,t=s.getComputedStyle(a.appendChild(o),null).getPropertyValue("transform"),a.removeChild(o),t=t.slice(7,-1).split(","),Object(u.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function i(t){return null==t?u.b:(c||(c=document.createElementNS("http://www.w3.org/2000/svg","g")),c.setAttribute("transform",t),(t=c.transform.baseVal.consolidate())?(t=t.matrix,Object(u.a)(t.a,t.b,t.c,t.d,t.e,t.f)):u.b)}e.a=r,e.b=i;var o,a,s,c,u=n(143)},function(t,e,n){"use strict";n.d(e,"b",function(){return i});var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,i,o,a){var s,c,u;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(u=t*n+e*i)&&(n-=t*u,i-=e*u),(c=Math.sqrt(n*n+i*i))&&(n/=c,i/=c,u/=c),t*i<e*n&&(t=-t,e=-e,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*r,skewX:Math.atan(u)*r,scaleX:s,scaleY:c}}},function(t,e,n){"use strict";Math.SQRT2},function(t,e,n){"use strict";function r(t){return function(e,n){var r=t((e=Object(i.d)(e)).h,(n=Object(i.d)(n)).h),a=Object(o.a)(e.s,n.s),s=Object(o.a)(e.l,n.l),c=Object(o.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=a(t),e.l=s(t),e.opacity=c(t),e+""}}}var i=n(6),o=n(12);r(o.c),r(o.a)},function(t,e,n){"use strict";n(6),n(12)},function(t,e,n){"use strict";function r(t){return function(e,n){var r=t((e=Object(i.c)(e)).h,(n=Object(i.c)(n)).h),a=Object(o.a)(e.c,n.c),s=Object(o.a)(e.l,n.l),c=Object(o.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=a(t),e.l=s(t),e.opacity=c(t),e+""}}}var i=n(6),o=n(12);r(o.c),r(o.a)},function(t,e,n){"use strict";function r(t){return function e(n){function r(e,r){var a=t((e=Object(i.b)(e)).h,(r=Object(i.b)(r)).h),s=Object(o.a)(e.s,r.s),c=Object(o.a)(e.l,r.l),u=Object(o.a)(e.opacity,r.opacity);return function(t){return e.h=a(t),e.s=s(t),e.l=c(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}n.d(e,"a",function(){return a});var i=n(6),o=n(12),a=(r(o.c),r(o.a))},function(t,e,n){"use strict"},function(t,e,n){"use strict";var r=(n(151),n(9),n(183),n(61));n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";var r=n(0),i=n(152),o=n(155);r.selection.prototype.interrupt=i.a,r.selection.prototype.transition=o.a},function(t,e,n){"use strict";var r=n(61);e.a=function(t){return this.each(function(){Object(r.a)(this,t)})}},function(t,e,n){"use strict";var r=n(37);e.a=function(t,e,n){var i=new r.a;return e=null==e?0:+e,i.restart(function(n){i.stop(),t(n+e)},e,n),i}},function(t,e,n){"use strict";n(37)},function(t,e,n){"use strict";function r(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return c.time=Object(s.a)(),c;return n}var i=n(9),o=n(3),a=n(172),s=n(62),c={time:null,delay:0,duration:250,ease:a.a};e.a=function(t){var e,n;t instanceof i.a?(e=t._id,t=t._name):(e=Object(i.b)(),(n=c).time=Object(s.a)(),t=null==t?null:t+"");for(var a=this._groups,u=a.length,f=0;f<u;++f)for(var l,h=a[f],d=h.length,p=0;p<d;++p)(l=h[p])&&Object(o.e)(l,t,e,p,h,n||r(l,e));return new i.a(a,this._parents,t,e)}},function(t,e,n){"use strict";function r(t){return function(){this.removeAttribute(t)}}function i(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o(t,e,n){var r,i;return function(){var o=this.getAttribute(t);return o===n?null:o===r?i:i=e(r=o,n)}}function a(t,e,n){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===n?null:o===r?i:i=e(r=o,n)}}function s(t,e,n){var r,i,o;return function(){var a,s=n(this);return null==s?void this.removeAttribute(t):(a=this.getAttribute(t),a===s?null:a===r&&s===i?o:o=e(r=a,i=s))}}function c(t,e,n){var r,i,o;return function(){var a,s=n(this);return null==s?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),a===s?null:a===r&&s===i?o:o=e(r=a,i=s))}}var u=n(5),f=n(0),l=n(19),h=n(63);e.a=function(t,e){var n=Object(f.namespace)(t),d="transform"===n?u.h:h.a;return this.attrTween(t,"function"==typeof e?(n.local?c:s)(n,d,Object(l.b)(this,"attr."+t,e)):null==e?(n.local?i:r)(n):(n.local?a:o)(n,d,e+""))}},function(t,e,n){"use strict";function r(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttributeNS(t.space,t.local,r(e))}}return n._value=e,n}function i(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttribute(t,r(e))}}return n._value=e,n}var o=n(0);e.a=function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var a=Object(o.namespace)(t);return this.tween(n,(a.local?r:i)(a,e))}},function(t,e,n){"use strict";function r(t,e){return function(){Object(o.g)(this,t).delay=+e.apply(this,arguments)}}function i(t,e){return e=+e,function(){Object(o.g)(this,t).delay=e}}var o=n(3);e.a=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?r:i)(e,t)):Object(o.f)(this.node(),e).delay}},function(t,e,n){"use strict";function r(t,e){return function(){Object(o.h)(this,t).duration=+e.apply(this,arguments)}}function i(t,e){return e=+e,function(){Object(o.h)(this,t).duration=e}}var o=n(3);e.a=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?r:i)(e,t)):Object(o.f)(this.node(),e).duration}},function(t,e,n){"use strict";function r(t,e){if("function"!=typeof e)throw new Error;return function(){Object(i.h)(this,t).ease=e}}var i=n(3);e.a=function(t){var e=this._id;return arguments.length?this.each(r(e,t)):Object(i.f)(this.node(),e).ease}},function(t,e,n){"use strict";var r=n(0),i=n(9);e.a=function(t){"function"!=typeof t&&(t=Object(r.matcher)(t));for(var e=this._groups,n=e.length,o=new Array(n),a=0;a<n;++a)for(var s,c=e[a],u=c.length,f=o[a]=[],l=0;l<u;++l)(s=c[l])&&t.call(s,s.__data__,l,c)&&f.push(s);return new i.a(o,this._parents,this._name,this._id)}},function(t,e,n){"use strict";var r=n(9);e.a=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,o=n.length,a=Math.min(i,o),s=new Array(i),c=0;c<a;++c)for(var u,f=e[c],l=n[c],h=f.length,d=s[c]=new Array(h),p=0;p<h;++p)(u=f[p]||l[p])&&(d[p]=u);for(;c<i;++c)s[c]=e[c];return new r.a(s,this._parents,this._name,this._id)}},function(t,e,n){"use strict";function r(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}function i(t,e,n){var i,a,s=r(e)?o.g:o.h;return function(){var r=s(this,t),o=r.on;o!==i&&(a=(i=o).copy()).on(e,n),r.on=a}}var o=n(3);e.a=function(t,e){var n=this._id;return arguments.length<2?Object(o.f)(this.node(),n).on.on(t):this.each(i(n,t,e))}},function(t,e,n){"use strict";function r(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}e.a=function(){return this.on("end.remove",r(this._id))}},function(t,e,n){"use strict";var r=n(0),i=n(9),o=n(3);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(r.selector)(t));for(var a=this._groups,s=a.length,c=new Array(s),u=0;u<s;++u)for(var f,l,h=a[u],d=h.length,p=c[u]=new Array(d),g=0;g<d;++g)(f=h[g])&&(l=t.call(f,f.__data__,g,h))&&("__data__"in f&&(l.__data__=f.__data__),p[g]=l,Object(o.e)(p[g],e,n,g,p,Object(o.f)(f,n)));return new i.a(c,this._parents,e,n)}},function(t,e,n){"use strict";var r=n(0),i=n(9),o=n(3);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(r.selectorAll)(t));for(var a=this._groups,s=a.length,c=[],u=[],f=0;f<s;++f)for(var l,h=a[f],d=h.length,p=0;p<d;++p)if(l=h[p]){for(var g,m=t.call(l,l.__data__,p,h),b=Object(o.f)(l,n),_=0,v=m.length;_<v;++_)(g=m[_])&&Object(o.e)(g,e,n,_,m,b);c.push(m),u.push(l)}return new i.a(c,u,e,n)}},function(t,e,n){"use strict";var r=n(0),i=r.selection.prototype.constructor;e.a=function(){return new i(this._groups,this._parents)}},function(t,e,n){"use strict";function r(t,e){var n,r,i;return function(){var o=Object(c.style)(this,t),a=(this.style.removeProperty(t),Object(c.style)(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function i(t){return function(){this.style.removeProperty(t)}}function o(t,e,n){var r,i;return function(){var o=Object(c.style)(this,t);return o===n?null:o===r?i:i=e(r=o,n)}}function a(t,e,n){var r,i,o;return function(){var a=Object(c.style)(this,t),s=n(this);return null==s&&(this.style.removeProperty(t),s=Object(c.style)(this,t)),a===s?null:a===r&&s===i?o:o=e(r=a,i=s)}}var s=n(5),c=n(0),u=n(19),f=n(63);e.a=function(t,e,n){var c="transform"==(t+="")?s.g:f.a;return null==e?this.styleTween(t,r(t,c)).on("end.style."+t,i(t)):this.styleTween(t,"function"==typeof e?a(t,c,Object(u.b)(this,"style."+t,e)):o(t,c,e+""),n)}},function(t,e,n){"use strict";function r(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}e.a=function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,r(t,e,null==n?"":n))}},function(t,e,n){"use strict";function r(t){return function(){this.textContent=t}}function i(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var o=n(19);e.a=function(t){return this.tween("text","function"==typeof t?i(Object(o.b)(this,"text",t)):r(null==t?"":t+""))}},function(t,e,n){"use strict";var r=n(9),i=n(3);e.a=function(){for(var t=this._name,e=this._id,n=Object(r.b)(),o=this._groups,a=o.length,s=0;s<a;++s)for(var c,u=o[s],f=u.length,l=0;l<f;++l)if(c=u[l]){var h=Object(i.f)(c,e);Object(i.e)(c,t,n,l,u,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new r.a(o,this._parents,t,n)}},function(t,e,n){"use strict";var r=(n(173),n(174),n(175));n.d(e,"a",function(){return r.a});n(176),n(177),n(178),n(179),n(180),n(181),n(182)},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";function r(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}e.a=r},function(t,e,n){"use strict";(function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n})(3),function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";Math.PI},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";(function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n})(1.70158),function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";var r=2*Math.PI;(function t(e,n){function i(t){return e*Math.pow(2,10*--t)*Math.sin((o-t)/n)}var o=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return i.amplitude=function(e){return t(e,n*r)},i.period=function(n){return t(e,n)},i})(1,.3),function t(e,n){function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+o)/n)}var o=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return i.amplitude=function(e){return t(e,n*r)},i.period=function(n){return t(e,n)},i}(1,.3),function t(e,n){function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((o-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((o+t)/n))/2}var o=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return i.amplitude=function(e){return t(e,n*r)},i.period=function(n){return t(e,n)},i}(1,.3)},function(t,e,n){"use strict";n(9),n(3)},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t,e,n){this.target=t,this.type=e,this.selection=n}},function(t,e,n){"use strict";function r(){i.event.stopImmediatePropagation()}e.b=r;var i=n(0);e.a=function(){i.event.preventDefault(),i.event.stopImmediatePropagation()}},function(t,e,n){"use strict";n(4),n(77)},function(t,e,n){"use strict";n(67)},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(71),n(65),n(191),n(70),n(192),n(72),n(73),n(74)},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";n(71),n(11),n(13),n(38)},function(t,e,n){"use strict";n(68)},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&n>r&&(r=n);return r}},function(t,e,n){"use strict";n(13)},function(t,e,n){"use strict";n(11),n(13),n(38)},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(11)},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(76)},function(t,e,n){"use strict";n(10),n(14),n(78)},function(t,e,n){"use strict";var r=n(4),i=n(79);e.a=function(t,e,n){var o,a=t[0],s=t[t.length-1],c=Object(r.h)(a,s,null==e?10:e);switch(n=Object(i.c)(null==n?",f":n),n.type){case"s":var u=Math.max(Math.abs(a),Math.abs(s));return null!=n.precision||isNaN(o=Object(i.e)(c,u))||(n.precision=o),Object(i.b)(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=Object(i.f)(c,Math.max(Math.abs(a),Math.abs(s))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=Object(i.d)(c))||(n.precision=o-2*("%"===n.type))}return Object(i.a)(n)}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r,i,o,a=n(80);!function(t){r=Object(a.a)(t),i=r.format,o=r.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]})},function(t,e,n){"use strict";e.a=function(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}},function(t,e,n){"use strict";e.a=function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}},function(t,e,n){"use strict";e.a=function(t,e){t=t.toPrecision(e);t:for(var n,r=t.length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=n=i;break;case"0":0===o&&(o=i),n=i;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t}},function(t,e,n){"use strict";var r=n(40);e.a=function(t,e){var n=Object(r.a)(t,e);if(!n)return t+"";var i=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var r=n(21);e.a=function(t){return Math.max(0,-Object(r.a)(Math.abs(t)))}},function(t,e,n){"use strict";var r=n(21);e.a=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(e)/3)))-Object(r.a)(Math.abs(t)))}},function(t,e,n){"use strict";var r=n(21);e.a=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Object(r.a)(e)-Object(r.a)(t))+1}},function(t,e,n){"use strict";n(4),n(79),n(39),n(84),n(20)},function(t,e,n){"use strict";n(39),n(14),n(20)},function(t,e,n){"use strict";n(4),n(10)},function(t,e,n){"use strict";n(4),n(10),n(14)},function(t,e,n){"use strict";n(4),n(10)},function(t,e,n){"use strict";var r=n(1),i=Object(r.a)(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Object(r.a)(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):i:null},e.a=i;i.range},function(t,e,n){"use strict";var r=n(1),i=n(7),o=Object(r.a)(function(t){t.setTime(Math.floor(t/i.d)*i.d)},function(t,e){t.setTime(+t+e*i.d)},function(t,e){return(e-t)/i.d},function(t){return t.getUTCSeconds()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(1),i=n(7),o=Object(r.a)(function(t){t.setTime(Math.floor(t/i.c)*i.c)},function(t,e){t.setTime(+t+e*i.c)},function(t,e){return(e-t)/i.c},function(t){return t.getMinutes()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(1),i=n(7),o=Object(r.a)(function(t){var e=t.getTimezoneOffset()*i.c%i.b;e<0&&(e+=i.b),t.setTime(Math.floor((+t-e)/i.b)*i.b+e)},function(t,e){t.setTime(+t+e*i.b)},function(t,e){return(e-t)/i.b},function(t){return t.getHours()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(1),i=n(7),o=Object(r.a)(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.a},function(t){return t.getDate()-1});e.a=o;o.range},function(t,e,n){"use strict";function r(t){return Object(i.a)(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*o.c)/o.e})}n.d(e,"b",function(){return a}),n.d(e,"a",function(){return s});var i=n(1),o=n(7),a=r(0),s=r(1),c=r(2),u=r(3),f=r(4),l=r(5),h=r(6);a.range,s.range,c.range,u.range,f.range,l.range,h.range},function(t,e,n){"use strict";var r=n(1),i=Object(r.a)(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});e.a=i;i.range},function(t,e,n){"use strict";var r=n(1),i=Object(r.a)(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null},e.a=i;i.range},function(t,e,n){"use strict";var r=n(1),i=n(7),o=Object(r.a)(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*i.c)},function(t,e){return(e-t)/i.c},function(t){return t.getUTCMinutes()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(1),i=n(7),o=Object(r.a)(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*i.b)},function(t,e){return(e-t)/i.b},function(t){return t.getUTCHours()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(1),i=n(7),o=Object(r.a)(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/i.a},function(t){return t.getUTCDate()-1});e.a=o;o.range},function(t,e,n){"use strict";function r(t){return Object(i.a)(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/o.e})}n.d(e,"b",function(){return a}),n.d(e,"a",function(){return s});var i=n(1),o=n(7),a=r(0),s=r(1),c=r(2),u=r(3),f=r(4),l=r(5),h=r(6);a.range,s.range,c.range,u.range,f.range,l.range,h.range},function(t,e,n){"use strict";var r=n(1),i=Object(r.a)(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});e.a=i;i.range},function(t,e,n){"use strict";var r=n(1),i=Object(r.a)(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null},e.a=i;i.range},function(t,e,n){"use strict";function r(t){var e=new Date(t);return isNaN(e)?null:e}var i=n(88),o=n(42);+new Date("2000-01-01T00:00:00.000Z")||Object(o.c)(i.a)},function(t,e,n){"use strict";n(85),n(86),n(41)},function(t,e,n){"use strict";var r=n(15);Object(r.a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")},function(t,e,n){"use strict";var r=n(15);Object(r.a)("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6")},function(t,e,n){"use strict";var r=n(15);Object(r.a)("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9")},function(t,e,n){"use strict";var r=n(15);Object(r.a)("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5")},function(t,e,n){"use strict";var r=n(6),i=n(5);Object(i.b)(Object(r.b)(300,.5,0),Object(r.b)(-240,.5,1))},function(t,e,n){"use strict";var r=n(6),i=n(5);Object(i.b)(Object(r.b)(-100,.75,.35),Object(r.b)(80,1.5,.8)),Object(i.b)(Object(r.b)(260,.75,.35),Object(r.b)(80,1.5,.8)),Object(r.b)()},function(t,e,n){"use strict";function r(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var i=n(15);r(Object(i.a)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),r(Object(i.a)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),r(Object(i.a)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),r(Object(i.a)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},function(t,e,n){"use strict";n(14)},function(t,e,n){!function(t,r){r(e,n(31),n(8),n(32))}(0,function(t,e,n,r){"use strict";function i(t){return function(e,n){t(null==e?n:null)}}function o(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function a(t,e){return function(n){return t(n.responseText,e)}}var s=function(t,r){function a(t){var e,n=d.status;if(!n&&o(d)||n>=200&&n<300||304===n){if(u)try{e=u.call(s,d)}catch(t){return void l.call("error",s,t)}else e=d;l.call("load",s,e)}else l.call("error",s,t)}var s,c,u,f,l=n.dispatch("beforesend","progress","load","error"),h=e.map(),d=new XMLHttpRequest,p=null,g=null,m=0;if("undefined"==typeof XDomainRequest||"withCredentials"in d||!/^(http(s)?:)?\/\//.test(t)||(d=new XDomainRequest),"onload"in d?d.onload=d.onerror=d.ontimeout=a:d.onreadystatechange=function(t){d.readyState>3&&a(t)},d.onprogress=function(t){l.call("progress",s,t)},s={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?h.get(t):(null==e?h.remove(t):h.set(t,e+""),s)},mimeType:function(t){return arguments.length?(c=null==t?null:t+"",s):c},responseType:function(t){return arguments.length?(f=t,s):f},timeout:function(t){return arguments.length?(m=+t,s):m},user:function(t){return arguments.length<1?p:(p=null==t?null:t+"",s)},password:function(t){return arguments.length<1?g:(g=null==t?null:t+"",s)},response:function(t){return u=t,s},get:function(t,e){return s.send("GET",t,e)},post:function(t,e){return s.send("POST",t,e)},send:function(e,n,r){return d.open(e,t,!0,p,g),null==c||h.has("accept")||h.set("accept",c+",*/*"),d.setRequestHeader&&h.each(function(t,e){d.setRequestHeader(e,t)}),null!=c&&d.overrideMimeType&&d.overrideMimeType(c),null!=f&&(d.responseType=f),m>0&&(d.timeout=m),null==r&&"function"==typeof n&&(r=n,n=null),null!=r&&1===r.length&&(r=i(r)),null!=r&&s.on("error",r).on("load",function(t){r(null,t)}),l.call("beforesend",s,d),d.send(null==n?null:n),s},abort:function(){return d.abort(),s},on:function(){var t=l.on.apply(l,arguments);return t===l?s:t}},null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return s.get(r)}return s},c=function(t,e){return function(n,r){var i=s(n).mimeType(t).response(e);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},u=c("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),f=c("application/json",function(t){return JSON.parse(t.responseText)}),l=c("text/plain",function(t){return t.responseText}),h=c("application/xml",function(t){var e=t.responseXML;if(!e)throw new Error("parse error");return e}),d=function(t,e){return function(n,r,i){arguments.length<3&&(i=r,r=null);var o=s(n).mimeType(t);return o.row=function(t){return arguments.length?o.response(a(e,r=t)):r},o.row(r),i?o.get(i):o}},p=d("text/csv",r.csvParse),g=d("text/tab-separated-values",r.tsvParse);t.request=s,t.html=u,t.json=f,t.text=l,t.xml=h,t.csv=p,t.tsv=g,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){"use strict";e.a="0.13.0"},function(module,__webpack_exports__,__webpack_require__){"use strict";function configure(t){var e,n,r,i,o;this.config=JSON.parse(JSON.stringify(t)),this._bandsXOffset=30,this.config.debug||(this.config.debug=!1),this.config.dataDir||(this.config.dataDir=this.getDataDir()),this.config.ploidy||(this.config.ploidy=1),this.config.ploidy>1&&(this.sexChromosomes={},this.config.sex||(this.config.sex="male"),2!==this.config.ploidy||this.config.ancestors||(this.config.ancestors={M:"#ffb6c1",P:"#add8e6"},this.config.ploidyDesc="MP")),this.config.container||(this.config.container="body"),this.selector=this.config.container+" #_ideogram",this.config.resolution||(this.config.resolution=""),"showChromosomeLabels"in this.config==!1&&(this.config.showChromosomeLabels=!0),this.config.orientation||(e="vertical",this.config.orientation=e),this.config.chrHeight||(i=this.config.container,o=document.querySelector(i).getBoundingClientRect(),r="vertical"===e?o.height:o.width,"body"===i&&(r=400),this.config.chrHeight=r),this.config.chrWidth||(n=10,r=this.config.chrHeight,r<900&&r>500?n=Math.round(r/40):r>=900&&(n=Math.round(r/45)),this.config.chrWidth=n),this.config.chrMargin||(1===this.config.ploidy?this.config.chrMargin=10:this.config.chrMargin=Math.round(this.config.chrWidth/4)),this.config.showBandLabels||(this.config.showBandLabels=!1),"showFullyBanded"in this.config?this.config.showFullyBanded=t.showFullyBanded:this.config.showFullyBanded=!0,this.config.brush||(this.config.brush=!1),this.config.rows||(this.config.rows=1),this.bump=Math.round(this.config.chrHeight/125),this.adjustedBump=!1,this.config.chrHeight<200&&(this.adjustedBump=!0,this.bump=4),t.showBandLabels&&(this.config.chrMargin+=20),t.chromosome&&(this.config.chromosomes=[t.chromosome],"showBandLabels"in t==!1&&(this.config.showBandLabels=!0),"rotatable"in t==!1&&(this.config.rotatable=!1)),this.config.showNonNuclearChromosomes||(this.config.showNonNuclearChromosomes=!1),this.initAnnotSettings(),this.config.chrMargin=this.config.chrMargin+this.config.chrWidth+2*this.config.annotTracksHeight,t.onLoad&&(this.onLoadCallback=t.onLoad),t.onDrawAnnots&&(this.onDrawAnnotsCallback=t.onDrawAnnots),t.onBrushMove&&(this.onBrushMoveCallback=t.onBrushMove),this.coordinateSystem="iscn",this.maxLength={bp:0,iscn:0},this.organisms={9606:{commonName:"Human",scientificName:"Homo sapiens",scientificNameAbbr:"H. sapiens",assemblies:{default:"GCF_000001405.26",GRCh38:"GCF_000001405.26",GRCh37:"GCF_000001405.13"}},10090:{commonName:"Mouse",scientificName:"Mus musculus",scientificNameAbbr:"M. musculus",assemblies:{default:"GCF_000001635.20"}},4641:{commonName:"banana",scientificName:"Musa acuminata",scientificNameAbbr:"M. acuminata",assemblies:{default:"mock"}}},this.chromosomesArray=[],this.bandsToShow=[],this.chromosomes={},this.numChromosomes=0,this.bandData={},this.init()}function initDrawChromosomes(t){var e,n,r,i,o,a,s,c,u,f=this,l=f.config.taxids,h=f.config.ploidy,d=0,p=0;for(c=d3.select(f.selector+" defs"),r=0;r<l.length;r++){for(e=l[r],o=f.config.chromosomes[e],"undefined"!=typeof chrBands&&o.length>=chrBands.length/2&&(f.coordinateSystem="bp"),f.chromosomes[e]={},f.setSexChromosomes(o),i=0;i<o.length;i++)if(a=o[i],n=t[d],d+=1,s=f.getChromosomeModel(n,a,e,d),"string"!=typeof a&&(a=a.name),f.chromosomes[e][a]=s,f.chromosomesArray.push(s),!("sex"in f.config&&(2===h&&f.sexChromosomes.index+2===d||"female"===f.config.sex&&"Y"===s.name))){u=f._layout.getChromosomeSetTranslate(p),p+=1;var g=d3.select(f.selector).append("g").attr("class","chromosome-set-container").attr("data-set-number",i).attr("transform",u).attr("id",s.id+"-chromosome-set");if("sex"in f.config&&2===h&&f.sexChromosomes.index+1===d)f.drawSexChromosomes(t,e,g,c,i,o);else{var m,b=1;h>1&&(b=this._ploidy.getChromosomesNumber(i));for(var _=0;_<b;_++)m=f.drawChromosome(s,d-1,g,_);c.append("clipPath").attr("id",s.id+"-chromosome-set-clippath").selectAll("path").data(m).enter().append("path").attr("d",function(t){return t.path}).attr("class",function(t){return t.class})}}!0===f.config.showBandLabels&&f.drawBandLabels(f.chromosomes)}}function onLoad(){call(this.onLoadCallback)}function init(){function writeContainer(){if(ideo.config.annotationsPath&&ideo.fetchAnnots(ideo.config.annotationsPath),"ploidyDesc"in ideo.config&&"string"==typeof ideo.config.ploidyDesc){for(var t=[],e=0;e<ideo.numChromosomes;e++)t.push(ideo.config.ploidyDesc);ideo.config.ploidyDesc=t}ideo._ploidy=new __WEBPACK_IMPORTED_MODULE_3__ploidy__.a(ideo.config),ideo._layout=__WEBPACK_IMPORTED_MODULE_4__layouts_layout__.a.getInstance(ideo.config,ideo),svgClass="",ideo.config.showChromosomeLabels&&("horizontal"===ideo.config.orientation?svgClass+="labeledLeft ":svgClass+="labeled "),ideo.config.annotationsLayout&&"overlay"===ideo.config.annotationsLayout&&(svgClass+="faint");var n=ideo.getBandColorGradients(),r=ideo._layout.getWidth(taxid),i=ideo._layout.getHeight(taxid);d3.select(ideo.config.container).append("div").append("svg").attr("id","_ideogram").attr("class",svgClass).attr("width",r).attr("height",i).html(n),finishInit()}function finishInit(){try{var t,e=(new Date).getTime();if(ideo.initDrawChromosomes(bandsArray),ideo.config.annotationsPath){var n=function(){void 0!==ideo.timeout&&window.clearTimeout(ideo.timeout),ideo.annots=ideo.processAnnotData(ideo.rawAnnots),ideo.drawProcessedAnnots(ideo.annots),"undefined"!=typeof crossfilter&&ideo.initCrossFilter&&ideo.initCrossFilter()};ideo.rawAnnots?n():function t(){ideo.timeout=setTimeout(function(){ideo.rawAnnots?n():t()},50)}()}if(!0===ideo.config.showBandLabels){var r=ideo.bandsToShow.join(","),i=(new Date).getTime();d3.selectAll(ideo.selector+" .bandLabel, .bandLabelStalk").style("display","none"),d3.selectAll(r).style("display","");var o=(new Date).getTime();if(ideo.config.debug&&console.log("Time in showing bands: "+(o-i)+" ms"),"vertical"===ideo.config.orientation){var a;for(t=0;t<ideo.chromosomesArray.length;t++)a="#"+ideo.chromosomesArray[t].id,ideo.rotateChromosomeLabels(d3.select(a),t)}}!0===ideo.config.showChromosomeLabels&&ideo.drawChromosomeLabels(ideo.chromosomes),!0===ideo.config.brush&&ideo.createBrush(),ideo.config.annotations&&ideo.drawAnnots(ideo.config.annotations);var s=(new Date).getTime();ideo.config.debug&&console.log("Time in drawChromosome: "+(s-e)+" ms");var c=(new Date).getTime();ideo.config.debug&&console.log("Time constructing ideogram: "+(c-t0)+" ms"),"rotatable"in ideo.config&&!1===ideo.config.rotatable?d3.selectAll(ideo.selector+" .chromosome").style("cursor","default"):d3.selectAll(ideo.selector+" .chromosome").on("click",function(){ideo.rotateAndToggleDisplay(this)}),ideo.onLoadCallback&&ideo.onLoadCallback()}catch(t){throw t}}var taxid,i,svgClass,ideo=this,t0=(new Date).getTime(),bandsArray=[],numBandDataResponses=0,resolution=this.config.resolution,accession,promise=new __WEBPACK_IMPORTED_MODULE_2_es6_promise__.Promise(function(t){"number"==typeof ideo.config.organism?ideo.getOrganismFromEutils(function(){ideo.getTaxids(t)}):ideo.getTaxids(t)});promise.then(function(taxids){taxid=taxids[0],ideo.config.taxid=taxid,ideo.config.taxids=taxids;var assemblies,bandFileName,bandDataFileNames={9606:"",10090:""};for(i=0;i<taxids.length;i++)taxid=String(taxids[i]),ideo.config.assembly||(ideo.config.assembly="default"),assemblies=ideo.organisms[taxid].assemblies,accession=ideo.assemblyIsAccession()?ideo.config.assembly:assemblies[ideo.config.assembly],bandFileName=[],bandFileName.push(Ideogram.slugify(ideo.organisms[taxid].scientificName)),accession!==assemblies.default&&bandFileName.push(accession),"9606"===taxid&&(accession in assemblies==="false"&&-1===Object.values(assemblies).indexOf(ideo.config.assembly)||""!==resolution&&850!==resolution)&&bandFileName.push(resolution),bandFileName=bandFileName.join("-")+".js","9606"!==taxid&&"10090"!==taxid||(bandDataFileNames[taxid]=bandFileName),void 0!==accession&&!1===/GCA_/.test(ideo.config.assembly)&&"undefined"==typeof chrBands&&taxid in bandDataFileNames?d3.request(ideo.config.dataDir+bandDataFileNames[taxid]).on("beforesend",function(t){t.taxid=taxid}).get(function(error,data){eval(data.response),ideo.bandData[data.taxid]=chrBands,(numBandDataResponses+=1)===taxids.length&&(bandsArray=ideo.processBandData(),writeContainer())}):("undefined"!=typeof chrBands&&(ideo.bandData[taxid]=chrBands),bandsArray=ideo.processBandData(),writeContainer())})}__webpack_require__.d(__webpack_exports__,"a",function(){return configure}),__webpack_require__.d(__webpack_exports__,"c",function(){return initDrawChromosomes}),__webpack_require__.d(__webpack_exports__,"d",function(){return onLoad}),__webpack_require__.d(__webpack_exports__,"b",function(){return init});var __WEBPACK_IMPORTED_MODULE_0_d3_request__=__webpack_require__(16),__WEBPACK_IMPORTED_MODULE_1_d3_selection__=__webpack_require__(0),__WEBPACK_IMPORTED_MODULE_2_es6_promise__=__webpack_require__(89),__WEBPACK_IMPORTED_MODULE_2_es6_promise___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_es6_promise__),__WEBPACK_IMPORTED_MODULE_3__ploidy__=__webpack_require__(90),__WEBPACK_IMPORTED_MODULE_4__layouts_layout__=__webpack_require__(250),d3=Object.assign({},__WEBPACK_IMPORTED_MODULE_0_d3_request__,__WEBPACK_IMPORTED_MODULE_1_d3_selection__)},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function a(){g&&d&&(g=!1,d.length?p=d.concat(p):m=-1,p.length&&s())}function s(){if(!g){var t=i(a);g=!0;for(var e=p.length;e;){for(d=p,p=[];++m<e;)d&&d[m].run();m=-1,e=p.length}d=null,g=!1,o(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var f,l,h=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(t){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var d,p=[],g=!1,m=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new c(t,e)),1!==p.length||g||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=u,h.addListener=u,h.once=u,h.off=u,h.removeListener=u,h.removeAllListeners=u,h.emit=u,h.prependListener=u,h.prependOnceListener=u,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){},function(t,e,n){"use strict";function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return f});var a=n(0),s=n(251),c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=Object.assign({},a),f=function(){function t(e,n){if(o(this,t),this._config=e,this._ideo=n,this._ploidy=this._ideo._ploidy,this._translate=void 0,"chrSetMargin"in e)this.chrSetMargin=e.chrSetMargin;else{var r=this._config.chrMargin;this.chrSetMargin=this._config.ploidy>1?r:0}this._tickSize=8,this._isRotated=!1}return c(t,[{key:"_getLeftMargin",value:function(){return this._margin.left}},{key:"_getYScale",value:function(){return 20/this._config.chrWidth}},{key:"getChromosomeLabels",value:function(t){var e=new s.a(t);return[e.getSetLabel(),e.getLabel()].filter(function(t){return t.length>0})}},{key:"rotateBack",value:function(){throw new Error(this._class+"#rotateBack not implemented")}},{key:"rotateForward",value:function(){throw new Error(this._class+"#rotateForward not implemented")}},{key:"rotate",value:function(t,e,n){var r=this._ideo,i=u.selectAll(r.selector+" g.chromosome").filter(function(){return this!==n});this._isRotated?(this._isRotated=!1,this.rotateBack(t,e,n,function(){i.style("display",null),u.selectAll(r.selector+" .chrSetLabel, .chrLabel").style("display",null)})):(this._isRotated=!0,i.style("display","none"),u.selectAll(r.selector+" .chrSetLabel, .chrLabel").style("display","none"),this.rotateForward(t,e,n))}},{key:"getChromosomeLabelClass",value:function(){return 1===this._config.ploidy?"chrLabel":"chrSetLabel"}},{key:"_getAdditionalOffset",value:function(){return(this._config.annotationHeight||0)*(this._config.numAnnotTracks||1)}},{key:"_getChromosomeSetSize",value:function(t){return this._ploidy.getSetSize(t)*this._config.chrWidth*2+this.chrSetMargin}},{key:"getMargin",value:function(){return this._margin}},{key:"getChromosomeSetLabelAnchor",value:function(){return"middle"}},{key:"getChromosomeLabelYPosition",value:function(){return-5.5}},{key:"getChromosomeSetLabelYPosition",value:function(t){return 1===this._config.ploidy?this.getChromosomeLabelYPosition(t):-2*this._config.chrWidth}}],[{key:"getInstance",value:function(t,e){return"perspective"in t&&"comparative"===t.perspective?new h(t,e):"rows"in t&&t.rows>1?new d(t,e):"vertical"===t.orientation?new p(t,e):"horizontal"===t.orientation?new l(t,e):new p(t,e)}}]),t}(),l=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i._class="HorizontalLayout",i._margin={left:20,top:30},i}return i(e,t),c(e,[{key:"_getLeftMargin",value:function(){var t=f.prototype._getLeftMargin.call(this);return this._config.ploidy>1&&(t*=1.8),t}},{key:"rotateForward",value:function(t,e,n,r){var i=u.select(this._ideo.selector).node().getBoundingClientRect(),o=n.getBoundingClientRect(),a=i.height/(o.width+15)*.9,s=this._getYScale(),c=(e+1)*(2*this._config.chrWidth*s),f="rotate(90) translate(30, -"+c+") scale("+a+", "+s+")";u.select(n.parentNode).transition().attr("transform",f).on("end",r);var l=this.getChromosomeLabels(n);u.select(this._ideo.getSvg()).append("g").attr("class","tmp").selectAll("text").data(l).enter().append("text").attr("class",function(t,e){return 0===e&&2===l.length?"chrSetLabel":null}).attr("x",30).attr("y",function(t,e){return 12*(e+1+l.length%2)}).style("text-anchor","middle").style("opacity",0).text(String).transition().style("opacity",1)}},{key:"rotateBack",value:function(t,e,n,r){var i=this.getChromosomeSetTranslate(t);u.select(n.parentNode).transition().attr("transform",i).on("end",r),u.selectAll(this._ideo.selector+" g.tmp").style("opacity",0).remove()}},{key:"getHeight",value:function(t){var e=this._config.chromosomes[t].length,n=this.getChromosomeSetYTranslate(e-1);return(n+=this._getChromosomeSetSize(e-1))+2*this._getAdditionalOffset()}},{key:"getWidth",value:function(){return this._config.chrHeight+1.5*this._margin.top}},{key:"getChromosomeSetLabelAnchor",value:function(){return"end"}},{key:"getChromosomeBandLabelAnchor",value:function(){return null}},{key:"getChromosomeBandTickY1",value:function(){return 2}},{key:"getChromosomeBandTickY2",value:function(){return 10}},{key:"getChromosomeBandLabelTranslate",value:function(t){var e=this._ideo.round(-this._tickSize+t.px.start+t.px.width/2);return{x:e,y:-10,translate:"translate("+e+","+-10+")"}}},{key:"getChromosomeSetLabelTranslate",value:function(){return null}},{key:"getChromosomeSetTranslate",value:function(t){return"translate("+this._getLeftMargin()+", "+this.getChromosomeSetYTranslate(t)+")"}},{key:"getChromosomeSetYTranslate",value:function(t){if(!this._config.ploidyDesc)return this._config.chrMargin*(t+1);if(!this._translate){this._translate=[1];for(var e=1;e<this._config.ploidyDesc.length;e++)this._translate[e]=this._translate[e-1]+this._getChromosomeSetSize(e-1)}return this._translate[t]}},{key:"getChromosomeSetLabelXPosition",value:function(t){return 1===this._config.ploidy?this.getChromosomeLabelXPosition(t):-20}},{key:"getChromosomeSetLabelYPosition",value:function(t){var e=this._ploidy.getSetSize(t),n=this._config,r=n.chrMargin,i=n.chrWidth;return 1===n.ploidy?i/2+3:e*r/2}},{key:"getChromosomeLabelXPosition",value:function(){return-8}},{key:"getChromosomeLabelYPosition",value:function(){return this._config.chrWidth}}]),e}(f),h=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i._class="PairedLayout",i._margin={left:30},i}return i(e,t),c(e,[{key:"rotateForward",value:function(t,e,n,r){var i=this,o=this._ideo,a=u.select(o.selector).node().getBoundingClientRect(),s=n.getBoundingClientRect(),c=a.width/s.height*.97,f=this._getYScale(),l=t?150:25,h="translate(15, "+l+") scale("+c+", "+f+")";u.select(n.parentNode).transition().attr("transform",h).on("end",function(){r&&r();var e=6*Number(!t);u.select(n.parentNode).selectAll("g.bandLabel text").attr("transform","rotate(90) translate(0, "+e+")").attr("text-anchor","middle"),u.selectAll(o.selector+" .syntenicRegion").style("display","none")});var d=this.getChromosomeLabels(n);u.select(this._ideo.getSvg()).append("g").attr("class","tmp").selectAll("text").data(this.getChromosomeLabels(n)).enter().append("text").attr("class",function(t,e){return 0===e&&2===d.length?"chrSetLabel":null}).attr("x",0).attr("y",l+i._config.chrWidth*c/2*1.15).style("opacity",0).text(String).transition().style("opacity",1)}},{key:"rotateBack",value:function(t,e,n,r){var i=this._ideo,o=this.getChromosomeSetTranslate(t);u.select(n.parentNode).transition().attr("transform",o).on("end",function(){r(),u.selectAll(i.select+" .syntenicRegion").style("display",null),u.select(n.parentNode).selectAll("g.bandLabel text").attr("transform",null).attr("text-anchor",t?null:"end")}),u.selectAll(i.selector+" g.tmp").style("opacity",0).remove()}},{key:"getHeight",value:function(){return this._config.chrHeight+1.5*this._margin.left}},{key:"getWidth",value:function(){return"97%"}},{key:"getChromosomeBandTickY1",value:function(t){return t%2?this._config.chrWidth:2*this._config.chrWidth}},{key:"getChromosomeBandTickY2",value:function(t){var e=this._config.chrWidth;return t%2?e-this._tickSize:2*e+this._tickSize}},{key:"getChromosomeBandLabelAnchor",value:function(t){return t%2?null:"end"}},{key:"getChromosomeBandLabelTranslate",value:function(t,e){var n=e%2?10:-this._config.chrWidth-10,r=this._ideo.round(t.px.start+t.px.width/2)+3;return{x:r,y:r,translate:"rotate(-90) translate("+n+", "+r+")"}}},{key:"getChromosomeLabelXPosition",value:function(){return-this._tickSize}},{key:"getChromosomeSetLabelXPosition",value:function(){return this._config.chrWidth/-2}},{key:"getChromosomeSetLabelTranslate",value:function(){return"rotate(-90)"}},{key:"getChromosomeSetTranslate",value:function(t){var e=this.getChromosomeSetYTranslate(t);return"rotate(90) translate("+this._margin.left+", -"+e+")"}},{key:"getChromosomeSetYTranslate",value:function(t){return 200*(t+1)}}]),e}(f),d=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i._class="SmallLayout",i._margin={left:36.5,top:10},i}return i(e,t),c(e,[{key:"getHeight",value:function(){var t=this._config.chrHeight;return this._config.rows*(t+1.5*this._margin.top)}},{key:"getWidth",value:function(){return"97%"}},{key:"getChromosomeBandLabelTranslate",value:function(){}},{key:"getChromosomeSetLabelTranslate",value:function(){return"rotate(-90)"}},{key:"getChromosomeSetTranslate",value:function(t){var e=[];this._ideo.getTaxids(function(t){e=t});var n,r,i=this._ideo.config.chromosomes[e[0]].length,o=i/this._config.rows;return t>o-1?(n=this._margin.left+1.4*this._config.chrHeight,r=this.getChromosomeSetYTranslate(t-o)):(n=this._margin.left,r=this.getChromosomeSetYTranslate(t)),"rotate(90) translate("+n+", -"+r+")"}},{key:"getChromosomeSetYTranslate",value:function(t){var e=this._getAdditionalOffset();return this._margin.left*t+this._config.chrWidth+2*e+e*t}},{key:"getChromosomeSetLabelXPosition",value:function(t){return(this._ploidy.getSetSize(t)*this._config.chrWidth+20)/-2+(this._config.ploidy>1?0:this._config.chrWidth)}},{key:"getChromosomeLabelXPosition",value:function(){return this._config.chrWidth/-2}}]),e}(f),p=function(t){function e(t,n){o(this,e);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i._class="VerticalLayout",i._margin={top:30,left:15},i}return i(e,t),c(e,[{key:"rotateForward",value:function(t,e,n,r){var i=this,o=u.select(this._ideo.selector).node().getBoundingClientRect(),a=n.getBoundingClientRect(),s=o.width/a.height*.97,c=this._getYScale(),f="translate(20, 25) scale("+s+", "+c+")";u.select(n.parentNode).transition().attr("transform",f).on("end",r);var l=this.getChromosomeLabels(n),h=1.3*(20+i._config.chrWidth);u.select(this._ideo.getSvg()).append("g").attr("class","tmp").selectAll("text").data(l).enter().append("text").attr("class",function(t,e){return 0===e&&2===l.length?"chrSetLabel":null}).attr("x",0).attr("y",h).style("opacity",0).text(String).transition().style("opacity",1)}},{key:"rotateBack",value:function(t,e,n,r){var i=this.getChromosomeSetTranslate(t);u.select(n.parentNode).transition().attr("transform",i).on("end",r),u.selectAll(this._ideo.selector+" g.tmp").style("opacity",0).remove()}},{key:"getHeight",value:function(){return this._config.chrHeight+1.5*this._margin.top}},{key:"getWidth",value:function(){return"97%"}},{key:"getChromosomeBandLabelTranslate",value:function(){}},{key:"getChromosomeSetLabelTranslate",value:function(){return"rotate(-90)"}},{key:"getChromosomeSetTranslate",value:function(t){return"rotate(90) translate("+this._margin.top+", -"+this.getChromosomeSetYTranslate(t)+")"}},{key:"getChromosomeSetYTranslate",value:function(t){var e,n=this._getAdditionalOffset(),r=this._config.chrMargin,i=this._config.chrWidth;if(!this._config.ploidyDesc)return"histogram"===this._config.annotationsLayout?r/2+t*(r+i+2)+2*n+1:(e=i+t*(r+i)+2*n,n>0?e:e+4+2*t);if(!this._translate){this._translate=[this._ploidy.getSetSize(0)*i*2];for(var o,a=1;a<this._config.ploidyDesc.length;a++)o=this._translate[a-1],this._translate[a]=o+this._getChromosomeSetSize(a-1)}return this._translate[t]}},{key:"getChromosomeSetLabelXPosition",value:function(){return this._config.chrWidth*this._config.ploidy/-2}},{key:"getChromosomeLabelXPosition",value:function(){return this._config.chrWidth/-2}}]),e}(f)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return s});var i=n(0),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=Object.assign({},i),s=function(){function t(e){r(this,t),this._node=e}return o(t,[{key:"getLabel",value:function(){return a.select(this._node).select("text.chrLabel").text()}},{key:"getSetLabel",value:function(){return a.select(this._node.parentNode).select("text.chromosome-set-label").text()}}]),t}()},function(t,e,n){"use strict";function r(){call(this.onDrawAnnotsCallback)}function i(t){var e,n,r,i,o,a,s,c,u,f,l,h,d,p,g,m=this;for(e=t.keys,t=t.annots,s=[],o=-1,n=0;n<t.length;n++)if(c=t[n],u=c.chr,void 0!==(f=m.chromosomes[m.config.taxid][u]))for(o++,s.push({chr:c.chr,annots:[]}),r=0;r<c.annots.length;r++){for(l=c.annots[r],a={},i=0;i<e.length;i++)a[e[i]]=l[i];a.stop=a.start+a.length,h=m.convertBpToPx(f,a.start),d=m.convertBpToPx(f,a.stop),p=Math.round((h+d)/2)-28,g=m.config.annotationsColor,m.config.annotationTracks?(a.trackIndex=l[3],g=m.config.annotationTracks[a.trackIndex].color):a.trackIndex=0,"color"in a&&(g=a.color),a.chr=u,a.chrIndex=n,a.px=p,a.startPx=h-30,a.stopPx=d-30,a.color=g,s[o].annots.push(a)}else console.warn('Chromosome "'+u+'" undefined in ideogram; '+c.annots.length+" annotations not shown");return s}function o(){if(this.config.annotationsPath||this.config.localAnnotationsPath||this.annots||this.config.annotations){if(!this.config.annotationHeight){var t=Math.round(this.config.chrHeight/100);this.config.annotationHeight=t}this.config.annotationTracks?this.config.numAnnotTracks=this.config.annotationTracks.length:this.config.numAnnotTracks=1,this.config.annotTracksHeight=this.config.annotationHeight*this.config.numAnnotTracks,void 0===this.config.barWidth&&(this.config.barWidth=3)}else this.config.annotTracksHeight=0;void 0===this.config.annotationsColor&&(this.config.annotationsColor="#F00")}function a(t){var e=this;if("http"!==t.slice(0,4))return void b.json(e.config.annotationsPath,function(t){e.rawAnnots=t});var n=t.split("."),r=n[n.length-1];if("bed"!==r&&"json"!==r)return r=r.toUpperCase(),void alert("This Ideogram.js only supports BED and native format at the moment.  Sorry, check back soon for "+r+" support!");b.request(t,function(t){e.rawAnnots="bed"===r?new m.a(t.response,e).rawAnnots:JSON.parse(t.response)})}function s(t){var e,n,r,i,o,a,s=this,c=[],u=s.chromosomes[s.config.taxid];if("annots"in t[0])return s.drawProcessedAnnots(t);for(a in u)c.push({chr:a,annots:[]});for(e=0;e<t.length;e++)for(r=t[e],n=0;n<c.length;n++)if(r.chr===c[n].chr){i=[r.name,r.start,r.stop-r.start],"color"in r&&i.push(r.color),"shape"in r&&i.push(r.shape),c[n].annots.push(i);break}o=["name","start","length"],"color"in t[0]&&o.push("color"),"shape"in t[0]&&o.push("shape"),s.rawAnnots={keys:o,annots:c},s.annots=s.processAnnotData(s.rawAnnots),s.drawProcessedAnnots(s.annots)}function c(t){var e,n,r,i,o,a,s,c,u,f,l,h,d,p,g,m,b,_,v,y,w,x,O,M,C,k=(new Date).getTime(),A=!1,j=this;d=[],b=j.config.barWidth,o=j.chromosomes[j.config.taxid],v=j.config.annotationsColor,C="histogramScaling"in j.config?j.config.histogramScaling:"relative",void 0===j.maxAnnotsPerBar&&(j.maxAnnotsPerBar={},A=!0);for(r in o){for(i=o[r],l=i.chrIndex,y=i.bands[i.bands.length-1],a=y.px.stop,w=Math.round(a/b),p={chr:r,annots:[]},e=0;e<w;e++)s=e*b-j.bump,c=j.convertPxToBp(i,s+j.bump),p.annots.push({bp:c,px:s-j.bump,count:0,chrIndex:l,chrName:r,color:v,annots:[]});d.push(p)}for(r in t)for(u=t[r].annots,f=t[r].chr,i=o[f],l=i.chrIndex-1,x=d[l].annots,e=0;e<u.length;e++)for(h=u[e],s=h.px-j.bump,n=0;n<x.length;n++)if(g=x[n].px,m=g+b,n===x.length-1&&(m+=b),s>=g&&s<m){d[l].annots[n].count+=1,d[l].annots[n].annots.push(h);break}if(!0===A||"relative"===C){for(_=0,e=0;e<d.length;e++)for(t=d[e].annots,n=0;n<t.length;n++)(O=t[n].count)>_&&(_=O);j.maxAnnotsPerBar[r]=_}for(e=0;e<d.length;e++)for(t=d[e].annots,n=0;n<t.length;n++)O=t[n].count,M=O/j.maxAnnotsPerBar[r]*j.config.chrMargin,d[e].annots[n].height=M;var T=(new Date).getTime();return j.config.debug&&console.log("Time spent in getHistogramBars: "+(T-k)+" ms"),j.bars=d,d}function u(t){var e,n,r,i,o,a,s;for(e=[],n=[],r=this.chromosomesArray,i=0;i<r.length;i++)o=r[i].name,n.push(o),e.push({chr:o,annots:[]});for(i=0;i<t.length;i++)a=t[i],-1!==(s=n.indexOf(a.chr))&&(e[s]=a);return e}function f(t){var e,n,r,i,o,a,s,c,u,f,l,h,d=this;e=this.config.chrWidth,n="tracks",this.config.annotationsLayout&&(n=this.config.annotationsLayout),"histogram"===n&&(t=d.getHistogramBars(t)),r=d.config.annotationHeight,i="l -"+r+" "+2*r+" l "+2*r+" 0 z",a=r,o="m -"+a+", "+a+"a "+a+","+a+" 0 1,0 "+2*a+",0a "+a+","+a+" 0 1,0 -"+2*a+",0",h=d.fillAnnots(t),s=b.selectAll(d.selector+" .chromosome").data(h).selectAll("path.annot").data(function(t){return t.annots}).enter(),"tracks"===n?s.append("g").attr("id",function(t){return t.id}).attr("class","annot").attr("transform",function(t){var e=d.config.chrWidth+t.trackIndex*r*2;return"translate("+t.px+","+e+")"}).append("path").attr("d",function(t){return t.shape&&"triangle"!==t.shape?"circle"===t.shape?o:void 0:"m0,0"+i}).attr("fill",function(t){return t.color}):"overlay"===n?s.append("polygon").attr("id",function(t){return t.id}).attr("class","annot").attr("points",function(t){return t.stopPx-t.startPx>1?(c=t.startPx,u=t.stopPx):(c=t.px-.5,u=t.px+.5),f=e,l=0,c+","+f+" "+u+","+f+" "+u+","+l+" "+c+","+l}).attr("fill",function(t){return t.color}):"histogram"===n&&s.append("polygon").attr("class","annot").attr("points",function(t){c=t.px+d.bump,u=t.px+d.config.barWidth+d.bump,f=e,l=e+t.height;var n=d.chromosomesArray[t.chrIndex-1].width;return u>n&&(u=n),c+","+f+" "+u+","+f+" "+u+","+l+" "+c+","+l}).attr("fill",function(t){return t.color}),d.onDrawAnnotsCallback&&d.onDrawAnnotsCallback()}function l(t){var e,n,r,i,o,a,s,c,u,f=(new Date).getTime(),l=this;for(r=b.select(l.selector).insert("g",":first-child").attr("class","synteny"),i=0;i<t.length;i++){c=t[i],e=c.r1,n=c.r2,o="#CFC","color"in c&&(o=c.color),a=1,"opacity"in c&&(a=c.opacity),e.startPx=this.convertBpToPx(e.chr,e.start),e.stopPx=this.convertBpToPx(e.chr,e.stop),n.startPx=this.convertBpToPx(n.chr,n.start),n.stopPx=this.convertBpToPx(n.chr,n.stop),s=e.chr.id+"_"+e.start+"_"+e.stop+"___"+n.chr.id+"_"+n.start+"_"+n.stop,u=r.append("g").attr("class","syntenicRegion").attr("id",s).on("click",function(){var t=this,e=b.selectAll(l.selector+" .syntenicRegion").filter(function(){return this!==t});e.classed("hidden",!e.classed("hidden"))}).on("mouseover",function(){var t=this;b.selectAll(l.selector+" .syntenicRegion").filter(function(){return this!==t}).classed("ghost",!0)}).on("mouseout",function(){b.selectAll(l.selector+" .syntenicRegion").classed("ghost",!1)});var h=l.config.chrWidth,d=this._layout.getChromosomeSetYTranslate(0),p=this._layout.getChromosomeSetYTranslate(1)-h;u.append("polygon").attr("points",d+", "+e.startPx+" "+d+", "+e.stopPx+" "+p+", "+n.stopPx+" "+p+", "+n.startPx).attr("style","fill: "+o+"; fill-opacity: "+a),u.append("line").attr("class","syntenyBorder").attr("x1",d).attr("x2",p).attr("y1",e.startPx).attr("y2",n.startPx),u.append("line").attr("class","syntenyBorder").attr("x1",d).attr("x2",p).attr("y1",e.stopPx).attr("y2",n.stopPx)}var g=(new Date).getTime();l.config.debug&&console.log("Time in drawSyntenicRegions: "+(g-f)+" ms")}n.d(e,"h",function(){return r}),n.d(e,"i",function(){return i}),n.d(e,"g",function(){return o}),n.d(e,"d",function(){return a}),n.d(e,"a",function(){return s}),n.d(e,"f",function(){return c}),n.d(e,"e",function(){return u}),n.d(e,"b",function(){return f}),n.d(e,"c",function(){return l});var h=n(0),d=n(16),p=n(8),g=n(43),m=(n.n(g),n(253)),b=Object.assign({},h,d,p);b.promise=g},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return o});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){r(this,t),this.rawAnnots=this.parseBed(e,n)}return i(t,[{key:"parseBed",value:function(e,n){var r,i,o,a,s,c,u,f,l,h,d,p,g,m,b,_;for(l=[],a=Object.keys(n.chromosomes[n.config.taxid]),i=0;i<a.length;i++)s=a[i],l.push({chr:s,annots:[]});for(r=e.split(/\r\n|\n/),d=0,p=!0,("chr"===r[0].slice(0,3)||isNaN(parseInt(r[0],10)))&&(d=1),!1===isNaN(parseInt(r[d],10))&&(p=!1),i=d;i<r.length;i++)o=r[i].split(/\s/g),s=o[0],c=parseInt(o[1],10),u=parseInt(o[2],10),length=u-c,p&&(s=s.slice(3)),-1!==(f=a.indexOf(s))&&(h=["",c,length,0],o.length>=4&&(b=o[3],h[0]=b),o.length>=8&&(g=o[8].split(","),m=t.rgbToHex(g[0],g[1],g[2]),h.push(m)),l[f].annots.push(h));return _=["name","start","length","trackIndex"],r[d].length>=8&&_.push("color"),{keys:_,annots:l}}}],[{key:"componentToHex",value:function(t){var e=parseInt(t,10).toString(16);return 1===e.length?"0"+e:e}},{key:"rgbToHex",value:function(e,n,r){return"#"+t.componentToHex(e)+t.componentToHex(n)+t.componentToHex(r)}}]),t}()},function(module,__webpack_exports__,__webpack_require__){"use strict";function getTaxidFromEutils(t){var e,n,r,i=this;e=i.config.organism,n=i.esearch+"&db=taxonomy&term="+e,d3.json(n,function(e){return r=e.esearchresult.idlist[0],t(r)})}function getOrganismFromEutils(t){var e,n,r,i=this;r=i.config.organism,n=i.esummary+"&db=taxonomy&id="+r,d3.json(n,function(n){return e=n.result[String(r)].commonname,i.config.organism=e,t(e)})}function getTaxids(callback){var ideo=this,taxid,taxids,org,orgs,i,taxidInit,tmpChrs,assembly,chromosomes,multiorganism,promise;if(taxidInit="taxid"in ideo.config,ideo.config.multiorganism="organism"in ideo.config&&ideo.config.organism instanceof Array||taxidInit&&ideo.config.taxid instanceof Array,multiorganism=ideo.config.multiorganism,"organism"in ideo.config){for(orgs=multiorganism?ideo.config.organism:[ideo.config.organism],taxids=[],tmpChrs={},i=0;i<orgs.length;i++){org=orgs[i];for(taxid in ideo.organisms)ideo.organisms[taxid].commonName.toLowerCase()===org&&(taxids.push(taxid),multiorganism&&(tmpChrs[taxid]=ideo.config.chromosomes[org]))}0===taxids.length||ideo.assemblyIsAccession()&&/GCA_/.test(ideo.config.assembly)?(promise=new __WEBPACK_IMPORTED_MODULE_3_es6_promise__.Promise(function(t){ideo.getTaxidFromEutils(t)}),promise.then(function(data){var organism=ideo.config.organism,dataDir=ideo.config.dataDir,urlOrg=organism.replace(" ","-");taxid=data,-1===taxids.indexOf(taxid)&&taxids.push(taxid),ideo.config.taxids=taxids,ideo.organisms[taxid]={commonName:"",scientificName:ideo.config.organism,scientificNameAbbr:""};var fullyBandedTaxids=["9606","10090","10116"];-1!==fullyBandedTaxids.indexOf(taxid)&&!1===ideo.config.showFullyBanded&&(urlOrg+="-no-bands");var chromosomesUrl=dataDir+urlOrg+".js",promise=new __WEBPACK_IMPORTED_MODULE_3_es6_promise__.Promise(function(t,e){d3.request(chromosomesUrl).get(function(n,r){n&&e(Error(n)),t(r)})});return promise.then(function(data){var asmAndChrArray=[],chromosomes=[],seenChrs={},chr;eval(data.response),asmAndChrArray.push("");for(var i=0;i<chrBands.length;i++)(chr=chrBands[i].split(" ")[0])in seenChrs||(chromosomes.push({name:chr,type:"nuclear"}),seenChrs[chr]=1);return chromosomes=chromosomes.sort(Ideogram.sortChromosomes),asmAndChrArray.push(chromosomes),ideo.coordinateSystem="iscn",asmAndChrArray},function(){return new __WEBPACK_IMPORTED_MODULE_3_es6_promise__.Promise(function(t){ideo.coordinateSystem="bp",ideo.getAssemblyAndChromosomesFromEutils(t)})})}).then(function(t){assembly=t[0],chromosomes=t[1],ideo.config.chromosomes=chromosomes,ideo.organisms[taxid].assemblies={default:assembly},callback(taxids)})):(ideo.config.taxids=taxids,multiorganism&&(ideo.config.chromosomes=tmpChrs),callback(taxids))}else multiorganism?(ideo.coordinateSystem="bp",taxidInit&&(taxids=ideo.config.taxid)):(taxidInit&&(taxids=[ideo.config.taxid]),ideo.config.taxids=taxids),callback(taxids)}function getAssemblyAndChromosomesFromEutils(t){var e,n,r,i,o,a,s,c,u,f,l,h,d,p,g,m,b,_,v,y=this;n=y.config.organism,e=[],i=[],o=y.assemblyIsAccession()?y.config.assembly+"%22[Assembly%20Accession]":n+"%22[organism]AND%20(%22latest%20refseq%22[filter])%20",a=y.esearch+"&db=assembly&term=%22"+o+"AND%20(%22chromosome%20level%22[filter]%20OR%20%22complete%20genome%22[filter])",d3.promise.json(a).then(function(t){return s=t.esearchresult.idlist[0],c=y.esummary+"&db=assembly&id="+s,d3.promise.json(c)}).then(function(t){u=t.result[s].gbuid,r=t.result[s].assemblyaccession,e.push(r);var n="&db=nuccore&linkname=gencoll_nuccore_chr&from_uid="+u;return f=y.elink+n,d3.promise.json(f)}).then(function(t){return l=t.linksets[0].linksetdbs[0].links.join(","),h=y.esummary+"&db=nucleotide&id="+l,d3.promise.json(h)}).then(function(n){d=n.result;for(var r in d)if(p=d[r],"uids"!==r){if("mitochondrion"===p.genome){if(!y.config.showNonNuclearChromosomes)continue;v=p.genome,g=p.subtype.split("|").indexOf("plasmid"),m=-1===g?"MT":p.subname.split("|")[g]}else if("chloroplast"===p.genome||"plastid"===p.genome){if(v="chloroplast",!y.config.showNonNuclearChromosomes)continue;m="CP"}else v="nuclear",g=p.subtype.split("|").indexOf("chromosome"),void 0!==(m=p.subname.split("|")[g])&&"chr"===m.substr(0,3)&&(m=m.substr(3));b=p.slen,_={name:m,length:b,type:v},i.push(_)}return i=i.sort(Ideogram.sortChromosomes),e.push(i),y.coordinateSystem="bp",t(e)})}__webpack_require__.d(__webpack_exports__,"d",function(){return eutils}),__webpack_require__.d(__webpack_exports__,"b",function(){return esearch}),__webpack_require__.d(__webpack_exports__,"c",function(){return esummary}),__webpack_require__.d(__webpack_exports__,"a",function(){return elink}),__webpack_require__.d(__webpack_exports__,"g",function(){return getTaxidFromEutils}),__webpack_require__.d(__webpack_exports__,"f",function(){return getOrganismFromEutils}),__webpack_require__.d(__webpack_exports__,"h",function(){return getTaxids}),__webpack_require__.d(__webpack_exports__,"e",function(){return getAssemblyAndChromosomesFromEutils});var __WEBPACK_IMPORTED_MODULE_0_d3_request__=__webpack_require__(16),__WEBPACK_IMPORTED_MODULE_1_d3_dispatch__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_2_d3_promise__=__webpack_require__(43),__WEBPACK_IMPORTED_MODULE_2_d3_promise___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_d3_promise__),__WEBPACK_IMPORTED_MODULE_3_es6_promise__=__webpack_require__(89),__WEBPACK_IMPORTED_MODULE_3_es6_promise___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_es6_promise__),d3=Object.assign({},__WEBPACK_IMPORTED_MODULE_0_d3_request__,__WEBPACK_IMPORTED_MODULE_1_d3_dispatch__);d3.promise=__WEBPACK_IMPORTED_MODULE_2_d3_promise__;var eutils="https://eutils.ncbi.nlm.nih.gov/entrez/eutils/",esearch=eutils+"esearch.fcgi?retmode=json",esummary=eutils+"esummary.fcgi?retmode=json",elink=eutils+"elink.fcgi?retmode=json"},function(module,__webpack_exports__,__webpack_require__){"use strict";function getBands(content,taxid,chromosomes){var lines={},delimiter,tsvLines,columns,line,stain,chr,i,init,tsvLinesLength,source,start,stop,firstColumn,tmp;if("window.chrBands"===content.slice(0,15)&&(source="native"),chromosomes instanceof Array&&"object"===_typeof(chromosomes[0])){for(tmp=[],i=0;i<chromosomes.length;i++)tmp.push(chromosomes[i].name);chromosomes=tmp}if("undefined"==typeof chrBands&&"native"!==source?(delimiter=/\t/,tsvLines=content.split(/\r\n|\n/),init=1):(delimiter=/ /,tsvLines="native"===source?eval(content):content,init=0),firstColumn=tsvLines[0].split(delimiter)[0],source="#chromosome"===firstColumn?"ncbi":"#chrom"===firstColumn?"ucsc":"native",tsvLinesLength=tsvLines.length,"ncbi"===source||"native"===source)for(i=init;i<tsvLinesLength;i++)columns=tsvLines[i].split(delimiter),chr=columns[0],void 0!==chromosomes&&-1===chromosomes.indexOf(chr)||(chr in lines==!1&&(lines[chr]=[]),stain=columns[7],columns[8]&&(stain+=columns[8]),line={chr:chr,bp:{start:parseInt(columns[5],10),stop:parseInt(columns[6],10)},iscn:{start:parseInt(columns[3],10),stop:parseInt(columns[4],10)},px:{start:-1,stop:-1,width:-1},name:columns[1]+columns[2],stain:stain,taxid:taxid},lines[chr].push(line));else if("ucsc"===source)for(i=init;i<tsvLinesLength;i++)columns=tsvLines[i].split(delimiter),columns[0]==="chr"+chromosomeName&&(stain=columns[4],"n/a"===stain&&(stain="gpos100"),start=parseInt(columns[1],10),stop=parseInt(columns[2],10),line={chr:columns[0].split("chr")[1],bp:{start:start,stop:stop},iscn:{start:start,stop:stop},px:{start:-1,stop:-1,width:-1},name:columns[3],stain:stain,taxid:taxid},lines[chr].push(line));return lines}function drawBandLabels(t){var e,n,r,i,o,a,s,c;o=this,r=[];for(i in t)for(n in t[i])r.push(t[i][n]);for(c={},s=0,e=0;e<r.length;e++)s+=1,a=r[e],n=d3.select(o.selector+" #"+a.id),c[a.id]=[],n.selectAll("text").data(a.bands).enter().append("g").attr("class",function(t,e){return"bandLabel bsbsl-"+e}).attr("transform",function(t){var n=o._layout.getChromosomeBandLabelTranslate(t,e),r=n.x;return c[a.id].push(r+13),n.translate}).append("text").attr("text-anchor",o._layout.getChromosomeBandLabelAnchor(e)).text(function(t){return t.name}),n.selectAll("line.bandLabelStalk").data(a.bands).enter().append("g").attr("class",function(t,e){return"bandLabelStalk bsbsl-"+e}).attr("transform",function(t){var e,n;return e=o.round(t.px.start+t.px.width/2),c[a.id].push(e+13),n=-10,"translate("+e+","+n+")"}).append("line").attr("x1",0).attr("y1",function(){return o._layout.getChromosomeBandTickY1(e)}).attr("x2",0).attr("y2",function(){return o._layout.getChromosomeBandTickY2(e)});for(e=0;e<r.length;e++){a=r[e];var u,f,l,h,d,p,g,m,b=c[a.id].length,_=[];for(u=0,m=5,f=0;f<b;f++)h=c[a.id][f],h<u+m==!1?(_.push(f),l!==f&&(p=c[a.id][f],g=36,d=p+g),h<d+m?(l=f,u=d):_.push(f)):(l=f,u=d);var v,y=[],w=_.length;for(v=0;v<w;v++)f=_[v],y.push("#"+a.id+" .bsbsl-"+f);this.bandsToShow=this.bandsToShow.concat(y)}}function getBandColorGradients(){var t,e,n,r,i,o,a="";t=[["gneg","#FFF","#FFF","#DDD"],["gpos25","#C8C8C8","#DDD","#BBB"],["gpos33","#BBB","#BBB","#AAA"],["gpos50","#999","#AAA","#888"],["gpos66","#888","#888","#666"],["gpos75","#777","#777","#444"],["gpos100","#444","#666","#000"],["acen","#FEE","#FEE","#FDD"],["noBands","#BBB","#BBB","#AAA"]];for(var s=0;s<t.length;s++)e=t[s][0],n=t[s][1],r=t[s][2],i=t[s][3],a+='<linearGradient id="'+e+'" x1="0%" y1="0%" x2="0%" y2="100%">',a+="gneg"===e?'<stop offset="70%" stop-color="'+r+'" /><stop offset="95%" stop-color="'+i+'" /><stop offset="100%" stop-color="'+n+'" />':'<stop offset="5%" stop-color="'+n+'" /><stop offset="15%" stop-color="'+r+'" /><stop offset="60%" stop-color="'+i+'" />',a+="</linearGradient>";return o='<style>svg#_ideogram  {padding-left: 5px;} svg#_ideogram .labeled {padding-left: 15px;} svg#_ideogram.labeledLeft {padding-left: 15px; padding-top: 15px;} #_ideogram text {font: 9px Tahoma; fill: #000;} #_ideogram .italic {font-style: italic;} #_ideogram .chromosome {cursor: pointer; fill: #AAA;}#_ideogram .chrSetLabel {font-weight: bolder;}#_ideogram .ghost {opacity: 0.2;}#_ideogram .hidden {display: none;}#_ideogram .bandLabelStalk line {stroke: #AAA; stroke-width: 1;}#_ideogram .syntenyBorder {stroke:#AAA;stroke-width:1;}#_ideogram .brush .selection {  fill: #F00;  stroke: #F00;  fill-opacity: .3;  shape-rendering: crispEdges;}#_ideogram .noBands {fill: #AAA;}#_ideogram .gneg {fill: #FFF}#_ideogram .gpos25 {fill: #BBB}#_ideogram .gpos33 {fill: #AAA}#_ideogram .gpos50 {fill: #888}#_ideogram .gpos66 {fill: #666}#_ideogram .gpos75 {fill: #444}#_ideogram .gpos100 {fill: #000}#_ideogram .gpos {fill: #000}#_ideogram .acen {fill: #FDD}#_ideogram .stalk {fill: #CCE;}#_ideogram .gvar {fill: #DDF}#_ideogram.faint .gneg {fill: #FFF}#_ideogram.faint .gpos25 {fill: #EEE}#_ideogram.faint .gpos33 {fill: #EEE}#_ideogram.faint .gpos50 {fill: #EEE}#_ideogram.faint .gpos66 {fill: #EEE}#_ideogram.faint .gpos75 {fill: #EEE}#_ideogram.faint .gpos100 {fill: #DDD}#_ideogram.faint .gpos {fill: #DDD}#_ideogram.faint .acen {fill: #FEE}#_ideogram.faint .stalk {fill: #EEF;}#_ideogram.faint .gvar {fill: #EEF}.gneg {fill: url("#gneg")} .gpos25 {fill: url("#gpos25")} .gpos33 {fill: url("#gpos33")} .gpos50 {fill: url("#gpos50")} .gpos66 {fill: url("#gpos66")} .gpos75 {fill: url("#gpos75")} .gpos100 {fill: url("#gpos100")} .gpos {fill: url("#gpos100")} .acen {fill: url("#acen")} .stalk {fill: url("#stalk")} .gvar {fill: url("#gvar")} .noBands {fill: url("#noBands")} .chromosome {fill: url("#noBands")} </style>',a+='<pattern id="stalk" width="2" height="1" patternUnits="userSpaceOnUse" patternTransform="rotate(30 0 0)"><rect x="0" y="0" width="10" height="2" fill="#CCE" /> <line x1="0" y1="0" x2="0" y2="100%" style="stroke:#88B; stroke-width:0.7;" /></pattern><pattern id="gvar" width="2" height="1" patternUnits="userSpaceOnUse" patternTransform="rotate(-30 0 0)"><rect x="0" y="0" width="10" height="2" fill="#DDF" /> <line x1="0" y1="0" x2="0" y2="100%" style="stroke:#99C; stroke-width:0.7;" /></pattern>',a="<defs>"+a+"</defs>",a=o+a}function processBandData(){var t,e,n,r,i,o,a,s,c,u,f,l,h,d,p=this;if(t=[],!0===p.config.multiorganism)for(p.coordinateSystem="bp",l=p.config.taxids,e=0;e<l.length;e++)f=l[e];else void 0===p.config.taxid&&(p.config.taxid=p.config.taxids[0]),f=p.config.taxid,l=[f],p.config.taxids=l;"chromosomes"in p.config&&(h=p.config.chromosomes),p.config.multiorganism&&(d=h),p.config.chromosomes={};var g=(new Date).getTime();for(n=0;n<l.length;n++)if(f=l[n],p.config.multiorganism&&(h=d[f]),"iscn"===p.coordinateSystem||p.config.multiorganism)for(c=p.bandData[f],u=p.getBands(c,f,h),h=Object.keys(u).sort(function(t,e){return Ideogram.naturalSort(t,e)}),p.config.chromosomes[f]=h.slice(),p.numChromosomes+=p.config.chromosomes[f].length,r=0;r<h.length;r++)i=h[r],o=u[i],t.push(o),a={iscn:o[o.length-1].iscn.stop,bp:o[o.length-1].bp.stop},a.iscn>p.maxLength.iscn&&(p.maxLength.iscn=a.iscn),a.bp>p.maxLength.bp&&(p.maxLength.bp=a.bp);else if("bp"===p.coordinateSystem)for(p.config.chromosomes[f]=h.slice(),p.numChromosomes+=p.config.chromosomes[f].length,r=0;r<h.length;r++)s=h[r],s.length>p.maxLength.bp&&(p.maxLength.bp=s.length);var m=(new Date).getTime();return p.config.debug&&console.log("Time in processBandData: "+(m-g)+" ms"),t}__webpack_require__.d(__webpack_exports__,"c",function(){return getBands}),__webpack_require__.d(__webpack_exports__,"a",function(){return drawBandLabels}),__webpack_require__.d(__webpack_exports__,"b",function(){return getBandColorGradients}),__webpack_require__.d(__webpack_exports__,"d",function(){return processBandData});var __WEBPACK_IMPORTED_MODULE_0_d3_selection__=__webpack_require__(0),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d3=Object.assign({},__WEBPACK_IMPORTED_MODULE_0_d3_selection__)},function(t,e,n){"use strict";function r(){call(this.onBrushMoveCallback)}function i(t,e){function n(){var t=o.event.selection.map(d.invert),e=Math.floor(t[0]),n=Math.ceil(t[1]);a.selectedRegion={from:e,to:n,extent:n-e},a.onBrushMove&&a.onBrushMoveCallback()}var r,i,a=this,s=a.config.chrWidth+6.5,c=a.config.chrHeight,f=a.chromosomesArray[0],l=f.bands[f.bands.length-1].bp.stop,h=this._layout.getMargin().left,d=u.scaleLinear().domain([0,u.max(f.bands,function(t){return t.bp.stop})]).range([h,u.max(f.bands,function(t){return t.px.stop})+h]);void 0===t&&(t=Math.floor(l/10)),"undefined"==typeof right&&(e=Math.ceil(2*t)),r=a.convertBpToPx(f,t),i=a.convertBpToPx(f,e),a.selectedRegion={from:t,to:e,extent:e-t},a.brush=u.brushX().extent([[h,0],[c+h,s]]).on("brush",n);var p=this._layout.getChromosomeSetYTranslate(0),g=p+(a.config.chrWidth-s)/2;u.select(a.selector).append("g").attr("class","brush").attr("transform","translate(0, "+g+")").call(a.brush).call(a.brush.move,[r,i])}n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i});var o=n(0),a=n(50),s=n(64),c=n(4),u=Object.assign({},a,o);u.scaleLinear=s.a,u.max=c.d},function(t,e,n){"use strict";function r(t,e,n,r,i,o){var a,s,c,u,f,l,h,d=this;for(h="male"===d.config.sex?[1,0]:[0,0],l=0;l<h.length;l++)f=h[l]+i,a=o[f],s=t[f],c=d.getChromosomeModel(s,a,e,f),u=d.drawChromosome(c,i,n,l),r.append("clipPath").attr("id",c.id+"-chromosome-set-clippath").selectAll("path").data(u).enter().append("path").attr("d",function(t){return t.path}).attr("class",function(t){return t.class})}function i(t){if(2===this.config.ploidy&&this.config.sex){var e,n,r=this,i={X:1,Y:1};for(r.sexChromosomes.list=[],n=0;n<t.length;n++)e=t[n],"male"===r.config.sex&&e in i?(r.sexChromosomes.list.push(e),r.sexChromosomes.index||(r.sexChromosomes.index=n)):"X"===e&&(r.sexChromosomes.list.push(e,e),r.sexChromosomes.index=n)}}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i})},function(t,e,n){"use strict";function r(t,e){var n,r,i,o,a,s,c,u,f,l,h,d,p;for(n=0;n<t.bands.length;n++)if(r=t.bands[n],a=this._bandsXOffset,h=r.bp.start,d=r.bp.stop,p=d-h,u=r.iscn.start,f=r.iscn.stop,l=f-u,s=r.px.start,c=r.px.width,e>=h&&e<=d)return i=l/p,o=u+(e-h)*i,a+s+c*(o-u)/l;throw new Error("Base pair out of range.  bp: "+e+"; length of chr"+t.name+": "+r.bp.stop)}function i(t,e){var n,r,i,o,a,s,c,u,f,l,h,d;for(0===e&&(e=t.bands[0].px.start),n=0;n<t.bands.length;n++)if(r=t.bands[n],c=r.px.start,u=r.px.stop,f=r.iscn.start,l=r.iscn.stop,e>=c&&e<=u)return d=l-f,s=u-c,h=r.bp.stop-r.bp.start,i=d/s,o=f+(e-c)*i,a=r.bp.start+h*(o-f)/d,Math.round(a);throw new Error("Pixel out of range.  px: "+e+"; length of chr"+t.name+": "+u)}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i})},function(t,e,n){"use strict";function r(){return"assembly"in this.config&&/(GCF_|GCA_)/.test(this.config.assembly)}function i(){var t,e,n,r=document.scripts,i=location.host,o=Ideogram.version;if("localhost"!==i&&"127.0.0.1"!==i)return"https://unpkg.com/ideogram@"+o+"/dist/data/bands/native/";for(var a=0;a<r.length;a++)if("src"in(t=r[a])&&/ideogram/.test(t.src.split("/").slice(-1)))return e=t.src.split("//"),n=e[0],e="/"+e[1].split("/").slice(0,-2).join("/"),n+"//"+e+"/data/bands/native/";return"../data/bands/native/"}function o(t,e,n,r){var i,o,a,s,c,u,f={},l=this.config.chrHeight,h=this.maxLength;if(c=this.coordinateSystem,u=void 0!==t,u?(f.name=e,f.length=t[t.length-1][c].stop,f.type="nuclear"):f=e,f.chrIndex=r,f.id="chr"+f.name+"-"+n,!0===this.config.fullChromosomeLabels){var d=this.organisms[n].scientificNameAbbr;f.name=d+" chr"+f.name}if(s=f.length,a=0,u)for(var p=0;p<t.length;p++){i=t[p];var g=i[c].stop-i[c].start;o=l*f.length/h[c]*g/s,t[p].px={start:a,stop:a+o,width:o},a=t[p].px.stop,u&&"acen"===i.stain&&"p"===i.name[0]&&(f.pcenIndex=p)}else a=l*f.length/h[c];return f.width=a,f.scale={},!0===this.config.multiorganism?(f.scale.bp=1,f.scale.iscn=l*s/h.bp):(f.scale.bp=l/h.bp,u&&(f.scale.iscn=l/h.iscn)),f.bands=t,f.centromerePosition="",u&&"p"===t[0].name[0]&&"q"===t[1].name[0]&&t[0].bp.stop-t[0].bp.start<2e6&&(f.centromerePosition="telocentric",f.bands=f.bands.slice(1)),u&&1===f.bands.length&&delete f.bands,f}function a(){var t=this,e=t._layout.getChromosomeLabelClass(),n=t._layout.getChromosomeSetLabelXPosition(),r=t._layout.getChromosomeSetLabelTranslate();g.selectAll(t.selector+" .chromosome-set-container").append("text").data(t.chromosomesArray).attr("class","chromosome-set-label "+e).attr("transform",r).attr("x",n).attr("y",function(e,n){return t._layout.getChromosomeSetLabelYPosition(n)}).attr("text-anchor",t._layout.getChromosomeSetLabelAnchor()).each(function(e,n){var r;r=-1===e.name.indexOf(" ")?[e.name]:e.name.match(/^(.*)\s+([^\s]+)$/).slice(1).reverse(),"sex"in t.config&&2===t.config.ploidy&&n===t.sexChromosomes.index&&(r="male"===t.config.sex?["XY"]:["XX"]),g.select(this).selectAll("tspan").data(r).enter().append("tspan").attr("dy",function(t,e){return-1.2*e+"em"}).attr("x",t._layout.getChromosomeSetLabelXPosition()).attr("class",function(e,n){var r=t.config.fullChromosomeLabels;return 1===n&&r?"italic":null}).text(String)});var i=t._layout.getChromosomeSetLabelTranslate();g.selectAll(t.selector+" .chromosome-set-container").each(function(e,n){g.select(this).selectAll(".chromosome").append("text").attr("class","chrLabel").attr("transform",i).attr("x",function(e,n){return t._layout.getChromosomeLabelXPosition(n)}).attr("y",function(e,n){return t._layout.getChromosomeLabelYPosition(n)}).text(function(e,r){return t._ploidy.getAncestor(n,r)}).attr("text-anchor","middle")})}function s(t,e,n,r){var i,o,a,s,c,u,f,l,h;if(o=this.config.chrWidth,i=this.config.chrMargin*e,u=this.config.numAnnotTracks,a=this,void 0===r||!r.hasOwnProperty("x")||1===r.x&&1===r.y?(s=-8,c=-16,r={x:1,y:1},f=""):(f="scale("+r.x+","+r.y+")",s=-6,c=""===r?-16:-14),"vertical"===n||""===n){var d=e-1;(u>1||""===n)&&(d-=1),h=-4,!0===a.config.showBandLabels&&(h=a.config.chrMargin+o+26),i=a.config.chrMargin*d,u>1==!1&&(i+=1),c=i+h,t.selectAll("text.chrLabel").attr("transform",f).selectAll("tspan").attr("x",s).attr("y",c)}else e-=1,h=-o-2,!0===a.config.showBandLabels&&(h=a.config.chrMargin+8),l=a.config.annotTracksHeight,"overlay"!==a.config.annotationsLayout&&(l*=2),i=a.config.chrMargin*e,s=3-(i+h)+l,s/=r.x,t.selectAll("text.chrLabel").attr("transform","rotate(-90)"+f).selectAll("tspan").attr("x",s).attr("y",c)}function c(t){return Math.round(100*t)/100}function u(t,e,n,r){var i=this.config.chrMargin,o=d.a.getInstance(t),a=n.append("g").attr("id",t.id).attr("class","chromosome "+o.getCssClass()).attr("transform","translate(0, "+r*i+")");return p.a.getInstance(o,this.config,this).render(a,e,r)}function f(t){if(this.config.taxid){var e=Number(g.select(t.parentNode).attr("data-set-number")),n=Array.prototype.slice.call(g.select(t.parentNode).selectAll("g.chromosome")._groups[0]).indexOf(t);return this._layout.rotate(e,n,t)}}function l(){return g.select(this.selector).node()}n.d(e,"a",function(){return r}),n.d(e,"e",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"h",function(){return s}),n.d(e,"i",function(){return c}),n.d(e,"b",function(){return u}),n.d(e,"g",function(){return f}),n.d(e,"f",function(){return l});var h=n(0),d=n(260),p=n(261),g=Object.assign({},h)},function(t,e,n){"use strict";function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return s});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function(){function t(e){o(this,t),this._model=e,this._class="ModelAdapter"}return a(t,[{key:"getModel",value:function(){return this._model}},{key:"getCssClass",value:function(){return""}}],[{key:"getInstance",value:function(e){return e.bands?new t(e):new c(e)}}]),t}(),c=function(t){function e(t){o(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n._class="ModelNoBandsAdapter",n}return i(e,t),a(e,[{key:"getModel",value:function(){return this._model.bands=[],this._model.width>1&&this._model.bands.push({name:"q",px:{start:0,stop:this._model.width,width:this._model.width}}),this._model}},{key:"getCssClass",value:function(){return"noBands"}}]),e}(s)},function(t,e,n){"use strict";function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return u});var a=n(262),s=n(263),c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function(){function t(e,n,r){o(this,t),this._adapter=e,this._model=this._adapter.getModel(),this._config=n,this._ideo=r,this._color=new a.a(this._config),this._bumpCoefficient=5}return c(t,[{key:"_addPArmShape",value:function(t,e){return e?t.concat(this._getPArmShape()):t}},{key:"_addQArmShape",value:function(t,e){return e?t.concat(this._getQArmShape()):t}},{key:"render",value:function(t,e,n){var r=this;t=t.append("g").attr("class","bands").attr("clip-path","url(#"+this._model.id+"-chromosome-set-clippath)");var i=this._renderPArm(t,e,n),o=this._renderQArm(t,e,n);this._renderRangeSet(t,e,n);var a=[];a=this._addPArmShape(a,i),a=this._addQArmShape(a,o);var s="0",c="",u=this.isFullyBanded();return"ancestors"in this._ideo.config&&!("rangeSet"in this._ideo.config)?(c=r._color.getArmColor(e,n,0),u&&(s="0.5")):u?(s=null,c="transparent"):"ancestors"in this._ideo.config||(s="1"),t.append("g").attr("class","chromosome-border").selectAll("path").data(a).enter().append("path").attr("fill",c).style("fill-opacity",s).attr("stroke",function(t,i){return r._color.getBorderColor(e,n,i)}).attr("stroke-width",function(t){return"strokeWidth"in t?t.strokeWidth:1}).attr("d",function(t){return t.path}).attr("class",function(t){return t.class}),a}},{key:"_renderRangeSet",value:function(t,e,n){if("rangeSet"in this._config){var r=this._config.rangeSet.filter(function(t){return t.chr-1===e}).map(function(t){return new s.a(t)}),i=t.append("g").attr("class","range-set"),o=this,a=o._ideo,c=a._bandsXOffset;i.selectAll("rect.range").data(r).enter().append("rect").attr("class","range").attr("x",function(t){return a.convertBpToPx(o._model,t.getStart())-c}).attr("y",0).attr("width",function(t){return a.convertBpToPx(o._model,t.getLength())-c}).attr("height",this._config.chrWidth).style("fill",function(t){return t.getColor(n)})}}},{key:"_getShapeData",value:function(){for(var t,e=0;e<this._model.bands.length;e++)if("q"===this._model.bands[e].name[0]){t=this._model.bands[e];break}var n=this._model.bands.length-1,r=this._model.bands[n].px.stop;return{x1:0,x2:t?t.px.start:r,x3:r,w:this._config.chrWidth,b:this._config.chrWidth/this._bumpCoefficient}}},{key:"_getPArmShape",value:function(){var t=this._getShapeData(),e=t.x2-t.b;return this.isFullyBanded()||"ancestors"in this._ideo.config?{class:"",path:"M"+t.b+",0 L"+e+",0 Q"+(t.x2+t.b)+","+t.w/2+","+e+","+t.w+" L"+t.b+","+t.w+" Q-"+t.b+","+t.w/2+","+t.b+",0"}:[{class:"",path:"M"+t.b+",0 L"+(e-2)+",0 L"+(e-2)+","+t.w+" L"+t.b+","+t.w+" Q-"+t.b+","+t.w/2+","+t.b+",0"},{class:"acen",path:"M"+e+",0 Q"+(t.x2+t.b)+","+t.w/2+","+e+","+t.w+" L"+e+","+t.w+" L"+(e-2)+","+t.w+" L"+(e-2)+",0"}]}},{key:"_getQArmShape",value:function(){var t=this._getShapeData(),e=t.x3-t.b,n=t.x2+t.b;return this.isFullyBanded()||"ancestors"in this._ideo.config?{class:"",path:"M"+n+",0 L"+e+",0 Q"+(t.x3+t.b)+","+t.w/2+","+e+","+t.w+" L"+n+","+t.w+" Q"+(t.x2-t.b)+","+t.w/2+","+n+",0"}:[{path:"M"+n+",0 L"+e+",0 Q"+(t.x3+t.b)+","+t.w/2+","+e+","+t.w+" L"+n+","+t.w+" L"+n+",0"},{class:"acen",path:"M"+n+",0Q"+(t.x2-t.b)+","+t.w/2+","+n+","+t.w+" L"+n+","+t.w+"L"+(n+2)+","+t.w+"L"+(n+2)+",0"}]}},{key:"isFullyBanded",value:function(){return this._model.bands&&(2!==this._model.bands.length||"q"===this._model.bands[0].name[0])}},{key:"_renderBands",value:function(t,e,n,r,i){var o=this,a="p"===i?0:1,s="";"ancestors"in o._ideo.config&&!o.isFullyBanded()&&(s=o._color.getArmColor(e,n,a)),t.selectAll("path.band."+i).data(r).enter().append("path").attr("id",function(t){return o._model.id+"-"+t.name.replace(".","-")}).attr("class",function(t){return"band "+i+"-band "+t.stain}).attr("d",function(t){var e=o._ideo.round(t.px.start),n=o._ideo.round(t.px.width);return"M "+e+", 0l "+n+" 0 l 0 "+o._config.chrWidth+" l -"+n+" 0 z"}).style("fill",s)}},{key:"_renderPArm",value:function(t,e,n){var r=this._model.bands.filter(function(t){return"p"===t.name[0]});return this._renderBands(t,e,n,r,"p"),Boolean(r.length)}},{key:"_renderQArm",value:function(t,e,n){var r=this._model.bands.filter(function(t){return"q"===t.name[0]});return this._renderBands(t,e,n,r,"q"),Boolean(r.length)}}],[{key:"getInstance",value:function(t,e,n){return"telocentric"===t.getModel().centromerePosition?new l(t,e,n):new f(t,e,n)}}]),t}(),f=function(t){function e(t,n,i){o(this,e);var a=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,i));return a._class="MetacentricChromosome",a}return i(e,t),e}(u),l=function(t){function e(t,n,i){o(this,e);var a=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,i));return a._class="TelocentricChromosome",a._pArmOffset=3,a}return i(e,t),c(e,[{key:"_addPArmShape",value:function(t){return t.concat(this._getPArmShape())}},{key:"_getPArmShape",value:function(){var t=this._getShapeData();return t.o=this._pArmOffset,[{class:"acen",path:"M"+(t.x2+2)+",1L"+(t.x2+t.o+3.25)+",1 L"+(t.x2+t.o+3.25)+","+(t.w-1)+" L"+(t.x2+2)+","+(t.w-1)},{class:"gpos66",path:"M"+(t.x2-t.o+5)+",0L"+(t.x2-t.o+3)+",0 L"+(t.x2-t.o+3)+","+t.w+" L"+(t.x2-t.o+5)+","+t.w,strokeWidth:.5}]}},{key:"_getQArmShape",value:function(){var t=this._getShapeData(),e=t.x3-t.b,n=this._pArmOffset+3;return{class:"",path:"M"+(t.x2+n)+",0 L"+e+",0 Q"+(t.x3+t.b)+","+t.w/2+","+e+","+t.w+" L"+(t.x2+n)+","+t.w}}}]),e}(u)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return a});var i=n(90),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function(){function t(e){r(this,t),this._config=e,this._ploidy=new i.a(this._config)}return o(t,[{key:"getArmColor",value:function(t,e,n){return this._config.armColors?this._config.armColors[n]:this._config.ancestors?this._getPolyploidArmColor(t,e,n):null}},{key:"getBorderColor",value:function(t,e,n){return e<this._config.ploidy?"#000":this._ploidy.exists(t,e,n)?"#000":"#fff"}},{key:"_getPolyploidArmColor",value:function(t,e,n){if(this._ploidy.exists(t,e,n)){var r=this._ploidy.getAncestor(t,e,n);return this._config.ancestors[r]}return"transparent"}}]),t}()},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return o});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e){r(this,t),this._data=e}return i(t,[{key:"getStart",value:function(){return this._data.start}},{key:"getStop",value:function(){return this._data.stop}},{key:"getLength",value:function(){return this._data.stop-this._data.start}},{key:"getColor",value:function(t){return"ploidy"in this._data?"ploidy"in this._data&&this._data.ploidy[t]?this._getColor(t):"transparent":this._getColor(t)}},{key:"_getColor",value:function(t){return Array.isArray(this._data.color)?this._data.color[t]:this._data.color}}]),t}()}]);
//# sourceMappingURL=ideogram.min.js.map