UNPKG

sqlpad

Version:

Web app. Write SQL and visualize the results. Supports Postgres, MySQL, SQL Server, Crate, Vertica and SAP HANA.

1 lines 1.46 MB
(window["webpackJsonpsqlpad-front-end"]=window["webpackJsonpsqlpad-front-end"]||[]).push([[2],[function(t,e,n){"use strict";t.exports=n(182)},function(t,e,n){"use strict";n.r(e);var r="http://www.w3.org/1999/xhtml",i={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/"},o=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),i.hasOwnProperty(e)?{space:i[e],local:t}:t};function a(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===r&&e.documentElement.namespaceURI===r?e.createElement(t):e.createElementNS(n,t)}}function s(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var l=function(t){var e=o(t);return(e.local?s:a)(e)};function u(){}var c=function(t){return null==t?u:function(){return this.querySelector(t)}};function h(){return[]}var f=function(t){return null==t?h:function(){return this.querySelectorAll(t)}},d=function(t){return function(){return this.matches(t)}},p=function(t){return new Array(t.length)};function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}g.prototype={constructor:g,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)}};var m="$";function v(t,e,n,r,i,o){for(var a,s=0,l=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new g(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function y(t,e,n,r,i,o,a){var s,l,u,c={},h=e.length,f=o.length,d=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(d[s]=u=m+a.call(l,l.__data__,s,e),u in c?i[s]=l:c[u]=l);for(s=0;s<f;++s)(l=c[u=m+a.call(t,o[s],s,o)])?(r[s]=l,l.__data__=o[s],c[u]=null):n[s]=new g(t,o[s]);for(s=0;s<h;++s)(l=e[s])&&c[d[s]]===l&&(i[s]=l)}function b(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function w(t){return function(){this.removeAttribute(t)}}function x(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _(t,e){return function(){this.setAttribute(t,e)}}function C(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function S(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 A=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function k(t){return function(){this.style.removeProperty(t)}}function M(t,e,n){return function(){this.style.setProperty(t,e,n)}}function F(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function T(t,e){return t.style.getPropertyValue(e)||A(t).getComputedStyle(t,null).getPropertyValue(e)}function O(t){return function(){delete this[t]}}function B(t,e){return function(){this[t]=e}}function D(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function R(t){return t.trim().split(/^|\s+/)}function L(t){return t.classList||new P(t)}function P(t){this._node=t,this._names=R(t.getAttribute("class")||"")}function $(t,e){for(var n=L(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function I(t,e){for(var n=L(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function N(t){return function(){$(this,t)}}function z(t){return function(){I(this,t)}}function j(t,e){return function(){(e.apply(this,arguments)?$:I)(this,t)}}P.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}};function W(){this.textContent=""}function H(t){return function(){this.textContent=t}}function U(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function V(){this.innerHTML=""}function G(t){return function(){this.innerHTML=t}}function q(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function K(){this.nextSibling&&this.parentNode.appendChild(this)}function Y(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function X(){return null}function Q(){var t=this.parentNode;t&&t.removeChild(this)}function Z(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function J(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var tt={},et=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(tt={mouseenter:"mouseover",mouseleave:"mouseout"}));function nt(t,e,n){return t=rt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function rt(t,e,n){return function(r){var i=et;et=r;try{t.call(this,this.__data__,e,n)}finally{et=i}}}function it(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 ot(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 at(t,e,n){var r=tt.hasOwnProperty(t.type)?nt:rt;return function(i,o,a){var s,l=this.__on,u=r(e,o,a);if(l)for(var c=0,h=l.length;c<h;++c)if((s=l[c]).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},l?l.push(s):this.__on=[s]}}function st(t,e,n,r){var i=et;t.sourceEvent=et,et=t;try{return e.apply(n,r)}finally{et=i}}function lt(t,e,n){var r=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 ut(t,e){return function(){return lt(this,t,e)}}function ct(t,e){return function(){return lt(this,t,e.apply(this,arguments))}}var ht=[null];function ft(t,e){this._groups=t,this._parents=e}function dt(){return new ft([[document.documentElement]],ht)}ft.prototype=dt.prototype={constructor:ft,select:function(t){"function"!==typeof t&&(t=c(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],l=s.length,u=r[i]=new Array(l),h=0;h<l;++h)(o=s[h])&&(a=t.call(o,o.__data__,h,s))&&("__data__"in o&&(a.__data__=o.__data__),u[h]=a);return new ft(r,this._parents)},selectAll:function(t){"function"!==typeof t&&(t=f(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],l=s.length,u=0;u<l;++u)(a=s[u])&&(r.push(t.call(a,a.__data__,u,s)),i.push(a));return new ft(r,i)},filter:function(t){"function"!==typeof t&&(t=d(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&t.call(o,o.__data__,u,a)&&l.push(o);return new ft(r,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),c=-1,this.each(function(t){p[++c]=t}),p;var n,r=e?y:v,i=this._parents,o=this._groups;"function"!==typeof t&&(n=t,t=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),c=0;c<a;++c){var h=i[c],f=o[c],d=f.length,p=t.call(h,h&&h.__data__,c,i),g=p.length,m=l[c]=new Array(g),b=s[c]=new Array(g);r(h,f,m,b,u[c]=new Array(d),p,e);for(var w,x,_=0,C=0;_<g;++_)if(w=m[_]){for(_>=C&&(C=_+1);!(x=b[C])&&++C<g;);w._next=x||null}}return(s=new ft(s,i))._enter=l,s._exit=u,s},enter:function(){return new ft(this._enter||this._groups.map(p),this._parents)},exit:function(){return new ft(this._exit||this._groups.map(p),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,u=e[s],c=n[s],h=u.length,f=a[s]=new Array(h),d=0;d<h;++d)(l=u[d]||c[d])&&(f[d]=l);for(;s<r;++s)a[s]=e[s];return new ft(a,this._parents)},order: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&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=b);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=new Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(e)}return new ft(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node: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},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each: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},attr:function(t,e){var n=o(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?x:w:"function"===typeof e?n.local?S:E:n.local?C:_)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?k:"function"===typeof e?F:M)(t,e,null==n?"":n)):T(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?O:"function"===typeof e?D:B)(t,e)):this.node()[t]},classed:function(t,e){var n=R(t+"");if(arguments.length<2){for(var r=L(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof e?j:e?N:z)(n,e))},text:function(t){return arguments.length?this.each(null==t?W:("function"===typeof t?U:H)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?V:("function"===typeof t?q:G)(t)):this.node().innerHTML},raise:function(){return this.each(K)},lower:function(){return this.each(Y)},append:function(t){var e="function"===typeof t?t:l(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"===typeof t?t:l(t),r=null==e?X:"function"===typeof e?e:c(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Q)},clone:function(t){return this.select(t?J:Z)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=it(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?at:ot,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"===typeof e?ct:ut)(t,e))}};var pt=dt,gt=function(t){return"string"===typeof t?new ft([[document.querySelector(t)]],[document.documentElement]):new ft([[t]],ht)},mt=function(t){return gt(l(t).call(document.documentElement))},vt=0;function yt(){return new bt}function bt(){this._="@"+(++vt).toString(36)}bt.prototype=yt.prototype={constructor:bt,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._}};var wt=function(){for(var t,e=et;t=e.sourceEvent;)e=t;return e},xt=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())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},_t=function(t){var e=wt();return e.changedTouches&&(e=e.changedTouches[0]),xt(t,e)},Ct=function(t){return"string"===typeof t?new ft([document.querySelectorAll(t)],[document.documentElement]):new ft([null==t?[]:t],ht)},Et=function(t,e,n){arguments.length<3&&(n=e,e=wt().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return xt(t,r);return null},St=function(t,e){null==e&&(e=wt().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=xt(t,e[n]);return i};n.d(e,"create",function(){return mt}),n.d(e,"creator",function(){return l}),n.d(e,"local",function(){return yt}),n.d(e,"matcher",function(){return d}),n.d(e,"mouse",function(){return _t}),n.d(e,"namespace",function(){return o}),n.d(e,"namespaces",function(){return i}),n.d(e,"clientPoint",function(){return xt}),n.d(e,"select",function(){return gt}),n.d(e,"selectAll",function(){return Ct}),n.d(e,"selection",function(){return pt}),n.d(e,"selector",function(){return c}),n.d(e,"selectorAll",function(){return f}),n.d(e,"style",function(){return T}),n.d(e,"touch",function(){return Et}),n.d(e,"touches",function(){return St}),n.d(e,"window",function(){return A}),n.d(e,"event",function(){return et}),n.d(e,"customEvent",function(){return st})},function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(e,"a",function(){return r})},function(t,e,n){t.exports=n(188)()},function(t,e,n){t.exports=n(186)},function(t,e,n){var r=n(0);function i(t,e){for(var n in e)t[n]=e[n];return t}var o={store:function(){}},a=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getChildContext=function(){return{store:this.props.store}},e.prototype.render=function(){return r.Children.only(this.props.children)},e}(r.Component);a.childContextTypes=o,e.connect=function(t,e){var n;return"function"!=typeof t&&("string"==typeof(n=t||[])&&(n=n.split(/\s*,\s*/)),t=function(t){for(var e={},r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}),function(n){function a(o,a){var s=this;r.Component.call(this,o,a);var l=a.store,u=t(l?l.getState():{},o),c=e?function(t,e){"function"==typeof t&&(t=t(e));var n={};for(var r in t)n[r]=e.action(t[r]);return n}(e,l):{store:l},h=function(){var e=t(l?l.getState():{},o);for(var n in e)if(e[n]!==u[n])return u=e,s.forceUpdate();for(var r in u)if(!(r in e))return u=e,s.forceUpdate()};this.componentWillReceiveProps=function(t){o=t,h()},this.componentDidMount=function(){l.subscribe(h)},this.componentWillUnmount=function(){l.unsubscribe(h)},this.render=function(){return r.createElement(n,i(i(i({},c),s.props),u))}}return a.contextTypes=o,(a.prototype=Object.create(r.Component.prototype)).constructor=a}},e.Provider=a},function(t,e,n){"use strict";n.r(e);var r=new Date,i=new Date;function o(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,a=[];if(n=s.ceil(n),i=null==i?1:Math.floor(i),!(n<r)||!(i>0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o<n&&n<r);return a},s.filter=function(n){return o(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,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},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}var a=o(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):a:null};var s=a,l=a.range,u=6e4,c=6048e5,h=o(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),f=h,d=h.range,p=o(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+e*u)},function(t,e){return(e-t)/u},function(t){return t.getMinutes()}),g=p,m=p.range,v=o(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*u)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),y=v,b=v.range,w=o(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())*u)/864e5},function(t){return t.getDate()-1}),x=w,_=w.range;function C(t){return o(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())*u)/c})}var E=C(0),S=C(1),A=C(2),k=C(3),M=C(4),F=C(5),T=C(6),O=E.range,B=S.range,D=A.range,R=k.range,L=M.range,P=F.range,$=T.range,I=o(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()}),N=I,z=I.range,j=o(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()});j.every=function(t){return isFinite(t=Math.floor(t))&&t>0?o(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};var W=j,H=j.range,U=o(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*u)},function(t,e){return(e-t)/u},function(t){return t.getUTCMinutes()}),V=U,G=U.range,q=o(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),K=q,Y=q.range,X=o(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}),Q=X,Z=X.range;function J(t){return o(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)/c})}var tt=J(0),et=J(1),nt=J(2),rt=J(3),it=J(4),ot=J(5),at=J(6),st=tt.range,lt=et.range,ut=nt.range,ct=rt.range,ht=it.range,ft=ot.range,dt=at.range,pt=o(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()}),gt=pt,mt=pt.range,vt=o(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()});vt.every=function(t){return isFinite(t=Math.floor(t))&&t>0?o(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};var yt=vt,bt=vt.range;n.d(e,"timeInterval",function(){return o}),n.d(e,"timeMillisecond",function(){return s}),n.d(e,"timeMilliseconds",function(){return l}),n.d(e,"utcMillisecond",function(){return s}),n.d(e,"utcMilliseconds",function(){return l}),n.d(e,"timeSecond",function(){return f}),n.d(e,"timeSeconds",function(){return d}),n.d(e,"utcSecond",function(){return f}),n.d(e,"utcSeconds",function(){return d}),n.d(e,"timeMinute",function(){return g}),n.d(e,"timeMinutes",function(){return m}),n.d(e,"timeHour",function(){return y}),n.d(e,"timeHours",function(){return b}),n.d(e,"timeDay",function(){return x}),n.d(e,"timeDays",function(){return _}),n.d(e,"timeWeek",function(){return E}),n.d(e,"timeWeeks",function(){return O}),n.d(e,"timeSunday",function(){return E}),n.d(e,"timeSundays",function(){return O}),n.d(e,"timeMonday",function(){return S}),n.d(e,"timeMondays",function(){return B}),n.d(e,"timeTuesday",function(){return A}),n.d(e,"timeTuesdays",function(){return D}),n.d(e,"timeWednesday",function(){return k}),n.d(e,"timeWednesdays",function(){return R}),n.d(e,"timeThursday",function(){return M}),n.d(e,"timeThursdays",function(){return L}),n.d(e,"timeFriday",function(){return F}),n.d(e,"timeFridays",function(){return P}),n.d(e,"timeSaturday",function(){return T}),n.d(e,"timeSaturdays",function(){return $}),n.d(e,"timeMonth",function(){return N}),n.d(e,"timeMonths",function(){return z}),n.d(e,"timeYear",function(){return W}),n.d(e,"timeYears",function(){return H}),n.d(e,"utcMinute",function(){return V}),n.d(e,"utcMinutes",function(){return G}),n.d(e,"utcHour",function(){return K}),n.d(e,"utcHours",function(){return Y}),n.d(e,"utcDay",function(){return Q}),n.d(e,"utcDays",function(){return Z}),n.d(e,"utcWeek",function(){return tt}),n.d(e,"utcWeeks",function(){return st}),n.d(e,"utcSunday",function(){return tt}),n.d(e,"utcSundays",function(){return st}),n.d(e,"utcMonday",function(){return et}),n.d(e,"utcMondays",function(){return lt}),n.d(e,"utcTuesday",function(){return nt}),n.d(e,"utcTuesdays",function(){return ut}),n.d(e,"utcWednesday",function(){return rt}),n.d(e,"utcWednesdays",function(){return ct}),n.d(e,"utcThursday",function(){return it}),n.d(e,"utcThursdays",function(){return ht}),n.d(e,"utcFriday",function(){return ot}),n.d(e,"utcFridays",function(){return ft}),n.d(e,"utcSaturday",function(){return at}),n.d(e,"utcSaturdays",function(){return dt}),n.d(e,"utcMonth",function(){return gt}),n.d(e,"utcMonths",function(){return mt}),n.d(e,"utcYear",function(){return yt}),n.d(e,"utcYears",function(){return bt})},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,l,"next",t)}function l(t){r(a,i,o,s,l,"throw",t)}s(void 0)})}}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";n.r(e);var r=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},i=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return r(e(t),n)}),{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}}};var o=i(r),a=o.right,s=o.left,l=a,u=function(t,e){null==e&&(e=c);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return o};function c(t,e){return[t,e]}var h=function(t,e,n){var r,i,o,a,s=t.length,l=e.length,u=new Array(s*l);for(null==n&&(n=c),r=o=0;r<s;++r)for(a=t[r],i=0;i<l;++i,++o)u[o]=n(a,e[i]);return u},f=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,e){var n,r,i=t.length,o=0,a=-1,s=0,l=0;if(null==e)for(;++a<i;)isNaN(n=d(t[a]))||(l+=(r=n-s)*(n-(s+=r/++o)));else for(;++a<i;)isNaN(n=d(e(t[a],a,t)))||(l+=(r=n-s)*(n-(s+=r/++o)));if(o>1)return l/(o-1)},g=function(t,e){var n=p(t,e);return n?Math.sqrt(n):n},m=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]},v=Array.prototype,y=v.slice,b=v.map,w=function(t){return function(){return t}},x=function(t){return t},_=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},C=Math.sqrt(50),E=Math.sqrt(10),S=Math.sqrt(2),A=function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=k(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));++s<i;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(t-s)/a;return r&&o.reverse(),o};function k(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=C?10:o>=E?5:o>=S?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=C?10:o>=E?5:o>=S?2:1)}function M(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=C?i*=10:o>=E?i*=5:o>=S&&(i*=2),e<t?-i:i}var F=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},T=function(){var t=x,e=m,n=F;function r(r){var i,o,a=r.length,s=new Array(a);for(i=0;i<a;++i)s[i]=t(r[i],i,r);var u=e(s),c=u[0],h=u[1],f=n(s,c,h);Array.isArray(f)||(f=M(c,h,f),f=_(Math.ceil(c/f)*f,h,f));for(var d=f.length;f[0]<=c;)f.shift(),--d;for(;f[d-1]>h;)f.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?f[i-1]:c,p.x1=i<d?f[i]:h;for(i=0;i<a;++i)c<=(o=s[i])&&o<=h&&g[l(f,o,0,d)].push(r[i]);return g}return r.value=function(e){return arguments.length?(t="function"===typeof e?e:w(e),r):t},r.domain=function(t){return arguments.length?(e="function"===typeof t?t:w([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?w(y.call(t)):w(t),r):n},r},O=function(t,e,n){if(null==n&&(n=d),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}},B=function(t,e,n){return t=b.call(t,d).sort(r),Math.ceil((n-e)/(2*(O(t,.75)-O(t,.25))*Math.pow(t.length,-1/3)))},D=function(t,e,n){return Math.ceil((n-e)/(3.5*g(t)*Math.pow(t.length,-1/3)))},R=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},L=function(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o<r;)isNaN(n=d(t[o]))?--i:a+=n;else for(;++o<r;)isNaN(n=d(e(t[o],o,t)))?--i:a+=n;if(i)return a/i},P=function(t,e){var n,i=t.length,o=-1,a=[];if(null==e)for(;++o<i;)isNaN(n=d(t[o]))||a.push(n);else for(;++o<i;)isNaN(n=d(e(t[o],o,t)))||a.push(n);return O(a.sort(r),.5)},$=function(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n},I=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},N=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},z=function(t,e){if(n=t.length){var n,i,o=0,a=0,s=t[a];for(null==e&&(e=r);++o<n;)(e(i=t[o],s)<0||0!==e(s,s))&&(s=i,a=o);return 0===e(s,s)?a:void 0}},j=function(t,e,n){for(var r,i,o=(null==n?t.length:n)-(e=null==e?0:+e);o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},W=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)for(;++i<r;)(n=+t[i])&&(o+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(o+=n);return o},H=function(t){if(!(i=t.length))return[];for(var e=-1,n=I(t,U),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r};function U(t){return t.length}var V=function(){return H(arguments)};n.d(e,"bisect",function(){return l}),n.d(e,"bisectRight",function(){return a}),n.d(e,"bisectLeft",function(){return s}),n.d(e,"ascending",function(){return r}),n.d(e,"bisector",function(){return i}),n.d(e,"cross",function(){return h}),n.d(e,"descending",function(){return f}),n.d(e,"deviation",function(){return g}),n.d(e,"extent",function(){return m}),n.d(e,"histogram",function(){return T}),n.d(e,"thresholdFreedmanDiaconis",function(){return B}),n.d(e,"thresholdScott",function(){return D}),n.d(e,"thresholdSturges",function(){return F}),n.d(e,"max",function(){return R}),n.d(e,"mean",function(){return L}),n.d(e,"median",function(){return P}),n.d(e,"merge",function(){return $}),n.d(e,"min",function(){return I}),n.d(e,"pairs",function(){return u}),n.d(e,"permute",function(){return N}),n.d(e,"quantile",function(){return O}),n.d(e,"range",function(){return _}),n.d(e,"scan",function(){return z}),n.d(e,"shuffle",function(){return j}),n.d(e,"sum",function(){return W}),n.d(e,"ticks",function(){return A}),n.d(e,"tickIncrement",function(){return k}),n.d(e,"tickStep",function(){return M}),n.d(e,"transpose",function(){return H}),n.d(e,"variance",function(){return p}),n.d(e,"zip",function(){return V})},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"a",function(){return o});var r=function(){};var i=function(t,e){return function(n){if(t&&t(n),!n.defaultPrevented)return e(n)}},o=function(t,e){if(null!=t)if("function"===typeof t)t(e);else try{t.current=e}catch(n){throw new Error('Cannot assign value "'+e+'" to ref "'+t+'"')}}},function(t,e,n){"use strict";n.r(e);var r=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function o(){}var a="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3})$/,c=/^#([0-9a-f]{6})$/,h=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),d=new RegExp("^rgba\\("+[a,a,a,s]+"\\)$"),p=new RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),g=new RegExp("^hsl\\("+[s,l,l]+"\\)$"),m=new RegExp("^hsla\\("+[s,l,l,s]+"\\)$"),v={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};function y(t){var e;return t=(t+"").trim().toLowerCase(),(e=u.exec(t))?new C((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=c.exec(t))?b(parseInt(e[1],16)):(e=h.exec(t))?new C(e[1],e[2],e[3],1):(e=f.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?w(e[1],e[2],e[3],e[4]):(e=p.exec(t))?w(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?S(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?S(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?b(v[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function b(t){return new C(t>>16&255,t>>8&255,255&t,1)}function w(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function x(t){return t instanceof o||(t=y(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function _(t,e,n,r){return 1===arguments.length?x(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function S(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new k(t,e,n,r)}function A(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof k)return new k(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=y(t)),!t)return new k;if(t instanceof k)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,l=a-i,u=(a+i)/2;return l?(s=e===a?(n-r)/l+6*(n<r):n===a?(r-e)/l+2:(e-n)/l+4,l/=u<.5?a+i:2-a-i,s*=60):l=u>0&&u<1?0:s,new k(s,l,u,t.opacity)}(t):new k(t,e,n,null==r?1:r)}function k(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function M(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}r(o,y,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),r(C,_,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(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},hex:function(){return"#"+E(this.r)+E(this.g)+E(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(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+")")}})),r(k,A,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new k(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new k(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 C(M(t>=240?t-240:t+120,i,r),M(t,i,r),M(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}}));var F=Math.PI/180,T=180/Math.PI,O=.96422,B=1,D=.82521,R=4/29,L=6/29,P=3*L*L,$=L*L*L;function I(t){if(t instanceof j)return new j(t.l,t.a,t.b,t.opacity);if(t instanceof Y){if(isNaN(t.h))return new j(t.l,0,0,t.opacity);var e=t.h*F;return new j(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof C||(t=x(t));var n,r,i=V(t.r),o=V(t.g),a=V(t.b),s=W((.2225045*i+.7168786*o+.0606169*a)/B);return i===o&&o===a?n=r=s:(n=W((.4360747*i+.3850649*o+.1430804*a)/O),r=W((.0139322*i+.0971045*o+.7141733*a)/D)),new j(116*s-16,500*(n-s),200*(s-r),t.opacity)}function N(t,e){return new j(t,0,0,null==e?1:e)}function z(t,e,n,r){return 1===arguments.length?I(t):new j(t,e,n,null==r?1:r)}function j(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function W(t){return t>$?Math.pow(t,1/3):t/P+R}function H(t){return t>L?t*t*t:P*(t-R)}function U(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function V(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function G(t){if(t instanceof Y)return new Y(t.h,t.c,t.l,t.opacity);if(t instanceof j||(t=I(t)),0===t.a&&0===t.b)return new Y(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*T;return new Y(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function q(t,e,n,r){return 1===arguments.length?G(t):new Y(n,e,t,null==r?1:r)}function K(t,e,n,r){return 1===arguments.length?G(t):new Y(t,e,n,null==r?1:r)}function Y(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}r(j,z,i(o,{brighter:function(t){return new j(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new j(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 new C(U(3.1338561*(e=O*H(e))-1.6168667*(t=B*H(t))-.4906146*(n=D*H(n))),U(-.9787684*e+1.9161415*t+.033454*n),U(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),r(Y,K,i(o,{brighter:function(t){return new Y(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Y(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return I(this).rgb()}}));var X=-.14861,Q=1.78277,Z=-.29227,J=-.90649,tt=1.97294,et=tt*J,nt=tt*Q,rt=Q*Z-J*X;function it(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof ot)return new ot(t.h,t.s,t.l,t.opacity);t instanceof C||(t=x(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(rt*r+et*e-nt*n)/(rt+et-nt),o=r-i,a=(tt*(n-i)-Z*o)/J,s=Math.sqrt(a*a+o*o)/(tt*i*(1-i)),l=s?Math.atan2(a,o)*T-120:NaN;return new ot(l<0?l+360:l,s,i,t.opacity)}(t):new ot(t,e,n,null==r?1:r)}function ot(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}r(ot,it,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ot(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ot(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*F,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new C(255*(e+n*(X*r+Q*i)),255*(e+n*(Z*r+J*i)),255*(e+n*(tt*r)),this.opacity)}})),n.d(e,"color",function(){return y}),n.d(e,"rgb",function(){return _}),n.d(e,"hsl",function(){return A}),n.d(e,"lab",function(){return z}),n.d(e,"hcl",function(){return K}),n.d(e,"lch",function(){return q}),n.d(e,"gray",function(){return N}),n.d(e,"cubehelix",function(){return it})},function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return f});var r=n(17),i=n(0),o=n.n(i),a=n(31),s=n(22),l=(n(3),n(14)),u=n(30),c=n(18),h=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).history=Object(s.a)(e.props),e}return Object(r.a)(e,t),e.prototype.render=function(){return o.a.createElement(a.c,{history:this.history,children:this.props.children})},e}(o.a.Component);o.a.Component;var f=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.handleClick=function(t,e){try{this.props.onClick&&this.props.onClick(t)}catch(n){throw t.preventDefault(),n}t.defaultPrevented||0!==t.button||this.props.target&&"_self"!==this.props.target||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),(this.props.replace?e.replace:e.push)(this.props.to))},n.render=function(){var t=this,e=this.props,n=e.innerRef,r=(e.replace,e.to),i=Object(u.a)(e,["innerRef","replace","to"]);return o.a.createElement(a.e.Consumer,null,function(e){e||Object(c.a)(!1);var a="string"===typeof r?Object(s.c)(r,null,null,e.location):r,u=a?e.history.createHref(a):"";return o.a.createElement("a",Object(l.a)({},i,{onClick:function(n){return t.handleClick(n,e.history)},href:u,ref:n}))})},e}(o.a.Component)},function(t,e,n){"use strict";var r=n(10);function i(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}var o=function(t){return function(){return t}};function a(t,e){return function(n){return t+n*e}}function s(t,e){var n=e-t;return n?a(t,n>180||n<-180?n-360*Math.round(n/360):n):o(isNaN(t)?e:t)}function l(t){return 1===(t=+t)?u:function(e,n){return n-e?function(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)}}(e,n,t):o(isNaN(e)?n:e)}}function u(t,e){var n=e-t;return n?a(t,n):o(isNaN(t)?e:t)}var c=function t(e){var n=l(e);function i(t,e){var i=n((t=Object(r.rgb)(t)).r,(e=Object(r.rgb)(e)).r),o=n(t.g,e.g),a=n(t.b,e.b),s=u(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=o(e),t.b=a(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function h(t){return function(e){var n,i,o=e.length,a=new Array(o),s=new Array(o),l=new Array(o);for(n=0;n<o;++n)i=Object(r.rgb)(e[n]),a[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return a=t(a),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=a(t),i.g=s(t),i.b=l(t),i+""}}}h(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],a=t[r+1],s=r>0?t[r-1]:2*o-a,l=r<e-1?t[r+2]:2*a-o;return i((n-r/e)*e,s,o,a,l)}}),h(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],a=t[r%e],s=t[(r+1)%e],l=t[(r+2)%e];return i((n-r/e)*e,o,a,s,l)}});var f=function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=C(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}},d=function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}},p=function(t,e){return e-=t=+t,function(n){return t+e*n}},g=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=C(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},m=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v=new RegExp(m.source,"g");var y,b,w,x,_=function(t,e){var n,r,i,o=m.lastIndex=v.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=m.exec(t))&&(r=v.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:p(n,r)})),o=v.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})},C=function(t,e){var n,i=typeof e;return null==e||"boolean"===i?o(e):("number"===i?p:"string"===i?(n=Object(r.color)(e))?(e=n,c):_:e instanceof r.color?c:e instanceof Date?d:Array.isArray(e)?f:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?g:p)(t,e)},E=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},S=180/Math.PI,A={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},k=function(t,e,n,r,i,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*S,skewX:Math.atan(l)*S,scaleX:a,scaleY:s}};function M(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],l=[];return o=t(o),a=t(a),function(t,r,i,o,a,s){if(t!==i||r!==o){var l=a.push("translate(",null,e,null,n);s.push({i:l-4,x:p(t,i)},{i:l-2,x:p(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:p(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,l),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:p(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,l),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:p(t,n)},{i:s-2,x:p(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,n=-1,r=l.length;++n<r;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}var F=M(function(t){return"none"===t?A:(y||(y=document.createElement("DIV"),b=document.documentElement,w=document.defaultView),y.style.transform=t,t=w.getComputedStyle(b.appendChild(y),null).getPropertyValue("transform"),b.removeChild(y),t=t.slice(7,-1).split(","),k(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),T=M(function(t){return null==t?A:(x||(x=document.createElementNS("http://www.w3.org/2000/svg","g")),x.setAttribute("transform",t),(t=x.transform.baseVal.consolidate())?(t=t.matrix,k(t.a,t.b,t.c,t.d,t.e,t.f)):A)},", ",")",")");Math.SQRT2;function O(t){return function(e,n){var i=t((e=Object(r.hsl)(e)).h,(n=Object(r.hsl)(n)).h),o=u(e.s,n.s),a=u(e.l,n.l),s=u(e.opacity,n.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(t),e.opacity=s(t),e+""}}}O(s),O(u);function B(t){return function(e,n){var i=t((e=Object(r.hcl)(e)).h,(n=Object(r.hcl)(n)).h),o=u(e.c,n.c),a=u(e.l,n.l),s=u(e.opacity,n.opacity);return function(t){return e.h=i(t),e.c=o(t),e.l=a(t),e.opacity=s(t),e+""}}}B(s),B(u);function D(t){return function e(n){function i(e,i){var o=t((e=Object(r.cubehelix)(e)).h,(i=Object(r.cubehelix)(i)).h),a=u(e.s,i.s),s=u(e.l,i.l),l=u(e.opacity,i.opacity);return function(t){return e.h=o(t),e.s=a(t),e.l=s(Math.pow(t,n)),e.opacity=l(t),e+""}}return n=+n,i.gamma=e,i}(1)}D(s);var R=D(u);n.d(e,"a",function(){return C}),n.d(e,"c",function(){return p}),n.d(e,"e",function(){return E}),n.d(e,"f",function(){return _}),n.d(e,"g",function(){return F}),n.d(e,"h",function(){return T}),n.d(e,"d",function(){return c}),n.d(e,"b",function(){return R})},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return r})},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";var r=!0,i="Invariant failed";e.a=function(t,e){if(!t)throw r?new Error(i):new Error(i+": "+(e||""))}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(44),a=n(48),s=n(23),l=n(3),u="undefined"!==typeof window,c=function(t){var e=t.refs,n=t.setState,r=function(){return n({width:window.innerWidth,height:window.innerHeight})};window.addEventListener("resize",r),e.removeEvent=function(){window.removeEventListener("resize",r)}},h=function(t){t.refs.removeEvent()},f=function(t){var e=t.children;return i.a.createElement(s.a,{refs:{removeEvent:null},initialState:{width:u&&window.innerWidth,height:u&&window.innerHeight},didMount:c,willUnmount:h,render:function(t){var n=t.state;return e(n)}})},d=n(9);n.d(e,"a",function(){return A}),n.d(e,"e",function(){return O}),n.d(e,"b",function(){return k}),n.d(e,"d",function(){return T}),n.d(e,"c",function(){return M});var p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function g(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var m=Object(r.createContext)(),v=m.Provider,y=m.Consumer,b=function(t){var e=t.refs,n=t.state,r=t.prevState;return!(n.isOpen||!r.isOpen)&&!e.menu.contains(document.activeElement)},w=function(t,e){var n=t.refs,r=t.state,i=t.prevState;r.isOpen&&!i.isOpen?(window.__REACH_DISABLE_TOOLTIPS=!0,-1!==r.selectionIndex?requestAnimationFrame(function(){n.items[r.selectionIndex].focus()}):n.menu.focus()):!r.isOpen&&i.isOpen?(e||n.button.focus(),window.__REACH_DISABLE_TOOLTIPS=!1):r.selectionIndex!==i.selectionIndex&&(-1===r.selectionIndex?n.menu.focus():n.items[r.selectionIndex].focus())},x=function(t){return{isOpen:!0,selectionIndex:0}},_=function(t){return{isOpen:!1,selectionIndex:-1,closingWithClick:!1}},C=function(){return{button:null,menu:null,items:[]}},E=function(){return{isOpen:!1,buttonRect:void 0,selectionIndex:-1,closingWithClick:!1,buttonId:(t="button",t+"-"+Math.random().toString(32).substr(2,8))};var t},S=function(){retu