Source: org/terraswarm/accessor/accessors/web/dashboard/speedometerBundle.js

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=109)}([function(e,t,n){e.exports=n(105)()},function(e,t,n){"use strict";e.exports=n(54)},function(e,t,n){var r;
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t){var n=e.exports={version:"2.6.1"};"number"==typeof __e&&(__e=n)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(55)},function(e,t,n){var r=n(4),i=n(3),o=n(38),a=n(10),u=n(9),c=function(e,t,n){var s,l,f,d=e&c.F,p=e&c.G,h=e&c.S,v=e&c.P,g=e&c.B,m=e&c.W,y=p?i:i[t]||(i[t]={}),b=y.prototype,_=p?r:h?r[t]:(r[t]||{}).prototype;for(s in p&&(n=t),n)(l=!d&&_&&void 0!==_[s])&&u(y,s)||(f=l?_[s]:n[s],y[s]=p&&"function"!=typeof _[s]?n[s]:g&&l?o(f,r):m&&_[s]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[s]=f,e&c.R&&b&&!b[s]&&a(b,s,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(15),i=n(39),o=n(21),a=Object.defineProperty;t.f=n(8)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(7),i=n(16);e.exports=n(8)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(42),i=n(22);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(25)("wks"),i=n(19),o=n(4).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){var r=n(11);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(41),i=n(26);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(11);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(25)("keys"),i=n(19);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(3),i=n(4),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(18)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(22);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){var r=n(15),i=n(81),o=n(26),a=n(24)("IE_PROTO"),u=function(){},c=function(){var e,t=n(40)("iframe"),r=o.length;for(t.style.display="none",n(82).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(7).f,i=n(9),o=n(14)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){t.f=n(14)},function(e,t,n){var r=n(4),i=n(3),o=n(18),a=n(32),u=n(7).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:a.f(e)})}},function(e,t){e.exports=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";(function(e){for(
/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.14.6
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
var n="undefined"!=typeof window&&"undefined"!=typeof document,r=["Edge","Trident","Firefox"],i=0,o=0;o<r.length;o+=1)if(n&&navigator.userAgent.indexOf(r[o])>=0){i=1;break}var a=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},i))}};function u(e){return e&&"[object Function]"==={}.toString.call(e)}function c(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=c(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:l(s(e))}var f=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?f:10===e?d:f||d}function h(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===c(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function v(e){return null!==e.parentNode?v(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,u,c=o.commonAncestorContainer;if(e!==c&&t!==c||r.contains(i))return"BODY"===(u=(a=c).nodeName)||"HTML"!==u&&h(a.firstElementChild)!==a?h(c):c;var s=v(e);return s.host?g(s.host,t):g(e,v(t).host)}function m(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function y(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function _(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function k(e){return T({},e,{right:e.left+e.width,bottom:e.top+e.height})}function M(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=m(e,"top"),r=m(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?_(e.ownerDocument):{},a=o.width||e.clientWidth||i.right-i.left,u=o.height||e.clientHeight||i.bottom-i.top,s=e.offsetWidth-a,l=e.offsetHeight-u;if(s||l){var f=c(e);s-=y(f,"x"),l-=y(f,"y"),i.width-=s,i.height-=l}return k(i)}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),i="HTML"===t.nodeName,o=M(e),a=M(t),u=l(e),s=c(t),f=parseFloat(s.borderTopWidth,10),d=parseFloat(s.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=k({top:o.top-a.top-f,left:o.left-a.left-d,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var v=parseFloat(s.marginTop,10),g=parseFloat(s.marginLeft,10);h.top-=f-v,h.bottom-=f-v,h.left-=d-g,h.right-=d-g,h.marginTop=v,h.marginLeft=g}return(r&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(t,"top"),i=m(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(h,t)),h}function C(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===c(t,"transform");)t=t.parentElement;return t||document.documentElement}function O(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?C(e):g(e,t);if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=N(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:m(n),u=t?0:m(n,"left");return k({top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var u=void 0;"scrollParent"===r?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var f=N(u,a,i);if("HTML"!==u.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===c(t,"position")||e(s(t)))}(a))o=f;else{var d=_(e.ownerDocument),p=d.height,h=d.width;o.top+=f.top-f.marginTop,o.bottom=p+f.top,o.left+=f.left-f.marginLeft,o.right=h+f.left}}var v="number"==typeof(n=n||0);return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function S(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=O(n,r,o,i),u={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(u).map(function(e){return T({key:e},u[e],{area:(t=u[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),s=c.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),l=s.length>0?s[0].key:c[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return N(n,r?C(t):g(t,n),r)}function A(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function R(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function j(e,t,n){n=n.split("-")[0];var r=A(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",u=o?"left":"top",c=o?"height":"width",s=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,i[u]=n===u?t[u]-r[s]:t[R(u)],i}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function I(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=D(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&u(n)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=n(t,e))}),t}function L(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function z(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function F(e){var t=e.ownerDocument;return t?t.defaultView:window}function U(e,t,n,r){n.updateBound=r,F(e).addEventListener("resize",n.updateBound,{passive:!0});var i=l(e);return function e(t,n,r,i){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),o||e(l(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function q(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,F(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function B(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function W(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&B(t[n])&&(r="px"),e.style[n]=t[n]+r})}var H=n&&/Firefox/i.test(navigator.userAgent);function V(e,t,n){var r=D(e,function(e){return e.name===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var Y=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],G=Y.slice(3);function $(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=G.indexOf(e),r=G.slice(n+1).concat(G.slice(0,n));return t?r.reverse():r}var X={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function K(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),u=a.indexOf(D(a,function(e){return-1!==e.search(/,|\s/)}));a[u]&&-1===a[u].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,s=-1!==u?[a.slice(0,u).concat([a[u].split(c)[0]]),[a[u].split(c)[1]].concat(a.slice(u+1))]:[a];return(s=s.map(function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var u=void 0;switch(a){case"%p":u=n;break;case"%":case"%r":default:u=r}return k(u)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){B(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}var Q={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,u=-1!==["bottom","top"].indexOf(n),c=u?"left":"top",s=u?"width":"height",l={start:E({},c,o[c]),end:E({},c,o[c]+o[s]-a[s])};e.offsets.popper=T({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,u=r.split("-")[0],c=void 0;return c=B(+n)?[+n,0]:K(n,o,a,u),"left"===u?(o.top+=c[0],o.left-=c[1]):"right"===u?(o.top+=c[0],o.left+=c[1]):"top"===u?(o.left+=c[0],o.top-=c[1]):"bottom"===u&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=z("transform"),i=e.instance.popper.style,o=i.top,a=i.left,u=i[r];i.top="",i.left="",i[r]="";var c=O(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=u,t.boundaries=c;var s=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(l[e],c[e])),E({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(l[n],c[e]-("right"===e?l.width:l.height))),E({},n,r)}};return s.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=T({},l,f[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),u=a?"right":"bottom",c=a?"left":"top",s=a?"width":"height";return n[u]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[s]),n[c]>o(r[u])&&(e.offsets.popper[c]=o(r[u])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!V(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,u=o.reference,s=-1!==["left","right"].indexOf(i),l=s?"height":"width",f=s?"Top":"Left",d=f.toLowerCase(),p=s?"left":"top",h=s?"bottom":"right",v=A(r)[l];u[h]-v<a[d]&&(e.offsets.popper[d]-=a[d]-(u[h]-v)),u[d]+v>a[h]&&(e.offsets.popper[d]+=u[d]+v-a[h]),e.offsets.popper=k(e.offsets.popper);var g=u[d]+u[l]/2-v/2,m=c(e.instance.popper),y=parseFloat(m["margin"+f],10),b=parseFloat(m["border"+f+"Width"],10),_=g-e.offsets.popper[d]-y-b;return _=Math.max(Math.min(a[l]-v,_),0),e.arrowElement=r,e.offsets.arrow=(E(n={},d,Math.round(_)),E(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(L(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=R(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case X.FLIP:a=[r,i];break;case X.CLOCKWISE:a=$(r);break;case X.COUNTERCLOCKWISE:a=$(r,!0);break;default:a=t.behavior}return a.forEach(function(u,c){if(r!==u||a.length===c+1)return e;r=e.placement.split("-")[0],i=R(r);var s=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(s.right)>f(l.left)||"right"===r&&f(s.left)<f(l.right)||"top"===r&&f(s.bottom)>f(l.top)||"bottom"===r&&f(s.top)<f(l.bottom),p=f(s.left)<f(n.left),h=f(s.right)>f(n.right),v=f(s.top)<f(n.top),g=f(s.bottom)>f(n.bottom),m="left"===r&&p||"right"===r&&h||"top"===r&&v||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&p||y&&"end"===o&&h||!y&&"start"===o&&v||!y&&"end"===o&&g);(d||m||b)&&(e.flipped=!0,(d||m)&&(r=a[c+1]),b&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=T({},e.offsets.popper,j(e.instance.popper,e.offsets.reference,e.placement)),e=I(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),u=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(u?i[a?"width":"height"]:0),e.placement=R(t),e.offsets.popper=k(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!V(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=D(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=D(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,u=h(e.instance.popper),c=M(u),s={position:i.position},l=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=-1!==["left","right"].indexOf(e.placement),a=-1!==e.placement.indexOf("-"),u=i.width%2==r.width%2,c=i.width%2==1&&r.width%2==1,s=function(e){return e},l=t?o||a||u?Math.round:Math.floor:s,f=t?Math.round:s;return{left:l(c&&!a&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:l(r.right)}}(e,window.devicePixelRatio<2||!H),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=z("transform"),v=void 0,g=void 0;if(g="bottom"===f?"HTML"===u.nodeName?-u.clientHeight+l.bottom:-c.height+l.bottom:l.top,v="right"===d?"HTML"===u.nodeName?-u.clientWidth+l.right:-c.width+l.right:l.left,a&&p)s[p]="translate3d("+v+"px, "+g+"px, 0)",s[f]=0,s[d]=0,s.willChange="transform";else{var m="bottom"===f?-1:1,y="right"===d?-1:1;s[f]=g*m,s[d]=v*y,s.willChange=f+", "+d}var b={"x-placement":e.placement};return e.attributes=T({},b,e.attributes),e.styles=T({},s,e.styles),e.arrowStyles=T({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return W(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&W(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=P(i,t,e,n.positionFixed),a=S(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),W(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Z=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=a(this.update.bind(this)),this.options=T({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(T({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=T({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return T({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&u(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return w(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=S(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=j(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=I(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,L(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[z("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=U(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),e}();Z.Utils=("undefined"!=typeof window?window:e).PopperUtils,Z.placements=Y,Z.Defaults=Q,t.a=Z}).call(this,n(50))},function(e,t){var n=NaN,r="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,s=Object.prototype.toString;function l(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&s.call(e)==r}(e))return n;if(l(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=l(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var f=a.test(e);return f||u.test(e)?c(e.slice(2),f?2:8):o.test(e)?n:+e}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))i.call(n,s)&&(u[s]=n[s]);if(r){a=r(n);for(var l=0;l<a.length;l++)o.call(n,a[l])&&(u[a[l]]=n[a[l]])}}return u}},function(e,t,n){var r=n(61);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){e.exports=!n(8)&&!n(12)(function(){return 7!=Object.defineProperty(n(40)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(11),i=n(4).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(9),i=n(13),o=n(63)(!1),a=n(24)("IE_PROTO");e.exports=function(e,t){var n,u=i(e),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;t.length>c;)r(u,n=t[c++])&&(~o(s,n)||s.push(n));return s}},function(e,t,n){var r=n(43);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(9),i=n(28),o=n(24)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(76)),i=a(n(87)),o="function"==typeof i.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(r.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t,n){"use strict";var r=n(18),i=n(6),o=n(47),a=n(10),u=n(29),c=n(80),s=n(31),l=n(44),f=n(14)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,v,g,m){c(n,t,h);var y,b,_,x=function(e){if(!d&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",E="values"==v,T=!1,k=e.prototype,M=k[f]||k["@@iterator"]||v&&k[v],N=M||x(v),C=v?E?x("entries"):N:void 0,O="Array"==t&&k.entries||M;if(O&&(_=l(O.call(new e)))!==Object.prototype&&_.next&&(s(_,w,!0),r||"function"==typeof _[f]||a(_,f,p)),E&&M&&"values"!==M.name&&(T=!0,N=function(){return M.call(this)}),r&&!m||!d&&!T&&k[f]||a(k,f,N),u[t]=N,u[w]=p,v)if(y={values:E?N:x("values"),keys:g?N:x("keys"),entries:C},m)for(b in y)b in k||o(k,b,y[b]);else i(i.P+i.F*(d||T),t,y);return y}},function(e,t,n){e.exports=n(10)},function(e,t,n){var r=n(41),i=n(26).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(20),i=n(16),o=n(13),a=n(21),u=n(9),c=n(39),s=Object.getOwnPropertyDescriptor;t.f=n(8)?s:function(e,t){if(e=o(e),t=a(t,!0),c)try{return s(e,t)}catch(e){}if(u(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=p(n(58)),i=p(n(66)),o=p(n(70)),a=p(n(71)),u=p(n(75)),c=p(n(97)),s=p(n(1)),l=p(n(0)),f=n(108),d=n(107);function p(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var h=function(e){function t(e){(0,o.default)(this,t);var n=(0,u.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return n.render=function(){return s.default.createElement("div",{ref:function(e){return n.gaugeDiv=e}})},n._d3_refs={powerGauge:!1},n.initialValue=0,n}return(0,c.default)(t,e),(0,a.default)(t,[{key:"componentWillMount",value:function(){}},{key:"componentDidMount",value:function(){this.renderGauge()}},{key:"componentWillReceiveProps",value:function(){this.initialValue=this.props.value||0}},{key:"shouldComponentUpdate",value:function(e){return!0}},{key:"componentWillUpdate",value:function(){}},{key:"componentDidUpdate",value:function(){this.props.forceRender?this.renderGauge():this.updateReadings()}},{key:"getGauge",value:function(){var e=this,t=this.props;return function(n){function i(e){return e*Math.PI/180}function o(){c=u.maxAngle-u.minAngle,s=u.width/2,l=(0,d.calculateNeedleHeight)(u.needleHeightRatio,s),v=(0,f.scaleLinear)().range([0,1]).domain([u.minValue,u.maxValue]),1===(g=v.ticks(u.majorTicks)).length&&(g=[u.minValue,u.maxValue]),m=(0,f.range)(u.majorTicks).map(function(){return 1/u.majorTicks}),h=(0,f.arc)().innerRadius(s-u.ringWidth-u.ringInset).outerRadius(s-u.ringInset).startAngle(function(e,t){return i(u.minAngle+e*t*c)}).endAngle(function(e,t){return i(u.minAngle+e*(t+1)*c)})}var a={ringInset:20,pointerWidth:10,pointerTailLength:5,minAngle:-90,maxAngle:90,labelInset:10,parentWidth:e.gaugeDiv.parentNode.clientWidth,parentHeight:e.gaugeDiv.parentNode.clientHeight},u={width:t.fluidWidth?a.parentWidth:t.width,height:t.fluidWidth?a.parentHeight:t.height,ringWidth:t.ringWidth,minValue:t.minValue,maxValue:t.maxValue,needleColor:t.needleColor,majorTicks:t.segments,arcColorFn:(0,f.interpolateHsl)((0,f.rgb)(t.startColor),(0,f.rgb)(t.endColor)),needleTransition:t.needleTransition,needleTransitionDuration:t.needleTransitionDuration,needleHeightRatio:t.needleHeightRatio,textColor:t.textColor,labelFormat:(0,f.format)(t.valueFormat),currentValueText:t.currentValueText};u=(0,r.default)({},a,u);var c,s,l,p,h,v,g,m;(0,f.pie)();return o(),{configure:o,isRendered:function(){return null!=p},render:function(){p=(0,f.select)(n).append("svg:svg").attr("class","speedometer").attr("width",u.width).attr("height",u.height);var t="translate("+s+","+s+")";p.append("g").attr("class","arc").attr("transform",t).selectAll("path").data(m).enter().append("path").attr("class","speedo-segment").attr("fill",function(e,t){return u.arcColorFn(e*t)}).attr("d",h),p.append("g").attr("class","label").attr("transform",t).selectAll("text").data(g).enter().append("text").attr("transform",function(e){var t=v(e);return"rotate("+(u.minAngle+t*c)+") translate(0,"+(u.labelInset-s)+")"}).text(u.labelFormat).attr("class","segment-value").style("text-anchor","middle").style("font-size","14px").style("font-weight","bold").style("fill",u.textColor),e._d3_refs.current_value_text=p.append("g").attr("transform","translate("+u.width/2+","+u.width/2+")").append("text").attr("class","current-value").attr("text-anchor","middle").attr("y",23).text(u.currentValue||"").style("font-size","16px").style("font-weight","bold").style("fill",u.textColor);var r=[[u.pointerWidth/2,0],[0,-l],[-u.pointerWidth/2,0],[0,u.pointerTailLength],[u.pointerWidth/2,0]],i=(0,f.line)().curve(f.curveMonotoneX),o=p.append("g").data([r]).attr("class","pointer").attr("transform",t).style("fill",u.needleColor);e._d3_refs.pointer=o.append("path").attr("d",i).attr("transform","rotate("+u.minAngle+")")},update:function(t){var n=v(t),r=u.minAngle+n*c;e._d3_refs.pointer.transition().duration(u.needleTransitionDuration).ease(e.getTransitionMethod(u.needleTransition)).attr("transform","rotate("+r+")"),e._d3_refs.current_value_text.text(function(e){var t=u.labelFormat(e);return u.currentValueText.replace("${value}",t)}(t))},config:u}}}},{key:"renderGauge",value:function(){(0,f.select)(this.gaugeDiv).select("svg").remove(),this._d3_refs.powerGauge=this.getGauge()(this.gaugeDiv),this._d3_refs.powerGauge.render(this.initialValue),this.updateReadings()}},{key:"updateReadings",value:function(){this._d3_refs.powerGauge.config.labelFormat=(0,f.format)(this.props.valueFormat||""),this._d3_refs.powerGauge.config.currentValueText=this.props.currentValueText||"${value}",this._d3_refs.powerGauge.update(this.props.value||0)}},{key:"getTransitionMethod",value:function(e){switch(e){case"easeLinear":return f.easeLinear;case"easeQuadIn":return f.easeQuadIn;case"easeQuadOut":return f.easeQuadOut;case"easeQuadInOut":return f.easeQuadInOut;case"easeCubicIn":return f.easeCubicIn;case"easeCubicOut":return f.easeCubicOut;case"easeCubicInOut":return f.easeCubicInOut;case"easePolyIn":return f.easePolyIn;case"easePolyOut":return f.easePolyOut;case"easePolyInOut":return f.easePolyInOut;case"easeSinIn":return f.easeSinIn;case"easeSinOut":return f.easeSinOut;case"easeSinInOut":return f.easeSinInOut;case"easeExpIn":return f.easeExpIn;case"easeExpOut":return f.easeExpOut;case"easeExpInOut":return f.easeExpInOut;case"easeCircleIn":return f.easeCircleIn;case"easeCircleOut":return f.easeCircleOut;case"easeCircleInOut":return f.easeCircleInOut;case"easeBounceIn":return f.easeBounceIn;case"easeBounceOut":return f.easeBounceOut;case"easeBounceInOut":return f.easeBounceInOut;case"easeBackIn":return f.easeBackIn;case"easeBackOut":return f.easeBackOut;case"easeBackInOut":return f.easeBackInOut;case"easeElasticIn":return f.easeElasticIn;case"easeElasticOut":return f.easeElasticOut;case"easeElasticInOut":return f.easeElasticInOut;case"easeElastic":case"easeElastic":return f.easeElastic;default:return f.easeQuadInOut}}}]),t}(s.default.Component);h.displayName="ReactSpeedometer",h.propTypes={value:l.default.number.isRequired,minValue:l.default.number.isRequired,maxValue:l.default.number.isRequired,forceRender:l.default.bool.isRequired,width:l.default.number.isRequired,height:l.default.number.isRequired,fluidWidth:l.default.bool.isRequired,segments:l.default.number.isRequired,needleColor:l.default.string.isRequired,startColor:l.default.string.isRequired,endColor:l.default.string.isRequired,needleTransition:l.default.string.isRequired,needleTransitionDuration:l.default.number.isRequired,needleHeightRatio:l.default.number.isRequired,ringWidth:l.default.number.isRequired,textColor:l.default.string.isRequired,valueFormat:l.default.string.isRequired,currentValueText:l.default.string.isRequired},h.defaultProps={value:0,minValue:0,maxValue:1e3,forceRender:!1,width:300,height:300,fluidWidth:!1,segments:5,needleColor:"steelblue",startColor:"#FF471A",endColor:"#33CC33",needleTransition:"easeQuadInOut",needleTransitionDuration:500,needleHeightRatio:.9,ringWidth:60,textColor:"#666",valueFormat:"",currentValueText:"${value}"},t.default=h},function(e,t){var n=["onAbort","onAnimationCancel","onAnimationEnd","onAnimationIteration","onAuxClick","onBlur","onChange","onClick","onClose","onContextMenu","onDoubleClick","onError","onFocus","onGotPointerCapture","onInput","onKeyDown","onKeyPress","onKeyUp","onLoad","onLoadEnd","onLoadStart","onLostPointerCapture","onMouseDown","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onReset","onResize","onScroll","onSelect","onSelectionChange","onSelectStart","onSubmit","onTouchCancel","onTouchMove","onTouchStart","onTransitionCancel","onTransitionEnd","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onFocusOut"],r={onDoubleClick:"dblclick"},i={onInput:"onChange",onFocusOut:"onBlur",onSelectionChange:"onSelect"};function o(e){for(var t in e)if(e.hasOwnProperty(t)&&-1!==t.indexOf("_reactInternal"))return e[t]}function a(e){if(e)return e.memoizedProps?e.memoizedProps:e._currentElement&&e._currentElement.props?e._currentElement.props:void 0}function u(e,t,n){n[t]&&n[t](e)}e.exports=function(e){n.forEach(function(t){var n=function(e){if(r[e])return r[e];return e.replace(/^on/,"").toLowerCase()}(t);e.addEventListener(n,function(n){for(var r=n.path||n.composedPath&&n.composedPath()||function(e){var t=[];for(;e;){if(t.push(e),"HTML"===e.tagName)return t.push(document),t.push(window),t;e=e.parentElement}}(n.target),c=0;c<r.length;c++){var s=r[c],l=o(s),f=a(l);if(l&&f&&u(n,t,f),l&&f&&i[t]&&u(n,i[t],f),n.cancelBubble)break;if(s===e)break}},!1)})}},function(e,t,n){(function(t){var n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Null]",a="[object Proxy]",u="[object Undefined]",c="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,l=c||s||Function("return this")(),f=Object.prototype,d=f.hasOwnProperty,p=f.toString,h=l.Symbol,v=h?h.toStringTag:void 0;function g(e){return null==e?void 0===e?u:o:v&&v in Object(e)?function(e){var t=d.call(e,v),n=e[v];try{e[v]=void 0;var r=!0}catch(e){}var i=p.call(e);r&&(t?e[v]=n:delete e[v]);return i}(e):function(e){return p.call(e)}(e)}e.exports=function(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=g(e);return t==r||t==i||t==n||t==a}}).call(this,n(50))},function(e,t,n){"use strict";
/** @license React v16.5.2
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(37),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.async_mode"):60111,p=i?Symbol.for("react.forward_ref"):60112;i&&Symbol.for("react.placeholder");var h="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,i,o,a,u){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,u],s=0;(e=Error(t.replace(/%s/g,function(){return c[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||g}function b(){}function _(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&v("85"),this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var x=_.prototype=new b;x.constructor=_,r(x,y.prototype),x.isPureReactComponent=!0;var w={current:null,currentDispatcher:null},E=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r=void 0,i={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:u,props:i,_owner:w.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var N=/\/+/g,C=[];function O(e,t,n,r){if(C.length){var i=C.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function S(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>C.length&&C.push(e)}function P(e,t,n){return null==e?0:function e(t,n,r,i){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var c=!1;if(null===t)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case o:case a:c=!0}}if(c)return r(i,t,""===n?"."+A(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var l=n+A(u=t[s],s);c+=e(u,l,r,i)}else if(l=null===t||"object"!=typeof t?null:"function"==typeof(l=h&&t[h]||t["@@iterator"])?l:null,"function"==typeof l)for(t=l.call(t),s=0;!(u=t.next()).done;)c+=e(u=u.value,l=n+A(u,s++),r,i);else"object"===u&&v("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return c}(e,"",t,n)}function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function j(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?D(e,r,n,function(e){return e}):null!=e&&(M(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n)),r.push(e))}function D(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(N,"$&/")+"/"),P(e,j,t=O(t,o,r,i)),S(t)}var I={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return D(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;P(e,R,t=O(null,null,t,n)),S(t)},count:function(e){return P(e,function(){return null},null)},toArray:function(e){var t=[];return D(e,t,null,function(e){return e}),t},only:function(e){return M(e)||v("143"),e}},createRef:function(){return{current:null}},Component:y,PureComponent:_,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,Provider:null,Consumer:null,unstable_read:null}).Provider={$$typeof:l,_context:e},e.Consumer=e,e.unstable_read=function(e,t){var n=w.currentDispatcher;return null===n&&v("277"),n.readContext(e,t)}.bind(null,e),e},forwardRef:function(e){return{$$typeof:p,render:e}},Fragment:u,StrictMode:c,unstable_AsyncMode:d,unstable_Profiler:s,createElement:k,cloneElement:function(e,t,n){null==e&&v("267",e);var i=void 0,a=r({},e.props),u=e.key,c=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,s=w.current),void 0!==t.key&&(u=""+t.key);var l=void 0;for(i in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)E.call(t,i)&&!T.hasOwnProperty(i)&&(a[i]=void 0===t[i]&&void 0!==l?l[i]:t[i])}if(1===(i=arguments.length-2))a.children=n;else if(1<i){l=Array(i);for(var f=0;f<i;f++)l[f]=arguments[f+2];a.children=l}return{$$typeof:o,type:e.type,key:u,ref:c,props:a,_owner:s}},createFactory:function(e){var t=k.bind(null,e);return t.type=e,t},isValidElement:M,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:w,assign:r}},L={default:I},z=L&&I||L;e.exports=z.default||z},function(e,t,n){"use strict";
/** @license React v16.5.2
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(1),i=n(37),o=n(56);function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,i,o,a,u){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,u],s=0;(e=Error(t.replace(/%s/g,function(){return c[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||a("227");var u=!1,c=null,s=!1,l=null,f={onError:function(e){u=!0,c=e}};function d(e,t,n,r,i,o,a,s,l){u=!1,c=null,function(e,t,n,r,i,o,a,u,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}.apply(f,arguments)}var p=null,h={};function v(){if(p)for(var e in h){var t=h[e],n=p.indexOf(e);if(-1<n||a("96",e),!m[n])for(var r in t.extractEvents||a("97",e),m[n]=t,n=t.eventTypes){var i=void 0,o=n[r],u=t,c=r;y.hasOwnProperty(c)&&a("99",c),y[c]=o;var s=o.phasedRegistrationNames;if(s){for(i in s)s.hasOwnProperty(i)&&g(s[i],u,c);i=!0}else o.registrationName?(g(o.registrationName,u,c),i=!0):i=!1;i||a("98",r,e)}}}function g(e,t,n){b[e]&&a("100",e),b[e]=t,_[e]=t.eventTypes[n].dependencies}var m=[],y={},b={},_={},x=null,w=null,E=null;function T(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=E(r),function(e,t,n,r,i,o,f,p,h){if(d.apply(this,arguments),u){if(u){var v=c;u=!1,c=null}else a("198"),v=void 0;s||(s=!0,l=v)}}(t,n,void 0,e),e.currentTarget=null}function k(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function M(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var N=null;function C(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var i=0;i<n.length&&!e.isPropagationStopped();i++)T(e,t,n[i],r[i]);else n&&T(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function O(e){return C(e,!0)}function S(e){return C(e,!1)}var P={injectEventPluginOrder:function(e){p&&a("101"),p=Array.prototype.slice.call(e),v()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];h.hasOwnProperty(t)&&h[t]===r||(h[t]&&a("102",t),h[t]=r,n=!0)}n&&v()}};function A(e,t){var n=e.stateNode;if(!n)return null;var r=x(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&a("231",t,typeof n),n)}function R(e,t){if(null!==e&&(N=k(N,e)),e=N,N=null,e&&(M(e,t?O:S),N&&a("95"),s))throw t=l,s=!1,l=null,t}var j=Math.random().toString(36).slice(2),D="__reactInternalInstance$"+j,I="__reactEventHandlers$"+j;function L(e){if(e[D])return e[D];for(;!e[D];){if(!e.parentNode)return null;e=e.parentNode}return 7===(e=e[D]).tag||8===e.tag?e:null}function z(e){return!(e=e[D])||7!==e.tag&&8!==e.tag?null:e}function F(e){if(7===e.tag||8===e.tag)return e.stateNode;a("33")}function U(e){return e[I]||null}function q(e){do{e=e.return}while(e&&7!==e.tag);return e||null}function B(e,t,n){(t=A(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=k(n._dispatchListeners,t),n._dispatchInstances=k(n._dispatchInstances,e))}function W(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=q(t);for(t=n.length;0<t--;)B(n[t],"captured",e);for(t=0;t<n.length;t++)B(n[t],"bubbled",e)}}function H(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=A(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=k(n._dispatchListeners,t),n._dispatchInstances=k(n._dispatchInstances,e))}function V(e){e&&e.dispatchConfig.registrationName&&H(e._targetInst,null,e)}function Y(e){M(e,W)}var G=!("undefined"==typeof window||!window.document||!window.document.createElement);function $(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var X={animationend:$("Animation","AnimationEnd"),animationiteration:$("Animation","AnimationIteration"),animationstart:$("Animation","AnimationStart"),transitionend:$("Transition","TransitionEnd")},K={},Q={};function Z(e){if(K[e])return K[e];if(!X[e])return e;var t,n=X[e];for(t in n)if(n.hasOwnProperty(t)&&t in Q)return K[e]=n[t];return e}G&&(Q=document.createElement("div").style,"AnimationEvent"in window||(delete X.animationend.animation,delete X.animationiteration.animation,delete X.animationstart.animation),"TransitionEvent"in window||delete X.transitionend.transition);var J=Z("animationend"),ee=Z("animationiteration"),te=Z("animationstart"),ne=Z("transitionend"),re="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ie=null,oe=null,ae=null;function ue(){if(ae)return ae;var e,t,n=oe,r=n.length,i="value"in ie?ie.value:ie.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return ae=i.slice(e,1<t?1-t:void 0)}function ce(){return!0}function se(){return!1}function le(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ce:se,this.isPropagationStopped=se,this}function fe(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function de(e){e instanceof this||a("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=fe,e.release=de}i(le.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ce)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ce)},persist:function(){this.isPersistent=ce},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),le.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},le.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,pe(n),n},pe(le);var he=le.extend({data:null}),ve=le.extend({data:null}),ge=[9,13,27,32],me=G&&"CompositionEvent"in window,ye=null;G&&"documentMode"in document&&(ye=document.documentMode);var be=G&&"TextEvent"in window&&!ye,_e=G&&(!me||ye&&8<ye&&11>=ye),xe=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ee=!1;function Te(e,t){switch(e){case"keyup":return-1!==ge.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ke(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Me=!1;var Ne={eventTypes:we,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(me)e:{switch(e){case"compositionstart":i=we.compositionStart;break e;case"compositionend":i=we.compositionEnd;break e;case"compositionupdate":i=we.compositionUpdate;break e}i=void 0}else Me?Te(e,n)&&(i=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=we.compositionStart);return i?(_e&&"ko"!==n.locale&&(Me||i!==we.compositionStart?i===we.compositionEnd&&Me&&(o=ue()):(oe="value"in(ie=r)?ie.value:ie.textContent,Me=!0)),i=he.getPooled(i,t,n,r),o?i.data=o:null!==(o=ke(n))&&(i.data=o),Y(i),o=i):o=null,(e=be?function(e,t){switch(e){case"compositionend":return ke(t);case"keypress":return 32!==t.which?null:(Ee=!0,xe);case"textInput":return(e=t.data)===xe&&Ee?null:e;default:return null}}(e,n):function(e,t){if(Me)return"compositionend"===e||!me&&Te(e,t)?(e=ue(),ae=oe=ie=null,Me=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _e&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=ve.getPooled(we.beforeInput,t,n,r)).data=e,Y(t)):t=null,null===o?t:null===t?o:[o,t]}},Ce=null,Oe=null,Se=null;function Pe(e){if(e=w(e)){"function"!=typeof Ce&&a("280");var t=x(e.stateNode);Ce(e.stateNode,e.type,t)}}function Ae(e){Oe?Se?Se.push(e):Se=[e]:Oe=e}function Re(){if(Oe){var e=Oe,t=Se;if(Se=Oe=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function je(e,t){return e(t)}function De(e,t,n){return e(t,n)}function Ie(){}var Le=!1;function ze(e,t){if(Le)return e(t);Le=!0;try{return je(e,t)}finally{Le=!1,(null!==Oe||null!==Se)&&(Ie(),Re())}}var Fe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ue(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fe[e.type]:"textarea"===t}function qe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Be(e){if(!G)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function We(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function He(e){e._valueTracker||(e._valueTracker=function(e){var t=We(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=We(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ye=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ge=/^(.*)[\\\/]/,$e="function"==typeof Symbol&&Symbol.for,Xe=$e?Symbol.for("react.element"):60103,Ke=$e?Symbol.for("react.portal"):60106,Qe=$e?Symbol.for("react.fragment"):60107,Ze=$e?Symbol.for("react.strict_mode"):60108,Je=$e?Symbol.for("react.profiler"):60114,et=$e?Symbol.for("react.provider"):60109,tt=$e?Symbol.for("react.context"):60110,nt=$e?Symbol.for("react.async_mode"):60111,rt=$e?Symbol.for("react.forward_ref"):60112,it=$e?Symbol.for("react.placeholder"):60113,ot="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=ot&&e[ot]||e["@@iterator"])?e:null}function ut(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case nt:return"AsyncMode";case Qe:return"Fragment";case Ke:return"Portal";case Je:return"Profiler";case Ze:return"StrictMode";case it:return"Placeholder"}if("object"==typeof e){switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case rt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef")}if("function"==typeof e.then&&(e=1===e._reactStatus?e._reactResult:null))return ut(e)}return null}function ct(e){var t="";do{e:switch(e.tag){case 4:case 0:case 1:case 2:case 3:case 7:case 10:var n=e._debugOwner,r=e._debugSource,i=ut(e.type),o=null;n&&(o=ut(n.type)),n=i,i="",r?i=" (at "+r.fileName.replace(Ge,"")+":"+r.lineNumber+")":o&&(i=" (created by "+o+")"),o="\n    in "+(n||"Unknown")+i;break e;default:o=""}t+=o,e=e.return}while(e);return t}var st=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,lt=Object.prototype.hasOwnProperty,ft={},dt={};function pt(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new pt(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new pt(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new pt(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new pt(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ht[e]=new pt(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new pt(e,3,!0,e,null)}),["capture","download"].forEach(function(e){ht[e]=new pt(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){ht[e]=new pt(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){ht[e]=new pt(e,5,!1,e.toLowerCase(),null)});var vt=/[\-:]([a-z])/g;function gt(e){return e[1].toUpperCase()}function mt(e,t,n,r){var i=ht.hasOwnProperty(t)?ht[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!lt.call(dt,e)||!lt.call(ft,e)&&(st.test(e)?dt[e]=!0:(ft[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function yt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function bt(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function _t(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=yt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function xt(e,t){null!=(t=t.checked)&&mt(e,"checked",t,!1)}function wt(e,t){xt(e,t);var n=yt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Tt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tt(e,t.type,yt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Et(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Tt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,gt);ht[t]=new pt(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,gt);ht[t]=new pt(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,gt);ht[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),ht.tabIndex=new pt("tabIndex",1,!1,"tabindex",null);var kt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Mt(e,t,n){return(e=le.getPooled(kt.change,e,t,n)).type="change",Ae(n),Y(e),e}var Nt=null,Ct=null;function Ot(e){R(e,!1)}function St(e){if(Ve(F(e)))return e}function Pt(e,t){if("change"===e)return t}var At=!1;function Rt(){Nt&&(Nt.detachEvent("onpropertychange",jt),Ct=Nt=null)}function jt(e){"value"===e.propertyName&&St(Ct)&&ze(Ot,e=Mt(Ct,e,qe(e)))}function Dt(e,t,n){"focus"===e?(Rt(),Ct=n,(Nt=t).attachEvent("onpropertychange",jt)):"blur"===e&&Rt()}function It(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return St(Ct)}function Lt(e,t){if("click"===e)return St(t)}function zt(e,t){if("input"===e||"change"===e)return St(t)}G&&(At=Be("input")&&(!document.documentMode||9<document.documentMode));var Ft={eventTypes:kt,_isInputEventSupported:At,extractEvents:function(e,t,n,r){var i=t?F(t):window,o=void 0,a=void 0,u=i.nodeName&&i.nodeName.toLowerCase();if("select"===u||"input"===u&&"file"===i.type?o=Pt:Ue(i)?At?o=zt:(o=It,a=Dt):(u=i.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Lt),o&&(o=o(e,t)))return Mt(o,n,r);a&&a(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Tt(i,"number",i.value)}},Ut=le.extend({view:null,detail:null}),qt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=qt[e])&&!!t[e]}function Wt(){return Bt}var Ht=0,Vt=0,Yt=!1,Gt=!1,$t=Ut.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Wt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ht;return Ht=e.screenX,Yt?"mousemove"===e.type?e.screenX-t:0:(Yt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Vt;return Vt=e.screenY,Gt?"mousemove"===e.type?e.screenY-t:0:(Gt=!0,0)}}),Xt=$t.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Kt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qt={eventTypes:Kt,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?L(t):null):o=null,o===t)return null;var a=void 0,u=void 0,c=void 0,s=void 0;"mouseout"===e||"mouseover"===e?(a=$t,u=Kt.mouseLeave,c=Kt.mouseEnter,s="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Xt,u=Kt.pointerLeave,c=Kt.pointerEnter,s="pointer");var l=null==o?i:F(o);if(i=null==t?i:F(t),(e=a.getPooled(u,o,n,r)).type=s+"leave",e.target=l,e.relatedTarget=i,(n=a.getPooled(c,t,n,r)).type=s+"enter",n.target=i,n.relatedTarget=l,r=t,o&&r)e:{for(i=r,s=0,a=t=o;a;a=q(a))s++;for(a=0,c=i;c;c=q(c))a++;for(;0<s-a;)t=q(t),s--;for(;0<a-s;)i=q(i),a--;for(;s--;){if(t===i||t===i.alternate)break e;t=q(t),i=q(i)}t=null}else t=null;for(i=t,t=[];o&&o!==i&&(null===(s=o.alternate)||s!==i);)t.push(o),o=q(o);for(o=[];r&&r!==i&&(null===(s=r.alternate)||s!==i);)o.push(r),r=q(r);for(r=0;r<t.length;r++)H(t[r],"bubbled",e);for(r=o.length;0<r--;)H(o[r],"captured",n);return[e,n]}},Zt=Object.prototype.hasOwnProperty;function Jt(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function en(e,t){if(Jt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Zt.call(t,n[r])||!Jt(e[n[r]],t[n[r]]))return!1;return!0}function tn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 5===t.tag?2:3}function nn(e){2!==tn(e)&&a("188")}function rn(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&a("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var u=i.child;u;){if(u===n)return nn(i),e;if(u===r)return nn(i),t;u=u.sibling}a("188")}if(n.return!==r.return)n=i,r=o;else{u=!1;for(var c=i.child;c;){if(c===n){u=!0,n=i,r=o;break}if(c===r){u=!0,r=i,n=o;break}c=c.sibling}if(!u){for(c=o.child;c;){if(c===n){u=!0,n=o,r=i;break}if(c===r){u=!0,r=o,n=i;break}c=c.sibling}u||a("189")}}n.alternate!==r&&a("190")}return 5!==n.tag&&a("188"),n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(7===t.tag||8===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var on=le.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=le.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),un=Ut.extend({relatedTarget:null});function cn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ln={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fn=Ut.extend({key:function(e){if(e.key){var t=sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=cn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ln[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Wt,charCode:function(e){return"keypress"===e.type?cn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?cn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),dn=$t.extend({dataTransfer:null}),pn=Ut.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Wt}),hn=le.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),vn=$t.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),gn=[["abort","abort"],[J,"animationEnd"],[ee,"animationIteration"],[te,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ne,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],mn={},yn={};function bn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},mn[e]=t,yn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){bn(e,!0)}),gn.forEach(function(e){bn(e,!1)});var _n={eventTypes:mn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=yn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=yn[e];if(!i)return null;switch(e){case"keypress":if(0===cn(n))return null;case"keydown":case"keyup":e=fn;break;case"blur":case"focus":e=un;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=$t;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=dn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=pn;break;case J:case ee:case te:e=on;break;case ne:e=hn;break;case"scroll":e=Ut;break;case"wheel":e=vn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Xt;break;default:e=le}return Y(t=e.getPooled(i,t,n,r)),t}},xn=_n.isInteractiveTopLevelEventType,wn=[];function En(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=5!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=L(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=qe(e.nativeEvent);r=e.topLevelType;for(var o=e.nativeEvent,a=null,u=0;u<m.length;u++){var c=m[u];c&&(c=c.extractEvents(r,t,o,i))&&(a=k(a,c))}R(a,!1)}}var Tn=!0;function kn(e,t){if(!t)return null;var n=(xn(e)?Nn:Cn).bind(null,e);t.addEventListener(e,n,!1)}function Mn(e,t){if(!t)return null;var n=(xn(e)?Nn:Cn).bind(null,e);t.addEventListener(e,n,!0)}function Nn(e,t){De(Cn,e,t)}function Cn(e,t){if(Tn){var n=qe(t);if(null===(n=L(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),wn.length){var r=wn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{ze(En,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>wn.length&&wn.push(e)}}}var On={},Sn=0,Pn="_reactListenersID"+(""+Math.random()).slice(2);function An(e){return Object.prototype.hasOwnProperty.call(e,Pn)||(e[Pn]=Sn++,On[e[Pn]]={}),On[e[Pn]]}function Rn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dn(e,t){var n,r=jn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=jn(r)}}function In(){for(var e=window,t=Rn();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Rn(e.document)}return t}function Ln(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var zn=G&&"documentMode"in document&&11>=document.documentMode,Fn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Un=null,qn=null,Bn=null,Wn=!1;function Hn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Wn||null==Un||Un!==Rn(n)?null:("selectionStart"in(n=Un)&&Ln(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Bn&&en(Bn,n)?null:(Bn=n,(e=le.getPooled(Fn.select,qn,e,t)).type="select",e.target=Un,Y(e),e))}var Vn={eventTypes:Fn,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=An(o),i=_.onSelect;for(var a=0;a<i.length;a++){var u=i[a];if(!o.hasOwnProperty(u)||!o[u]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?F(t):window,e){case"focus":(Ue(o)||"true"===o.contentEditable)&&(Un=o,qn=t,Bn=null);break;case"blur":Bn=qn=Un=null;break;case"mousedown":Wn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Wn=!1,Hn(n,r);case"selectionchange":if(zn)break;case"keydown":case"keyup":return Hn(n,r)}return null}};function Yn(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Gn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function $n(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:yt(n)}}function Kn(e,t){var n=yt(t.value),r=yt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Qn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}P.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x=U,w=z,E=F,P.injectEventPluginsByName({SimpleEventPlugin:_n,EnterLeaveEventPlugin:Qt,ChangeEventPlugin:Ft,SelectEventPlugin:Vn,BeforeInputEventPlugin:Ne});var Zn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Jn(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function er(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Jn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tr,nr=void 0,rr=(tr=function(e,t){if(e.namespaceURI!==Zn.svg||"innerHTML"in e)e.innerHTML=t;else{for((nr=nr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=nr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return tr(e,t)})}:tr);function ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var or={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ar=["Webkit","ms","Moz","O"];function ur(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,o=t[n];i=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||or.hasOwnProperty(i)&&or[i]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(or).forEach(function(e){ar.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),or[t]=or[e]})});var cr=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function sr(e,t){t&&(cr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!=typeof t.style&&a("62",""))}function lr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function fr(e,t){var n=An(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=_[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":Mn("scroll",e);break;case"focus":case"blur":Mn("focus",e),Mn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Be(i)&&Mn(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===re.indexOf(i)&&kn(i,e)}n[i]=!0}}}function dr(){}var pr=null,hr=null;function vr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function gr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function mr(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function yr(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var br=[],_r=-1;function xr(e){0>_r||(e.current=br[_r],br[_r]=null,_r--)}function wr(e,t){br[++_r]=e.current,e.current=t}var Er={},Tr={current:Er},kr={current:!1},Mr=Er;function Nr(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Cr(e){return null!=(e=e.childContextTypes)}function Or(e){xr(kr),xr(Tr)}function Sr(e){xr(kr),xr(Tr)}function Pr(e,t,n){Tr.current!==Er&&a("168"),wr(Tr,t),wr(kr,n)}function Ar(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())o in e||a("108",ut(t)||"Unknown",o);return i({},n,r)}function Rr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Er,Mr=Tr.current,wr(Tr,t),wr(kr,kr.current),!0}function jr(e,t,n){var r=e.stateNode;r||a("169"),n?(t=Ar(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=t,xr(kr),xr(Tr),wr(Tr,t)):xr(kr),wr(kr,n)}var Dr=null,Ir=null;function Lr(e){return function(t){try{return e(t)}catch(e){}}}function zr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Fr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ur(e,t,n){var r=e.alternate;return null===r?((r=new zr(e.tag,t,e.key,e.mode)).type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=t!==e.pendingProps?n:e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.firstContextDependency=e.firstContextDependency,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function qr(e,t,n){var r=e.type,i=e.key;e=e.props;var o=void 0;if("function"==typeof r)o=Fr(r)?2:4;else if("string"==typeof r)o=7;else e:switch(r){case Qe:return Br(e.children,t,n,i);case nt:o=10,t|=3;break;case Ze:o=10,t|=2;break;case Je:return(r=new zr(15,e,i,4|t)).type=Je,r.expirationTime=n,r;case it:o=16;break;default:if("object"==typeof r&&null!==r)switch(r.$$typeof){case et:o=12;break e;case tt:o=11;break e;case rt:o=13;break e;default:if("function"==typeof r.then){o=4;break e}}a("130",null==r?r:typeof r,"")}return(t=new zr(o,e,i,t)).type=r,t.expirationTime=n,t}function Br(e,t,n,r){return(e=new zr(9,e,r,t)).expirationTime=n,e}function Wr(e,t,n){return(e=new zr(8,e,null,t)).expirationTime=n,e}function Hr(e,t,n){return(t=new zr(6,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vr(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n>t?e.earliestPendingTime=t:e.latestPendingTime<t&&(e.latestPendingTime=t),Yr(t,e)}function Yr(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,i=t.earliestPendingTime,o=t.latestPingedTime;0===(i=0!==i?i:o)&&(0===e||r>e)&&(i=r),0!==(e=i)&&0!==n&&n<e&&(e=n),t.nextExpirationTimeToWorkOn=i,t.expirationTime=e}var Gr=!1;function $r(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Xr(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Kr(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Qr(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Zr(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=$r(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=$r(e.memoizedState),i=n.updateQueue=$r(n.memoizedState)):r=e.updateQueue=Xr(i):null===i&&(i=n.updateQueue=Xr(r));null===i||r===i?Qr(r,t):null===r.lastUpdate||null===i.lastUpdate?(Qr(r,t),Qr(i,t)):(Qr(r,t),i.lastUpdate=t)}function Jr(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=$r(e.memoizedState):ei(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function ei(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Xr(t)),t}function ti(e,t,n,r,o,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,o):e;case 3:e.effectTag=-1025&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=n.payload)?e.call(a,r,o):e))break;return i({},r,o);case 2:Gr=!0}return r}function ni(e,t,n,r,i){Gr=!1;for(var o=(t=ei(e,t)).baseState,a=null,u=0,c=t.firstUpdate,s=o;null!==c;){var l=c.expirationTime;l>i?(null===a&&(a=c,o=s),(0===u||u>l)&&(u=l)):(s=ti(e,0,c,s,n,r),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=c:(t.lastEffect.nextEffect=c,t.lastEffect=c))),c=c.next}for(l=null,c=t.firstCapturedUpdate;null!==c;){var f=c.expirationTime;f>i?(null===l&&(l=c,null===a&&(o=s)),(0===u||u>f)&&(u=f)):(s=ti(e,0,c,s,n,r),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=c:(t.lastCapturedEffect.nextEffect=c,t.lastCapturedEffect=c))),c=c.next}null===a&&(t.lastUpdate=null),null===l?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===l&&(o=s),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=l,e.expirationTime=u,e.memoizedState=s}function ri(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),ii(t.firstEffect,n),t.firstEffect=t.lastEffect=null,ii(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function ii(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&a("191",n),n.call(r)}e=e.nextEffect}}function oi(e,t){return{value:e,source:t,stack:ct(t)}}var ai={current:null},ui=null,ci=null,si=null;function li(e,t){var n=e.type._context;wr(ai,n._currentValue),n._currentValue=t}function fi(e){var t=ai.current;xr(ai),e.type._context._currentValue=t}function di(e){ui=e,si=ci=null,e.firstContextDependency=null}function pi(e,t){return si!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(si=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ci?(null===ui&&a("277"),ui.firstContextDependency=ci=t):ci=ci.next=t),e._currentValue}var hi={},vi={current:hi},gi={current:hi},mi={current:hi};function yi(e){return e===hi&&a("174"),e}function bi(e,t){wr(mi,t),wr(gi,e),wr(vi,hi);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:er(null,"");break;default:t=er(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}xr(vi),wr(vi,t)}function _i(e){xr(vi),xr(gi),xr(mi)}function xi(e){yi(mi.current);var t=yi(vi.current),n=er(t,e.type);t!==n&&(wr(gi,e),wr(vi,n))}function wi(e){gi.current===e&&(xr(vi),xr(gi))}var Ei=(new r.Component).refs;function Ti(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var ki={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ua(),i=Kr(r=Ro(r,e));i.payload=t,null!=n&&(i.callback=n),Zr(e,i),jo(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ua(),i=Kr(r=Ro(r,e));i.tag=1,i.payload=t,null!=n&&(i.callback=n),Zr(e,i),jo(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ua(),r=Kr(n=Ro(n,e));r.tag=2,null!=t&&(r.callback=t),Zr(e,r),jo(e,n)}};function Mi(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,r)||!en(i,o))}function Ni(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ki.enqueueReplaceState(t,t.state,null)}function Ci(e,t,n,r){var i=e.stateNode,o=Cr(t)?Mr:Tr.current;i.props=n,i.state=e.memoizedState,i.refs=Ei,i.context=Nr(e,o),null!==(o=e.updateQueue)&&(ni(e,o,n,i,r),i.state=e.memoizedState),"function"==typeof(o=t.getDerivedStateFromProps)&&(Ti(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ki.enqueueReplaceState(i,i.state,null),null!==(o=e.updateQueue)&&(ni(e,o,n,i,r),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var Oi=Array.isArray;function Si(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(2!==n.tag&&3!==n.tag&&a("110"),r=n.stateNode),r||a("147",e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===Ei&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}"string"!=typeof e&&a("284"),n._owner||a("254",e)}return e}function Pi(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Ai(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return(e=Ur(e,t,n)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||8!==t.tag?((t=Wr(n,e.mode,r)).return=e,t):((t=i(t,n,r)).return=e,t)}function s(e,t,n,r){return null!==t&&t.type===n.type?((r=i(t,n.props,r)).ref=Si(e,t,n),r.return=e,r):((r=qr(n,e.mode,r)).ref=Si(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||6!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[],r)).return=e,t)}function f(e,t,n,r,o){return null===t||9!==t.tag?((t=Br(n,e.mode,r,o)).return=e,t):((t=i(t,n,r)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Wr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Xe:return(n=qr(t,e.mode,n)).ref=Si(e,null,t),n.return=e,n;case Ke:return(t=Hr(t,e.mode,n)).return=e,t}if(Oi(t)||at(t))return(t=Br(t,e.mode,n,null)).return=e,t;Pi(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Xe:return n.key===i?n.type===Qe?f(e,t,n.props.children,r,i):s(e,t,n,r):null;case Ke:return n.key===i?l(e,t,n,r):null}if(Oi(n)||at(n))return null!==i?null:f(e,t,n,r,null);Pi(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Xe:return e=e.get(null===r.key?n:r.key)||null,r.type===Qe?f(t,e,r.props.children,i,r.key):s(t,e,r,i);case Ke:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Oi(r)||at(r))return f(t,e=e.get(n)||null,r,i,null);Pi(t,r)}return null}function v(i,a,u,c){for(var s=null,l=null,f=a,v=a=0,g=null;null!==f&&v<u.length;v++){f.index>v?(g=f,f=null):g=f.sibling;var m=p(i,f,u[v],c);if(null===m){null===f&&(f=g);break}e&&f&&null===m.alternate&&t(i,f),a=o(m,a,v),null===l?s=m:l.sibling=m,l=m,f=g}if(v===u.length)return n(i,f),s;if(null===f){for(;v<u.length;v++)(f=d(i,u[v],c))&&(a=o(f,a,v),null===l?s=f:l.sibling=f,l=f);return s}for(f=r(i,f);v<u.length;v++)(g=h(f,i,v,u[v],c))&&(e&&null!==g.alternate&&f.delete(null===g.key?v:g.key),a=o(g,a,v),null===l?s=g:l.sibling=g,l=g);return e&&f.forEach(function(e){return t(i,e)}),s}function g(i,u,c,s){var l=at(c);"function"!=typeof l&&a("150"),null==(c=l.call(c))&&a("151");for(var f=l=null,v=u,g=u=0,m=null,y=c.next();null!==v&&!y.done;g++,y=c.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=p(i,v,y.value,s);if(null===b){v||(v=m);break}e&&v&&null===b.alternate&&t(i,v),u=o(b,u,g),null===f?l=b:f.sibling=b,f=b,v=m}if(y.done)return n(i,v),l;if(null===v){for(;!y.done;g++,y=c.next())null!==(y=d(i,y.value,s))&&(u=o(y,u,g),null===f?l=y:f.sibling=y,f=y);return l}for(v=r(i,v);!y.done;g++,y=c.next())null!==(y=h(v,i,g,y.value,s))&&(e&&null!==y.alternate&&v.delete(null===y.key?g:y.key),u=o(y,u,g),null===f?l=y:f.sibling=y,f=y);return e&&v.forEach(function(e){return t(i,e)}),l}return function(e,r,o,c){var s="object"==typeof o&&null!==o&&o.type===Qe&&null===o.key;s&&(o=o.props.children);var l="object"==typeof o&&null!==o;if(l)switch(o.$$typeof){case Xe:e:{for(l=o.key,s=r;null!==s;){if(s.key===l){if(9===s.tag?o.type===Qe:s.type===o.type){n(e,s.sibling),(r=i(s,o.type===Qe?o.props.children:o.props,c)).ref=Si(e,s,o),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}o.type===Qe?((r=Br(o.props.children,e.mode,c,o.key)).return=e,e=r):((c=qr(o,e.mode,c)).ref=Si(e,r,o),c.return=e,e=c)}return u(e);case Ke:e:{for(s=o.key;null!==r;){if(r.key===s){if(6===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[],c)).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Hr(o,e.mode,c)).return=e,e=r}return u(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&8===r.tag?(n(e,r.sibling),(r=i(r,o,c)).return=e,e=r):(n(e,r),(r=Wr(o,e.mode,c)).return=e,e=r),u(e);if(Oi(o))return v(e,r,o,c);if(at(o))return g(e,r,o,c);if(l&&Pi(e,o),void 0===o&&!s)switch(e.tag){case 2:case 3:case 0:a("152",(c=e.type).displayName||c.name||"Component")}return n(e,r)}}var Ri=Ai(!0),ji=Ai(!1),Di=null,Ii=null,Li=!1;function zi(e,t){var n=new zr(7,null,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Fi(e,t){switch(e.tag){case 7:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 8:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ui(e){if(Li){var t=Ii;if(t){var n=t;if(!Fi(e,t)){if(!(t=mr(n))||!Fi(e,t))return e.effectTag|=2,Li=!1,void(Di=e);zi(Di,n)}Di=e,Ii=yr(t)}else e.effectTag|=2,Li=!1,Di=e}}function qi(e){for(e=e.return;null!==e&&7!==e.tag&&5!==e.tag;)e=e.return;Di=e}function Bi(e){if(e!==Di)return!1;if(!Li)return qi(e),Li=!0,!1;var t=e.type;if(7!==e.tag||"head"!==t&&"body"!==t&&!gr(t,e.memoizedProps))for(t=Ii;t;)zi(e,t),t=mr(t);return qi(e),Ii=Di?mr(e.stateNode):null,!0}function Wi(){Ii=Di=null,Li=!1}var Hi=Ye.ReactCurrentOwner;function Vi(e,t,n,r){t.child=null===e?ji(t,null,n,r):Ri(t,e.child,n,r)}function Yi(e,t,n,r,i){n=n.render;var o=t.ref;return kr.current||t.memoizedProps!==r||o!==(null!==e?e.ref:null)?(Vi(e,t,n=n(r,o),i),t.memoizedProps=r,t.child):Ji(e,t,i)}function Gi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function $i(e,t,n,r,i){var o=Cr(n)?Mr:Tr.current;return o=Nr(t,o),di(t),n=n(r,o),t.effectTag|=1,Vi(e,t,n,i),t.memoizedProps=r,t.child}function Xi(e,t,n,r,i){if(Cr(n)){var o=!0;Rr(t)}else o=!1;if(di(t),null===e)if(null===t.stateNode){var a=Cr(n)?Mr:Tr.current,u=n.contextTypes,c=null!=u,s=new n(r,u=c?Nr(t,a):Er);t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,s.updater=ki,t.stateNode=s,s._reactInternalFiber=t,c&&((c=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,c.__reactInternalMemoizedMaskedChildContext=u),Ci(t,n,r,i),r=!0}else{a=t.stateNode,u=t.memoizedProps,a.props=u;var l=a.context;c=Nr(t,c=Cr(n)?Mr:Tr.current);var f=n.getDerivedStateFromProps;(s="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||l!==c)&&Ni(t,a,r,c),Gr=!1;var d=t.memoizedState;l=a.state=d;var p=t.updateQueue;null!==p&&(ni(t,p,r,a,i),l=t.memoizedState),u!==r||d!==l||kr.current||Gr?("function"==typeof f&&(Ti(t,n,f,r),l=t.memoizedState),(u=Gr||Mi(t,n,u,r,d,l,c))?(s||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=u):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,u=t.memoizedProps,a.props=u,l=a.context,c=Nr(t,c=Cr(n)?Mr:Tr.current),(s="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||l!==c)&&Ni(t,a,r,c),Gr=!1,l=t.memoizedState,d=a.state=l,null!==(p=t.updateQueue)&&(ni(t,p,r,a,i),d=t.memoizedState),u!==r||l!==d||kr.current||Gr?("function"==typeof f&&(Ti(t,n,f,r),d=t.memoizedState),(f=Gr||Mi(t,n,u,r,l,d,c))?(s||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=c,r=f):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Ki(e,t,n,r,o,i)}function Ki(e,t,n,r,i,o){Gi(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&jr(t,n,!1),Ji(e,t,o);r=t.stateNode,Hi.current=t;var u=a?null:r.render();return t.effectTag|=1,null!==e&&a&&(Vi(e,t,null,o),t.child=null),Vi(e,t,u,o),t.memoizedState=r.state,t.memoizedProps=r.props,i&&jr(t,n,!0),t.child}function Qi(e){var t=e.stateNode;t.pendingContext?Pr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pr(0,t.context,!1),bi(e,t.containerInfo)}function Zi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function Ji(e,t,n){null!==e&&(t.firstContextDependency=e.firstContextDependency);var r=t.childExpirationTime;if(0===r||r>n)return null;if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){for(n=Ur(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ur(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function eo(e,t,n){var r=t.expirationTime;if(!kr.current&&(0===r||r>n)){switch(t.tag){case 5:Qi(t),Wi();break;case 7:xi(t);break;case 2:Cr(t.type)&&Rr(t);break;case 3:Cr(t.type._reactResult)&&Rr(t);break;case 6:bi(t,t.stateNode.containerInfo);break;case 12:li(t,t.memoizedProps.value)}return Ji(e,t,n)}switch(t.expirationTime=0,t.tag){case 4:return function(e,t,n,r){null!==e&&a("155");var i=t.pendingProps;if("object"==typeof n&&null!==n&&"function"==typeof n.then){var o=n=function(e){switch(e._reactStatus){case 1:return e._reactResult;case 2:throw e._reactResult;case 0:throw e;default:throw e._reactStatus=0,e.then(function(t){if(0===e._reactStatus){if(e._reactStatus=1,"object"==typeof t&&null!==t){var n=t.default;t=null!=n?n:t}e._reactResult=t}},function(t){0===e._reactStatus&&(e._reactStatus=2,e._reactResult=t)}),e}}(n);o="function"==typeof o?Fr(o)?3:1:null!=o&&o.$$typeof?14:4,o=t.tag=o;var u=Zi(n,i);switch(o){case 1:return $i(e,t,n,u,r);case 3:return Xi(e,t,n,u,r);case 14:return Yi(e,t,n,u,r);default:a("283",n)}}if(o=Nr(t,Tr.current),di(t),o=n(i,o),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){t.tag=2,Cr(n)?(u=!0,Rr(t)):u=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var c=n.getDerivedStateFromProps;return"function"==typeof c&&Ti(t,n,c,i),o.updater=ki,t.stateNode=o,o._reactInternalFiber=t,Ci(t,n,i,r),Ki(e,t,n,!0,u,r)}return t.tag=0,Vi(e,t,o,r),t.memoizedProps=i,t.child}(e,t,t.type,n);case 0:return $i(e,t,t.type,t.pendingProps,n);case 1:var i=t.type._reactResult;return e=$i(e,t,i,Zi(i,r=t.pendingProps),n),t.memoizedProps=r,e;case 2:return Xi(e,t,t.type,t.pendingProps,n);case 3:return e=Xi(e,t,i=t.type._reactResult,Zi(i,r=t.pendingProps),n),t.memoizedProps=r,e;case 5:return Qi(t),null===(r=t.updateQueue)&&a("282"),i=null!==(i=t.memoizedState)?i.element:null,ni(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===i?(Wi(),t=Ji(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(Ii=yr(t.stateNode.containerInfo),Di=t,i=Li=!0),i?(t.effectTag|=2,t.child=ji(t,null,r,n)):(Vi(e,t,r,n),Wi()),t=t.child),t;case 7:xi(t),null===e&&Ui(t),r=t.type,i=t.pendingProps;var o=null!==e?e.memoizedProps:null,u=i.children;return gr(r,i)?u=null:null!==o&&gr(r,o)&&(t.effectTag|=16),Gi(e,t),1073741823!==n&&1&t.mode&&i.hidden?(t.expirationTime=1073741823,t.memoizedProps=i,t=null):(Vi(e,t,u,n),t.memoizedProps=i,t=t.child),t;case 8:return null===e&&Ui(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 6:return bi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ri(t,null,r,n):Vi(e,t,r,n),t.memoizedProps=r,t.child;case 13:return Yi(e,t,t.type,t.pendingProps,n);case 14:return e=Yi(e,t,i=t.type._reactResult,Zi(i,r=t.pendingProps),n),t.memoizedProps=r,e;case 9:return Vi(e,t,r=t.pendingProps,n),t.memoizedProps=r,t.child;case 10:return Vi(e,t,r=t.pendingProps.children,n),t.memoizedProps=r,t.child;case 15:return Vi(e,t,(r=t.pendingProps).children,n),t.memoizedProps=r,t.child;case 12:e:{if(r=t.type._context,i=t.pendingProps,u=t.memoizedProps,o=i.value,t.memoizedProps=i,li(t,o),null!==u){var c=u.value;if(0===(o=c===o&&(0!==c||1/c==1/o)||c!=c&&o!=o?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(u.children===i.children&&!kr.current){t=Ji(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){if(null!==(c=u.firstContextDependency))do{if(c.context===r&&0!=(c.observedBits&o)){if(2===u.tag||3===u.tag){var s=Kr(n);s.tag=2,Zr(u,s)}(0===u.expirationTime||u.expirationTime>n)&&(u.expirationTime=n),null!==(s=u.alternate)&&(0===s.expirationTime||s.expirationTime>n)&&(s.expirationTime=n);for(var l=u.return;null!==l;){if(s=l.alternate,0===l.childExpirationTime||l.childExpirationTime>n)l.childExpirationTime=n,null!==s&&(0===s.childExpirationTime||s.childExpirationTime>n)&&(s.childExpirationTime=n);else{if(null===s||!(0===s.childExpirationTime||s.childExpirationTime>n))break;s.childExpirationTime=n}l=l.return}}s=u.child,c=c.next}while(null!==c);else s=12===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}}Vi(e,t,i.children,n),t=t.child}return t;case 11:return o=t.type,i=(r=t.pendingProps).children,di(t),i=i(o=pi(o,r.unstable_observedBits)),t.effectTag|=1,Vi(e,t,i,n),t.memoizedProps=r,t.child;default:a("156")}}function to(e){e.effectTag|=4}var no=void 0,ro=void 0,io=void 0;function oo(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ct(n)),null!==n&&ut(n.type),t=t.value,null!==e&&2===e.tag&&ut(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function ao(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ao(e,t)}else t.current=null}function uo(e){switch("function"==typeof Ir&&Ir(e),e.tag){case 2:case 3:ao(e);var t=e.stateNode;if("function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ao(e,t)}break;case 7:ao(e);break;case 6:lo(e)}}function co(e){return 7===e.tag||5===e.tag||6===e.tag}function so(e){e:{for(var t=e.return;null!==t;){if(co(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var r=t=void 0;switch(n.tag){case 7:t=n.stateNode,r=!1;break;case 5:case 6:t=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(ir(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||co(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;7!==n.tag&&8!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||6===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(7===i.tag||8===i.tag)if(n)if(r){var o=t,u=i.stateNode,c=n;8===o.nodeType?o.parentNode.insertBefore(u,c):o.insertBefore(u,c)}else t.insertBefore(i.stateNode,n);else r?(o=t,u=i.stateNode,8===o.nodeType?(c=o.parentNode).insertBefore(u,o):(c=o).appendChild(u),null===c.onclick&&(c.onclick=dr)):t.appendChild(i.stateNode);else if(6!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function lo(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 7:r=n.stateNode,i=!1;break e;case 5:case 6:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(7===t.tag||8===t.tag){e:for(var o=t,u=o;;)if(uo(u),null!==u.child&&6!==u.tag)u.child.return=u,u=u.child;else{if(u===o)break;for(;null===u.sibling;){if(null===u.return||u.return===o)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}i?(o=r,u=t.stateNode,8===o.nodeType?o.parentNode.removeChild(u):o.removeChild(u)):r.removeChild(t.stateNode)}else if(6===t.tag?(r=t.stateNode.containerInfo,i=!0):uo(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;6===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function fo(e,t){switch(t.tag){case 2:case 3:break;case 7:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[I]=r,"input"===e&&"radio"===r.type&&null!=r.name&&xt(n,r),lr(e,i),t=lr(e,r),i=0;i<o.length;i+=2){var u=o[i],c=o[i+1];"style"===u?ur(n,c):"dangerouslySetInnerHTML"===u?rr(n,c):"children"===u?ir(n,c):mt(n,u,c,t)}switch(e){case"input":wt(n,r);break;case"textarea":Kn(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?Gn(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?Gn(n,!!r.multiple,r.defaultValue,!0):Gn(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 8:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 5:case 15:case 16:break;default:a("163")}}function po(e,t,n){(n=Kr(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ha(r),oo(e,t)},n}function ho(e,t,n){(n=Kr(n)).tag=3;var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===No?No=new Set([this]):No.add(this);var n=t.value,r=t.stack;oo(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function vo(e){switch(e.tag){case 2:Cr(e.type)&&Or();var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return Cr(e.type._reactResult)&&Or(),1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 5:return _i(),Sr(),0!=(64&(t=e.effectTag))&&a("285"),e.effectTag=-1025&t|64,e;case 7:return wi(e),null;case 16:return 1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 6:return _i(),null;case 12:return fi(e),null;default:return null}}no=function(){},ro=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var u=t.stateNode;switch(yi(vi.current),e=null,n){case"input":a=bt(u,a),r=bt(u,r),e=[];break;case"option":a=Yn(u,a),r=Yn(u,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=$n(u,a),r=$n(u,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(u.onclick=dr)}sr(n,r),u=n=void 0;var c=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var s=a[n];for(u in s)s.hasOwnProperty(u)&&(c||(c={}),c[u]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(b.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var l=r[n];if(s=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&l!==s&&(null!=l||null!=s))if("style"===n)if(s){for(u in s)!s.hasOwnProperty(u)||l&&l.hasOwnProperty(u)||(c||(c={}),c[u]="");for(u in l)l.hasOwnProperty(u)&&s[u]!==l[u]&&(c||(c={}),c[u]=l[u])}else c||(e||(e=[]),e.push(n,c)),c=l;else"dangerouslySetInnerHTML"===n?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(e=e||[]).push(n,""+l)):"children"===n?s===l||"string"!=typeof l&&"number"!=typeof l||(e=e||[]).push(n,""+l):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(b.hasOwnProperty(n)?(null!=l&&fr(o,n),e||s===l||(e=[])):(e=e||[]).push(n,l))}c&&(e=e||[]).push("style",c),o=e,(t.updateQueue=o)&&to(t)}},io=function(e,t,n,r){n!==r&&to(t)};var go={readContext:pi},mo=Ye.ReactCurrentOwner,yo=0,bo=0,_o=!1,xo=null,wo=null,Eo=0,To=!1,ko=null,Mo=!1,No=null;function Co(){if(null!==xo)for(var e=xo.return;null!==e;){var t=e;switch(t.tag){case 2:var n=t.type.childContextTypes;null!=n&&Or();break;case 3:null!=(n=t.type._reactResult.childContextTypes)&&Or();break;case 5:_i(),Sr();break;case 7:wi(t);break;case 6:_i();break;case 12:fi(t)}e=e.return}wo=null,Eo=0,To=!1,xo=null}function Oo(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(512&e.effectTag)){var o=t,u=(t=e).pendingProps;switch(t.tag){case 0:case 1:break;case 2:Cr(t.type)&&Or();break;case 3:Cr(t.type._reactResult)&&Or();break;case 5:_i(),Sr(),(u=t.stateNode).pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),null!==o&&null!==o.child||(Bi(t),t.effectTag&=-3),no(t);break;case 7:wi(t);var c=yi(mi.current),s=t.type;if(null!==o&&null!=t.stateNode)ro(o,t,s,u,c),o.ref!==t.ref&&(t.effectTag|=128);else if(u){var l=yi(vi.current);if(Bi(t)){o=(u=t).stateNode;var f=u.type,d=u.memoizedProps,p=c;switch(o[D]=u,o[I]=d,s=void 0,c=f){case"iframe":case"object":kn("load",o);break;case"video":case"audio":for(f=0;f<re.length;f++)kn(re[f],o);break;case"source":kn("error",o);break;case"img":case"image":case"link":kn("error",o),kn("load",o);break;case"form":kn("reset",o),kn("submit",o);break;case"details":kn("toggle",o);break;case"input":_t(o,d),kn("invalid",o),fr(p,"onChange");break;case"select":o._wrapperState={wasMultiple:!!d.multiple},kn("invalid",o),fr(p,"onChange");break;case"textarea":Xn(o,d),kn("invalid",o),fr(p,"onChange")}for(s in sr(c,d),f=null,d)d.hasOwnProperty(s)&&(l=d[s],"children"===s?"string"==typeof l?o.textContent!==l&&(f=["children",l]):"number"==typeof l&&o.textContent!==""+l&&(f=["children",""+l]):b.hasOwnProperty(s)&&null!=l&&fr(p,s));switch(c){case"input":He(o),Et(o,d,!0);break;case"textarea":He(o),Qn(o);break;case"select":case"option":break;default:"function"==typeof d.onClick&&(o.onclick=dr)}s=f,u.updateQueue=s,(u=null!==s)&&to(t)}else{d=t,o=s,p=u,f=9===c.nodeType?c:c.ownerDocument,l===Zn.html&&(l=Jn(o)),l===Zn.html?"script"===o?((o=f.createElement("div")).innerHTML="<script><\/script>",f=o.removeChild(o.firstChild)):"string"==typeof p.is?f=f.createElement(o,{is:p.is}):(f=f.createElement(o),"select"===o&&p.multiple&&(f.multiple=!0)):f=f.createElementNS(l,o),(o=f)[D]=d,o[I]=u;e:for(d=o,p=t,f=p.child;null!==f;){if(7===f.tag||8===f.tag)d.appendChild(f.stateNode);else if(6!==f.tag&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===p)break;for(;null===f.sibling;){if(null===f.return||f.return===p)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}p=o;var h=c,v=lr(f=s,d=u);switch(f){case"iframe":case"object":kn("load",p),c=d;break;case"video":case"audio":for(c=0;c<re.length;c++)kn(re[c],p);c=d;break;case"source":kn("error",p),c=d;break;case"img":case"image":case"link":kn("error",p),kn("load",p),c=d;break;case"form":kn("reset",p),kn("submit",p),c=d;break;case"details":kn("toggle",p),c=d;break;case"input":_t(p,d),c=bt(p,d),kn("invalid",p),fr(h,"onChange");break;case"option":c=Yn(p,d);break;case"select":p._wrapperState={wasMultiple:!!d.multiple},c=i({},d,{value:void 0}),kn("invalid",p),fr(h,"onChange");break;case"textarea":Xn(p,d),c=$n(p,d),kn("invalid",p),fr(h,"onChange");break;default:c=d}sr(f,c),l=void 0;var g=f,m=p,y=c;for(l in y)if(y.hasOwnProperty(l)){var _=y[l];"style"===l?ur(m,_):"dangerouslySetInnerHTML"===l?null!=(_=_?_.__html:void 0)&&rr(m,_):"children"===l?"string"==typeof _?("textarea"!==g||""!==_)&&ir(m,_):"number"==typeof _&&ir(m,""+_):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(b.hasOwnProperty(l)?null!=_&&fr(h,l):null!=_&&mt(m,l,_,v))}switch(f){case"input":He(p),Et(p,d,!1);break;case"textarea":He(p),Qn(p);break;case"option":null!=d.value&&p.setAttribute("value",""+yt(d.value));break;case"select":(c=p).multiple=!!d.multiple,null!=(p=d.value)?Gn(c,!!d.multiple,p,!1):null!=d.defaultValue&&Gn(c,!!d.multiple,d.defaultValue,!0);break;default:"function"==typeof c.onClick&&(p.onclick=dr)}(u=vr(s,u))&&to(t),t.stateNode=o}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 8:o&&null!=t.stateNode?io(o,t,o.memoizedProps,u):("string"!=typeof u&&(null===t.stateNode&&a("166")),o=yi(mi.current),yi(vi.current),Bi(t)?(s=(u=t).stateNode,o=u.memoizedProps,s[D]=u,(u=s.nodeValue!==o)&&to(t)):(s=t,(u=(9===o.nodeType?o:o.ownerDocument).createTextNode(u))[D]=s,t.stateNode=u));break;case 13:case 14:case 16:case 9:case 10:case 15:break;case 6:_i(),no(t);break;case 12:fi(t);break;case 11:break;case 4:a("167");default:a("156")}if(t=xo=null,u=e,1073741823===Eo||1073741823!==u.childExpirationTime){for(s=0,o=u.child;null!==o;)c=o.expirationTime,d=o.childExpirationTime,(0===s||0!==c&&c<s)&&(s=c),(0===s||0!==d&&d<s)&&(s=d),o=o.sibling;u.childExpirationTime=s}if(null!==t)return t;null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=vo(e)))return e.effectTag&=511,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512)}if(null!==r)return r;if(null===n)break;e=n}return null}function So(e){var t=eo(e.alternate,e,Eo);return null===t&&(t=Oo(e)),mo.current=null,t}function Po(e,t,n){_o&&a("243"),_o=!0,mo.currentDispatcher=go;var r=e.nextExpirationTimeToWorkOn;r===Eo&&e===wo&&null!==xo||(Co(),Eo=r,xo=Ur((wo=e).current,null,Eo),e.pendingCommitExpirationTime=0);for(var i=!1;;){try{if(t)for(;null!==xo&&!pa();)xo=So(xo);else for(;null!==xo;)xo=So(xo)}catch(e){if(null===xo)i=!0,ha(e);else{null===xo&&a("271");var o=xo,u=o.return;if(null!==u){e:{var c=u,s=o,l=e;u=Eo,s.effectTag|=512,s.firstEffect=s.lastEffect=null,To=!0,l=oi(l,s);do{switch(c.tag){case 5:c.effectTag|=1024,c.expirationTime=u,Jr(c,u=po(c,l,u));break e;case 2:case 3:s=l;var f=c.stateNode;if(0==(64&c.effectTag)&&null!==f&&"function"==typeof f.componentDidCatch&&(null===No||!No.has(f))){c.effectTag|=1024,c.expirationTime=u,Jr(c,u=ho(c,s,u));break e}}c=c.return}while(null!==c)}xo=Oo(o);continue}i=!0,ha(e)}}break}if(_o=!1,si=ci=ui=mo.currentDispatcher=null,i)wo=null,e.finishedWork=null;else if(null!==xo)e.finishedWork=null;else{if(null===(t=e.current.alternate)&&a("281"),wo=null,To){if(i=e.latestPendingTime,o=e.latestSuspendedTime,u=e.latestPingedTime,0!==i&&i>r||0!==o&&o>r||0!==u&&u>r)return e.didError=!1,0!==(n=e.latestPingedTime)&&n<=r&&(e.latestPingedTime=0),n=e.earliestPendingTime,t=e.latestPendingTime,n===r?e.earliestPendingTime=t===r?e.latestPendingTime=0:t:t===r&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,t=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=r:n>r?e.earliestSuspendedTime=r:t<r&&(e.latestSuspendedTime=r),Yr(r,e),void(e.expirationTime=e.expirationTime);if(!e.didError&&!n)return e.didError=!0,e.nextExpirationTimeToWorkOn=r,r=e.expirationTime=1,void(e.expirationTime=r)}e.pendingCommitExpirationTime=r,e.finishedWork=t}}function Ao(e,t){var n;e:{for(_o&&!Mo&&a("263"),n=e.return;null!==n;){switch(n.tag){case 2:case 3:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof r.componentDidCatch&&(null===No||!No.has(r))){Zr(n,e=ho(n,e=oi(t,e),1)),jo(n,1),n=void 0;break e}break;case 5:Zr(n,e=po(n,e=oi(t,e),1)),jo(n,1),n=void 0;break e}n=n.return}5===e.tag&&(Zr(e,n=po(e,n=oi(t,e),1)),jo(e,1)),n=void 0}return n}function Ro(e,t){return 0!==bo?e=bo:_o?e=Mo?1:Eo:1&t.mode?(e=Ko?2+10*(1+((e-2+15)/10|0)):2+25*(1+((e-2+500)/25|0)),null!==wo&&e===Eo&&(e+=1)):e=1,Ko&&(0===Wo||e>Wo)&&(Wo=e),e}function jo(e,t){e:{(0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t);var n=e.alternate;null!==n&&(0===n.expirationTime||n.expirationTime>t)&&(n.expirationTime=t);var r=e.return;if(null===r&&5===e.tag)e=e.stateNode;else{for(;null!==r;){if(n=r.alternate,(0===r.childExpirationTime||r.childExpirationTime>t)&&(r.childExpirationTime=t),null!==n&&(0===n.childExpirationTime||n.childExpirationTime>t)&&(n.childExpirationTime=t),null===r.return&&5===r.tag){e=r.stateNode;break e}r=r.return}e=null}}null!==e&&(!_o&&0!==Eo&&t<Eo&&Co(),Vr(e,t),_o&&!Mo&&wo===e||(t=e,e=e.expirationTime,null===t.nextScheduledRoot?(t.expirationTime=e,null===Lo?(Io=Lo=t,t.nextScheduledRoot=t):(Lo=Lo.nextScheduledRoot=t).nextScheduledRoot=Io):(0===(n=t.expirationTime)||e<n)&&(t.expirationTime=e),Uo||($o?Xo&&(qo=t,Bo=1,fa(t,1,!0)):1===e?la(1,null):aa(t,e))),na>ta&&(na=0,a("185")))}function Do(e,t,n,r,i){var o=bo;bo=1;try{return e(t,n,r,i)}finally{bo=o}}var Io=null,Lo=null,zo=0,Fo=void 0,Uo=!1,qo=null,Bo=0,Wo=0,Ho=!1,Vo=!1,Yo=null,Go=null,$o=!1,Xo=!1,Ko=!1,Qo=null,Zo=o.unstable_now(),Jo=2+(Zo/10|0),ea=Jo,ta=50,na=0,ra=null,ia=1;function oa(){Jo=2+((o.unstable_now()-Zo)/10|0)}function aa(e,t){if(0!==zo){if(t>zo)return;null!==Fo&&o.unstable_cancelScheduledWork(Fo)}zo=t,e=o.unstable_now()-Zo,Fo=o.unstable_scheduleWork(sa,{timeout:10*(t-2)-e})}function ua(){return Uo?ea:(ca(),0!==Bo&&1073741823!==Bo||(oa(),ea=Jo),ea)}function ca(){var e=0,t=null;if(null!==Lo)for(var n=Lo,r=Io;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===Lo)&&a("244"),r===r.nextScheduledRoot){Io=Lo=r.nextScheduledRoot=null;break}if(r===Io)Io=i=r.nextScheduledRoot,Lo.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===Lo){(Lo=n).nextScheduledRoot=Io,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===e||i<e)&&(e=i,t=r),r===Lo)break;if(1===e)break;n=r,r=r.nextScheduledRoot}}qo=t,Bo=e}function sa(e){if(e.didTimeout&&null!==Io){oa();var t=Io;do{var n=t.expirationTime;0!==n&&Jo>=n&&(t.nextExpirationTimeToWorkOn=Jo),t=t.nextScheduledRoot}while(t!==Io)}la(0,e)}function la(e,t){if(Go=t,ca(),null!==Go)for(oa(),ea=Jo;null!==qo&&0!==Bo&&(0===e||e>=Bo)&&(!Ho||Jo>=Bo);)fa(qo,Bo,Jo>=Bo),ca(),oa(),ea=Jo;else for(;null!==qo&&0!==Bo&&(0===e||e>=Bo);)fa(qo,Bo,!0),ca();if(null!==Go&&(zo=0,Fo=null),0!==Bo&&aa(qo,Bo),Go=null,Ho=!1,na=0,ra=null,null!==Qo)for(e=Qo,Qo=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){Vo||(Vo=!0,Yo=e)}}if(Vo)throw e=Yo,Yo=null,Vo=!1,e}function fa(e,t,n){if(Uo&&a("245"),Uo=!0,null===Go||n){var r=e.finishedWork;null!==r?da(e,r,t):(e.finishedWork=null,Po(e,!1,n),null!==(r=e.finishedWork)&&da(e,r,t))}else null!==(r=e.finishedWork)?da(e,r,t):(e.finishedWork=null,Po(e,!0,n),null!==(r=e.finishedWork)&&(pa()?e.finishedWork=r:da(e,r,t)));Uo=!1}function da(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime<=n&&(null===Qo?Qo=[r]:Qo.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===ra?na++:(ra=e,na=0),Mo=_o=!0,e.current===t&&a("177"),0===(n=e.pendingCommitExpirationTime)&&a("261"),e.pendingCommitExpirationTime=0,r=t.expirationTime;var i=t.childExpirationTime;if(r=0===r||0!==i&&i<r?i:r,e.didError=!1,0===r?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(0!==(i=e.latestPendingTime)&&(i<r?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime<r&&(e.earliestPendingTime=e.latestPendingTime)),0===(i=e.earliestSuspendedTime)?Vr(e,r):r>e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Vr(e,r)):r<i&&Vr(e,r)),Yr(0,e),mo.current=null,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,pr=Tn,Ln(i=In())){if("selectionStart"in i)var o={start:i.selectionStart,end:i.selectionEnd};else e:{var u=(o=(o=i.ownerDocument)&&o.defaultView||window).getSelection&&o.getSelection();if(u&&0!==u.rangeCount){o=u.anchorNode;var c=u.anchorOffset,s=u.focusNode;u=u.focusOffset;try{o.nodeType,s.nodeType}catch(e){o=null;break e}var l=0,f=-1,d=-1,p=0,h=0,v=i,g=null;t:for(;;){for(var m;v!==o||0!==c&&3!==v.nodeType||(f=l+c),v!==s||0!==u&&3!==v.nodeType||(d=l+u),3===v.nodeType&&(l+=v.nodeValue.length),null!==(m=v.firstChild);)g=v,v=m;for(;;){if(v===i)break t;if(g===o&&++p===c&&(f=l),g===s&&++h===u&&(d=l),null!==(m=v.nextSibling))break;g=(v=g).parentNode}v=m}o=-1===f||-1===d?null:{start:f,end:d}}else o=null}o=o||{start:0,end:0}}else o=null;for(hr={focusedElem:i,selectionRange:o},Tn=!1,ko=r;null!==ko;){i=!1,o=void 0;try{for(;null!==ko;){if(256&ko.effectTag){var y=ko.alternate;e:switch(c=ko,c.tag){case 2:case 3:if(256&c.effectTag&&null!==y){var b=y.memoizedProps,_=y.memoizedState,x=c.stateNode;x.props=c.memoizedProps,x.state=c.memoizedState;var w=x.getSnapshotBeforeUpdate(b,_);x.__reactInternalSnapshotBeforeUpdate=w}break e;case 5:case 7:case 8:case 6:break e;default:a("163")}}ko=ko.nextEffect}}catch(e){i=!0,o=e}i&&(null===ko&&a("178"),Ao(ko,o),null!==ko&&(ko=ko.nextEffect))}for(ko=r;null!==ko;){y=!1,b=void 0;try{for(;null!==ko;){var E=ko.effectTag;if(16&E&&ir(ko.stateNode,""),128&E){var T=ko.alternate;if(null!==T){var k=T.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(14&E){case 2:so(ko),ko.effectTag&=-3;break;case 6:so(ko),ko.effectTag&=-3,fo(ko.alternate,ko);break;case 4:fo(ko.alternate,ko);break;case 8:lo(_=ko),_.return=null,_.child=null,_.alternate&&(_.alternate.child=null,_.alternate.return=null)}ko=ko.nextEffect}}catch(e){y=!0,b=e}y&&(null===ko&&a("178"),Ao(ko,b),null!==ko&&(ko=ko.nextEffect))}if(k=hr,T=In(),E=k.focusedElem,b=k.selectionRange,T!==E&&E&&E.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(E.ownerDocument.documentElement,E)){null!==b&&Ln(E)&&(T=b.start,void 0===(k=b.end)&&(k=T),"selectionStart"in E?(E.selectionStart=T,E.selectionEnd=Math.min(k,E.value.length)):(T=((y=E.ownerDocument||document)&&y.defaultView||window).getSelection(),_=E.textContent.length,k=Math.min(b.start,_),b=void 0===b.end?k:Math.min(b.end,_),!T.extend&&k>b&&(_=b,b=k,k=_),_=Dn(E,k),x=Dn(E,b),_&&x&&(1!==T.rangeCount||T.anchorNode!==_.node||T.anchorOffset!==_.offset||T.focusNode!==x.node||T.focusOffset!==x.offset)&&((y=y.createRange()).setStart(_.node,_.offset),T.removeAllRanges(),k>b?(T.addRange(y),T.extend(x.node,x.offset)):(y.setEnd(x.node,x.offset),T.addRange(y))))),T=[];for(k=E;k=k.parentNode;)1===k.nodeType&&T.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<T.length;E++)(k=T[E]).element.scrollLeft=k.left,k.element.scrollTop=k.top}for(hr=null,Tn=!!pr,pr=null,e.current=t,ko=r;null!==ko;){r=!1,E=void 0;try{for(T=n;null!==ko;){var M=ko.effectTag;if(36&M){var N=ko.alternate;switch(y=T,(k=ko).tag){case 2:case 3:var C=k.stateNode;if(4&k.effectTag)if(null===N)C.props=k.memoizedProps,C.state=k.memoizedState,C.componentDidMount();else{var O=N.memoizedProps,S=N.memoizedState;C.props=k.memoizedProps,C.state=k.memoizedState,C.componentDidUpdate(O,S,C.__reactInternalSnapshotBeforeUpdate)}var P=k.updateQueue;null!==P&&(C.props=k.memoizedProps,C.state=k.memoizedState,ri(0,P,C));break;case 5:var A=k.updateQueue;if(null!==A){if(b=null,null!==k.child)switch(k.child.tag){case 7:b=k.child.stateNode;break;case 2:case 3:b=k.child.stateNode}ri(0,A,b)}break;case 7:var R=k.stateNode;null===N&&4&k.effectTag&&vr(k.type,k.memoizedProps)&&R.focus();break;case 8:case 6:case 15:case 16:break;default:a("163")}}if(128&M){var j=ko.ref;if(null!==j){var D=ko.stateNode;switch(ko.tag){case 7:var I=D;break;default:I=D}"function"==typeof j?j(I):j.current=I}}var L=ko.nextEffect;ko.nextEffect=null,ko=L}}catch(e){r=!0,E=e}r&&(null===ko&&a("178"),Ao(ko,E),null!==ko&&(ko=ko.nextEffect))}_o=Mo=!1,"function"==typeof Dr&&Dr(t.stateNode),M=t.expirationTime,t=t.childExpirationTime,0===(t=0===M||0!==t&&t<M?t:M)&&(No=null),e.expirationTime=t,e.finishedWork=null}function pa(){return!!Ho||!(null===Go||Go.timeRemaining()>ia)&&(Ho=!0)}function ha(e){null===qo&&a("246"),qo.expirationTime=0,Vo||(Vo=!0,Yo=e)}function va(e,t){var n=$o;$o=!0;try{return e(t)}finally{($o=n)||Uo||la(1,null)}}function ga(e,t){if($o&&!Xo){Xo=!0;try{return e(t)}finally{Xo=!1}}return e(t)}function ma(e,t,n){if(Ko)return e(t,n);$o||Uo||0===Wo||(la(Wo,null),Wo=0);var r=Ko,i=$o;$o=Ko=!0;try{return e(t,n)}finally{Ko=r,($o=i)||Uo||la(1,null)}}function ya(e,t,n,r,i){var o=t.current;return n=function(e){if(!e)return Er;e:{(2!==tn(e=e._reactInternalFiber)||2!==e.tag&&3!==e.tag)&&a("170");var t=e;do{switch(t.tag){case 5:t=t.stateNode.context;break e;case 2:if(Cr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}break;case 3:if(Cr(t.type._reactResult)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);a("171"),t=void 0}if(2===e.tag){var n=e.type;if(Cr(n))return Ar(e,n,t)}else if(3===e.tag&&Cr(n=e.type._reactResult))return Ar(e,n,t);return t}(n),null===t.context?t.context=n:t.pendingContext=n,t=i,(i=Kr(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),Zr(o,i),jo(o,r),r}function ba(e,t,n,r){var i=t.current;return ya(e,t,n,i=Ro(ua(),i),r)}function _a(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 7:default:return e.child.stateNode}}function xa(e){var t=2+25*(1+((ua()-2+500)/25|0));t<=yo&&(t=yo+1),this._expirationTime=yo=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function wa(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Ea(e,t,n){e={current:t=new zr(5,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Ta(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ka(e,t,n,r,i){Ta(n)||a("200");var o=n._reactRootContainer;if(o){if("function"==typeof i){var u=i;i=function(){var e=_a(o._internalRoot);u.call(e)}}null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Ea(e,!1,t)}(n,r),"function"==typeof i){var c=i;i=function(){var e=_a(o._internalRoot);c.call(e)}}ga(function(){null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)})}return _a(o._internalRoot)}function Ma(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Ta(t)||a("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ke,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ce=function(e,t,n){switch(t){case"input":if(wt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=U(r);i||a("90"),Ve(r),wt(r,i)}}}break;case"textarea":Kn(e,n);break;case"select":null!=(t=n.value)&&Gn(e,!!n.multiple,t,!1)}},xa.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new wa;return ya(e,t,null,n,r._onCommit),r},xa.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},xa.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,i=t;i!==this;)r=i,i=i._next;null===r&&a("251"),r._next=i._next,this._next=t,e.firstBatch=this}this._defer=!1,t=n,Uo&&a("253"),qo=e,Bo=t,fa(e,t,!0),la(1,null),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},xa.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},wa.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},wa.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&a("191",n),n()}}},Ea.prototype.render=function(e,t){var n=this._internalRoot,r=new wa;return null!==(t=void 0===t?null:t)&&r.then(t),ba(e,n,null,r._onCommit),r},Ea.prototype.unmount=function(e){var t=this._internalRoot,n=new wa;return null!==(e=void 0===e?null:e)&&n.then(e),ba(null,t,null,n._onCommit),n},Ea.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new wa;return null!==(n=void 0===n?null:n)&&i.then(n),ba(t,r,e,i._onCommit),i},Ea.prototype.createBatch=function(){var e=new xa(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime<=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},je=va,De=ma,Ie=function(){Uo||0===Wo||(la(Wo,null),Wo=0)};var Na={createPortal:Ma,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return ka(null,e,t,!0,n)},render:function(e,t,n){return ka(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&a("38"),ka(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Ta(e)||a("40"),!!e._reactRootContainer&&(ga(function(){ka(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ma.apply(void 0,arguments)},unstable_batchedUpdates:va,unstable_interactiveUpdates:ma,flushSync:function(e,t){Uo&&a("187");var n=$o;$o=!0;try{return Do(e,t)}finally{$o=n,la(1,null)}},unstable_flushControlled:function(e){var t=$o;$o=!0;try{Do(e)}finally{($o=t)||Uo||la(1,null)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[z,F,U,P.injectEventPluginsByName,y,Y,function(e){M(e,V)},Ae,Re,Cn,R]},unstable_createRoot:function(e,t){return Ta(e)||a("278"),new Ea(e,!0,null!=t&&!0===t.hydrate)}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Dr=Lr(function(e){return t.onCommitFiberRoot(n,e)}),Ir=Lr(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}})(i({},e,{findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:L,bundleType:0,version:"16.5.2",rendererPackageName:"react-dom"});var Ca={default:Na},Oa=Ca&&Na||Ca;e.exports=Oa.default||Oa},function(e,t,n){"use strict";e.exports=n(57)},function(e,t,n){"use strict";
/** @license React v16.5.2
 * schedule.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */Object.defineProperty(t,"__esModule",{value:!0});var r=null,i=!1,o=!1,a="object"==typeof performance&&"function"==typeof performance.now,u={timeRemaining:a?function(){var e=v()-performance.now();return 0<e?e:0}:function(){var e=v()-Date.now();return 0<e?e:0},didTimeout:!1};function c(){if(!i){var e=r.timesOutAt;o?h():o=!0,p(l,e)}}function s(){var e=r,t=r.next;if(r===t)r=null;else{var n=r.previous;r=n.next=t,t.previous=n}e.next=e.previous=null,(e=e.callback)(u)}function l(e){i=!0,u.didTimeout=e;try{if(e)for(;null!==r;){var n=t.unstable_now();if(!(r.timesOutAt<=n))break;do{s()}while(null!==r&&r.timesOutAt<=n)}else if(null!==r)do{s()}while(null!==r&&0<v()-t.unstable_now())}finally{i=!1,null!==r?c():o=!1}}var f,d,p,h,v,g=Date,m="function"==typeof setTimeout?setTimeout:void 0,y="function"==typeof clearTimeout?clearTimeout:void 0,b="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,_="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function x(e){f=b(function(t){y(d),e(t)}),d=m(function(){_(f),e(t.unstable_now())},100)}if(a){var w=performance;t.unstable_now=function(){return w.now()}}else t.unstable_now=function(){return g.now()};if("undefined"==typeof window){var E=-1;p=function(e){E=setTimeout(e,0,!0)},h=function(){clearTimeout(E)},v=function(){return 0}}else if(window._schedMock){var T=window._schedMock;p=T[0],h=T[1],v=T[2]}else{"undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof _&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var k=null,M=!1,N=-1,C=!1,O=!1,S=0,P=33,A=33;v=function(){return S};var R="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===R){M=!1;var n=t.unstable_now();if(e=!1,0>=S-n){if(!(-1!==N&&N<=n))return void(C||(C=!0,x(j)));e=!0}if(N=-1,n=k,k=null,null!==n){O=!0;try{n(e)}finally{O=!1}}}},!1);var j=function(e){C=!1;var t=e-S+A;t<A&&P<A?(8>t&&(t=8),A=t<P?P:t):P=t,S=e+A,M||(M=!0,window.postMessage(R,"*"))};p=function(e,t){k=e,N=t,O?window.postMessage(R,"*"):C||(C=!0,x(j))},h=function(){k=null,M=!1,N=-1}}t.unstable_scheduleWork=function(e,n){var i=t.unstable_now();if(e={callback:e,timesOutAt:n=null!=n&&null!==n.timeout&&void 0!==n.timeout?i+n.timeout:i+5e3,next:null,previous:null},null===r)r=e.next=e.previous=e,c();else{i=null;var o=r;do{if(o.timesOutAt>n){i=o;break}o=o.next}while(o!==r);null===i?i=r:i===r&&(r=e,c()),(n=i.previous).next=i.previous=e,e.next=i,e.previous=n}return e},t.unstable_cancelScheduledWork=function(e){var t=e.next;if(null!==t){if(t===e)r=null;else{e===r&&(r=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}}},function(e,t,n){e.exports={default:n(59),__esModule:!0}},function(e,t,n){n(60),e.exports=n(3).Object.assign},function(e,t,n){var r=n(6);r(r.S+r.F,"Object",{assign:n(62)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(17),i=n(27),o=n(20),a=n(28),u=n(42),c=Object.assign;e.exports=!c||n(12)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=a(e),c=arguments.length,s=1,l=i.f,f=o.f;c>s;)for(var d,p=u(arguments[s++]),h=l?r(p).concat(l(p)):r(p),v=h.length,g=0;v>g;)f.call(p,d=h[g++])&&(n[d]=p[d]);return n}:c},function(e,t,n){var r=n(13),i=n(64),o=n(65);e.exports=function(e){return function(t,n,a){var u,c=r(t),s=i(c.length),l=o(a,s);if(e&&n!=n){for(;s>l;)if((u=c[l++])!=u)return!0}else for(;s>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(23),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(23),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){e.exports={default:n(67),__esModule:!0}},function(e,t,n){n(68),e.exports=n(3).Object.getPrototypeOf},function(e,t,n){var r=n(28),i=n(44);n(69)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(6),i=n(3),o=n(12);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(72),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){e.exports={default:n(73),__esModule:!0}},function(e,t,n){n(74);var r=n(3).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(6);r(r.S+r.F*!n(8),"Object",{defineProperty:n(7).f})},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(45),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){e.exports={default:n(77),__esModule:!0}},function(e,t,n){n(78),n(83),e.exports=n(32).f("iterator")},function(e,t,n){"use strict";var r=n(79)(!0);n(46)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(23),i=n(22);e.exports=function(e){return function(t,n){var o,a,u=String(i(t)),c=r(n),s=u.length;return c<0||c>=s?e?"":void 0:(o=u.charCodeAt(c))<55296||o>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?e?u.charAt(c):o:e?u.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(30),i=n(16),o=n(31),a={};n(10)(a,n(14)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(7),i=n(15),o=n(17);e.exports=n(8)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),u=a.length,c=0;u>c;)r.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var r=n(4).document;e.exports=r&&r.documentElement},function(e,t,n){n(84);for(var r=n(4),i=n(10),o=n(29),a=n(14)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var s=u[c],l=r[s],f=l&&l.prototype;f&&!f[a]&&i(f,a,s),o[s]=o.Array}},function(e,t,n){"use strict";var r=n(85),i=n(86),o=n(29),a=n(13);e.exports=n(46)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(88),__esModule:!0}},function(e,t,n){n(89),n(94),n(95),n(96),e.exports=n(3).Symbol},function(e,t,n){"use strict";var r=n(4),i=n(9),o=n(8),a=n(6),u=n(47),c=n(90).KEY,s=n(12),l=n(25),f=n(31),d=n(19),p=n(14),h=n(32),v=n(33),g=n(91),m=n(92),y=n(15),b=n(11),_=n(13),x=n(21),w=n(16),E=n(30),T=n(93),k=n(49),M=n(7),N=n(17),C=k.f,O=M.f,S=T.f,P=r.Symbol,A=r.JSON,R=A&&A.stringify,j=p("_hidden"),D=p("toPrimitive"),I={}.propertyIsEnumerable,L=l("symbol-registry"),z=l("symbols"),F=l("op-symbols"),U=Object.prototype,q="function"==typeof P,B=r.QObject,W=!B||!B.prototype||!B.prototype.findChild,H=o&&s(function(){return 7!=E(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=C(U,t);r&&delete U[t],O(e,t,n),r&&e!==U&&O(U,t,r)}:O,V=function(e){var t=z[e]=E(P.prototype);return t._k=e,t},Y=q&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},G=function(e,t,n){return e===U&&G(F,t,n),y(e),t=x(t,!0),y(n),i(z,t)?(n.enumerable?(i(e,j)&&e[j][t]&&(e[j][t]=!1),n=E(n,{enumerable:w(0,!1)})):(i(e,j)||O(e,j,w(1,{})),e[j][t]=!0),H(e,t,n)):O(e,t,n)},$=function(e,t){y(e);for(var n,r=g(t=_(t)),i=0,o=r.length;o>i;)G(e,n=r[i++],t[n]);return e},X=function(e){var t=I.call(this,e=x(e,!0));return!(this===U&&i(z,e)&&!i(F,e))&&(!(t||!i(this,e)||!i(z,e)||i(this,j)&&this[j][e])||t)},K=function(e,t){if(e=_(e),t=x(t,!0),e!==U||!i(z,t)||i(F,t)){var n=C(e,t);return!n||!i(z,t)||i(e,j)&&e[j][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=S(_(e)),r=[],o=0;n.length>o;)i(z,t=n[o++])||t==j||t==c||r.push(t);return r},Z=function(e){for(var t,n=e===U,r=S(n?F:_(e)),o=[],a=0;r.length>a;)!i(z,t=r[a++])||n&&!i(U,t)||o.push(z[t]);return o};q||(u((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(F,n),i(this,j)&&i(this[j],e)&&(this[j][e]=!1),H(this,e,w(1,n))};return o&&W&&H(U,e,{configurable:!0,set:t}),V(e)}).prototype,"toString",function(){return this._k}),k.f=K,M.f=G,n(48).f=T.f=Q,n(20).f=X,n(27).f=Z,o&&!n(18)&&u(U,"propertyIsEnumerable",X,!0),h.f=function(e){return V(p(e))}),a(a.G+a.W+a.F*!q,{Symbol:P});for(var J="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;J.length>ee;)p(J[ee++]);for(var te=N(p.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(L,e+="")?L[e]:L[e]=P(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?E(e):$(E(e),t)},defineProperty:G,defineProperties:$,getOwnPropertyDescriptor:K,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),A&&a(a.S+a.F*(!q||s(function(){var e=P();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Y(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,R.apply(A,r)}}),P.prototype[D]||n(10)(P.prototype,D,P.prototype.valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(19)("meta"),i=n(11),o=n(9),a=n(7).f,u=0,c=Object.isExtensible||function(){return!0},s=!n(12)(function(){return c(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return s&&f.NEED&&c(e)&&!o(e,r)&&l(e),e}}},function(e,t,n){var r=n(17),i=n(27),o=n(20);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,u=n(e),c=o.f,s=0;u.length>s;)c.call(e,a=u[s++])&&t.push(a);return t}},function(e,t,n){var r=n(43);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(13),i=n(48).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t){},function(e,t,n){n(33)("asyncIterator")},function(e,t,n){n(33)("observable")},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(98)),i=a(n(102)),o=a(n(45));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,o.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(99),__esModule:!0}},function(e,t,n){n(100),e.exports=n(3).Object.setPrototypeOf},function(e,t,n){var r=n(6);r(r.S,"Object",{setPrototypeOf:n(101).set})},function(e,t,n){var r=n(11),i=n(15),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(38)(Function.call,n(49).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){e.exports={default:n(103),__esModule:!0}},function(e,t,n){n(104);var r=n(3).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(6);r(r.S,"Object",{create:n(30)})},function(e,t,n){"use strict";var r=n(106);function i(){}e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateNeedleHeight=function(e,t){if(0>e||1<e)throw new Error("Invalid needleHeightRatio given - "+e);return Math.round(t*e)}},function(e,t,n){"use strict";n.r(t);var r=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},i=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var o=i(r),a=o.right,u=o.left,c=a,s=function(e,t){null==t&&(t=l);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return o};function l(e,t){return[e,t]}var f=function(e,t,n){var r,i,o,a,u=e.length,c=t.length,s=new Array(u*c);for(null==n&&(n=l),r=o=0;r<u;++r)for(a=e[r],i=0;i<c;++i,++o)s[o]=n(a,t[i]);return s},d=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},p=function(e){return null===e?NaN:+e},h=function(e,t){var n,r,i=e.length,o=0,a=-1,u=0,c=0;if(null==t)for(;++a<i;)isNaN(n=p(e[a]))||(c+=(r=n-u)*(n-(u+=r/++o)));else for(;++a<i;)isNaN(n=p(t(e[a],a,e)))||(c+=(r=n-u)*(n-(u+=r/++o)));if(o>1)return c/(o-1)},v=function(e,t){var n=h(e,t);return n?Math.sqrt(n):n},g=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=e[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=i=n;++a<o;)null!=(n=t(e[a],a,e))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},m=Array.prototype,y=m.slice,b=m.map,_=function(e){return function(){return e}},x=function(e){return e},w=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o},E=Math.sqrt(50),T=Math.sqrt(10),k=Math.sqrt(2),M=function(e,t,n){var r,i,o,a,u=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=N(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++u<i;)o[u]=(e+u)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++u<i;)o[u]=(e-u)/a;return r&&o.reverse(),o};function N(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=E?10:o>=T?5:o>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=E?10:o>=T?5:o>=k?2:1)}function C(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=E?i*=10:o>=T?i*=5:o>=k&&(i*=2),t<e?-i:i}var O=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},S=function(){var e=x,t=g,n=O;function r(r){var i,o,a=r.length,u=new Array(a);for(i=0;i<a;++i)u[i]=e(r[i],i,r);var s=t(u),l=s[0],f=s[1],d=n(u,l,f);Array.isArray(d)||(d=C(l,f,d),d=w(Math.ceil(l/d)*d,f,d));for(var p=d.length;d[0]<=l;)d.shift(),--p;for(;d[p-1]>f;)d.pop(),--p;var h,v=new Array(p+1);for(i=0;i<=p;++i)(h=v[i]=[]).x0=i>0?d[i-1]:l,h.x1=i<p?d[i]:f;for(i=0;i<a;++i)l<=(o=u[i])&&o<=f&&v[c(d,o,0,p)].push(r[i]);return v}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:_(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:_([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?_(y.call(e)):_(e),r):n},r},P=function(e,t,n){if(null==n&&(n=p),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}},A=function(e,t,n){return e=b.call(e,p).sort(r),Math.ceil((n-t)/(2*(P(e,.75)-P(e,.25))*Math.pow(e.length,-1/3)))},R=function(e,t,n){return Math.ceil((n-t)/(3.5*v(e)*Math.pow(e.length,-1/3)))},j=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r},D=function(e,t){var n,r=e.length,i=r,o=-1,a=0;if(null==t)for(;++o<r;)isNaN(n=p(e[o]))?--i:a+=n;else for(;++o<r;)isNaN(n=p(t(e[o],o,e)))?--i:a+=n;if(i)return a/i},I=function(e,t){var n,i=e.length,o=-1,a=[];if(null==t)for(;++o<i;)isNaN(n=p(e[o]))||a.push(n);else for(;++o<i;)isNaN(n=p(t(e[o],o,e)))||a.push(n);return P(a.sort(r),.5)},L=function(e){for(var t,n,r,i=e.length,o=-1,a=0;++o<i;)a+=e[o].length;for(n=new Array(a);--i>=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n},z=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r},F=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},U=function(e,t){if(n=e.length){var n,i,o=0,a=0,u=e[a];for(null==t&&(t=r);++o<n;)(t(i=e[o],u)<0||0!==t(u,u))&&(u=i,a=o);return 0===t(u,u)?a:void 0}},q=function(e,t,n){for(var r,i,o=(null==n?e.length:n)-(t=null==t?0:+t);o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e},B=function(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i<r;)(n=+e[i])&&(o+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(o+=n);return o},W=function(e){if(!(i=e.length))return[];for(var t=-1,n=z(e,H),r=new Array(n);++t<n;)for(var i,o=-1,a=r[t]=new Array(i);++o<i;)a[o]=e[o][t];return r};function H(e){return e.length}var V=function(){return W(arguments)},Y=Array.prototype.slice,G=function(e){return e},$=1,X=2,K=3,Q=4,Z=1e-6;function J(e){return"translate("+(e+.5)+",0)"}function ee(e){return"translate(0,"+(e+.5)+")"}function te(){return!this.__axis}function ne(e,t){var n=[],r=null,i=null,o=6,a=6,u=3,c=e===$||e===Q?-1:1,s=e===Q||e===X?"x":"y",l=e===$||e===K?J:ee;function f(f){var d=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):G:i,h=Math.max(o,0)+u,v=t.range(),g=+v[0]+.5,m=+v[v.length-1]+.5,y=(t.bandwidth?function(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}:function(e){return function(t){return+e(t)}})(t.copy()),b=f.selection?f.selection():f,_=b.selectAll(".domain").data([null]),x=b.selectAll(".tick").data(d,t).order(),w=x.exit(),E=x.enter().append("g").attr("class","tick"),T=x.select("line"),k=x.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),T=T.merge(E.append("line").attr("stroke","currentColor").attr(s+"2",c*o)),k=k.merge(E.append("text").attr("fill","currentColor").attr(s,c*h).attr("dy",e===$?"0em":e===K?"0.71em":"0.32em")),f!==b&&(_=_.transition(f),x=x.transition(f),T=T.transition(f),k=k.transition(f),w=w.transition(f).attr("opacity",Z).attr("transform",function(e){return isFinite(e=y(e))?l(e):this.getAttribute("transform")}),E.attr("opacity",Z).attr("transform",function(e){var t=this.parentNode.__axis;return l(t&&isFinite(t=t(e))?t:y(e))})),w.remove(),_.attr("d",e===Q||e==X?a?"M"+c*a+","+g+"H0.5V"+m+"H"+c*a:"M0.5,"+g+"V"+m:a?"M"+g+","+c*a+"V0.5H"+m+"V"+c*a:"M"+g+",0.5H"+m),x.attr("opacity",1).attr("transform",function(e){return l(y(e))}),T.attr(s+"2",c*o),k.attr(s,c*h).text(p),b.filter(te).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===X?"start":e===Q?"end":"middle"),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Y.call(arguments),f},f.tickArguments=function(e){return arguments.length?(n=null==e?[]:Y.call(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=null==e?null:Y.call(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(o=a=+e,f):o},f.tickSizeInner=function(e){return arguments.length?(o=+e,f):o},f.tickSizeOuter=function(e){return arguments.length?(a=+e,f):a},f.tickPadding=function(e){return arguments.length?(u=+e,f):u},f}function re(e){return ne($,e)}function ie(e){return ne(X,e)}function oe(e){return ne(K,e)}function ae(e){return ne(Q,e)}var ue={value:function(){}};function ce(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r)throw new Error("illegal type: "+e);r[e]=[]}return new se(r)}function se(e){this._=e}function le(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function fe(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=ue,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}se.prototype=ce.prototype={constructor:se,on:function(e,t){var n,r,i=this._,o=(r=i,(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a<u;)if(n=(e=o[a]).type)i[n]=fe(i[n],e.name,t);else if(null==t)for(n in i)i[n]=fe(i[n],e.name,null);return this}for(;++a<u;)if((n=(e=o[a]).type)&&(n=le(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new se(e)},call:function(e,t){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(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var de=ce,pe="http://www.w3.org/1999/xhtml",he={svg:"http://www.w3.org/2000/svg",xhtml:pe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ve=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),he.hasOwnProperty(t)?{space:he[t],local:e}:e};var ge=function(e){var t=ve(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===pe&&t.documentElement.namespaceURI===pe?t.createElement(e):t.createElementNS(n,e)}})(t)};function me(){}var ye=function(e){return null==e?me:function(){return this.querySelector(e)}};function be(){return[]}var _e=function(e){return null==e?be:function(){return this.querySelectorAll(e)}},xe=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var we=document.documentElement;if(!we.matches){var Ee=we.webkitMatchesSelector||we.msMatchesSelector||we.mozMatchesSelector||we.oMatchesSelector;xe=function(e){return function(){return Ee.call(this,e)}}}}var Te=xe,ke=function(e){return new Array(e.length)};function Me(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Me.prototype={constructor:Me,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Ne="$";function Ce(e,t,n,r,i,o){for(var a,u=0,c=t.length,s=o.length;u<s;++u)(a=t[u])?(a.__data__=o[u],r[u]=a):n[u]=new Me(e,o[u]);for(;u<c;++u)(a=t[u])&&(i[u]=a)}function Oe(e,t,n,r,i,o,a){var u,c,s,l={},f=t.length,d=o.length,p=new Array(f);for(u=0;u<f;++u)(c=t[u])&&(p[u]=s=Ne+a.call(c,c.__data__,u,t),s in l?i[u]=c:l[s]=c);for(u=0;u<d;++u)(c=l[s=Ne+a.call(e,o[u],u,o)])?(r[u]=c,c.__data__=o[u],l[s]=null):n[u]=new Me(e,o[u]);for(u=0;u<f;++u)(c=t[u])&&l[p[u]]===c&&(i[u]=c)}function Se(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var Pe=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function Ae(e,t){return e.style.getPropertyValue(t)||Pe(e).getComputedStyle(e,null).getPropertyValue(t)}function Re(e){return e.trim().split(/^|\s+/)}function je(e){return e.classList||new De(e)}function De(e){this._node=e,this._names=Re(e.getAttribute("class")||"")}function Ie(e,t){for(var n=je(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Le(e,t){for(var n=je(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}De.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function ze(){this.textContent=""}function Fe(){this.innerHTML=""}function Ue(){this.nextSibling&&this.parentNode.appendChild(this)}function qe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Be(){return null}function We(){var e=this.parentNode;e&&e.removeChild(this)}function He(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Ve(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Ye={},Ge=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Ye={mouseenter:"mouseover",mouseleave:"mouseout"}));function $e(e,t,n){return e=Xe(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Xe(e,t,n){return function(r){var i=Ge;Ge=r;try{e.call(this,this.__data__,t,n)}finally{Ge=i}}}function Ke(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function Qe(e,t,n){var r=Ye.hasOwnProperty(e.type)?$e:Xe;return function(i,o,a){var u,c=this.__on,s=r(t,o,a);if(c)for(var l=0,f=c.length;l<f;++l)if((u=c[l]).type===e.type&&u.name===e.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=s,u.capture=n),void(u.value=t);this.addEventListener(e.type,s,n),u={type:e.type,name:e.name,value:t,listener:s,capture:n},c?c.push(u):this.__on=[u]}}function Ze(e,t,n,r){var i=Ge;e.sourceEvent=Ge,Ge=e;try{return t.apply(n,r)}finally{Ge=i}}function Je(e,t,n){var r=Pe(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}var et=[null];function tt(e,t){this._groups=e,this._parents=t}function nt(){return new tt([[document.documentElement]],et)}tt.prototype=nt.prototype={constructor:tt,select:function(e){"function"!=typeof e&&(e=ye(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,u=t[i],c=u.length,s=r[i]=new Array(c),l=0;l<c;++l)(o=u[l])&&(a=e.call(o,o.__data__,l,u))&&("__data__"in o&&(a.__data__=o.__data__),s[l]=a);return new tt(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=_e(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,u=t[o],c=u.length,s=0;s<c;++s)(a=u[s])&&(r.push(e.call(a,a.__data__,s,u)),i.push(a));return new tt(r,i)},filter:function(e){"function"!=typeof e&&(e=Te(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&e.call(o,o.__data__,s,a)&&c.push(o);return new tt(r,this._parents)},data:function(e,t){if(!e)return h=new Array(this.size()),l=-1,this.each(function(e){h[++l]=e}),h;var n,r=t?Oe:Ce,i=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,u=new Array(a),c=new Array(a),s=new Array(a),l=0;l<a;++l){var f=i[l],d=o[l],p=d.length,h=e.call(f,f&&f.__data__,l,i),v=h.length,g=c[l]=new Array(v),m=u[l]=new Array(v);r(f,d,g,m,s[l]=new Array(p),h,t);for(var y,b,_=0,x=0;_<v;++_)if(y=g[_]){for(_>=x&&(x=_+1);!(b=m[x])&&++x<v;);y._next=b||null}}return(u=new tt(u,i))._enter=c,u._exit=s,u},enter:function(){return new tt(this._enter||this._groups.map(ke),this._parents)},exit:function(){return new tt(this._exit||this._groups.map(ke),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=t[u],l=n[u],f=s.length,d=a[u]=new Array(f),p=0;p<f;++p)(c=s[p]||l[p])&&(d[p]=c);for(;u<r;++u)a[u]=t[u];return new tt(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],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},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Se);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,u=n[o],c=u.length,s=i[o]=new Array(c),l=0;l<c;++l)(a=u[l])&&(s[l]=a);s.sort(t)}return new tt(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e=0;return this.each(function(){++e}),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,u=o.length;a<u;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=ve(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):Ae(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=Re(e+"");if(arguments.length<2){for(var r=je(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?Ie:Le)(this,e)}}:t?function(e){return function(){Ie(this,e)}}:function(e){return function(){Le(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?ze:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Fe:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(Ue)},lower:function(){return this.each(qe)},append:function(e){var t="function"==typeof e?e:ge(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:ge(e),r=null==t?Be:"function"==typeof t?t:ye(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(We)},clone:function(e){return this.select(e?Ve:He)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),a=o.length;if(!(arguments.length<2)){for(u=t?Qe:Ke,null==n&&(n=!1),r=0;r<a;++r)this.each(u(o[r],t,n));return this}var u=this.node().__on;if(u)for(var c,s=0,l=u.length;s<l;++s)for(r=0,c=u[s];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return Je(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return Je(this,e,t)}})(e,t))}};var rt=nt,it=function(e){return"string"==typeof e?new tt([[document.querySelector(e)]],[document.documentElement]):new tt([[e]],et)},ot=function(e){return it(ge(e).call(document.documentElement))},at=0;function ut(){return new ct}function ct(){this._="@"+(++at).toString(36)}ct.prototype=ut.prototype={constructor:ct,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var st=function(){for(var e,t=Ge;e=t.sourceEvent;)t=e;return t},lt=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]},ft=function(e){var t=st();return t.changedTouches&&(t=t.changedTouches[0]),lt(e,t)},dt=function(e){return"string"==typeof e?new tt([document.querySelectorAll(e)],[document.documentElement]):new tt([null==e?[]:e],et)},pt=function(e,t,n){arguments.length<3&&(n=t,t=st().changedTouches);for(var r,i=0,o=t?t.length:0;i<o;++i)if((r=t[i]).identifier===n)return lt(e,r);return null},ht=function(e,t){null==t&&(t=st().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=lt(e,t[n]);return i};function vt(){Ge.stopImmediatePropagation()}var gt=function(){Ge.preventDefault(),Ge.stopImmediatePropagation()},mt=function(e){var t=e.document.documentElement,n=it(e).on("dragstart.drag",gt,!0);"onselectstart"in t?n.on("selectstart.drag",gt,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")};function yt(e,t){var n=e.document.documentElement,r=it(e).on("dragstart.drag",null);t&&(r.on("click.drag",gt,!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)}var bt=function(e){return function(){return e}};function _t(e,t,n,r,i,o,a,u,c,s){this.target=e,this.type=t,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=u,this.dy=c,this._=s}function xt(){return!Ge.button}function wt(){return this.parentNode}function Et(e){return null==e?{x:Ge.x,y:Ge.y}:e}function Tt(){return"ontouchstart"in this}_t.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var kt=function(){var e,t,n,r,i=xt,o=wt,a=Et,u=Tt,c={},s=de("start","drag","end"),l=0,f=0;function d(e){e.on("mousedown.drag",p).filter(u).on("touchstart.drag",g).on("touchmove.drag",m).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(!r&&i.apply(this,arguments)){var a=b("mouse",o.apply(this,arguments),ft,this,arguments);a&&(it(Ge.view).on("mousemove.drag",h,!0).on("mouseup.drag",v,!0),mt(Ge.view),vt(),n=!1,e=Ge.clientX,t=Ge.clientY,a("start"))}}function h(){if(gt(),!n){var r=Ge.clientX-e,i=Ge.clientY-t;n=r*r+i*i>f}c.mouse("drag")}function v(){it(Ge.view).on("mousemove.drag mouseup.drag",null),yt(Ge.view,n),gt(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var e,t,n=Ge.changedTouches,r=o.apply(this,arguments),a=n.length;for(e=0;e<a;++e)(t=b(n[e].identifier,r,pt,this,arguments))&&(vt(),t("start"))}}function m(){var e,t,n=Ge.changedTouches,r=n.length;for(e=0;e<r;++e)(t=c[n[e].identifier])&&(gt(),t("drag"))}function y(){var e,t,n=Ge.changedTouches,i=n.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<i;++e)(t=c[n[e].identifier])&&(vt(),t("end"))}function b(e,t,n,r,i){var o,u,f,p=n(t,e),h=s.copy();if(Ze(new _t(d,"beforestart",o,e,l,p[0],p[1],0,0,h),function(){return null!=(Ge.subject=o=a.apply(r,i))&&(u=o.x-p[0]||0,f=o.y-p[1]||0,!0)}))return function a(s){var v,g=p;switch(s){case"start":c[e]=a,v=l++;break;case"end":delete c[e],--l;case"drag":p=n(t,e),v=l}Ze(new _t(d,s,o,e,v,p[0]+u,p[1]+f,p[0]-g[0],p[1]-g[1],h),h.apply,h,[s,r,i])}}return d.filter=function(e){return arguments.length?(i="function"==typeof e?e:bt(!!e),d):i},d.container=function(e){return arguments.length?(o="function"==typeof e?e:bt(e),d):o},d.subject=function(e){return arguments.length?(a="function"==typeof e?e:bt(e),d):a},d.touchable=function(e){return arguments.length?(u="function"==typeof e?e:bt(!!e),d):u},d.on=function(){var e=s.on.apply(s,arguments);return e===s?d:e},d.clickDistance=function(e){return arguments.length?(f=(e=+e)*e,d):Math.sqrt(f)},d},Mt=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function Nt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ct(){}var Ot="\\s*([+-]?\\d+)\\s*",St="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",At=/^#([0-9a-f]{3})$/,Rt=/^#([0-9a-f]{6})$/,jt=new RegExp("^rgb\\("+[Ot,Ot,Ot]+"\\)$"),Dt=new RegExp("^rgb\\("+[Pt,Pt,Pt]+"\\)$"),It=new RegExp("^rgba\\("+[Ot,Ot,Ot,St]+"\\)$"),Lt=new RegExp("^rgba\\("+[Pt,Pt,Pt,St]+"\\)$"),zt=new RegExp("^hsl\\("+[St,Pt,Pt]+"\\)$"),Ft=new RegExp("^hsla\\("+[St,Pt,Pt,St]+"\\)$"),Ut={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 qt(e){var t;return e=(e+"").trim().toLowerCase(),(t=At.exec(e))?new Yt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Rt.exec(e))?Bt(parseInt(t[1],16)):(t=jt.exec(e))?new Yt(t[1],t[2],t[3],1):(t=Dt.exec(e))?new Yt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=It.exec(e))?Wt(t[1],t[2],t[3],t[4]):(t=Lt.exec(e))?Wt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zt.exec(e))?$t(t[1],t[2]/100,t[3]/100,1):(t=Ft.exec(e))?$t(t[1],t[2]/100,t[3]/100,t[4]):Ut.hasOwnProperty(e)?Bt(Ut[e]):"transparent"===e?new Yt(NaN,NaN,NaN,0):null}function Bt(e){return new Yt(e>>16&255,e>>8&255,255&e,1)}function Wt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yt(e,t,n,r)}function Ht(e){return e instanceof Ct||(e=qt(e)),e?new Yt((e=e.rgb()).r,e.g,e.b,e.opacity):new Yt}function Vt(e,t,n,r){return 1===arguments.length?Ht(e):new Yt(e,t,n,null==r?1:r)}function Yt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Gt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function $t(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Kt(e,t,n,r)}function Xt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Kt)return new Kt(e.h,e.s,e.l,e.opacity);if(e instanceof Ct||(e=qt(e)),!e)return new Kt;if(e instanceof Kt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=t===o?(n-r)/u+6*(n<r):n===o?(r-t)/u+2:(t-n)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new Kt(a,u,c,e.opacity)}(e):new Kt(e,t,n,null==r?1:r)}function Kt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Qt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Mt(Ct,qt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Mt(Yt,Vt,Nt(Ct,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Yt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Yt(this.r*e,this.g*e,this.b*e,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"#"+Gt(this.r)+Gt(this.g)+Gt(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}})),Mt(Kt,Xt,Nt(Ct,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Kt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Kt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Yt(Qt(e>=240?e-240:e+120,i,r),Qt(e,i,r),Qt(e<120?e+240:e-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 Zt=Math.PI/180,Jt=180/Math.PI,en=.96422,tn=1,nn=.82521,rn=4/29,on=6/29,an=3*on*on,un=on*on*on;function cn(e){if(e instanceof fn)return new fn(e.l,e.a,e.b,e.opacity);if(e instanceof bn){if(isNaN(e.h))return new fn(e.l,0,0,e.opacity);var t=e.h*Zt;return new fn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Yt||(e=Ht(e));var n,r,i=vn(e.r),o=vn(e.g),a=vn(e.b),u=dn((.2225045*i+.7168786*o+.0606169*a)/tn);return i===o&&o===a?n=r=u:(n=dn((.4360747*i+.3850649*o+.1430804*a)/en),r=dn((.0139322*i+.0971045*o+.7141733*a)/nn)),new fn(116*u-16,500*(n-u),200*(u-r),e.opacity)}function sn(e,t){return new fn(e,0,0,null==t?1:t)}function ln(e,t,n,r){return 1===arguments.length?cn(e):new fn(e,t,n,null==r?1:r)}function fn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function dn(e){return e>un?Math.pow(e,1/3):e/an+rn}function pn(e){return e>on?e*e*e:an*(e-rn)}function hn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gn(e){if(e instanceof bn)return new bn(e.h,e.c,e.l,e.opacity);if(e instanceof fn||(e=cn(e)),0===e.a&&0===e.b)return new bn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Jt;return new bn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function mn(e,t,n,r){return 1===arguments.length?gn(e):new bn(n,t,e,null==r?1:r)}function yn(e,t,n,r){return 1===arguments.length?gn(e):new bn(e,t,n,null==r?1:r)}function bn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Mt(fn,ln,Nt(Ct,{brighter:function(e){return new fn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new fn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Yt(hn(3.1338561*(t=en*pn(t))-1.6168667*(e=tn*pn(e))-.4906146*(n=nn*pn(n))),hn(-.9787684*t+1.9161415*e+.033454*n),hn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Mt(bn,yn,Nt(Ct,{brighter:function(e){return new bn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new bn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return cn(this).rgb()}}));var _n=-.29227,xn=-.90649,wn=1.97294,En=wn*xn,Tn=1.78277*wn,kn=1.78277*_n- -.14861*xn;function Mn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Nn)return new Nn(e.h,e.s,e.l,e.opacity);e instanceof Yt||(e=Ht(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(kn*r+En*t-Tn*n)/(kn+En-Tn),o=r-i,a=(wn*(n-i)-_n*o)/xn,u=Math.sqrt(a*a+o*o)/(wn*i*(1-i)),c=u?Math.atan2(a,o)*Jt-120:NaN;return new Nn(c<0?c+360:c,u,i,e.opacity)}(e):new Nn(e,t,n,null==r?1:r)}function Nn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Cn(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}Mt(Nn,Mn,Nt(Ct,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Nn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Nn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Zt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Yt(255*(t+n*(-.14861*r+1.78277*i)),255*(t+n*(_n*r+xn*i)),255*(t+n*(wn*r)),this.opacity)}}));var On=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,u=r<t-1?e[r+2]:2*o-i;return Cn((n-r/t)*t,a,i,o,u)}},Sn=function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],u=e[(r+2)%t];return Cn((n-r/t)*t,i,o,a,u)}},Pn=function(e){return function(){return e}};function An(e,t){return function(n){return e+n*t}}function Rn(e,t){var n=t-e;return n?An(e,n>180||n<-180?n-360*Math.round(n/360):n):Pn(isNaN(e)?t:e)}function jn(e){return 1==(e=+e)?Dn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Pn(isNaN(t)?n:t)}}function Dn(e,t){var n=t-e;return n?An(e,n):Pn(isNaN(e)?t:e)}var In=function e(t){var n=jn(t);function r(e,t){var r=n((e=Vt(e)).r,(t=Vt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Dn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Ln(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n<i;++n)r=Vt(t[n]),o[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return o=e(o),a=e(a),u=e(u),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=u(e),r+""}}}var zn=Ln(On),Fn=Ln(Sn),Un=function(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Qn(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}},qn=function(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}},Bn=function(e,t){return t-=e=+e,function(n){return e+t*n}},Wn=function(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Qn(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},Hn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vn=new RegExp(Hn.source,"g");var Yn,Gn,$n,Xn,Kn=function(e,t){var n,r,i,o=Hn.lastIndex=Vn.lastIndex=0,a=-1,u=[],c=[];for(e+="",t+="";(n=Hn.exec(e))&&(r=Vn.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Bn(n,r)})),o=Vn.lastIndex;return o<t.length&&(i=t.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)u[(n=c[r]).i]=n.x(e);return u.join("")})},Qn=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?Pn(t):("number"===r?Bn:"string"===r?(n=qt(t))?(t=n,In):Kn:t instanceof qt?In:t instanceof Date?qn:Array.isArray(t)?Un:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Wn:Bn)(e,t)},Zn=function(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}},Jn=function(e,t){var n=Rn(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}},er=function(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}},tr=180/Math.PI,nr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},rr=function(e,t,n,r,i,o){var a,u,c;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),e*r<t*n&&(e=-e,t=-t,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*tr,skewX:Math.atan(c)*tr,scaleX:a,scaleY:u}};function ir(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var u=[],c=[];return o=e(o),a=e(a),function(e,r,i,o,a,u){if(e!==i||r!==o){var c=a.push("translate(",null,t,null,n);u.push({i:c-4,x:Bn(e,i)},{i:c-2,x:Bn(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,u,c),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Bn(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,u,c),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Bn(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,u,c),function(e,t,n,r,o,a){if(e!==n||t!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Bn(e,n)},{i:u-2,x:Bn(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(e){for(var t,n=-1,r=c.length;++n<r;)u[(t=c[n]).i]=t.x(e);return u.join("")}}}var or=ir(function(e){return"none"===e?nr:(Yn||(Yn=document.createElement("DIV"),Gn=document.documentElement,$n=document.defaultView),Yn.style.transform=e,e=$n.getComputedStyle(Gn.appendChild(Yn),null).getPropertyValue("transform"),Gn.removeChild(Yn),e=e.slice(7,-1).split(","),rr(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},"px, ","px)","deg)"),ar=ir(function(e){return null==e?nr:(Xn||(Xn=document.createElementNS("http://www.w3.org/2000/svg","g")),Xn.setAttribute("transform",e),(e=Xn.transform.baseVal.consolidate())?(e=e.matrix,rr(e.a,e.b,e.c,e.d,e.e,e.f)):nr)},", ",")",")"),ur=Math.SQRT2;function cr(e){return((e=Math.exp(e))+1/e)/2}var sr=function(e,t){var n,r,i=e[0],o=e[1],a=e[2],u=t[0],c=t[1],s=t[2],l=u-i,f=c-o,d=l*l+f*f;if(d<1e-12)r=Math.log(s/a)/ur,n=function(e){return[i+e*l,o+e*f,a*Math.exp(ur*e*r)]};else{var p=Math.sqrt(d),h=(s*s-a*a+4*d)/(2*a*2*p),v=(s*s-a*a-4*d)/(2*s*2*p),g=Math.log(Math.sqrt(h*h+1)-h),m=Math.log(Math.sqrt(v*v+1)-v);r=(m-g)/ur,n=function(e){var t,n=e*r,u=cr(g),c=a/(2*p)*(u*(t=ur*n+g,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(g));return[i+c*l,o+c*f,a*u/cr(ur*n+g)]}}return n.duration=1e3*r,n};function lr(e){return function(t,n){var r=e((t=Xt(t)).h,(n=Xt(n)).h),i=Dn(t.s,n.s),o=Dn(t.l,n.l),a=Dn(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=a(e),t+""}}}var fr=lr(Rn),dr=lr(Dn);function pr(e,t){var n=Dn((e=ln(e)).l,(t=ln(t)).l),r=Dn(e.a,t.a),i=Dn(e.b,t.b),o=Dn(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}}function hr(e){return function(t,n){var r=e((t=yn(t)).h,(n=yn(n)).h),i=Dn(t.c,n.c),o=Dn(t.l,n.l),a=Dn(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}}}var vr=hr(Rn),gr=hr(Dn);function mr(e){return function t(n){function r(t,r){var i=e((t=Mn(t)).h,(r=Mn(r)).h),o=Dn(t.s,r.s),a=Dn(t.l,r.l),u=Dn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=u(e),t+""}}return n=+n,r.gamma=t,r}(1)}var yr=mr(Rn),br=mr(Dn);function _r(e,t){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 function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}var xr,wr,Er=function(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n},Tr=0,kr=0,Mr=0,Nr=1e3,Cr=0,Or=0,Sr=0,Pr="object"==typeof performance&&performance.now?performance:Date,Ar="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Rr(){return Or||(Ar(jr),Or=Pr.now()+Sr)}function jr(){Or=0}function Dr(){this._call=this._time=this._next=null}function Ir(e,t,n){var r=new Dr;return r.restart(e,t,n),r}function Lr(){Rr(),++Tr;for(var e,t=xr;t;)(e=Or-t._time)>=0&&t._call.call(null,e),t=t._next;--Tr}function zr(){Or=(Cr=Pr.now())+Sr,Tr=kr=0;try{Lr()}finally{Tr=0,function(){var e,t,n=xr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:xr=t);wr=e,Ur(r)}(),Or=0}}function Fr(){var e=Pr.now(),t=e-Cr;t>Nr&&(Sr-=t,Cr=e)}function Ur(e){Tr||(kr&&(kr=clearTimeout(kr)),e-Or>24?(e<1/0&&(kr=setTimeout(zr,e-Pr.now()-Sr)),Mr&&(Mr=clearInterval(Mr))):(Mr||(Cr=Pr.now(),Mr=setInterval(Fr,Nr)),Tr=1,Ar(zr)))}Dr.prototype=Ir.prototype={constructor:Dr,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Rr():+n)+(null==t?0:+t),this._next||wr===this||(wr?wr._next=this:xr=this,wr=this),this._call=e,this._time=n,Ur()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ur())}};var qr=function(e,t,n){var r=new Dr;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r},Br=function(e,t,n){var r=new Dr,i=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?Rr():+n,r.restart(function o(a){a+=i,r.restart(o,i+=t,n),e(a)},t,n),r)},Wr=de("start","end","interrupt"),Hr=[],Vr=0,Yr=1,Gr=2,$r=3,Xr=4,Kr=5,Qr=6,Zr=function(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(c){var s,l,f,d;if(n.state!==Yr)return u();for(s in i)if((d=i[s]).name===n.name){if(d.state===$r)return qr(o);d.state===Xr?(d.state=Qr,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[s]):+s<t&&(d.state=Qr,d.timer.stop(),delete i[s])}if(qr(function(){n.state===$r&&(n.state=Xr,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=Gr,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Gr){for(n.state=$r,r=new Array(f=n.tween.length),s=0,l=-1;s<f;++s)(d=n.tween[s].value.call(e,e.__data__,n.index,n.group))&&(r[++l]=d);r.length=l+1}}function a(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=Kr,1),o=-1,a=r.length;++o<a;)r[o].call(null,i);n.state===Kr&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){for(var r in n.state=Qr,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=Ir(function(e){n.state=Yr,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:Wr,tween:Hr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Vr})};function Jr(e,t){var n=ti(e,t);if(n.state>Vr)throw new Error("too late; already scheduled");return n}function ei(e,t){var n=ti(e,t);if(n.state>Gr)throw new Error("too late; already started");return n}function ti(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var ni=function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>Gr&&n.state<Kr,n.state=Qr,n.timer.stop(),r&&n.on.call("interrupt",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}};function ri(e,t,n){var r=e._id;return e.each(function(){var e=ei(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return ti(e,r).value[t]}}var ii=function(e,t){var n;return("number"==typeof t?Bn:t instanceof qt?In:(n=qt(t))?(t=n,In):Kn)(e,t)};var oi=rt.prototype.constructor;var ai=0;function ui(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ci(e){return rt().transition(e)}function si(){return++ai}var li=rt.prototype;function fi(e){return+e}function di(e){return e*e}function pi(e){return e*(2-e)}function hi(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function vi(e){return e*e*e}function gi(e){return--e*e*e+1}function mi(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}ui.prototype=ci.prototype={constructor:ui,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=ye(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,c,s=r[a],l=s.length,f=o[a]=new Array(l),d=0;d<l;++d)(u=s[d])&&(c=e.call(u,u.__data__,d,s))&&("__data__"in u&&(c.__data__=u.__data__),f[d]=c,Zr(f[d],t,n,d,f,ti(u,n)));return new ui(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=_e(e));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c,s=r[u],l=s.length,f=0;f<l;++f)if(c=s[f]){for(var d,p=e.call(c,c.__data__,f,s),h=ti(c,n),v=0,g=p.length;v<g;++v)(d=p[v])&&Zr(d,t,n,v,p,h);o.push(p),a.push(c)}return new ui(o,a,t,n)},filter:function(e){"function"!=typeof e&&(e=Te(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&e.call(o,o.__data__,s,a)&&c.push(o);return new ui(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=t[u],l=n[u],f=s.length,d=a[u]=new Array(f),p=0;p<f;++p)(c=s[p]||l[p])&&(d[p]=c);for(;u<r;++u)a[u]=t[u];return new ui(a,this._parents,this._name,this._id)},selection:function(){return new oi(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=si(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)if(a=u[s]){var l=ti(a,t);Zr(a,e,n,s,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new ui(r,this._parents,e,n)},call:li.call,nodes:li.nodes,node:li.node,size:li.size,empty:li.empty,each:li.each,on:function(e,t){var n=this._id;return arguments.length<2?ti(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?Jr:ei;return function(){var a=o(this,e),u=a.on;u!==r&&(i=(r=u).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=ve(e),r="transform"===n?ar:ii;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var a,u=n(this);if(null!=u)return(a=this.getAttributeNS(e.space,e.local))===u?null:a===r&&u===i?o:o=t(r=a,i=u);this.removeAttributeNS(e.space,e.local)}}:function(e,t,n){var r,i,o;return function(){var a,u=n(this);if(null!=u)return(a=this.getAttribute(e))===u?null:a===r&&u===i?o:o=t(r=a,i=u);this.removeAttribute(e)}})(n,r,ri(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===r?i:i=t(r=o,n)}}:function(e,t,n){var r,i;return function(){var o=this.getAttribute(e);return o===n?null:o===r?i:i=t(r=o,n)}})(n,r,t+""))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=ve(e);return this.tween(n,(r.local?function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttributeNS(e.space,e.local,r(t))}}return n._value=t,n}:function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttribute(e,r(t))}}return n._value=t,n})(r,t))},style:function(e,t,n){var r="transform"==(e+="")?or:ii;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=Ae(this,e),a=(this.style.removeProperty(e),Ae(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,function(e){return function(){this.style.removeProperty(e)}}(e)):this.styleTween(e,"function"==typeof t?function(e,t,n){var r,i,o;return function(){var a=Ae(this,e),u=n(this);return null==u&&(this.style.removeProperty(e),u=Ae(this,e)),a===u?null:a===r&&u===i?o:o=t(r=a,i=u)}}(e,r,ri(this,"style."+e,t)):function(e,t,n){var r,i;return function(){var o=Ae(this,e);return o===n?null:o===r?i:i=t(r=o,n)}}(e,r,t+""),n)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){function r(){var r=this,i=t.apply(r,arguments);return i&&function(t){r.style.setProperty(e,i(t),n)}}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(ri(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=ti(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=ei(this,e),o=i.tween;if(o!==n)for(var a=0,u=(r=n=o).length;a<u;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=ei(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:t,value:n},c=0,s=i.length;c<s;++c)if(i[c].name===t){i[c]=u;break}c===s&&i.push(u)}o.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){Jr(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){Jr(this,e).delay=t}})(t,e)):ti(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){ei(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){ei(this,e).duration=t}})(t,e)):ti(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){ei(this,e).ease=t}}(t,e)):ti(this.node(),t).ease}};var yi=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),bi=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),_i=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),xi=Math.PI,wi=xi/2;function Ei(e){return 1-Math.cos(e*wi)}function Ti(e){return Math.sin(e*wi)}function ki(e){return(1-Math.cos(xi*e))/2}function Mi(e){return Math.pow(2,10*e-10)}function Ni(e){return 1-Math.pow(2,-10*e)}function Ci(e){return((e*=2)<=1?Math.pow(2,10*e-10):2-Math.pow(2,10-10*e))/2}function Oi(e){return 1-Math.sqrt(1-e*e)}function Si(e){return Math.sqrt(1- --e*e)}function Pi(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Ai=4/11,Ri=6/11,ji=8/11,Di=.75,Ii=9/11,Li=10/11,zi=.9375,Fi=21/22,Ui=63/64,qi=1/Ai/Ai;function Bi(e){return 1-Wi(1-e)}function Wi(e){return(e=+e)<Ai?qi*e*e:e<ji?qi*(e-=Ri)*e+Di:e<Li?qi*(e-=Ii)*e+zi:qi*(e-=Fi)*e+Ui}function Hi(e){return((e*=2)<=1?1-Wi(1-e):Wi(e-1)+1)/2}var Vi=function e(t){function n(e){return e*e*((t+1)*e-t)}return t=+t,n.overshoot=e,n}(1.70158),Yi=function e(t){function n(e){return--e*e*((t+1)*e+t)+1}return t=+t,n.overshoot=e,n}(1.70158),Gi=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(1.70158),$i=2*Math.PI,Xi=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=$i);function i(e){return t*Math.pow(2,10*--e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*$i)},i.period=function(n){return e(t,n)},i}(1,.3),Ki=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=$i);function i(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*$i)},i.period=function(n){return e(t,n)},i}(1,.3),Qi=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=$i);function i(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((r-e)/n):2-t*Math.pow(2,-10*e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*$i)},i.period=function(n){return e(t,n)},i}(1,.3),Zi={time:null,delay:0,duration:250,ease:mi};function Ji(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return Zi.time=Rr(),Zi;return n}rt.prototype.interrupt=function(e){return this.each(function(){ni(this,e)})},rt.prototype.transition=function(e){var t,n;e instanceof ui?(t=e._id,e=e._name):(t=si(),(n=Zi).time=Rr(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)(a=u[s])&&Zr(a,e,t,s,u,n||Ji(a,t));return new ui(r,this._parents,e,t)};var eo=[null],to=function(e,t){var n,r,i=e.__transition;if(i)for(r in t=null==t?null:t+"",i)if((n=i[r]).state>Yr&&n.name===t)return new ui([[e]],eo,t,+r);return null},no=function(e){return function(){return e}},ro=function(e,t,n){this.target=e,this.type=t,this.selection=n};function io(){Ge.stopImmediatePropagation()}var oo=function(){Ge.preventDefault(),Ge.stopImmediatePropagation()},ao={name:"drag"},uo={name:"space"},co={name:"handle"},so={name:"center"},lo={name:"x",handles:["e","w"].map(bo),input:function(e,t){return e&&[[e[0],t[0][1]],[e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},fo={name:"y",handles:["n","s"].map(bo),input:function(e,t){return e&&[[t[0][0],e[0]],[t[1][0],e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},po={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(bo),input:function(e){return e},output:function(e){return e}},ho={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"},vo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},go={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},mo={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},yo={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function bo(e){return{type:e}}function _o(){return!Ge.button}function xo(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function wo(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Eo(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function To(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function ko(){return Co(lo)}function Mo(){return Co(fo)}var No=function(){return Co(po)};function Co(e){var t,n=xo,r=_o,i=de(a,"start","brush","end"),o=6;function a(t){var n=t.property("__brush",f).selectAll(".overlay").data([bo("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ho.overlay).merge(n).each(function(){var e=wo(this).extent;it(this).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(".selection").data([bo("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ho.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,function(e){return e.type});r.exit().remove(),r.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return ho[e.type]}),t.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",l)}function u(){var e=it(this),t=wo(this).selection;t?(e.selectAll(".selection").style("display",null).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(".handle").style("display",null).attr("x",function(e){return"e"===e.type[e.type.length-1]?t[1][0]-o/2:t[0][0]-o/2}).attr("y",function(e){return"s"===e.type[0]?t[1][1]-o/2:t[0][1]-o/2}).attr("width",function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+o:o}).attr("height",function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+o:o})):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(e,t){return e.__brush.emitter||new s(e,t)}function s(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function l(){if(Ge.touches){if(Ge.changedTouches.length<Ge.touches.length)return oo()}else if(t)return;if(r.apply(this,arguments)){var n,i,o,a,s,l,f,d,p,h,v,g,m,y=this,b=Ge.target.__data__.type,_="selection"===(Ge.metaKey?b="overlay":b)?ao:Ge.altKey?so:co,x=e===fo?null:mo[b],w=e===lo?null:yo[b],E=wo(y),T=E.extent,k=E.selection,M=T[0][0],N=T[0][1],C=T[1][0],O=T[1][1],S=x&&w&&Ge.shiftKey,P=ft(y),A=P,R=c(y,arguments).beforestart();"overlay"===b?E.selection=k=[[n=e===fo?M:P[0],o=e===lo?N:P[1]],[s=e===fo?C:n,f=e===lo?O:o]]:(n=k[0][0],o=k[0][1],s=k[1][0],f=k[1][1]),i=n,a=o,l=s,d=f;var j=it(y).attr("pointer-events","none"),D=j.selectAll(".overlay").attr("cursor",ho[b]);if(Ge.touches)j.on("touchmove.brush",L,!0).on("touchend.brush touchcancel.brush",F,!0);else{var I=it(Ge.view).on("keydown.brush",function(){switch(Ge.keyCode){case 16:S=x&&w;break;case 18:_===co&&(x&&(s=l-p*x,n=i+p*x),w&&(f=d-h*w,o=a+h*w),_=so,z());break;case 32:_!==co&&_!==so||(x<0?s=l-p:x>0&&(n=i-p),w<0?f=d-h:w>0&&(o=a-h),_=uo,D.attr("cursor",ho.selection),z());break;default:return}oo()},!0).on("keyup.brush",function(){switch(Ge.keyCode){case 16:S&&(g=m=S=!1,z());break;case 18:_===so&&(x<0?s=l:x>0&&(n=i),w<0?f=d:w>0&&(o=a),_=co,z());break;case 32:_===uo&&(Ge.altKey?(x&&(s=l-p*x,n=i+p*x),w&&(f=d-h*w,o=a+h*w),_=so):(x<0?s=l:x>0&&(n=i),w<0?f=d:w>0&&(o=a),_=co),D.attr("cursor",ho[b]),z());break;default:return}oo()},!0).on("mousemove.brush",L,!0).on("mouseup.brush",F,!0);mt(Ge.view)}io(),ni(y),u.call(y),R.start()}function L(){var e=ft(y);!S||g||m||(Math.abs(e[0]-A[0])>Math.abs(e[1]-A[1])?m=!0:g=!0),A=e,v=!0,oo(),z()}function z(){var e;switch(p=A[0]-P[0],h=A[1]-P[1],_){case uo:case ao:x&&(p=Math.max(M-n,Math.min(C-s,p)),i=n+p,l=s+p),w&&(h=Math.max(N-o,Math.min(O-f,h)),a=o+h,d=f+h);break;case co:x<0?(p=Math.max(M-n,Math.min(C-n,p)),i=n+p,l=s):x>0&&(p=Math.max(M-s,Math.min(C-s,p)),i=n,l=s+p),w<0?(h=Math.max(N-o,Math.min(O-o,h)),a=o+h,d=f):w>0&&(h=Math.max(N-f,Math.min(O-f,h)),a=o,d=f+h);break;case so:x&&(i=Math.max(M,Math.min(C,n-p*x)),l=Math.max(M,Math.min(C,s+p*x))),w&&(a=Math.max(N,Math.min(O,o-h*w)),d=Math.max(N,Math.min(O,f+h*w)))}l<i&&(x*=-1,e=n,n=s,s=e,e=i,i=l,l=e,b in vo&&D.attr("cursor",ho[b=vo[b]])),d<a&&(w*=-1,e=o,o=f,f=e,e=a,a=d,d=e,b in go&&D.attr("cursor",ho[b=go[b]])),E.selection&&(k=E.selection),g&&(i=k[0][0],l=k[1][0]),m&&(a=k[0][1],d=k[1][1]),k[0][0]===i&&k[0][1]===a&&k[1][0]===l&&k[1][1]===d||(E.selection=[[i,a],[l,d]],u.call(y),R.brush())}function F(){if(io(),Ge.touches){if(Ge.touches.length)return;t&&clearTimeout(t),t=setTimeout(function(){t=null},500),j.on("touchmove.brush touchend.brush touchcancel.brush",null)}else yt(Ge.view,v),I.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);j.attr("pointer-events","all"),D.attr("cursor",ho.overlay),E.selection&&(k=E.selection),Eo(k)&&(E.selection=null,u.call(y)),R.end()}}function f(){var t=this.__brush||{selection:null};return t.extent=n.apply(this,arguments),t.dim=e,t}return a.move=function(t,n){t.selection?t.on("start.brush",function(){c(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){c(this,arguments).end()}).tween("brush",function(){var t=this,r=t.__brush,i=c(t,arguments),o=r.selection,a=e.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Qn(o,a);function l(e){r.selection=1===e&&Eo(a)?null:s(e),u.call(t),i.brush()}return o&&a?l:l(1)}):t.each(function(){var t=arguments,r=this.__brush,i=e.input("function"==typeof n?n.apply(this,t):n,r.extent),o=c(this,t).beforestart();ni(this),r.selection=null==i||Eo(i)?null:i,u.call(this),o.start().brush().end()})},s.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(t){Ze(new ro(a,t,e.output(this.state.selection)),i.apply,i,[t,this.that,this.args])}},a.extent=function(e){return arguments.length?(n="function"==typeof e?e:no([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),a):n},a.filter=function(e){return arguments.length?(r="function"==typeof e?e:no(!!e),a):r},a.handleSize=function(e){return arguments.length?(o=+e,a):o},a.on=function(){var e=i.on.apply(i,arguments);return e===i?a:e},a}var Oo=Math.cos,So=Math.sin,Po=Math.PI,Ao=Po/2,Ro=2*Po,jo=Math.max;var Do=function(){var e=0,t=null,n=null,r=null;function i(i){var o,a,u,c,s,l,f=i.length,d=[],p=w(f),h=[],v=[],g=v.groups=new Array(f),m=new Array(f*f);for(o=0,s=-1;++s<f;){for(a=0,l=-1;++l<f;)a+=i[s][l];d.push(a),h.push(w(f)),o+=a}for(t&&p.sort(function(e,n){return t(d[e],d[n])}),n&&h.forEach(function(e,t){e.sort(function(e,r){return n(i[t][e],i[t][r])})}),c=(o=jo(0,Ro-e*f)/o)?e:Ro/f,a=0,s=-1;++s<f;){for(u=a,l=-1;++l<f;){var y=p[s],b=h[y][l],_=i[y][b],x=a,E=a+=_*o;m[b*f+y]={index:y,subindex:b,startAngle:x,endAngle:E,value:_}}g[y]={index:y,startAngle:u,endAngle:a,value:d[y]},a+=c}for(s=-1;++s<f;)for(l=s-1;++l<f;){var T=m[l*f+s],k=m[s*f+l];(T.value||k.value)&&v.push(T.value<k.value?{source:k,target:T}:{source:T,target:k})}return r?v.sort(r):v}return i.padAngle=function(t){return arguments.length?(e=jo(0,t),i):e},i.sortGroups=function(e){return arguments.length?(t=e,i):t},i.sortSubgroups=function(e){return arguments.length?(n=e,i):n},i.sortChords=function(e){return arguments.length?(null==e?r=null:(t=e,r=function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)})._=e,i):r&&r._;var t},i},Io=Array.prototype.slice,Lo=function(e){return function(){return e}},zo=Math.PI,Fo=2*zo,Uo=Fo-1e-6;function qo(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Bo(){return new qo}qo.prototype=Bo.prototype={constructor:qo,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,u=n-e,c=r-t,s=o-e,l=a-t,f=s*s+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(l*u-c*s)>1e-6&&i){var d=n-o,p=r-a,h=u*u+c*c,v=d*d+p*p,g=Math.sqrt(h),m=Math.sqrt(f),y=i*Math.tan((zo-Math.acos((h+f-v)/(2*g*m)))/2),b=y/m,_=y/g;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*s)+","+(t+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*d>s*p)+","+(this._x1=e+_*u)+","+(this._y1=t+_*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=e+a,s=t+u,l=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+c+","+s),n&&(f<0&&(f=f%Fo+Fo),f>Uo?this._+="A"+n+","+n+",0,1,"+l+","+(e-a)+","+(t-u)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=zo)+","+l+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Wo=Bo;function Ho(e){return e.source}function Vo(e){return e.target}function Yo(e){return e.radius}function Go(e){return e.startAngle}function $o(e){return e.endAngle}var Xo=function(){var e=Ho,t=Vo,n=Yo,r=Go,i=$o,o=null;function a(){var a,u=Io.call(arguments),c=e.apply(this,u),s=t.apply(this,u),l=+n.apply(this,(u[0]=c,u)),f=r.apply(this,u)-Ao,d=i.apply(this,u)-Ao,p=l*Oo(f),h=l*So(f),v=+n.apply(this,(u[0]=s,u)),g=r.apply(this,u)-Ao,m=i.apply(this,u)-Ao;if(o||(o=a=Wo()),o.moveTo(p,h),o.arc(0,0,l,f,d),f===g&&d===m||(o.quadraticCurveTo(0,0,v*Oo(g),v*So(g)),o.arc(0,0,v,g,m)),o.quadraticCurveTo(0,0,p,h),o.closePath(),a)return o=null,a+""||null}return a.radius=function(e){return arguments.length?(n="function"==typeof e?e:Lo(+e),a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Lo(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Lo(+e),a):i},a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(e){return arguments.length?(t=e,a):t},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a};function Ko(){}function Qo(e,t){var n=new Ko;if(e instanceof Ko)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}Ko.prototype=Qo.prototype={constructor:Ko,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var Zo=Qo,Jo=function(){var e,t,n,r=[],i=[];function o(n,i,a,u){if(i>=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var c,s,l,f=-1,d=n.length,p=r[i++],h=Zo(),v=a();++f<d;)(l=h.get(c=p(s=n[f])+""))?l.push(s):h.set(c,[s]);return h.each(function(e,t){u(v,t,o(e,i,a,u))}),v}return n={object:function(e){return o(e,0,ea,ta)},map:function(e){return o(e,0,na,ra)},entries:function(e){return function e(n,o){if(++o>r.length)return n;var a,u=i[o-1];return null!=t&&o>=r.length?a=n.entries():(a=[],n.each(function(t,n){a.push({key:n,values:e(t,o)})})),null!=u?a.sort(function(e,t){return u(e.key,t.key)}):a}(o(e,0,na,ra),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return i[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function ea(){return{}}function ta(e,t,n){e[t]=n}function na(){return Zo()}function ra(e,t,n){e.set(t,n)}function ia(){}var oa=Zo.prototype;function aa(e,t){var n=new ia;if(e instanceof ia)e.each(function(e){n.add(e)});else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}ia.prototype=aa.prototype={constructor:ia,has:oa.has,add:function(e){return this["$"+(e+="")]=e,this},remove:oa.remove,clear:oa.clear,values:oa.keys,size:oa.size,empty:oa.empty,each:oa.each};var ua=aa,ca=function(e){var t=[];for(var n in e)t.push(n);return t},sa=function(e){var t=[];for(var n in e)t.push(e[n]);return t},la=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},fa=Array.prototype.slice,da=function(e,t){return e-t},pa=function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r},ha=function(e){return function(){return e}},va=function(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=ga(e,t[r]))return n;return 0};function ga(e,t){for(var n=t[0],r=t[1],i=-1,o=0,a=e.length,u=a-1;o<a;u=o++){var c=e[o],s=c[0],l=c[1],f=e[u],d=f[0],p=f[1];if(ma(c,f,t))return 0;l>r!=p>r&&n<(d-s)*(r-l)/(p-l)+s&&(i=-i)}return i}function ma(e,t,n){var r,i,o,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],o=n[r],a=t[r],i<=o&&o<=a||a<=o&&o<=i)}var ya=function(){},ba=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],_a=function(){var e=1,t=1,n=O,r=u;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(da);else{var r=g(e),i=r[0],a=r[1];t=C(i,a,t),t=w(Math.floor(i/t)*t,Math.floor(a/t)*t,t)}return t.map(function(t){return o(e,t)})}function o(n,i){var o=[],u=[];return function(n,r,i){var o,u,c,s,l,f,d=new Array,p=new Array;o=u=-1,s=n[0]>=r,ba[s<<1].forEach(h);for(;++o<e-1;)c=s,s=n[o+1]>=r,ba[c|s<<1].forEach(h);ba[s<<0].forEach(h);for(;++u<t-1;){for(o=-1,s=n[u*e+e]>=r,l=n[u*e]>=r,ba[s<<1|l<<2].forEach(h);++o<e-1;)c=s,s=n[u*e+e+o+1]>=r,f=l,l=n[u*e+o+1]>=r,ba[c|s<<1|l<<2|f<<3].forEach(h);ba[s|l<<3].forEach(h)}o=-1,l=n[u*e]>=r,ba[l<<2].forEach(h);for(;++o<e-1;)f=l,l=n[u*e+o+1]>=r,ba[l<<2|f<<3].forEach(h);function h(e){var t,n,r=[e[0][0]+o,e[0][1]+u],c=[e[1][0]+o,e[1][1]+u],s=a(r),l=a(c);(t=p[s])?(n=d[l])?(delete p[t.end],delete d[n.start],t===n?(t.ring.push(c),i(t.ring)):d[t.start]=p[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete p[t.end],t.ring.push(c),p[t.end=l]=t):(t=d[l])?(n=p[s])?(delete d[t.start],delete p[n.end],t===n?(t.ring.push(c),i(t.ring)):d[n.start]=p[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete d[t.start],t.ring.unshift(r),d[t.start=s]=t):d[s]=p[l]={start:s,end:l,ring:[r,c]}}ba[l<<3].forEach(h)}(n,i,function(e){r(e,n,i),pa(e)>0?o.push([e]):u.push(e)}),u.forEach(function(e){for(var t,n=0,r=o.length;n<r;++n)if(-1!==va((t=o[n])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:i,coordinates:o}}function a(t){return 2*t[0]+t[1]*(e+1)*4}function u(n,r,i){n.forEach(function(n){var o,a=n[0],u=n[1],c=0|a,s=0|u,l=r[s*e+c];a>0&&a<e&&c===a&&(o=r[s*e+c-1],n[0]=a+(i-o)/(l-o)-.5),u>0&&u<t&&s===u&&(o=r[(s-1)*e+c],n[1]=u+(i-o)/(l-o)-.5)})}return i.contour=o,i.size=function(n){if(!arguments.length)return[e,t];var r=Math.ceil(n[0]),o=Math.ceil(n[1]);if(!(r>0&&o>0))throw new Error("invalid size");return e=r,t=o,i},i.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?ha(fa.call(e)):ha(e),i):n},i.smooth=function(e){return arguments.length?(r=e?u:ya,i):r===u},i};function xa(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a<i;++a)for(var u=0,c=0;u<r+n;++u)u<r&&(c+=e.data[u+a*r]),u>=n&&(u>=o&&(c-=e.data[u-o+a*r]),t.data[u-n+a*r]=c/Math.min(u+1,r-1+o-u,o))}function wa(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a<r;++a)for(var u=0,c=0;u<i+n;++u)u<i&&(c+=e.data[a+u*r]),u>=n&&(u>=o&&(c-=e.data[a+(u-o)*r]),t.data[a+(u-n)*r]=c/Math.min(u+1,i-1+o-u,o))}function Ea(e){return e[0]}function Ta(e){return e[1]}function ka(){return 1}var Ma=function(){var e=Ea,t=Ta,n=ka,r=960,i=500,o=20,a=2,u=3*o,c=r+2*u>>a,s=i+2*u>>a,l=ha(20);function f(r){var i=new Float32Array(c*s),f=new Float32Array(c*s);r.forEach(function(r,o,l){var f=+e(r,o,l)+u>>a,d=+t(r,o,l)+u>>a,p=+n(r,o,l);f>=0&&f<c&&d>=0&&d<s&&(i[f+d*c]+=p)}),xa({width:c,height:s,data:i},{width:c,height:s,data:f},o>>a),wa({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a),xa({width:c,height:s,data:i},{width:c,height:s,data:f},o>>a),wa({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a),xa({width:c,height:s,data:i},{width:c,height:s,data:f},o>>a),wa({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a);var p=l(i);if(!Array.isArray(p)){var h=j(i);p=C(0,h,p),(p=w(0,Math.floor(h/p)*p,p)).shift()}return _a().thresholds(p).size([c,s])(i).map(d)}function d(e){return e.value*=Math.pow(2,-2*a),e.coordinates.forEach(p),e}function p(e){e.forEach(h)}function h(e){e.forEach(v)}function v(e){e[0]=e[0]*Math.pow(2,a)-u,e[1]=e[1]*Math.pow(2,a)-u}function g(){return c=r+2*(u=3*o)>>a,s=i+2*u>>a,f}return f.x=function(t){return arguments.length?(e="function"==typeof t?t:ha(+t),f):e},f.y=function(e){return arguments.length?(t="function"==typeof e?e:ha(+e),f):t},f.weight=function(e){return arguments.length?(n="function"==typeof e?e:ha(+e),f):n},f.size=function(e){if(!arguments.length)return[r,i];var t=Math.ceil(e[0]),n=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return r=t,i=n,g()},f.cellSize=function(e){if(!arguments.length)return 1<<a;if(!((e=+e)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(e)/Math.LN2),g()},f.thresholds=function(e){return arguments.length?(l="function"==typeof e?e:Array.isArray(e)?ha(fa.call(e)):ha(e),f):l},f.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*e*e+1)-1)/2),g()},f},Na={},Ca={},Oa=34,Sa=10,Pa=13;function Aa(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}var Ra=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,i=[],o=e.length,a=0,u=0,c=o<=0,s=!1;function l(){if(c)return Ca;if(s)return s=!1,Na;var t,r,i=a;if(e.charCodeAt(i)===Oa){for(;a++<o&&e.charCodeAt(a)!==Oa||e.charCodeAt(++a)===Oa;);return(t=a)>=o?c=!0:(r=e.charCodeAt(a++))===Sa?s=!0:r===Pa&&(s=!0,e.charCodeAt(a)===Sa&&++a),e.slice(i+1,t-1).replace(/""/g,'"')}for(;a<o;){if((r=e.charCodeAt(t=a++))===Sa)s=!0;else if(r===Pa)s=!0,e.charCodeAt(a)===Sa&&++a;else if(r!==n)continue;return e.slice(i,t)}return c=!0,e.slice(i,o)}for(e.charCodeAt(o-1)===Sa&&--o,e.charCodeAt(o-1)===Pa&&--o;(r=l())!==Ca;){for(var f=[];r!==Na&&r!==Ca;)f.push(r),r=l();t&&null==(f=t(f,u++))||i.push(f)}return i}function i(t){return t.map(o).join(e)}function o(e){return null==e?"":t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,i,o=r(e,function(e,r){if(n)return n(e,r-1);i=e,n=t?function(e,t){var n=Aa(e);return function(r,i){return t(n(r),i,e)}}(e,t):Aa(e)});return o.columns=i||[],o},parseRows:r,format:function(t,n){return null==n&&(n=function(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}(t)),[n.map(o).join(e)].concat(t.map(function(t){return n.map(function(e){return o(t[e])}).join(e)})).join("\n")},formatRows:function(e){return e.map(i).join("\n")}}},ja=Ra(","),Da=ja.parse,Ia=ja.parseRows,La=ja.format,za=ja.formatRows,Fa=Ra("\t"),Ua=Fa.parse,qa=Fa.parseRows,Ba=Fa.format,Wa=Fa.formatRows;function Ha(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}var Va=function(e,t){return fetch(e,t).then(Ha)};function Ya(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}var Ga=function(e,t){return fetch(e,t).then(Ya)};function $a(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}var Xa=function(e,t){return fetch(e,t).then($a)};function Ka(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),Xa(t,n).then(function(t){return e(t,r)})}}function Qa(e,t,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=Ra(e);return Xa(t,n).then(function(e){return i.parse(e,r)})}var Za=Ka(Da),Ja=Ka(Ua),eu=function(e,t){return new Promise(function(n,r){var i=new Image;for(var o in t)i[o]=t[o];i.onerror=r,i.onload=function(){n(i)},i.src=e})};function tu(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.json()}var nu=function(e,t){return fetch(e,t).then(tu)};function ru(e){return function(t,n){return Xa(t,n).then(function(t){return(new DOMParser).parseFromString(t,e)})}}var iu=ru("application/xml"),ou=ru("text/html"),au=ru("image/svg+xml"),uu=function(e,t){var n;function r(){var r,i,o=n.length,a=0,u=0;for(r=0;r<o;++r)a+=(i=n[r]).x,u+=i.y;for(a=a/o-e,u=u/o-t,r=0;r<o;++r)(i=n[r]).x-=a,i.y-=u}return null==e&&(e=0),null==t&&(t=0),r.initialize=function(e){n=e},r.x=function(t){return arguments.length?(e=+t,r):e},r.y=function(e){return arguments.length?(t=+e,r):t},r},cu=function(e){return function(){return e}},su=function(){return 1e-6*(Math.random()-.5)};function lu(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,u,c,s,l,f,d,p=e._root,h={data:r},v=e._x0,g=e._y0,m=e._x1,y=e._y1;if(!p)return e._root=h,e;for(;p.length;)if((s=t>=(o=(v+m)/2))?v=o:m=o,(l=n>=(a=(g+y)/2))?g=a:y=a,i=p,!(p=p[f=l<<1|s]))return i[f]=h,e;if(u=+e._x.call(null,p.data),c=+e._y.call(null,p.data),t===u&&n===c)return h.next=p,i?i[f]=h:e._root=h,e;do{i=i?i[f]=new Array(4):e._root=new Array(4),(s=t>=(o=(v+m)/2))?v=o:m=o,(l=n>=(a=(g+y)/2))?g=a:y=a}while((f=l<<1|s)==(d=(c>=a)<<1|u>=o));return i[d]=p,i[f]=h,e}var fu=function(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i};function du(e){return e[0]}function pu(e){return e[1]}function hu(e,t,n){var r=new vu(null==t?du:t,null==n?pu:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function vu(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function gu(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var mu=hu.prototype=vu.prototype;function yu(e){return e.x+e.vx}function bu(e){return e.y+e.vy}mu.copy=function(){var e,t,n=new vu(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=gu(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=gu(t));return n},mu.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return lu(this.cover(t,n),t,n,e)},mu.addAll=function(e){var t,n,r,i,o=e.length,a=new Array(o),u=new Array(o),c=1/0,s=1/0,l=-1/0,f=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(a[n]=r,u[n]=i,r<c&&(c=r),r>l&&(l=r),i<s&&(s=i),i>f&&(f=i));for(l<c&&(c=this._x0,l=this._x1),f<s&&(s=this._y0,f=this._y1),this.cover(c,s).cover(l,f),n=0;n<o;++n)lu(this,a[n],u[n],e[n]);return this},mu.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{if(!(n>e||e>i||r>t||t>o))return this;var a,u,c=i-n,s=this._root;switch(u=(t<(r+o)/2)<<1|e<(n+i)/2){case 0:do{(a=new Array(4))[u]=s,s=a}while(o=r+(c*=2),e>(i=n+c)||t>o);break;case 1:do{(a=new Array(4))[u]=s,s=a}while(o=r+(c*=2),(n=i-c)>e||t>o);break;case 2:do{(a=new Array(4))[u]=s,s=a}while(r=o-(c*=2),e>(i=n+c)||r>t);break;case 3:do{(a=new Array(4))[u]=s,s=a}while(r=o-(c*=2),(n=i-c)>e||r>t)}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},mu.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},mu.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},mu.find=function(e,t,n){var r,i,o,a,u,c,s,l=this._x0,f=this._y0,d=this._x1,p=this._y1,h=[],v=this._root;for(v&&h.push(new fu(v,l,f,d,p)),null==n?n=1/0:(l=e-n,f=t-n,d=e+n,p=t+n,n*=n);c=h.pop();)if(!(!(v=c.node)||(i=c.x0)>d||(o=c.y0)>p||(a=c.x1)<l||(u=c.y1)<f))if(v.length){var g=(i+a)/2,m=(o+u)/2;h.push(new fu(v[3],g,m,a,u),new fu(v[2],i,m,g,u),new fu(v[1],g,o,a,m),new fu(v[0],i,o,g,m)),(s=(t>=m)<<1|e>=g)&&(c=h[h.length-1],h[h.length-1]=h[h.length-1-s],h[h.length-1-s]=c)}else{var y=e-+this._x.call(null,v.data),b=t-+this._y.call(null,v.data),_=y*y+b*b;if(_<n){var x=Math.sqrt(n=_);l=e-x,f=t-x,d=e+x,p=t+x,r=v.data}}return r},mu.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,i,o,a,u,c,s,l,f,d,p=this._root,h=this._x0,v=this._y0,g=this._x1,m=this._y1;if(!p)return this;if(p.length)for(;;){if((s=o>=(u=(h+g)/2))?h=u:g=u,(l=a>=(c=(v+m)/2))?v=c:m=c,t=p,!(p=p[f=l<<1|s]))return this;if(!p.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,d=f)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):t?(i?t[f]=i:delete t[f],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[d]=p:this._root=p),this):(this._root=i,this)},mu.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},mu.root=function(){return this._root},mu.size=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e},mu.visit=function(e){var t,n,r,i,o,a,u=[],c=this._root;for(c&&u.push(new fu(c,this._x0,this._y0,this._x1,this._y1));t=u.pop();)if(!e(c=t.node,r=t.x0,i=t.y0,o=t.x1,a=t.y1)&&c.length){var s=(r+o)/2,l=(i+a)/2;(n=c[3])&&u.push(new fu(n,s,l,o,a)),(n=c[2])&&u.push(new fu(n,r,l,s,a)),(n=c[1])&&u.push(new fu(n,s,i,o,l)),(n=c[0])&&u.push(new fu(n,r,i,s,l))}return this},mu.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new fu(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var i=t.node;if(i.length){var o,a=t.x0,u=t.y0,c=t.x1,s=t.y1,l=(a+c)/2,f=(u+s)/2;(o=i[0])&&n.push(new fu(o,a,u,l,f)),(o=i[1])&&n.push(new fu(o,l,u,c,f)),(o=i[2])&&n.push(new fu(o,a,f,l,s)),(o=i[3])&&n.push(new fu(o,l,f,c,s))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},mu.x=function(e){return arguments.length?(this._x=e,this):this._x},mu.y=function(e){return arguments.length?(this._y=e,this):this._y};var _u=function(e){var t,n,r=1,i=1;function o(){for(var e,o,u,c,s,l,f,d=t.length,p=0;p<i;++p)for(o=hu(t,yu,bu).visitAfter(a),e=0;e<d;++e)u=t[e],l=n[u.index],f=l*l,c=u.x+u.vx,s=u.y+u.vy,o.visit(h);function h(e,t,n,i,o){var a=e.data,d=e.r,p=l+d;if(!a)return t>c+p||i<c-p||n>s+p||o<s-p;if(a.index>u.index){var h=c-a.x-a.vx,v=s-a.y-a.vy,g=h*h+v*v;g<p*p&&(0===h&&(g+=(h=su())*h),0===v&&(g+=(v=su())*v),g=(p-(g=Math.sqrt(g)))/g*r,u.vx+=(h*=g)*(p=(d*=d)/(f+d)),u.vy+=(v*=g)*p,a.vx-=h*(p=1-p),a.vy-=v*p)}}}function a(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function u(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r<o;++r)i=t[r],n[i.index]=+e(i,r,t)}}return"function"!=typeof e&&(e=cu(null==e?1:+e)),o.initialize=function(e){t=e,u()},o.iterations=function(e){return arguments.length?(i=+e,o):i},o.strength=function(e){return arguments.length?(r=+e,o):r},o.radius=function(t){return arguments.length?(e="function"==typeof t?t:cu(+t),u(),o):e},o};function xu(e){return e.index}function wu(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}var Eu=function(e){var t,n,r,i,o,a=xu,u=function(e){return 1/Math.min(i[e.source.index],i[e.target.index])},c=cu(30),s=1;function l(r){for(var i=0,a=e.length;i<s;++i)for(var u,c,l,f,d,p,h,v=0;v<a;++v)c=(u=e[v]).source,f=(l=u.target).x+l.vx-c.x-c.vx||su(),d=l.y+l.vy-c.y-c.vy||su(),f*=p=((p=Math.sqrt(f*f+d*d))-n[v])/p*r*t[v],d*=p,l.vx-=f*(h=o[v]),l.vy-=d*h,c.vx+=f*(h=1-h),c.vy+=d*h}function f(){if(r){var u,c,s=r.length,l=e.length,f=Zo(r,a);for(u=0,i=new Array(s);u<l;++u)(c=e[u]).index=u,"object"!=typeof c.source&&(c.source=wu(f,c.source)),"object"!=typeof c.target&&(c.target=wu(f,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(u=0,o=new Array(l);u<l;++u)c=e[u],o[u]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);t=new Array(l),d(),n=new Array(l),p()}}function d(){if(r)for(var n=0,i=e.length;n<i;++n)t[n]=+u(e[n],n,e)}function p(){if(r)for(var t=0,i=e.length;t<i;++t)n[t]=+c(e[t],t,e)}return null==e&&(e=[]),l.initialize=function(e){r=e,f()},l.links=function(t){return arguments.length?(e=t,f(),l):e},l.id=function(e){return arguments.length?(a=e,l):a},l.iterations=function(e){return arguments.length?(s=+e,l):s},l.strength=function(e){return arguments.length?(u="function"==typeof e?e:cu(+e),d(),l):u},l.distance=function(e){return arguments.length?(c="function"==typeof e?e:cu(+e),p(),l):c},l};function Tu(e){return e.x}function ku(e){return e.y}var Mu=10,Nu=Math.PI*(3-Math.sqrt(5)),Cu=function(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=Zo(),c=Ir(l),s=de("tick","end");function l(){f(),s.call("tick",t),n<r&&(c.stop(),s.call("end",t))}function f(){var t,r,c=e.length;for(n+=(o-n)*i,u.each(function(e){e(n)}),t=0;t<c;++t)null==(r=e[t]).fx?r.x+=r.vx*=a:(r.x=r.fx,r.vx=0),null==r.fy?r.y+=r.vy*=a:(r.y=r.fy,r.vy=0)}function d(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,isNaN(t.x)||isNaN(t.y)){var i=Mu*Math.sqrt(n),o=n*Nu;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function p(t){return t.initialize&&t.initialize(e),t}return null==e&&(e=[]),d(),t={tick:f,restart:function(){return c.restart(l),t},stop:function(){return c.stop(),t},nodes:function(n){return arguments.length?(e=n,d(),u.each(p),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(a=1-e,t):1-a},force:function(e,n){return arguments.length>1?(null==n?u.remove(e):u.set(e,p(n)),t):u.get(e)},find:function(t,n,r){var i,o,a,u,c,s=0,l=e.length;for(null==r?r=1/0:r*=r,s=0;s<l;++s)(a=(i=t-(u=e[s]).x)*i+(o=n-u.y)*o)<r&&(c=u,r=a);return c},on:function(e,n){return arguments.length>1?(s.on(e,n),t):s.on(e)}}},Ou=function(){var e,t,n,r,i=cu(-30),o=1,a=1/0,u=.81;function c(r){var i,o=e.length,a=hu(e,Tu,ku).visitAfter(l);for(n=r,i=0;i<o;++i)t=e[i],a.visit(f)}function s(){if(e){var t,n,o=e.length;for(r=new Array(o),t=0;t<o;++t)n=e[t],r[n.index]=+i(n,t,e)}}function l(e){var t,n,i,o,a,u=0,c=0;if(e.length){for(i=o=a=0;a<4;++a)(t=e[a])&&(n=Math.abs(t.value))&&(u+=t.value,c+=n,i+=n*t.x,o+=n*t.y);e.x=i/c,e.y=o/c}else{(t=e).x=t.data.x,t.y=t.data.y;do{u+=r[t.data.index]}while(t=t.next)}e.value=u}function f(e,i,c,s){if(!e.value)return!0;var l=e.x-t.x,f=e.y-t.y,d=s-i,p=l*l+f*f;if(d*d/u<p)return p<a&&(0===l&&(p+=(l=su())*l),0===f&&(p+=(f=su())*f),p<o&&(p=Math.sqrt(o*p)),t.vx+=l*e.value*n/p,t.vy+=f*e.value*n/p),!0;if(!(e.length||p>=a)){(e.data!==t||e.next)&&(0===l&&(p+=(l=su())*l),0===f&&(p+=(f=su())*f),p<o&&(p=Math.sqrt(o*p)));do{e.data!==t&&(d=r[e.data.index]*n/p,t.vx+=l*d,t.vy+=f*d)}while(e=e.next)}}return c.initialize=function(t){e=t,s()},c.strength=function(e){return arguments.length?(i="function"==typeof e?e:cu(+e),s(),c):i},c.distanceMin=function(e){return arguments.length?(o=e*e,c):Math.sqrt(o)},c.distanceMax=function(e){return arguments.length?(a=e*e,c):Math.sqrt(a)},c.theta=function(e){return arguments.length?(u=e*e,c):Math.sqrt(u)},c},Su=function(e,t,n){var r,i,o,a=cu(.1);function u(e){for(var a=0,u=r.length;a<u;++a){var c=r[a],s=c.x-t||1e-6,l=c.y-n||1e-6,f=Math.sqrt(s*s+l*l),d=(o[a]-f)*i[a]*e/f;c.vx+=s*d,c.vy+=l*d}}function c(){if(r){var t,n=r.length;for(i=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(r[t],t,r),i[t]=isNaN(o[t])?0:+a(r[t],t,r)}}return"function"!=typeof e&&(e=cu(+e)),null==t&&(t=0),null==n&&(n=0),u.initialize=function(e){r=e,c()},u.strength=function(e){return arguments.length?(a="function"==typeof e?e:cu(+e),c(),u):a},u.radius=function(t){return arguments.length?(e="function"==typeof t?t:cu(+t),c(),u):e},u.x=function(e){return arguments.length?(t=+e,u):t},u.y=function(e){return arguments.length?(n=+e,u):n},u},Pu=function(e){var t,n,r,i=cu(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)(i=t[o]).vx+=(r[o]-i.x)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=cu(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:cu(+e),a(),o):i},o.x=function(t){return arguments.length?(e="function"==typeof t?t:cu(+t),a(),o):e},o},Au=function(e){var t,n,r,i=cu(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)(i=t[o]).vy+=(r[o]-i.y)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=cu(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:cu(+e),a(),o):i},o.y=function(t){return arguments.length?(e="function"==typeof t?t:cu(+t),a(),o):e},o},Ru=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},ju=function(e){return(e=Ru(Math.abs(e)))?e[1]:NaN},Du=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Iu(e){return new Lu(e)}function Lu(e){if(!(t=Du.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}Iu.prototype=Lu.prototype,Lu.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.trim?"~":"")+this.type};var zu,Fu,Uu,qu,Bu=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(i>0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e},Wu=function(e,t){var n=Ru(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Hu={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Wu(100*e,t)},r:Wu,s:function(e,t){var n=Ru(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(zu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ru(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Vu=function(e){return e},Yu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Gu=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,o=[],a=0,u=t[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=t[a=(a+1)%t.length];return o.reverse().join(n)}):Vu,i=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Vu,u=e.percent||"%";function c(e){var t=(e=Iu(e)).fill,n=e.align,c=e.sign,s=e.symbol,l=e.zero,f=e.width,d=e.comma,p=e.precision,h=e.trim,v=e.type;"n"===v?(d=!0,v="g"):Hu[v]||(null==p&&(p=12),h=!0,v="g"),(l||"0"===t&&"="===n)&&(l=!0,t="0",n="=");var g="$"===s?i[0]:"#"===s&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",m="$"===s?i[1]:/[%p]/.test(v)?u:"",y=Hu[v],b=/[defgprs%]/.test(v);function _(e){var i,u,s,_=g,x=m;if("c"===v)x=y(e)+x,e="";else{var w=(e=+e)<0;if(e=y(Math.abs(e),p),h&&(e=Bu(e)),w&&0==+e&&(w=!1),_=(w?"("===c?c:"-":"-"===c||"("===c?"":c)+_,x=("s"===v?Yu[8+zu/3]:"")+x+(w&&"("===c?")":""),b)for(i=-1,u=e.length;++i<u;)if(48>(s=e.charCodeAt(i))||s>57){x=(46===s?o+e.slice(i+1):e.slice(i))+x,e=e.slice(0,i);break}}d&&!l&&(e=r(e,1/0));var E=_.length+e.length+x.length,T=E<f?new Array(f-E+1).join(t):"";switch(d&&l&&(e=r(T+e,T.length?f-x.length:1/0),T=""),n){case"<":e=_+e+x+T;break;case"=":e=_+T+e+x;break;case"^":e=T.slice(0,E=T.length>>1)+_+e+x+T.slice(E);break;default:e=T+_+e+x}return a(e)}return p=null==p?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),_.toString=function(){return e+""},_}return{format:c,formatPrefix:function(e,t){var n=c(((e=Iu(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ju(t)/3))),i=Math.pow(10,-r),o=Yu[8+r/3];return function(e){return n(i*e)+o}}}};function $u(e){return Fu=Gu(e),Uu=Fu.format,qu=Fu.formatPrefix,Fu}$u({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Xu=function(e){return Math.max(0,-ju(Math.abs(e)))},Ku=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ju(t)/3)))-ju(Math.abs(e)))},Qu=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ju(t)-ju(e))+1},Zu=function(){return new Ju};function Ju(){this.reset()}Ju.prototype={constructor:Ju,reset:function(){this.s=this.t=0},add:function(e){tc(ec,e,this.t),tc(this,ec.s,this.s),this.s?this.t+=ec.t:this.s=ec.t},valueOf:function(){return this.s}};var ec=new Ju;function tc(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}var nc=1e-6,rc=Math.PI,ic=rc/2,oc=rc/4,ac=2*rc,uc=180/rc,cc=rc/180,sc=Math.abs,lc=Math.atan,fc=Math.atan2,dc=Math.cos,pc=Math.ceil,hc=Math.exp,vc=(Math.floor,Math.log),gc=Math.pow,mc=Math.sin,yc=Math.sign||function(e){return e>0?1:e<0?-1:0},bc=Math.sqrt,_c=Math.tan;function xc(e){return e>1?0:e<-1?rc:Math.acos(e)}function wc(e){return e>1?ic:e<-1?-ic:Math.asin(e)}function Ec(e){return(e=mc(e/2))*e}function Tc(){}function kc(e,t){e&&Nc.hasOwnProperty(e.type)&&Nc[e.type](e,t)}var Mc={Feature:function(e,t){kc(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)kc(n[r].geometry,t)}},Nc={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){Cc(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Cc(n[r],t,0)},Polygon:function(e,t){Oc(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Oc(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)kc(n[r],t)}};function Cc(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function Oc(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)Cc(e[n],t,1);t.polygonEnd()}var Sc,Pc,Ac,Rc,jc,Dc=function(e,t){e&&Mc.hasOwnProperty(e.type)?Mc[e.type](e,t):kc(e,t)},Ic=Zu(),Lc=Zu(),zc={point:Tc,lineStart:Tc,lineEnd:Tc,polygonStart:function(){Ic.reset(),zc.lineStart=Fc,zc.lineEnd=Uc},polygonEnd:function(){var e=+Ic;Lc.add(e<0?ac+e:e),this.lineStart=this.lineEnd=this.point=Tc},sphere:function(){Lc.add(ac)}};function Fc(){zc.point=qc}function Uc(){Bc(Sc,Pc)}function qc(e,t){zc.point=Bc,Sc=e,Pc=t,Ac=e*=cc,Rc=dc(t=(t*=cc)/2+oc),jc=mc(t)}function Bc(e,t){var n=(e*=cc)-Ac,r=n>=0?1:-1,i=r*n,o=dc(t=(t*=cc)/2+oc),a=mc(t),u=jc*a,c=Rc*o+u*dc(i),s=u*r*mc(i);Ic.add(fc(s,c)),Ac=e,Rc=o,jc=a}var Wc=function(e){return Lc.reset(),Dc(e,zc),2*Lc};function Hc(e){return[fc(e[1],e[0]),wc(e[2])]}function Vc(e){var t=e[0],n=e[1],r=dc(n);return[r*dc(t),r*mc(t),mc(n)]}function Yc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Gc(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function $c(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Xc(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Kc(e){var t=bc(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Qc,Zc,Jc,es,ts,ns,rs,is,os,as,us=Zu(),cs={point:ss,lineStart:fs,lineEnd:ds,polygonStart:function(){cs.point=ps,cs.lineStart=hs,cs.lineEnd=vs,us.reset(),zc.polygonStart()},polygonEnd:function(){zc.polygonEnd(),cs.point=ss,cs.lineStart=fs,cs.lineEnd=ds,Ic<0?(Qc=-(Jc=180),Zc=-(es=90)):us>nc?es=90:us<-nc&&(Zc=-90),as[0]=Qc,as[1]=Jc}};function ss(e,t){os.push(as=[Qc=e,Jc=e]),t<Zc&&(Zc=t),t>es&&(es=t)}function ls(e,t){var n=Vc([e*cc,t*cc]);if(is){var r=Gc(is,n),i=Gc([r[1],-r[0],0],r);Kc(i),i=Hc(i);var o,a=e-ts,u=a>0?1:-1,c=i[0]*uc*u,s=sc(a)>180;s^(u*ts<c&&c<u*e)?(o=i[1]*uc)>es&&(es=o):s^(u*ts<(c=(c+360)%360-180)&&c<u*e)?(o=-i[1]*uc)<Zc&&(Zc=o):(t<Zc&&(Zc=t),t>es&&(es=t)),s?e<ts?gs(Qc,e)>gs(Qc,Jc)&&(Jc=e):gs(e,Jc)>gs(Qc,Jc)&&(Qc=e):Jc>=Qc?(e<Qc&&(Qc=e),e>Jc&&(Jc=e)):e>ts?gs(Qc,e)>gs(Qc,Jc)&&(Jc=e):gs(e,Jc)>gs(Qc,Jc)&&(Qc=e)}else os.push(as=[Qc=e,Jc=e]);t<Zc&&(Zc=t),t>es&&(es=t),is=n,ts=e}function fs(){cs.point=ls}function ds(){as[0]=Qc,as[1]=Jc,cs.point=ss,is=null}function ps(e,t){if(is){var n=e-ts;us.add(sc(n)>180?n+(n>0?360:-360):n)}else ns=e,rs=t;zc.point(e,t),ls(e,t)}function hs(){zc.lineStart()}function vs(){ps(ns,rs),zc.lineEnd(),sc(us)>nc&&(Qc=-(Jc=180)),as[0]=Qc,as[1]=Jc,is=null}function gs(e,t){return(t-=e)<0?t+360:t}function ms(e,t){return e[0]-t[0]}function ys(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var bs,_s,xs,ws,Es,Ts,ks,Ms,Ns,Cs,Os,Ss,Ps,As,Rs,js,Ds=function(e){var t,n,r,i,o,a,u;if(es=Jc=-(Qc=Zc=1/0),os=[],Dc(e,cs),n=os.length){for(os.sort(ms),t=1,o=[r=os[0]];t<n;++t)ys(r,(i=os[t])[0])||ys(r,i[1])?(gs(r[0],i[1])>gs(r[0],r[1])&&(r[1]=i[1]),gs(i[0],r[1])>gs(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,t=0,r=o[n=o.length-1];t<=n;r=i,++t)i=o[t],(u=gs(r[1],i[0]))>a&&(a=u,Qc=i[0],Jc=r[1])}return os=as=null,Qc===1/0||Zc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Qc,Zc],[Jc,es]]},Is={sphere:Tc,point:Ls,lineStart:Fs,lineEnd:Bs,polygonStart:function(){Is.lineStart=Ws,Is.lineEnd=Hs},polygonEnd:function(){Is.lineStart=Fs,Is.lineEnd=Bs}};function Ls(e,t){e*=cc;var n=dc(t*=cc);zs(n*dc(e),n*mc(e),mc(t))}function zs(e,t,n){xs+=(e-xs)/++bs,ws+=(t-ws)/bs,Es+=(n-Es)/bs}function Fs(){Is.point=Us}function Us(e,t){e*=cc;var n=dc(t*=cc);As=n*dc(e),Rs=n*mc(e),js=mc(t),Is.point=qs,zs(As,Rs,js)}function qs(e,t){e*=cc;var n=dc(t*=cc),r=n*dc(e),i=n*mc(e),o=mc(t),a=fc(bc((a=Rs*o-js*i)*a+(a=js*r-As*o)*a+(a=As*i-Rs*r)*a),As*r+Rs*i+js*o);_s+=a,Ts+=a*(As+(As=r)),ks+=a*(Rs+(Rs=i)),Ms+=a*(js+(js=o)),zs(As,Rs,js)}function Bs(){Is.point=Ls}function Ws(){Is.point=Vs}function Hs(){Ys(Ss,Ps),Is.point=Ls}function Vs(e,t){Ss=e,Ps=t,e*=cc,t*=cc,Is.point=Ys;var n=dc(t);As=n*dc(e),Rs=n*mc(e),js=mc(t),zs(As,Rs,js)}function Ys(e,t){e*=cc;var n=dc(t*=cc),r=n*dc(e),i=n*mc(e),o=mc(t),a=Rs*o-js*i,u=js*r-As*o,c=As*i-Rs*r,s=bc(a*a+u*u+c*c),l=wc(s),f=s&&-l/s;Ns+=f*a,Cs+=f*u,Os+=f*c,_s+=l,Ts+=l*(As+(As=r)),ks+=l*(Rs+(Rs=i)),Ms+=l*(js+(js=o)),zs(As,Rs,js)}var Gs=function(e){bs=_s=xs=ws=Es=Ts=ks=Ms=Ns=Cs=Os=0,Dc(e,Is);var t=Ns,n=Cs,r=Os,i=t*t+n*n+r*r;return i<1e-12&&(t=Ts,n=ks,r=Ms,_s<nc&&(t=xs,n=ws,r=Es),(i=t*t+n*n+r*r)<1e-12)?[NaN,NaN]:[fc(n,t)*uc,wc(r/bc(i))*uc]},$s=function(e){return function(){return e}},Xs=function(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n};function Ks(e,t){return[sc(e)>rc?e+Math.round(-e/ac)*ac:e,t]}function Qs(e,t,n){return(e%=ac)?t||n?Xs(Js(e),el(t,n)):Js(e):t||n?el(t,n):Ks}function Zs(e){return function(t,n){return[(t+=e)>rc?t-ac:t<-rc?t+ac:t,n]}}function Js(e){var t=Zs(e);return t.invert=Zs(-e),t}function el(e,t){var n=dc(e),r=mc(e),i=dc(t),o=mc(t);function a(e,t){var a=dc(t),u=dc(e)*a,c=mc(e)*a,s=mc(t),l=s*n+u*r;return[fc(c*i-l*o,u*n-s*r),wc(l*i+c*o)]}return a.invert=function(e,t){var a=dc(t),u=dc(e)*a,c=mc(e)*a,s=mc(t),l=s*i-c*o;return[fc(c*i+s*o,u*n+l*r),wc(l*n-u*r)]},a}Ks.invert=Ks;var tl=function(e){function t(t){return(t=e(t[0]*cc,t[1]*cc))[0]*=uc,t[1]*=uc,t}return e=Qs(e[0]*cc,e[1]*cc,e.length>2?e[2]*cc:0),t.invert=function(t){return(t=e.invert(t[0]*cc,t[1]*cc))[0]*=uc,t[1]*=uc,t},t};function nl(e,t,n,r,i,o){if(n){var a=dc(t),u=mc(t),c=r*n;null==i?(i=t+r*ac,o=t-c/2):(i=rl(a,i),o=rl(a,o),(r>0?i<o:i>o)&&(i+=r*ac));for(var s,l=i;r>0?l>o:l<o;l-=c)s=Hc([a,-u*dc(l),-u*mc(l)]),e.point(s[0],s[1])}}function rl(e,t){(t=Vc(t))[0]-=e,Kc(t);var n=xc(-t[1]);return((-t[2]<0?-n:n)+ac-nc)%ac}var il=function(){var e,t,n=$s([0,0]),r=$s(90),i=$s(6),o={point:function(n,r){e.push(n=t(n,r)),n[0]*=uc,n[1]*=uc}};function a(){var a=n.apply(this,arguments),u=r.apply(this,arguments)*cc,c=i.apply(this,arguments)*cc;return e=[],t=Qs(-a[0]*cc,-a[1]*cc,0).invert,nl(o,u,c,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return a.center=function(e){return arguments.length?(n="function"==typeof e?e:$s([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(r="function"==typeof e?e:$s(+e),a):r},a.precision=function(e){return arguments.length?(i="function"==typeof e?e:$s(+e),a):i},a},ol=function(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:Tc,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},al=function(e,t){return sc(e[0]-t[0])<nc&&sc(e[1]-t[1])<nc};function ul(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var cl=function(e,t,n,r,i){var o,a,u=[],c=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],a=e[t];if(al(r,a)){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);i.lineEnd()}else u.push(n=new ul(r,e,null,!0)),c.push(n.o=new ul(r,null,n,!1)),u.push(n=new ul(a,e,null,!1)),c.push(n.o=new ul(a,null,n,!0))}}),u.length){for(c.sort(t),sl(u),sl(c),o=0,a=c.length;o<a;++o)c[o].e=n=!n;for(var s,l,f=u[0];;){for(var d=f,p=!0;d.v;)if((d=d.n)===f)return;s=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(o=0,a=s.length;o<a;++o)i.point((l=s[o])[0],l[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(p)for(s=d.p.z,o=s.length-1;o>=0;--o)i.point((l=s[o])[0],l[1]);else r(d.x,d.p.x,-1,i);d=d.p}s=(d=d.o).z,p=!p}while(!d.v);i.lineEnd()}}};function sl(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}var ll=Zu(),fl=function(e,t){var n=t[0],r=t[1],i=mc(r),o=[mc(n),-dc(n),0],a=0,u=0;ll.reset(),1===i?r=ic+nc:-1===i&&(r=-ic-nc);for(var c=0,s=e.length;c<s;++c)if(f=(l=e[c]).length)for(var l,f,d=l[f-1],p=d[0],h=d[1]/2+oc,v=mc(h),g=dc(h),m=0;m<f;++m,p=b,v=x,g=w,d=y){var y=l[m],b=y[0],_=y[1]/2+oc,x=mc(_),w=dc(_),E=b-p,T=E>=0?1:-1,k=T*E,M=k>rc,N=v*x;if(ll.add(fc(N*T*mc(k),g*w+N*dc(k))),a+=M?E+T*ac:E,M^p>=n^b>=n){var C=Gc(Vc(d),Vc(y));Kc(C);var O=Gc(o,C);Kc(O);var S=(M^E>=0?-1:1)*wc(O[2]);(r>S||r===S&&(C[0]||C[1]))&&(u+=M^E>=0?1:-1)}}return(a<-nc||a<nc&&ll<-nc)^1&u},dl=function(e,t,n,r){return function(i){var o,a,u,c=t(i),s=ol(),l=t(s),f=!1,d={point:p,lineStart:v,lineEnd:g,polygonStart:function(){d.point=m,d.lineStart=y,d.lineEnd=b,a=[],o=[]},polygonEnd:function(){d.point=p,d.lineStart=v,d.lineEnd=g,a=L(a);var e=fl(o,r);a.length?(f||(i.polygonStart(),f=!0),cl(a,hl,e,n,i)):e&&(f||(i.polygonStart(),f=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(t,n){e(t,n)&&i.point(t,n)}function h(e,t){c.point(e,t)}function v(){d.point=h,c.lineStart()}function g(){d.point=p,c.lineEnd()}function m(e,t){u.push([e,t]),l.point(e,t)}function y(){l.lineStart(),u=[]}function b(){m(u[0][0],u[0][1]),l.lineEnd();var e,t,n,r,c=l.clean(),d=s.result(),p=d.length;if(u.pop(),o.push(u),u=null,p)if(1&c){if((t=(n=d[0]).length-1)>0){for(f||(i.polygonStart(),f=!0),i.lineStart(),e=0;e<t;++e)i.point((r=n[e])[0],r[1]);i.lineEnd()}}else p>1&&2&c&&d.push(d.pop().concat(d.shift())),a.push(d.filter(pl))}return d}};function pl(e){return e.length>1}function hl(e,t){return((e=e.x)[0]<0?e[1]-ic-nc:ic-e[1])-((t=t.x)[0]<0?t[1]-ic-nc:ic-t[1])}var vl=dl(function(){return!0},function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var u=o>0?rc:-rc,c=sc(o-n);sc(c-rc)<nc?(e.point(n,r=(r+a)/2>0?ic:-ic),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(u,r),e.point(o,r),t=0):i!==u&&c>=rc&&(sc(n-i)<nc&&(n-=i*nc),sc(o-u)<nc&&(o-=u*nc),r=function(e,t,n,r){var i,o,a=mc(e-n);return sc(a)>nc?lc((mc(t)*(o=dc(r))*mc(n)-mc(r)*(i=dc(t))*mc(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(u,r),t=0),e.point(n=o,r=a),i=u},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var i;if(null==e)i=n*ic,r.point(-rc,i),r.point(0,i),r.point(rc,i),r.point(rc,0),r.point(rc,-i),r.point(0,-i),r.point(-rc,-i),r.point(-rc,0),r.point(-rc,i);else if(sc(e[0]-t[0])>nc){var o=e[0]<t[0]?rc:-rc;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])},[-rc,-ic]);var gl=function(e){var t=dc(e),n=6*cc,r=t>0,i=sc(t)>nc;function o(e,n){return dc(e)*dc(n)>t}function a(e,n,r){var i=[1,0,0],o=Gc(Vc(e),Vc(n)),a=Yc(o,o),u=o[0],c=a-u*u;if(!c)return!r&&e;var s=t*a/c,l=-t*u/c,f=Gc(i,o),d=Xc(i,s);$c(d,Xc(o,l));var p=f,h=Yc(d,p),v=Yc(p,p),g=h*h-v*(Yc(d,d)-1);if(!(g<0)){var m=bc(g),y=Xc(p,(-h-m)/v);if($c(y,d),y=Hc(y),!r)return y;var b,_=e[0],x=n[0],w=e[1],E=n[1];x<_&&(b=_,_=x,x=b);var T=x-_,k=sc(T-rc)<nc;if(!k&&E<w&&(b=w,w=E,E=b),k||T<nc?k?w+E>0^y[1]<(sc(y[0]-_)<nc?w:E):w<=y[1]&&y[1]<=E:T>rc^(_<=y[0]&&y[0]<=x)){var M=Xc(p,(-h+m)/v);return $c(M,d),[y,Hc(M)]}}}function u(t,n){var i=r?e:rc-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return dl(o,function(e){var t,n,c,s,l;return{lineStart:function(){s=c=!1,l=1},point:function(f,d){var p,h=[f,d],v=o(f,d),g=r?v?0:u(f,d):v?u(f+(f<0?rc:-rc),d):0;if(!t&&(s=c=v)&&e.lineStart(),v!==c&&(!(p=a(t,h))||al(t,p)||al(h,p))&&(h[0]+=nc,h[1]+=nc,v=o(h[0],h[1])),v!==c)l=0,v?(e.lineStart(),p=a(h,t),e.point(p[0],p[1])):(p=a(t,h),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(i&&t&&r^v){var m;g&n||!(m=a(h,t,!0))||(l=0,r?(e.lineStart(),e.point(m[0][0],m[0][1]),e.point(m[1][0],m[1][1]),e.lineEnd()):(e.point(m[1][0],m[1][1]),e.lineEnd(),e.lineStart(),e.point(m[0][0],m[0][1])))}!v||t&&al(t,h)||e.point(h[0],h[1]),t=h,c=v,n=g},lineEnd:function(){c&&e.lineEnd(),t=null},clean:function(){return l|(s&&c)<<1}}},function(t,r,i,o){nl(o,e,n,i,t,r)},r?[0,-e]:[-rc,e-rc])},ml=function(e,t,n,r,i,o){var a,u=e[0],c=e[1],s=0,l=1,f=t[0]-u,d=t[1]-c;if(a=n-u,f||!(a>0)){if(a/=f,f<0){if(a<s)return;a<l&&(l=a)}else if(f>0){if(a>l)return;a>s&&(s=a)}if(a=i-u,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>s&&(s=a)}else if(f>0){if(a<s)return;a<l&&(l=a)}if(a=r-c,d||!(a>0)){if(a/=d,d<0){if(a<s)return;a<l&&(l=a)}else if(d>0){if(a>l)return;a>s&&(s=a)}if(a=o-c,d||!(a<0)){if(a/=d,d<0){if(a>l)return;a>s&&(s=a)}else if(d>0){if(a<s)return;a<l&&(l=a)}return s>0&&(e[0]=u+s*f,e[1]=c+s*d),l<1&&(t[0]=u+l*f,t[1]=c+l*d),!0}}}}},yl=1e9,bl=-yl;function _l(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,u,s){var l=0,f=0;if(null==i||(l=a(i,u))!==(f=a(o,u))||c(i,o)<0^u>0)do{s.point(0===l||3===l?e:n,l>1?r:t)}while((l=(l+u+4)%4)!==f);else s.point(o[0],o[1])}function a(r,i){return sc(r[0]-e)<nc?i>0?0:3:sc(r[0]-n)<nc?i>0?2:1:sc(r[1]-t)<nc?i>0?1:0:i>0?3:2}function u(e,t){return c(e.x,t.x)}function c(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var c,s,l,f,d,p,h,v,g,m,y,b=a,_=ol(),x={point:w,lineStart:function(){x.point=E,s&&s.push(l=[]);m=!0,g=!1,h=v=NaN},lineEnd:function(){c&&(E(f,d),p&&g&&_.rejoin(),c.push(_.result()));x.point=w,g&&b.lineEnd()},polygonStart:function(){b=_,c=[],s=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=s.length;n<i;++n)for(var o,a,u=s[n],c=1,l=u.length,f=u[0],d=f[0],p=f[1];c<l;++c)o=d,a=p,f=u[c],d=f[0],p=f[1],a<=r?p>r&&(d-o)*(r-a)>(p-a)*(e-o)&&++t:p<=r&&(d-o)*(r-a)<(p-a)*(e-o)&&--t;return t}(),n=y&&t,i=(c=L(c)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&cl(c,u,t,o,a),a.polygonEnd());b=a,c=s=l=null}};function w(e,t){i(e,t)&&b.point(e,t)}function E(o,a){var u=i(o,a);if(s&&l.push([o,a]),m)f=o,d=a,p=u,m=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&g)b.point(o,a);else{var c=[h=Math.max(bl,Math.min(yl,h)),v=Math.max(bl,Math.min(yl,v))],_=[o=Math.max(bl,Math.min(yl,o)),a=Math.max(bl,Math.min(yl,a))];ml(c,_,e,t,n,r)?(g||(b.lineStart(),b.point(c[0],c[1])),b.point(_[0],_[1]),u||b.lineEnd(),y=!1):u&&(b.lineStart(),b.point(o,a),y=!1)}h=o,v=a,g=u}return x}}var xl,wl,El,Tl=function(){var e,t,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return e&&t===n?e:e=_l(r,i,o,a)(t=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],e=t=null,n):[[r,i],[o,a]]}}},kl=Zu(),Ml={sphere:Tc,point:Tc,lineStart:function(){Ml.point=Cl,Ml.lineEnd=Nl},lineEnd:Tc,polygonStart:Tc,polygonEnd:Tc};function Nl(){Ml.point=Ml.lineEnd=Tc}function Cl(e,t){xl=e*=cc,wl=mc(t*=cc),El=dc(t),Ml.point=Ol}function Ol(e,t){e*=cc;var n=mc(t*=cc),r=dc(t),i=sc(e-xl),o=dc(i),a=r*mc(i),u=El*n-wl*r*o,c=wl*n+El*r*o;kl.add(fc(bc(a*a+u*u),c)),xl=e,wl=n,El=r}var Sl=function(e){return kl.reset(),Dc(e,Ml),+kl},Pl=[null,null],Al={type:"LineString",coordinates:Pl},Rl=function(e,t){return Pl[0]=e,Pl[1]=t,Sl(Al)},jl={Feature:function(e,t){return Il(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(Il(n[r].geometry,t))return!0;return!1}},Dl={Sphere:function(){return!0},Point:function(e,t){return Ll(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Ll(n[r],t))return!0;return!1},LineString:function(e,t){return zl(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(zl(n[r],t))return!0;return!1},Polygon:function(e,t){return Fl(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Fl(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(Il(n[r],t))return!0;return!1}};function Il(e,t){return!(!e||!Dl.hasOwnProperty(e.type))&&Dl[e.type](e,t)}function Ll(e,t){return 0===Rl(e,t)}function zl(e,t){var n=Rl(e[0],e[1]);return Rl(e[0],t)+Rl(t,e[1])<=n+nc}function Fl(e,t){return!!fl(e.map(Ul),ql(t))}function Ul(e){return(e=e.map(ql)).pop(),e}function ql(e){return[e[0]*cc,e[1]*cc]}var Bl=function(e,t){return(e&&jl.hasOwnProperty(e.type)?jl[e.type]:Il)(e,t)};function Wl(e,t,n){var r=w(e,t-nc,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function Hl(e,t,n){var r=w(e,t-nc,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function Vl(){var e,t,n,r,i,o,a,u,c,s,l,f,d=10,p=d,h=90,v=360,g=2.5;function m(){return{type:"MultiLineString",coordinates:y()}}function y(){return w(pc(r/h)*h,n,h).map(l).concat(w(pc(u/v)*v,a,v).map(f)).concat(w(pc(t/d)*d,e,d).filter(function(e){return sc(e%h)>nc}).map(c)).concat(w(pc(o/p)*p,i,p).filter(function(e){return sc(e%v)>nc}).map(s))}return m.lines=function(){return y().map(function(e){return{type:"LineString",coordinates:e}})},m.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(f(a).slice(1),l(n).reverse().slice(1),f(u).reverse().slice(1))]}},m.extent=function(e){return arguments.length?m.extentMajor(e).extentMinor(e):m.extentMinor()},m.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),u>a&&(e=u,u=a,a=e),m.precision(g)):[[r,u],[n,a]]},m.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),m.precision(g)):[[t,o],[e,i]]},m.step=function(e){return arguments.length?m.stepMajor(e).stepMinor(e):m.stepMinor()},m.stepMajor=function(e){return arguments.length?(h=+e[0],v=+e[1],m):[h,v]},m.stepMinor=function(e){return arguments.length?(d=+e[0],p=+e[1],m):[d,p]},m.precision=function(d){return arguments.length?(g=+d,c=Wl(o,i,90),s=Hl(t,e,g),l=Wl(u,a,90),f=Hl(r,n,g),m):g},m.extentMajor([[-180,-90+nc],[180,90-nc]]).extentMinor([[-180,-80-nc],[180,80+nc]])}function Yl(){return Vl()()}var Gl,$l,Xl,Kl,Ql=function(e,t){var n=e[0]*cc,r=e[1]*cc,i=t[0]*cc,o=t[1]*cc,a=dc(r),u=mc(r),c=dc(o),s=mc(o),l=a*dc(n),f=a*mc(n),d=c*dc(i),p=c*mc(i),h=2*wc(bc(Ec(o-r)+a*c*Ec(i-n))),v=mc(h),g=h?function(e){var t=mc(e*=h)/v,n=mc(h-e)/v,r=n*l+t*d,i=n*f+t*p,o=n*u+t*s;return[fc(i,r)*uc,fc(o,bc(r*r+i*i))*uc]}:function(){return[n*uc,r*uc]};return g.distance=h,g},Zl=function(e){return e},Jl=Zu(),ef=Zu(),tf={point:Tc,lineStart:Tc,lineEnd:Tc,polygonStart:function(){tf.lineStart=nf,tf.lineEnd=af},polygonEnd:function(){tf.lineStart=tf.lineEnd=tf.point=Tc,Jl.add(sc(ef)),ef.reset()},result:function(){var e=Jl/2;return Jl.reset(),e}};function nf(){tf.point=rf}function rf(e,t){tf.point=of,Gl=Xl=e,$l=Kl=t}function of(e,t){ef.add(Kl*e-Xl*t),Xl=e,Kl=t}function af(){of(Gl,$l)}var uf=tf,cf=1/0,sf=cf,lf=-cf,ff=lf;var df,pf,hf,vf,gf={point:function(e,t){e<cf&&(cf=e);e>lf&&(lf=e);t<sf&&(sf=t);t>ff&&(ff=t)},lineStart:Tc,lineEnd:Tc,polygonStart:Tc,polygonEnd:Tc,result:function(){var e=[[cf,sf],[lf,ff]];return lf=ff=-(sf=cf=1/0),e}},mf=0,yf=0,bf=0,_f=0,xf=0,wf=0,Ef=0,Tf=0,kf=0,Mf={point:Nf,lineStart:Cf,lineEnd:Pf,polygonStart:function(){Mf.lineStart=Af,Mf.lineEnd=Rf},polygonEnd:function(){Mf.point=Nf,Mf.lineStart=Cf,Mf.lineEnd=Pf},result:function(){var e=kf?[Ef/kf,Tf/kf]:wf?[_f/wf,xf/wf]:bf?[mf/bf,yf/bf]:[NaN,NaN];return mf=yf=bf=_f=xf=wf=Ef=Tf=kf=0,e}};function Nf(e,t){mf+=e,yf+=t,++bf}function Cf(){Mf.point=Of}function Of(e,t){Mf.point=Sf,Nf(hf=e,vf=t)}function Sf(e,t){var n=e-hf,r=t-vf,i=bc(n*n+r*r);_f+=i*(hf+e)/2,xf+=i*(vf+t)/2,wf+=i,Nf(hf=e,vf=t)}function Pf(){Mf.point=Nf}function Af(){Mf.point=jf}function Rf(){Df(df,pf)}function jf(e,t){Mf.point=Df,Nf(df=hf=e,pf=vf=t)}function Df(e,t){var n=e-hf,r=t-vf,i=bc(n*n+r*r);_f+=i*(hf+e)/2,xf+=i*(vf+t)/2,wf+=i,Ef+=(i=vf*e-hf*t)*(hf+e),Tf+=i*(vf+t),kf+=3*i,Nf(hf=e,vf=t)}var If=Mf;function Lf(e){this._context=e}Lf.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,ac)}},result:Tc};var zf,Ff,Uf,qf,Bf,Wf=Zu(),Hf={point:Tc,lineStart:function(){Hf.point=Vf},lineEnd:function(){zf&&Yf(Ff,Uf),Hf.point=Tc},polygonStart:function(){zf=!0},polygonEnd:function(){zf=null},result:function(){var e=+Wf;return Wf.reset(),e}};function Vf(e,t){Hf.point=Yf,Ff=qf=e,Uf=Bf=t}function Yf(e,t){qf-=e,Bf-=t,Wf.add(bc(qf*qf+Bf*Bf)),qf=e,Bf=t}var Gf=Hf;function $f(){this._string=[]}function Xf(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}$f.prototype={_radius:4.5,_circle:Xf(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Xf(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Kf=function(e,t){var n,r,i=4.5;function o(e){return e&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Dc(e,n(r))),r.result()}return o.area=function(e){return Dc(e,n(uf)),uf.result()},o.measure=function(e){return Dc(e,n(Gf)),Gf.result()},o.bounds=function(e){return Dc(e,n(gf)),gf.result()},o.centroid=function(e){return Dc(e,n(If)),If.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,Zl):(e=t).stream,o):e},o.context=function(e){return arguments.length?(r=null==e?(t=null,new $f):new Lf(t=e),"function"!=typeof i&&r.pointRadius(i),o):t},o.pointRadius=function(e){return arguments.length?(i="function"==typeof e?e:(r.pointRadius(+e),+e),o):i},o.projection(e).context(t)},Qf=function(e){return{stream:Zf(e)}};function Zf(e){return function(t){var n=new Jf;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Jf(){}function ed(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Dc(n,e.stream(gf)),t(gf.result()),null!=r&&e.clipExtent(r),e}function td(e,t,n){return ed(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,u=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,u])},n)}function nd(e,t,n){return td(e,[[0,0],t],n)}function rd(e,t,n){return ed(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];e.scale(150*i).translate([o,a])},n)}function id(e,t,n){return ed(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,a])},n)}Jf.prototype={constructor:Jf,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var od=16,ad=dc(30*cc),ud=function(e,t){return+t?function(e,t){function n(r,i,o,a,u,c,s,l,f,d,p,h,v,g){var m=s-r,y=l-i,b=m*m+y*y;if(b>4*t&&v--){var _=a+d,x=u+p,w=c+h,E=bc(_*_+x*x+w*w),T=wc(w/=E),k=sc(sc(w)-1)<nc||sc(o-f)<nc?(o+f)/2:fc(x,_),M=e(k,T),N=M[0],C=M[1],O=N-r,S=C-i,P=y*O-m*S;(P*P/b>t||sc((m*O+y*S)/b-.5)>.3||a*d+u*p+c*h<ad)&&(n(r,i,o,a,u,c,N,C,k,_/=E,x/=E,w,v,g),g.point(N,C),n(N,C,k,_,x,w,s,l,f,d,p,h,v,g))}}return function(t){var r,i,o,a,u,c,s,l,f,d,p,h,v={point:g,lineStart:m,lineEnd:b,polygonStart:function(){t.polygonStart(),v.lineStart=_},polygonEnd:function(){t.polygonEnd(),v.lineStart=m}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function m(){l=NaN,v.point=y,t.lineStart()}function y(r,i){var o=Vc([r,i]),a=e(r,i);n(l,f,s,d,p,h,l=a[0],f=a[1],s=r,d=o[0],p=o[1],h=o[2],od,t),t.point(l,f)}function b(){v.point=g,t.lineEnd()}function _(){m(),v.point=x,v.lineEnd=w}function x(e,t){y(r=e,t),i=l,o=f,a=d,u=p,c=h,v.point=y}function w(){n(l,f,s,d,p,h,i,o,r,a,u,c,od,t),v.lineEnd=b,b()}return v}}(e,t):function(e){return Zf({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)};var cd=Zf({point:function(e,t){this.stream.point(e*cc,t*cc)}});function sd(e,t,n,r){var i=dc(r),o=mc(r),a=i*e,u=o*e,c=i/e,s=o/e,l=(o*n-i*t)/e,f=(o*t+i*n)/e;function d(e,r){return[a*e-u*r+t,n-u*e-a*r]}return d.invert=function(e,t){return[c*e-s*t+l,f-s*e-c*t]},d}function ld(e){return fd(function(){return e})()}function fd(e){var t,n,r,i,o,a,u,c,s,l,f=150,d=480,p=250,h=0,v=0,g=0,m=0,y=0,b=0,_=null,x=vl,w=null,E=Zl,T=.5;function k(e){return c(e[0]*cc,e[1]*cc)}function M(e){return(e=c.invert(e[0],e[1]))&&[e[0]*uc,e[1]*uc]}function N(){var e=sd(f,0,0,b).apply(null,t(h,v)),r=(b?sd:function(e,t,n){function r(r,i){return[t+e*r,n-e*i]}return r.invert=function(r,i){return[(r-t)/e,(n-i)/e]},r})(f,d-e[0],p-e[1],b);return n=Qs(g,m,y),u=Xs(t,r),c=Xs(n,u),a=ud(u,T),C()}function C(){return s=l=null,k}return k.stream=function(e){return s&&l===e?s:s=cd(function(e){return Zf({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}(n)(x(a(E(l=e)))))},k.preclip=function(e){return arguments.length?(x=e,_=void 0,C()):x},k.postclip=function(e){return arguments.length?(E=e,w=r=i=o=null,C()):E},k.clipAngle=function(e){return arguments.length?(x=+e?gl(_=e*cc):(_=null,vl),C()):_*uc},k.clipExtent=function(e){return arguments.length?(E=null==e?(w=r=i=o=null,Zl):_l(w=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),C()):null==w?null:[[w,r],[i,o]]},k.scale=function(e){return arguments.length?(f=+e,N()):f},k.translate=function(e){return arguments.length?(d=+e[0],p=+e[1],N()):[d,p]},k.center=function(e){return arguments.length?(h=e[0]%360*cc,v=e[1]%360*cc,N()):[h*uc,v*uc]},k.rotate=function(e){return arguments.length?(g=e[0]%360*cc,m=e[1]%360*cc,y=e.length>2?e[2]%360*cc:0,N()):[g*uc,m*uc,y*uc]},k.angle=function(e){return arguments.length?(b=e%360*cc,N()):b*uc},k.precision=function(e){return arguments.length?(a=ud(u,T=e*e),C()):bc(T)},k.fitExtent=function(e,t){return td(k,e,t)},k.fitSize=function(e,t){return nd(k,e,t)},k.fitWidth=function(e,t){return rd(k,e,t)},k.fitHeight=function(e,t){return id(k,e,t)},function(){return t=e.apply(this,arguments),k.invert=t.invert&&M,N()}}function dd(e){var t=0,n=rc/3,r=fd(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*cc,n=e[1]*cc):[t*uc,n*uc]},i}function pd(e,t){var n=mc(e),r=(n+mc(t))/2;if(sc(r)<nc)return function(e){var t=dc(e);function n(e,n){return[e*t,mc(n)/t]}return n.invert=function(e,n){return[e/t,wc(n*t)]},n}(e);var i=1+n*(2*r-n),o=bc(i)/r;function a(e,t){var n=bc(i-2*r*mc(t))/r;return[n*mc(e*=r),o-n*dc(e)]}return a.invert=function(e,t){var n=o-t;return[fc(e,sc(n))/r*yc(n),wc((i-(e*e+n*n)*r*r)/(2*r))]},a}var hd=function(){return dd(pd).scale(155.424).center([0,33.6442])},vd=function(){return hd().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var gd=function(){var e,t,n,r,i,o,a=vd(),u=hd().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=hd().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(e,t){o=[e,t]}};function l(e){var t=e[0],a=e[1];return o=null,n.point(t,a),o||(r.point(t,a),o)||(i.point(t,a),o)}function f(){return e=t=null,l}return l.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(e)},l.stream=function(n){return e&&t===n?e:(r=[a.stream(t=n),u.stream(n),c.stream(n)],i=r.length,e={point:function(e,t){for(var n=-1;++n<i;)r[n].point(e,t)},sphere:function(){for(var e=-1;++e<i;)r[e].sphere()},lineStart:function(){for(var e=-1;++e<i;)r[e].lineStart()},lineEnd:function(){for(var e=-1;++e<i;)r[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<i;)r[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<i;)r[e].polygonEnd()}});var r,i},l.precision=function(e){return arguments.length?(a.precision(e),u.precision(e),c.precision(e),f()):a.precision()},l.scale=function(e){return arguments.length?(a.scale(e),u.scale(.35*e),c.scale(e),l.translate(a.translate())):a.scale()},l.translate=function(e){if(!arguments.length)return a.translate();var t=a.scale(),o=+e[0],l=+e[1];return n=a.translate(e).clipExtent([[o-.455*t,l-.238*t],[o+.455*t,l+.238*t]]).stream(s),r=u.translate([o-.307*t,l+.201*t]).clipExtent([[o-.425*t+nc,l+.12*t+nc],[o-.214*t-nc,l+.234*t-nc]]).stream(s),i=c.translate([o-.205*t,l+.212*t]).clipExtent([[o-.214*t+nc,l+.166*t+nc],[o-.115*t-nc,l+.234*t-nc]]).stream(s),f()},l.fitExtent=function(e,t){return td(l,e,t)},l.fitSize=function(e,t){return nd(l,e,t)},l.fitWidth=function(e,t){return rd(l,e,t)},l.fitHeight=function(e,t){return id(l,e,t)},l.scale(1070)};function md(e){return function(t,n){var r=dc(t),i=dc(n),o=e(r*i);return[o*i*mc(t),o*mc(n)]}}function yd(e){return function(t,n){var r=bc(t*t+n*n),i=e(r),o=mc(i),a=dc(i);return[fc(t*o,r*a),wc(r&&n*o/r)]}}var bd=md(function(e){return bc(2/(1+e))});bd.invert=yd(function(e){return 2*wc(e/2)});var _d=function(){return ld(bd).scale(124.75).clipAngle(179.999)},xd=md(function(e){return(e=xc(e))&&e/mc(e)});xd.invert=yd(function(e){return e});var wd=function(){return ld(xd).scale(79.4188).clipAngle(179.999)};function Ed(e,t){return[e,vc(_c((ic+t)/2))]}Ed.invert=function(e,t){return[e,2*lc(hc(t))-ic]};var Td=function(){return kd(Ed).scale(961/ac)};function kd(e){var t,n,r,i=ld(e),o=i.center,a=i.scale,u=i.translate,c=i.clipExtent,s=null;function l(){var o=rc*a(),u=i(tl(i.rotate()).invert([0,0]));return c(null==s?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:e===Ed?[[Math.max(u[0]-o,s),t],[Math.min(u[0]+o,n),r]]:[[s,Math.max(u[1]-o,t)],[n,Math.min(u[1]+o,r)]])}return i.scale=function(e){return arguments.length?(a(e),l()):a()},i.translate=function(e){return arguments.length?(u(e),l()):u()},i.center=function(e){return arguments.length?(o(e),l()):o()},i.clipExtent=function(e){return arguments.length?(null==e?s=t=n=r=null:(s=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),l()):null==s?null:[[s,t],[n,r]]},l()}function Md(e){return _c((ic+e)/2)}function Nd(e,t){var n=dc(e),r=e===t?mc(e):vc(n/dc(t))/vc(Md(t)/Md(e)),i=n*gc(Md(e),r)/r;if(!r)return Ed;function o(e,t){i>0?t<-ic+nc&&(t=-ic+nc):t>ic-nc&&(t=ic-nc);var n=i/gc(Md(t),r);return[n*mc(r*e),i-n*dc(r*e)]}return o.invert=function(e,t){var n=i-t,o=yc(r)*bc(e*e+n*n);return[fc(e,sc(n))/r*yc(n),2*lc(gc(i/o,1/r))-ic]},o}var Cd=function(){return dd(Nd).scale(109.5).parallels([30,30])};function Od(e,t){return[e,t]}Od.invert=Od;var Sd=function(){return ld(Od).scale(152.63)};function Pd(e,t){var n=dc(e),r=e===t?mc(e):(n-dc(t))/(t-e),i=n/r+e;if(sc(r)<nc)return Od;function o(e,t){var n=i-t,o=r*e;return[n*mc(o),i-n*dc(o)]}return o.invert=function(e,t){var n=i-t;return[fc(e,sc(n))/r*yc(n),i-yc(r)*bc(e*e+n*n)]},o}var Ad=function(){return dd(Pd).scale(131.154).center([0,13.9389])},Rd=1.340264,jd=-.081106,Dd=893e-6,Id=.003796,Ld=bc(3)/2;function zd(e,t){var n=wc(Ld*mc(t)),r=n*n,i=r*r*r;return[e*dc(n)/(Ld*(Rd+3*jd*r+i*(7*Dd+9*Id*r))),n*(Rd+jd*r+i*(Dd+Id*r))]}zd.invert=function(e,t){for(var n,r=t,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=n=(r*(Rd+jd*i+o*(Dd+Id*i))-t)/(Rd+3*jd*i+o*(7*Dd+9*Id*i)))*r)*i*i,!(sc(n)<1e-12));++a);return[Ld*e*(Rd+3*jd*i+o*(7*Dd+9*Id*i))/dc(r),wc(mc(r)/Ld)]};var Fd=function(){return ld(zd).scale(177.158)};function Ud(e,t){var n=dc(t),r=dc(e)*n;return[n*mc(e)/r,mc(t)/r]}Ud.invert=yd(lc);var qd=function(){return ld(Ud).scale(144.049).clipAngle(60)};function Bd(e,t,n,r){return 1===e&&1===t&&0===n&&0===r?Zl:Zf({point:function(i,o){this.stream.point(i*e+n,o*t+r)}})}var Wd=function(){var e,t,n,r,i,o,a=1,u=0,c=0,s=1,l=1,f=Zl,d=null,p=Zl;function h(){return r=i=null,o}return o={stream:function(e){return r&&i===e?r:r=f(p(i=e))},postclip:function(r){return arguments.length?(p=r,d=e=t=n=null,h()):p},clipExtent:function(r){return arguments.length?(p=null==r?(d=e=t=n=null,Zl):_l(d=+r[0][0],e=+r[0][1],t=+r[1][0],n=+r[1][1]),h()):null==d?null:[[d,e],[t,n]]},scale:function(e){return arguments.length?(f=Bd((a=+e)*s,a*l,u,c),h()):a},translate:function(e){return arguments.length?(f=Bd(a*s,a*l,u=+e[0],c=+e[1]),h()):[u,c]},reflectX:function(e){return arguments.length?(f=Bd(a*(s=e?-1:1),a*l,u,c),h()):s<0},reflectY:function(e){return arguments.length?(f=Bd(a*s,a*(l=e?-1:1),u,c),h()):l<0},fitExtent:function(e,t){return td(o,e,t)},fitSize:function(e,t){return nd(o,e,t)},fitWidth:function(e,t){return rd(o,e,t)},fitHeight:function(e,t){return id(o,e,t)}}};function Hd(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}Hd.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(sc(n)>nc&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var Vd=function(){return ld(Hd).scale(175.295)};function Yd(e,t){return[dc(t)*mc(e),mc(t)]}Yd.invert=yd(wc);var Gd=function(){return ld(Yd).scale(249.5).clipAngle(90+nc)};function $d(e,t){var n=dc(t),r=1+dc(e)*n;return[n*mc(e)/r,mc(t)/r]}$d.invert=yd(function(e){return 2*lc(e)});var Xd=function(){return ld($d).scale(250).clipAngle(142)};function Kd(e,t){return[vc(_c((ic+t)/2)),-e]}Kd.invert=function(e,t){return[-t,2*lc(hc(e))-ic]};var Qd=function(){var e=kd(Kd),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)};function Zd(e,t){return e.parent===t.parent?1:2}function Jd(e,t){return e+t.x}function ep(e,t){return Math.max(e,t.y)}var tp=function(){var e=Zd,t=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Jd,0)/e.length}(n),t.y=function(e){return 1+e.reduce(ep,0)}(n)):(t.x=o?a+=e(t,o):0,t.y=0,o=t)});var u=function(e){for(var t;t=e.children;)e=t[0];return e}(i),c=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),s=u.x-e(u,c)/2,l=c.x+e(c,u)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-s)/(l-s)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i};function np(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function rp(e,t){var n,r,i,o,a,u=new up(e),c=+e.value&&(u.value=e.value),s=[u];for(null==t&&(t=ip);n=s.pop();)if(c&&(n.value=+n.data.value),(i=t(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)s.push(r=n.children[o]=new up(i[o])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(ap)}function ip(e){return e.children}function op(e){e.data=e.data.data}function ap(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function up(e){this.data=e,this.depth=this.height=0,this.parent=null}up.prototype=rp.prototype={constructor:up,count:function(){return this.eachAfter(np)},each:function(e){var t,n,r,i,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},eachAfter:function(e){for(var t,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);for(;i=a.pop();)e(i);return this},eachBefore:function(e){for(var t,n,r=this,i=[r];r=i.pop();)if(e(r),t=r.children)for(n=t.length-1;n>=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return rp(this).eachBefore(op)}};var cp=Array.prototype.slice;var sp=function(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(cp.call(e))).length,o=[];r<i;)t=e[r],n&&dp(n,t)?++r:(n=hp(o=lp(o,t)),r=0);return n};function lp(e,t){var n,r;if(pp(t,e))return[t];for(n=0;n<e.length;++n)if(fp(t,e[n])&&pp(vp(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(fp(vp(e[n],e[r]),t)&&fp(vp(e[n],t),e[r])&&fp(vp(e[r],t),e[n])&&pp(gp(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function fp(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function dp(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function pp(e,t){for(var n=0;n<t.length;++n)if(!dp(e,t[n]))return!1;return!0}function hp(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return vp(e[0],e[1]);case 3:return gp(e[0],e[1],e[2])}var t}function vp(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,u=t.r,c=o-n,s=a-r,l=u-i,f=Math.sqrt(c*c+s*s);return{x:(n+o+c/f*l)/2,y:(r+a+s/f*l)/2,r:(f+i+u)/2}}function gp(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,u=t.y,c=t.r,s=n.x,l=n.y,f=n.r,d=r-a,p=r-s,h=i-u,v=i-l,g=c-o,m=f-o,y=r*r+i*i-o*o,b=y-a*a-u*u+c*c,_=y-s*s-l*l+f*f,x=p*h-d*v,w=(h*_-v*b)/(2*x)-r,E=(v*g-h*m)/x,T=(p*b-d*_)/(2*x)-i,k=(d*m-p*g)/x,M=E*E+k*k-1,N=2*(o+w*E+T*k),C=w*w+T*T-o*o,O=-(M?(N+Math.sqrt(N*N-4*M*C))/(2*M):C/N);return{x:r+w+E*O,y:i+T+k*O,r:O}}function mp(e,t,n){var r,i,o,a,u=e.x-t.x,c=e.y-t.y,s=u*u+c*c;s?(i=t.r+n.r,i*=i,a=e.r+n.r,i>(a*=a)?(r=(s+a-i)/(2*s),o=Math.sqrt(Math.max(0,a/s-r*r)),n.x=e.x-r*u-o*c,n.y=e.y-r*c+o*u):(r=(s+i-a)/(2*s),o=Math.sqrt(Math.max(0,i/s-r*r)),n.x=t.x+r*u-o*c,n.y=t.y+r*c+o*u)):(n.x=t.x+n.r,n.y=t.y)}function yp(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function bp(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function _p(e){this._=e,this.next=null,this.previous=null}function xp(e){if(!(i=e.length))return 0;var t,n,r,i,o,a,u,c,s,l,f;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;mp(n,t,r=e[2]),t=new _p(t),n=new _p(n),r=new _p(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(u=3;u<i;++u){mp(t._,n._,r=e[u]),r=new _p(r),c=n.next,s=t.previous,l=n._.r,f=t._.r;do{if(l<=f){if(yp(c._,r._)){n=c,t.next=n,n.previous=t,--u;continue e}l+=c._.r,c=c.next}else{if(yp(s._,r._)){(t=s).next=n,n.previous=t,--u;continue e}f+=s._.r,s=s.previous}}while(c!==s.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=bp(t);(r=r.next)!==n;)(a=bp(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=sp(t),u=0;u<i;++u)(t=e[u]).x-=r.x,t.y-=r.y;return r.r}var wp=function(e){return xp(e),e};function Ep(e){if("function"!=typeof e)throw new Error;return e}function Tp(){return 0}var kp=function(e){return function(){return e}};function Mp(e){return Math.sqrt(e.value)}var Np=function(){var e=null,t=1,n=1,r=Tp;function i(i){return i.x=t/2,i.y=n/2,e?i.eachBefore(Cp(e)).eachAfter(Op(r,.5)).eachBefore(Sp(1)):i.eachBefore(Cp(Mp)).eachAfter(Op(Tp,1)).eachAfter(Op(r,i.r/Math.min(t,n))).eachBefore(Sp(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=null==(n=t)?null:Ep(n),i):e;var n},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"==typeof e?e:kp(+e),i):r},i};function Cp(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Op(e,t){return function(n){if(r=n.children){var r,i,o,a=r.length,u=e(n)*t||0;if(u)for(i=0;i<a;++i)r[i].r+=u;if(o=xp(r),u)for(i=0;i<a;++i)r[i].r-=u;n.r=o+u}}}function Sp(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}var Pp=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)},Ap=function(e,t,n,r,i){for(var o,a=e.children,u=-1,c=a.length,s=e.value&&(r-t)/e.value;++u<c;)(o=a[u]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*s},Rp=function(){var e=1,t=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=e,i.y1=t/o,i.eachBefore(function(e,t){return function(r){r.children&&Ap(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var i=r.x0,o=r.y0,a=r.x1-n,u=r.y1-n;a<i&&(i=a=(i+a)/2),u<o&&(o=u=(o+u)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=u}}(t,o)),r&&i.eachBefore(Pp),i}return i.round=function(e){return arguments.length?(r=!!e,i):r},i.size=function(n){return arguments.length?(e=+n[0],t=+n[1],i):[e,t]},i.padding=function(e){return arguments.length?(n=+e,i):n},i},jp="$",Dp={depth:-1},Ip={};function Lp(e){return e.id}function zp(e){return e.parentId}var Fp=function(){var e=Lp,t=zp;function n(n){var r,i,o,a,u,c,s,l=n.length,f=new Array(l),d={};for(i=0;i<l;++i)r=n[i],u=f[i]=new up(r),null!=(c=e(r,i,n))&&(c+="")&&(d[s=jp+(u.id=c)]=s in d?Ip:u);for(i=0;i<l;++i)if(u=f[i],null!=(c=t(n[i],i,n))&&(c+="")){if(!(a=d[jp+c]))throw new Error("missing: "+c);if(a===Ip)throw new Error("ambiguous: "+c);a.children?a.children.push(u):a.children=[u],u.parent=a}else{if(o)throw new Error("multiple roots");o=u}if(!o)throw new Error("no root");if(o.parent=Dp,o.eachBefore(function(e){e.depth=e.parent.depth+1,--l}).eachBefore(ap),o.parent=null,l>0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=Ep(t),n):e},n.parentId=function(e){return arguments.length?(t=Ep(e),n):t},n};function Up(e,t){return e.parent===t.parent?1:2}function qp(e){var t=e.children;return t?t[0]:e.t}function Bp(e){var t=e.children;return t?t[t.length-1]:e.t}function Wp(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Hp(e,t,n){return e.a.parent===t.parent?e.a:n}function Vp(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Vp.prototype=Object.create(up.prototype);var Yp=function(){var e=Up,t=1,n=1,r=null;function i(i){var c=function(e){for(var t,n,r,i,o,a=new Vp(e,0),u=[a];t=u.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(n=t.children[i]=new Vp(r[i],i)),n.parent=t;return(a.parent=new Vp(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var s=i,l=i,f=i;i.eachBefore(function(e){e.x<s.x&&(s=e),e.x>l.x&&(l=e),e.depth>f.depth&&(f=e)});var d=s===l?1:e(s,l)/2,p=d-s.x,h=t/(l.x+d+p),v=n/(f.depth||1);i.eachBefore(function(e){e.x=(e.x+p)*h,e.y=e.depth*v})}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,u=n,c=o.parent.children[0],s=o.m,l=a.m,f=u.m,d=c.m;u=Bp(u),o=qp(o),u&&o;)c=qp(c),(a=Bp(a)).a=t,(i=u.z+f-o.z-s+e(u._,o._))>0&&(Wp(Hp(u,t,r),t,i),s+=i,l+=i),f+=u.m,s+=o.m,d+=c.m,l+=a.m;u&&!Bp(a)&&(a.t=u,a.m+=f-l),o&&!qp(c)&&(c.t=o,c.m+=s-d,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function u(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},Gp=function(e,t,n,r,i){for(var o,a=e.children,u=-1,c=a.length,s=e.value&&(i-n)/e.value;++u<c;)(o=a[u]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*s},$p=(1+Math.sqrt(5))/2;function Xp(e,t,n,r,i,o){for(var a,u,c,s,l,f,d,p,h,v,g,m=[],y=t.children,b=0,_=0,x=y.length,w=t.value;b<x;){c=i-n,s=o-r;do{l=y[_++].value}while(!l&&_<x);for(f=d=l,g=l*l*(v=Math.max(s/c,c/s)/(w*e)),h=Math.max(d/g,g/f);_<x;++_){if(l+=u=y[_].value,u<f&&(f=u),u>d&&(d=u),g=l*l*v,(p=Math.max(d/g,g/f))>h){l-=u;break}h=p}m.push(a={value:l,dice:c<s,children:y.slice(b,_)}),a.dice?Ap(a,n,r,i,w?r+=s*l/w:o):Gp(a,n,r,w?n+=c*l/w:i,o),w-=l,b=_}return m}var Kp=function e(t){function n(e,n,r,i,o){Xp(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}($p),Qp=function(){var e=Kp,t=!1,n=1,r=1,i=[0],o=Tp,a=Tp,u=Tp,c=Tp,s=Tp;function l(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(Pp),e}function f(t){var n=i[t.depth],r=t.x0+n,l=t.y0+n,f=t.x1-n,d=t.y1-n;f<r&&(r=f=(r+f)/2),d<l&&(l=d=(l+d)/2),t.x0=r,t.y0=l,t.x1=f,t.y1=d,t.children&&(n=i[t.depth+1]=o(t)/2,r+=s(t)-n,l+=a(t)-n,(f-=u(t)-n)<r&&(r=f=(r+f)/2),(d-=c(t)-n)<l&&(l=d=(l+d)/2),e(t,r,l,f,d))}return l.round=function(e){return arguments.length?(t=!!e,l):t},l.size=function(e){return arguments.length?(n=+e[0],r=+e[1],l):[n,r]},l.tile=function(t){return arguments.length?(e=Ep(t),l):e},l.padding=function(e){return arguments.length?l.paddingInner(e).paddingOuter(e):l.paddingInner()},l.paddingInner=function(e){return arguments.length?(o="function"==typeof e?e:kp(+e),l):o},l.paddingOuter=function(e){return arguments.length?l.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):l.paddingTop()},l.paddingTop=function(e){return arguments.length?(a="function"==typeof e?e:kp(+e),l):a},l.paddingRight=function(e){return arguments.length?(u="function"==typeof e?e:kp(+e),l):u},l.paddingBottom=function(e){return arguments.length?(c="function"==typeof e?e:kp(+e),l):c},l.paddingLeft=function(e){return arguments.length?(s="function"==typeof e?e:kp(+e),l):s},l},Zp=function(e,t,n,r,i){var o,a,u=e.children,c=u.length,s=new Array(c+1);for(s[0]=a=o=0;o<c;++o)s[o+1]=a+=u[o].value;!function e(t,n,r,i,o,a,c){if(t>=n-1){var l=u[t];return l.x0=i,l.y0=o,l.x1=a,void(l.y1=c)}var f=s[t],d=r/2+f,p=t+1,h=n-1;for(;p<h;){var v=p+h>>>1;s[v]<d?p=v+1:h=v}d-s[p-1]<s[p]-d&&t+1<p&&--p;var g=s[p]-f,m=r-g;if(a-i>c-o){var y=(i*m+a*g)/r;e(t,p,g,i,o,y,c),e(p,n,m,y,o,a,c)}else{var b=(o*m+c*g)/r;e(t,p,g,i,o,a,b),e(p,n,m,i,b,a,c)}}(0,c,e.value,t,n,r,i)},Jp=function(e,t,n,r,i){(1&e.depth?Gp:Ap)(e,t,n,r,i)},eh=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t)for(var a,u,c,s,l,f=-1,d=a.length,p=e.value;++f<d;){for(c=(u=a[f]).children,s=u.value=0,l=c.length;s<l;++s)u.value+=c[s].value;u.dice?Ap(u,n,r,i,r+=(o-r)*u.value/p):Gp(u,n,r,n+=(i-n)*u.value/p,o),p-=u.value}else e._squarify=a=Xp(t,e,n,r,i,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}($p),th=function(e){for(var t,n=-1,r=e.length,i=e[r-1],o=0;++n<r;)t=i,i=e[n],o+=t[1]*i[0]-t[0]*i[1];return o/2},nh=function(e){for(var t,n,r=-1,i=e.length,o=0,a=0,u=e[i-1],c=0;++r<i;)t=u,u=e[r],c+=n=t[0]*u[1]-u[0]*t[1],o+=(t[0]+u[0])*n,a+=(t[1]+u[1])*n;return[o/(c*=3),a/c]},rh=function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])};function ih(e,t){return e[0]-t[0]||e[1]-t[1]}function oh(e){for(var t=e.length,n=[0,1],r=2,i=2;i<t;++i){for(;r>1&&rh(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}var ah=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(ih),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=oh(r),a=oh(i),u=a[0]===o[0],c=a[a.length-1]===o[o.length-1],s=[];for(t=o.length-1;t>=0;--t)s.push(e[r[o[t]][2]]);for(t=+u;t<a.length-c;++t)s.push(e[r[a[t]][2]]);return s},uh=function(e,t){for(var n,r,i=e.length,o=e[i-1],a=t[0],u=t[1],c=o[0],s=o[1],l=!1,f=0;f<i;++f)n=(o=e[f])[0],(r=o[1])>u!=s>u&&a<(c-n)*(u-r)/(s-r)+n&&(l=!l),c=n,s=r;return l},ch=function(e){for(var t,n,r=-1,i=e.length,o=e[i-1],a=o[0],u=o[1],c=0;++r<i;)t=a,n=u,t-=a=(o=e[r])[0],n-=u=o[1],c+=Math.sqrt(t*t+n*n);return c},sh=function(){return Math.random()},lh=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(sh),fh=function e(t){function n(e,n){var r,i;return e=null==e?0:+e,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*t()-1,o=2*t()-1,i=r*r+o*o}while(!i||i>1);return e+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(sh),dh=function e(t){function n(){var e=fh.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(sh),ph=function e(t){function n(e){return function(){for(var n=0,r=0;r<e;++r)n+=t();return n}}return n.source=e,n}(sh),hh=function e(t){function n(e){var n=ph.source(t)(e);return function(){return n()/e}}return n.source=e,n}(sh),vh=function e(t){function n(e){return function(){return-Math.log(1-t())/e}}return n.source=e,n}(sh),gh=Array.prototype,mh=gh.map,yh=gh.slice,bh={name:"implicit"};function _h(e){var t=Zo(),n=[],r=bh;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==bh)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return e=null==e?[]:yh.call(e),i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=Zo();for(var r,o,a=-1,u=e.length;++a<u;)t.has(o=(r=e[a])+"")||t.set(o,n.push(r));return i},i.range=function(t){return arguments.length?(e=yh.call(t),i):e.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return _h().domain(n).range(e).unknown(r)},i}function xh(){var e,t,n=_h().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,u=0,c=0,s=.5;function l(){var n=r().length,l=o[1]<o[0],f=o[l-0],d=o[1-l];e=(d-f)/Math.max(1,n-u+2*c),a&&(e=Math.floor(e)),f+=(d-f-e*(n-u))*s,t=e*(1-u),a&&(f=Math.round(f),t=Math.round(t));var p=w(n).map(function(t){return f+e*t});return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),l()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],l()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,l()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,l()):a},n.padding=function(e){return arguments.length?(u=c=Math.max(0,Math.min(1,e)),l()):u},n.paddingInner=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),l()):u},n.paddingOuter=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),l()):c},n.align=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),l()):s},n.copy=function(){return xh().domain(r()).range(o).round(a).paddingInner(u).paddingOuter(c).align(s)},l()}function wh(){return function e(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return e(n())},t}(xh().paddingInner(1))}var Eh=function(e){return function(){return e}},Th=function(e){return+e},kh=[0,1];function Mh(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Eh(t)}function Nh(e,t,n,r){var i=e[0],o=e[1],a=t[0],u=t[1];return o<i?(i=n(o,i),a=r(u,a)):(i=n(i,o),a=r(a,u)),function(e){return a(i(e))}}function Ch(e,t,n,r){var i=Math.min(e.length,t.length)-1,o=new Array(i),a=new Array(i),u=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++u<i;)o[u]=n(e[u],e[u+1]),a[u]=r(t[u],t[u+1]);return function(t){var n=c(e,t,1,i)-1;return a[n](o[n](t))}}function Oh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function Sh(e,t){var n,r,i,o=kh,a=kh,u=Qn,c=!1;function s(){return n=Math.min(o.length,a.length)>2?Ch:Nh,r=i=null,l}function l(t){return(r||(r=n(o,a,c?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,u)))(+t)}return l.invert=function(e){return(i||(i=n(a,o,Mh,c?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},l.domain=function(e){return arguments.length?(o=mh.call(e,Th),s()):o.slice()},l.range=function(e){return arguments.length?(a=yh.call(e),s()):a.slice()},l.rangeRound=function(e){return a=yh.call(e),u=er,s()},l.clamp=function(e){return arguments.length?(c=!!e,s()):c},l.interpolate=function(e){return arguments.length?(u=e,s()):u},s()}var Ph=function(e,t,n){var r,i=e[0],o=e[e.length-1],a=C(i,o,null==t?10:t);switch((n=Iu(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=Ku(a,u))||(n.precision=r),qu(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=Qu(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=Xu(a))||(n.precision=r-2*("%"===n.type))}return Uu(n)};function Ah(e){var t=e.domain;return e.ticks=function(e){var n=t();return M(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return Ph(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,u=i[o],c=i[a];return c<u&&(r=u,u=c,c=r,r=o,o=a,a=r),(r=N(u,c,n))>0?r=N(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=N(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[o]=Math.floor(u/r)*r,i[a]=Math.ceil(c/r)*r,t(i)):r<0&&(i[o]=Math.ceil(u*r)/r,i[a]=Math.floor(c*r)/r,t(i)),e},e}function Rh(){var e=Sh(Mh,Bn);return e.copy=function(){return Oh(e,Rh())},Ah(e)}function jh(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=mh.call(n,Th),t):e.slice()},t.copy=function(){return jh().domain(e)},Ah(t)}var Dh=function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e};function Ih(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:Eh(t)}function Lh(e,t){return e<0?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}}function zh(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Fh(e){return 10===e?zh:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function Uh(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function qh(e){return function(t){return-e(-t)}}function Bh(){var e=Sh(Ih,Lh).domain([1,10]),t=e.domain,n=10,r=Uh(10),i=Fh(10);function o(){return r=Uh(n),i=Fh(n),t()[0]<0&&(r=qh(r),i=qh(i)),e}return e.base=function(e){return arguments.length?(n=+e,o()):n},e.domain=function(e){return arguments.length?(t(e),o()):t()},e.ticks=function(e){var o,a=t(),u=a[0],c=a[a.length-1];(o=c<u)&&(d=u,u=c,c=d);var s,l,f,d=r(u),p=r(c),h=null==e?10:+e,v=[];if(!(n%1)&&p-d<h){if(d=Math.round(d)-1,p=Math.round(p)+1,u>0){for(;d<p;++d)for(l=1,s=i(d);l<n;++l)if(!((f=s*l)<u)){if(f>c)break;v.push(f)}}else for(;d<p;++d)for(l=n-1,s=i(d);l>=1;--l)if(!((f=s*l)<u)){if(f>c)break;v.push(f)}}else v=M(d,p,Math.min(p-d,h)).map(i);return o?v.reverse():v},e.tickFormat=function(t,o){if(null==o&&(o=10===n?".0e":","),"function"!=typeof o&&(o=Uu(o)),t===1/0)return o;null==t&&(t=10);var a=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/i(Math.round(r(e)));return t*n<n-.5&&(t*=n),t<=a?o(e):""}},e.nice=function(){return t(Dh(t(),{floor:function(e){return i(Math.floor(r(e)))},ceil:function(e){return i(Math.ceil(r(e)))}}))},e.copy=function(){return Oh(e,Bh().base(n))},e}function Wh(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function Hh(){var e=1,t=Sh(function(t,n){return(n=Wh(n,e)-(t=Wh(t,e)))?function(r){return(Wh(r,e)-t)/n}:Eh(n)},function(t,n){return n=Wh(n,e)-(t=Wh(t,e)),function(r){return Wh(t+n*r,1/e)}}),n=t.domain;return t.exponent=function(t){return arguments.length?(e=+t,n(n())):e},t.copy=function(){return Oh(t,Hh().exponent(e))},Ah(t)}function Vh(){return Hh().exponent(.5)}function Yh(){var e=[],t=[],n=[];function i(){var r=0,i=Math.max(1,t.length);for(n=new Array(i-1);++r<i;)n[r-1]=P(e,r/i);return o}function o(e){if(!isNaN(e=+e))return t[c(n,e)]}return o.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,o=0,a=t.length;o<a;++o)null==(n=t[o])||isNaN(n=+n)||e.push(n);return e.sort(r),i()},o.range=function(e){return arguments.length?(t=yh.call(e),i()):t.slice()},o.quantiles=function(){return n.slice()},o.copy=function(){return Yh().domain(e).range(t)},o}function Gh(){var e=0,t=1,n=1,r=[.5],i=[0,1];function o(e){if(e<=e)return i[c(r,e,0,n)]}function a(){var i=-1;for(r=new Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?(e=+n[0],t=+n[1],a()):[e,t]},o.range=function(e){return arguments.length?(n=(i=yh.call(e)).length-1,a()):i.slice()},o.invertExtent=function(o){var a=i.indexOf(o);return a<0?[NaN,NaN]:a<1?[e,r[0]]:a>=n?[r[n-1],t]:[r[a-1],r[a]]},o.copy=function(){return Gh().domain([e,t]).range(i)},Ah(o)}function $h(){var e=[.5],t=[0,1],n=1;function r(r){if(r<=r)return t[c(e,r,0,n)]}return r.domain=function(i){return arguments.length?(e=yh.call(i),n=Math.min(e.length,t.length-1),r):e.slice()},r.range=function(i){return arguments.length?(t=yh.call(i),n=Math.min(e.length,t.length-1),r):t.slice()},r.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},r.copy=function(){return $h().domain(e).range(t)},r}var Xh=new Date,Kh=new Date;function Qh(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,u=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return u;do{u.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return u},i.filter=function(n){return Qh(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return Xh.setTime(+t),Kh.setTime(+r),e(Xh),e(Kh),Math.floor(n(Xh,Kh))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Zh=Qh(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Zh.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Qh(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Zh:null};var Jh=Zh,ev=Zh.range,tv=6e4,nv=6048e5,rv=Qh(function(e){e.setTime(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),iv=rv,ov=rv.range,av=Qh(function(e){e.setTime(Math.floor(e/tv)*tv)},function(e,t){e.setTime(+e+t*tv)},function(e,t){return(t-e)/tv},function(e){return e.getMinutes()}),uv=av,cv=av.range,sv=Qh(function(e){var t=e.getTimezoneOffset()*tv%36e5;t<0&&(t+=36e5),e.setTime(36e5*Math.floor((+e-t)/36e5)+t)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),lv=sv,fv=sv.range,dv=Qh(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tv)/864e5},function(e){return e.getDate()-1}),pv=dv,hv=dv.range;function vv(e){return Qh(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tv)/nv})}var gv=vv(0),mv=vv(1),yv=vv(2),bv=vv(3),_v=vv(4),xv=vv(5),wv=vv(6),Ev=gv.range,Tv=mv.range,kv=yv.range,Mv=bv.range,Nv=_v.range,Cv=xv.range,Ov=wv.range,Sv=Qh(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),Pv=Sv,Av=Sv.range,Rv=Qh(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Rv.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Qh(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var jv=Rv,Dv=Rv.range,Iv=Qh(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*tv)},function(e,t){return(t-e)/tv},function(e){return e.getUTCMinutes()}),Lv=Iv,zv=Iv.range,Fv=Qh(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),Uv=Fv,qv=Fv.range,Bv=Qh(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),Wv=Bv,Hv=Bv.range;function Vv(e){return Qh(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/nv})}var Yv=Vv(0),Gv=Vv(1),$v=Vv(2),Xv=Vv(3),Kv=Vv(4),Qv=Vv(5),Zv=Vv(6),Jv=Yv.range,eg=Gv.range,tg=$v.range,ng=Xv.range,rg=Kv.range,ig=Qv.range,og=Zv.range,ag=Qh(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),ug=ag,cg=ag.range,sg=Qh(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});sg.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Qh(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var lg=sg,fg=sg.range;function dg(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function pg(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function hg(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function vg(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,u=e.months,c=e.shortMonths,s=Ng(i),l=Cg(i),f=Ng(o),d=Cg(o),p=Ng(a),h=Cg(a),v=Ng(u),g=Cg(u),m=Ng(c),y=Cg(c),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:null,d:$g,e:$g,f:Jg,H:Xg,I:Kg,j:Qg,L:Zg,m:em,M:tm,p:function(e){return i[+(e.getHours()>=12)]},Q:Om,s:Sm,S:nm,u:rm,U:im,V:om,w:am,W:um,x:null,X:null,y:cm,Y:sm,Z:lm,"%":Cm},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:fm,e:fm,f:gm,H:dm,I:pm,j:hm,L:vm,m:mm,M:ym,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Om,s:Sm,S:bm,u:_m,U:xm,V:wm,w:Em,W:Tm,x:null,X:null,y:km,Y:Mm,Z:Nm,"%":Cm},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return T(e,t,n,r)},d:zg,e:zg,f:Hg,H:Ug,I:Ug,j:Fg,L:Wg,m:Lg,M:qg,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:Yg,s:Gg,S:Bg,u:Sg,U:Pg,V:Ag,w:Og,W:Rg,x:function(e,t,r){return T(e,n,t,r)},X:function(e,t,n){return T(e,r,t,n)},y:Dg,Y:jg,Z:Ig,"%":Vg};function w(e,t){return function(n){var r,i,o,a=[],u=-1,c=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++u<s;)37===e.charCodeAt(u)&&(a.push(e.slice(c,u)),null!=(i=xg[r=e.charAt(++u)])?r=e.charAt(++u):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),c=u+1);return a.push(e.slice(c,u)),a.join("")}}function E(e,t){return function(n){var r,i,o=hg(1900);if(T(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=pg(hg(o.y))).getUTCDay(),r=i>4||0===i?Gv.ceil(r):Gv(r),r=Wv.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(hg(o.y))).getDay(),r=i>4||0===i?mv.ceil(r):mv(r),r=pv.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?pg(hg(o.y)).getUTCDay():t(hg(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,pg(o)):t(o)}}function T(e,t,n,r){for(var i,o,a=0,u=t.length,c=n.length;a<u;){if(r>=c)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in xg?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),_.x=w(n,_),_.X=w(r,_),_.c=w(t,_),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",dg);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e,pg);return t.toString=function(){return e},t}}}var gg,mg,yg,bg,_g,xg={"-":"",_:" ",0:"0"},wg=/^\s*\d+/,Eg=/^%/,Tg=/[\\^$*+?|[\]().{}]/g;function kg(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Mg(e){return e.replace(Tg,"\\$&")}function Ng(e){return new RegExp("^(?:"+e.map(Mg).join("|")+")","i")}function Cg(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Og(e,t,n){var r=wg.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Sg(e,t,n){var r=wg.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Pg(e,t,n){var r=wg.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ag(e,t,n){var r=wg.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Rg(e,t,n){var r=wg.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function jg(e,t,n){var r=wg.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Dg(e,t,n){var r=wg.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ig(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Lg(e,t,n){var r=wg.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zg(e,t,n){var r=wg.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Fg(e,t,n){var r=wg.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ug(e,t,n){var r=wg.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function qg(e,t,n){var r=wg.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Bg(e,t,n){var r=wg.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Wg(e,t,n){var r=wg.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Hg(e,t,n){var r=wg.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Vg(e,t,n){var r=Eg.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Yg(e,t,n){var r=wg.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Gg(e,t,n){var r=wg.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function $g(e,t){return kg(e.getDate(),t,2)}function Xg(e,t){return kg(e.getHours(),t,2)}function Kg(e,t){return kg(e.getHours()%12||12,t,2)}function Qg(e,t){return kg(1+pv.count(jv(e),e),t,3)}function Zg(e,t){return kg(e.getMilliseconds(),t,3)}function Jg(e,t){return Zg(e,t)+"000"}function em(e,t){return kg(e.getMonth()+1,t,2)}function tm(e,t){return kg(e.getMinutes(),t,2)}function nm(e,t){return kg(e.getSeconds(),t,2)}function rm(e){var t=e.getDay();return 0===t?7:t}function im(e,t){return kg(gv.count(jv(e),e),t,2)}function om(e,t){var n=e.getDay();return e=n>=4||0===n?_v(e):_v.ceil(e),kg(_v.count(jv(e),e)+(4===jv(e).getDay()),t,2)}function am(e){return e.getDay()}function um(e,t){return kg(mv.count(jv(e),e),t,2)}function cm(e,t){return kg(e.getFullYear()%100,t,2)}function sm(e,t){return kg(e.getFullYear()%1e4,t,4)}function lm(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kg(t/60|0,"0",2)+kg(t%60,"0",2)}function fm(e,t){return kg(e.getUTCDate(),t,2)}function dm(e,t){return kg(e.getUTCHours(),t,2)}function pm(e,t){return kg(e.getUTCHours()%12||12,t,2)}function hm(e,t){return kg(1+Wv.count(lg(e),e),t,3)}function vm(e,t){return kg(e.getUTCMilliseconds(),t,3)}function gm(e,t){return vm(e,t)+"000"}function mm(e,t){return kg(e.getUTCMonth()+1,t,2)}function ym(e,t){return kg(e.getUTCMinutes(),t,2)}function bm(e,t){return kg(e.getUTCSeconds(),t,2)}function _m(e){var t=e.getUTCDay();return 0===t?7:t}function xm(e,t){return kg(Yv.count(lg(e),e),t,2)}function wm(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Kv(e):Kv.ceil(e),kg(Kv.count(lg(e),e)+(4===lg(e).getUTCDay()),t,2)}function Em(e){return e.getUTCDay()}function Tm(e,t){return kg(Gv.count(lg(e),e),t,2)}function km(e,t){return kg(e.getUTCFullYear()%100,t,2)}function Mm(e,t){return kg(e.getUTCFullYear()%1e4,t,4)}function Nm(){return"+0000"}function Cm(){return"%"}function Om(e){return+e}function Sm(e){return Math.floor(+e/1e3)}function Pm(e){return gg=vg(e),mg=gg.format,yg=gg.parse,bg=gg.utcFormat,_g=gg.utcParse,gg}Pm({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"]});var Am=Date.prototype.toISOString?function(e){return e.toISOString()}:bg("%Y-%m-%dT%H:%M:%S.%LZ");var Rm=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:_g("%Y-%m-%dT%H:%M:%S.%LZ"),jm=1e3,Dm=60*jm,Im=60*Dm,Lm=24*Im,zm=7*Lm,Fm=30*Lm,Um=365*Lm;function qm(e){return new Date(e)}function Bm(e){return e instanceof Date?+e:+new Date(+e)}function Wm(e,t,n,r,o,a,u,c,s){var l=Sh(Mh,Bn),f=l.invert,d=l.domain,p=s(".%L"),h=s(":%S"),v=s("%I:%M"),g=s("%I %p"),m=s("%a %d"),y=s("%b %d"),b=s("%B"),_=s("%Y"),x=[[u,1,jm],[u,5,5*jm],[u,15,15*jm],[u,30,30*jm],[a,1,Dm],[a,5,5*Dm],[a,15,15*Dm],[a,30,30*Dm],[o,1,Im],[o,3,3*Im],[o,6,6*Im],[o,12,12*Im],[r,1,Lm],[r,2,2*Lm],[n,1,zm],[t,1,Fm],[t,3,3*Fm],[e,1,Um]];function w(i){return(u(i)<i?p:a(i)<i?h:o(i)<i?v:r(i)<i?g:t(i)<i?n(i)<i?m:y:e(i)<i?b:_)(i)}function E(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var a=Math.abs(r-n)/t,u=i(function(e){return e[2]}).right(x,a);u===x.length?(o=C(n/Um,r/Um,t),t=e):u?(o=(u=x[a/x[u-1][2]<x[u][2]/a?u-1:u])[1],t=u[0]):(o=Math.max(C(n,r,t),1),t=c)}return null==o?t:t.every(o)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?d(mh.call(e,Bm)):d().map(qm)},l.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=E(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},l.tickFormat=function(e,t){return null==t?w:s(t)},l.nice=function(e,t){var n=d();return(e=E(e,n[0],n[n.length-1],t))?d(Dh(n,e)):l},l.copy=function(){return Oh(l,Wm(e,t,n,r,o,a,u,c,s))},l}var Hm=function(){return Wm(jv,Pv,gv,pv,lv,uv,iv,Jh,mg).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},Vm=function(){return Wm(lg,ug,Yv,Wv,Uv,Lv,iv,Jh,bg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])};function Ym(e){var t=0,n=1,r=1,i=!1;function o(n){var o=(n-t)*r;return e(i?Math.max(0,Math.min(1,o)):o)}return o.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],r=t===n?0:1/(n-t),o):[t,n]},o.clamp=function(e){return arguments.length?(i=!!e,o):i},o.interpolator=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Ym(e).domain([t,n]).clamp(i)},Ah(o)}function Gm(e){var t=0,n=.5,r=1,i=1,o=1,a=!1;function u(t){var r=.5+((t=+t)-n)*(t<n?i:o);return e(a?Math.max(0,Math.min(1,r)):r)}return u.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],r=+e[2],i=t===n?0:.5/(n-t),o=n===r?0:.5/(r-n),u):[t,n,r]},u.clamp=function(e){return arguments.length?(a=!!e,u):a},u.interpolator=function(t){return arguments.length?(e=t,u):e},u.copy=function(){return Gm(e).domain([t,n,r]).clamp(a)},Ah(u)}var $m=function(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n},Xm=$m("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Km=$m("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Qm=$m("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Zm=$m("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Jm=$m("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),ey=$m("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),ty=$m("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),ny=$m("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),ry=$m("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),iy=function(e){return zn(e[e.length-1])},oy=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($m),ay=iy(oy),uy=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($m),cy=iy(uy),sy=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($m),ly=iy(sy),fy=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($m),dy=iy(fy),py=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($m),hy=iy(py),vy=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($m),gy=iy(vy),my=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($m),yy=iy(my),by=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($m),_y=iy(by),xy=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($m),wy=iy(xy),Ey=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($m),Ty=iy(Ey),ky=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($m),My=iy(ky),Ny=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($m),Cy=iy(Ny),Oy=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($m),Sy=iy(Oy),Py=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($m),Ay=iy(Py),Ry=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($m),jy=iy(Ry),Dy=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($m),Iy=iy(Dy),Ly=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($m),zy=iy(Ly),Fy=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($m),Uy=iy(Fy),qy=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($m),By=iy(qy),Wy=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($m),Hy=iy(Wy),Vy=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($m),Yy=iy(Vy),Gy=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($m),$y=iy(Gy),Xy=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($m),Ky=iy(Xy),Qy=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($m),Zy=iy(Qy),Jy=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($m),eb=iy(Jy),tb=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($m),nb=iy(tb),rb=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($m),ib=iy(rb),ob=br(Mn(300,.5,0),Mn(-240,.5,1)),ab=br(Mn(-100,.75,.35),Mn(80,1.5,.8)),ub=br(Mn(260,.75,.35),Mn(80,1.5,.8)),cb=Mn(),sb=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return cb.h=360*e-100,cb.s=1.5-1.5*t,cb.l=.8-.9*t,cb+""},lb=Vt(),fb=Math.PI/3,db=2*Math.PI/3,pb=function(e){var t;return e=(.5-e)*Math.PI,lb.r=255*(t=Math.sin(e))*t,lb.g=255*(t=Math.sin(e+fb))*t,lb.b=255*(t=Math.sin(e+db))*t,lb+""};function hb(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var vb=hb($m("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),gb=hb($m("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),mb=hb($m("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),yb=hb($m("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),bb=function(e){return function(){return e}},_b=Math.abs,xb=Math.atan2,wb=Math.cos,Eb=Math.max,Tb=Math.min,kb=Math.sin,Mb=Math.sqrt,Nb=1e-12,Cb=Math.PI,Ob=Cb/2,Sb=2*Cb;function Pb(e){return e>=1?Ob:e<=-1?-Ob:Math.asin(e)}function Ab(e){return e.innerRadius}function Rb(e){return e.outerRadius}function jb(e){return e.startAngle}function Db(e){return e.endAngle}function Ib(e){return e&&e.padAngle}function Lb(e,t,n,r,i,o,a){var u=e-n,c=t-r,s=(a?o:-o)/Mb(u*u+c*c),l=s*c,f=-s*u,d=e+l,p=t+f,h=n+l,v=r+f,g=(d+h)/2,m=(p+v)/2,y=h-d,b=v-p,_=y*y+b*b,x=i-o,w=d*v-h*p,E=(b<0?-1:1)*Mb(Eb(0,x*x*_-w*w)),T=(w*b-y*E)/_,k=(-w*y-b*E)/_,M=(w*b+y*E)/_,N=(-w*y+b*E)/_,C=T-g,O=k-m,S=M-g,P=N-m;return C*C+O*O>S*S+P*P&&(T=M,k=N),{cx:T,cy:k,x01:-l,y01:-f,x11:T*(i/x-1),y11:k*(i/x-1)}}var zb=function(){var e=Ab,t=Rb,n=bb(0),r=null,i=jb,o=Db,a=Ib,u=null;function c(){var c,s,l,f=+e.apply(this,arguments),d=+t.apply(this,arguments),p=i.apply(this,arguments)-Ob,h=o.apply(this,arguments)-Ob,v=_b(h-p),g=h>p;if(u||(u=c=Wo()),d<f&&(s=d,d=f,f=s),d>Nb)if(v>Sb-Nb)u.moveTo(d*wb(p),d*kb(p)),u.arc(0,0,d,p,h,!g),f>Nb&&(u.moveTo(f*wb(h),f*kb(h)),u.arc(0,0,f,h,p,g));else{var m,y,b=p,_=h,x=p,w=h,E=v,T=v,k=a.apply(this,arguments)/2,M=k>Nb&&(r?+r.apply(this,arguments):Mb(f*f+d*d)),N=Tb(_b(d-f)/2,+n.apply(this,arguments)),C=N,O=N;if(M>Nb){var S=Pb(M/f*kb(k)),P=Pb(M/d*kb(k));(E-=2*S)>Nb?(x+=S*=g?1:-1,w-=S):(E=0,x=w=(p+h)/2),(T-=2*P)>Nb?(b+=P*=g?1:-1,_-=P):(T=0,b=_=(p+h)/2)}var A=d*wb(b),R=d*kb(b),j=f*wb(w),D=f*kb(w);if(N>Nb){var I=d*wb(_),L=d*kb(_),z=f*wb(x),F=f*kb(x);if(v<Cb){var U=E>Nb?function(e,t,n,r,i,o,a,u){var c=n-e,s=r-t,l=a-i,f=u-o,d=(l*(t-o)-f*(e-i))/(f*c-l*s);return[e+d*c,t+d*s]}(A,R,z,F,I,L,j,D):[j,D],q=A-U[0],B=R-U[1],W=I-U[0],H=L-U[1],V=1/kb(((l=(q*W+B*H)/(Mb(q*q+B*B)*Mb(W*W+H*H)))>1?0:l<-1?Cb:Math.acos(l))/2),Y=Mb(U[0]*U[0]+U[1]*U[1]);C=Tb(N,(f-Y)/(V-1)),O=Tb(N,(d-Y)/(V+1))}}T>Nb?O>Nb?(m=Lb(z,F,A,R,d,O,g),y=Lb(I,L,j,D,d,O,g),u.moveTo(m.cx+m.x01,m.cy+m.y01),O<N?u.arc(m.cx,m.cy,O,xb(m.y01,m.x01),xb(y.y01,y.x01),!g):(u.arc(m.cx,m.cy,O,xb(m.y01,m.x01),xb(m.y11,m.x11),!g),u.arc(0,0,d,xb(m.cy+m.y11,m.cx+m.x11),xb(y.cy+y.y11,y.cx+y.x11),!g),u.arc(y.cx,y.cy,O,xb(y.y11,y.x11),xb(y.y01,y.x01),!g))):(u.moveTo(A,R),u.arc(0,0,d,b,_,!g)):u.moveTo(A,R),f>Nb&&E>Nb?C>Nb?(m=Lb(j,D,I,L,f,-C,g),y=Lb(A,R,z,F,f,-C,g),u.lineTo(m.cx+m.x01,m.cy+m.y01),C<N?u.arc(m.cx,m.cy,C,xb(m.y01,m.x01),xb(y.y01,y.x01),!g):(u.arc(m.cx,m.cy,C,xb(m.y01,m.x01),xb(m.y11,m.x11),!g),u.arc(0,0,f,xb(m.cy+m.y11,m.cx+m.x11),xb(y.cy+y.y11,y.cx+y.x11),g),u.arc(y.cx,y.cy,C,xb(y.y11,y.x11),xb(y.y01,y.x01),!g))):u.arc(0,0,f,w,x,g):u.lineTo(j,D)}else u.moveTo(0,0);if(u.closePath(),c)return u=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Cb/2;return[wb(r)*n,kb(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:bb(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:bb(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:bb(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:bb(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:bb(+e),c):i},c.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:bb(+e),c):o},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:bb(+e),c):a},c.context=function(e){return arguments.length?(u=null==e?null:e,c):u},c};function Fb(e){this._context=e}Fb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Ub=function(e){return new Fb(e)};function qb(e){return e[0]}function Bb(e){return e[1]}var Wb=function(){var e=qb,t=Bb,n=bb(!0),r=null,i=Ub,o=null;function a(a){var u,c,s,l=a.length,f=!1;for(null==r&&(o=i(s=Wo())),u=0;u<=l;++u)!(u<l&&n(c=a[u],u,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(c,u,a),+t(c,u,a));if(s)return o=null,s+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:bb(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:bb(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:bb(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a},Hb=function(){var e=qb,t=null,n=bb(0),r=Bb,i=bb(!0),o=null,a=Ub,u=null;function c(c){var s,l,f,d,p,h=c.length,v=!1,g=new Array(h),m=new Array(h);for(null==o&&(u=a(p=Wo())),s=0;s<=h;++s){if(!(s<h&&i(d=c[s],s,c))===v)if(v=!v)l=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),f=s-1;f>=l;--f)u.point(g[f],m[f]);u.lineEnd(),u.areaEnd()}v&&(g[s]=+e(d,s,c),m[s]=+n(d,s,c),u.point(t?+t(d,s,c):g[s],r?+r(d,s,c):m[s]))}if(p)return u=null,p+""||null}function s(){return Wb().defined(i).curve(a).context(o)}return c.x=function(n){return arguments.length?(e="function"==typeof n?n:bb(+n),t=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:bb(+t),c):e},c.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:bb(+e),c):t},c.y=function(e){return arguments.length?(n="function"==typeof e?e:bb(+e),r=null,c):n},c.y0=function(e){return arguments.length?(n="function"==typeof e?e:bb(+e),c):n},c.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:bb(+e),c):r},c.lineX0=c.lineY0=function(){return s().x(e).y(n)},c.lineY1=function(){return s().x(e).y(r)},c.lineX1=function(){return s().x(t).y(n)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:bb(!!e),c):i},c.curve=function(e){return arguments.length?(a=e,null!=o&&(u=a(o)),c):a},c.context=function(e){return arguments.length?(null==e?o=u=null:u=a(o=e),c):o},c},Vb=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},Yb=function(e){return e},Gb=function(){var e=Yb,t=Vb,n=null,r=bb(0),i=bb(Sb),o=bb(0);function a(a){var u,c,s,l,f,d=a.length,p=0,h=new Array(d),v=new Array(d),g=+r.apply(this,arguments),m=Math.min(Sb,Math.max(-Sb,i.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/d,o.apply(this,arguments)),b=y*(m<0?-1:1);for(u=0;u<d;++u)(f=v[h[u]=u]=+e(a[u],u,a))>0&&(p+=f);for(null!=t?h.sort(function(e,n){return t(v[e],v[n])}):null!=n&&h.sort(function(e,t){return n(a[e],a[t])}),u=0,s=p?(m-d*b)/p:0;u<d;++u,g=l)c=h[u],l=g+((f=v[c])>0?f*s:0)+b,v[c]={data:a[c],index:u,value:f,startAngle:g,endAngle:l,padAngle:y};return v}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:bb(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:bb(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:bb(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:bb(+e),a):o},a},$b=Kb(Ub);function Xb(e){this._curve=e}function Kb(e){function t(t){return new Xb(e(t))}return t._curve=e,t}function Qb(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Kb(e)):t()._curve},e}Xb.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Zb=function(){return Qb(Wb().curve($b))},Jb=function(){var e=Hb().curve($b),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Qb(n())},delete e.lineX0,e.lineEndAngle=function(){return Qb(r())},delete e.lineX1,e.lineInnerRadius=function(){return Qb(i())},delete e.lineY0,e.lineOuterRadius=function(){return Qb(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Kb(e)):t()._curve},e},e_=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},t_=Array.prototype.slice;function n_(e){return e.source}function r_(e){return e.target}function i_(e){var t=n_,n=r_,r=qb,i=Bb,o=null;function a(){var a,u=t_.call(arguments),c=t.apply(this,u),s=n.apply(this,u);if(o||(o=a=Wo()),e(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=s,u)),+i.apply(this,u)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:bb(+e),a):r},a.y=function(e){return arguments.length?(i="function"==typeof e?e:bb(+e),a):i},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}function o_(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function a_(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function u_(e,t,n,r,i){var o=e_(t,n),a=e_(t,n=(n+i)/2),u=e_(r,n),c=e_(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function c_(){return i_(o_)}function s_(){return i_(a_)}function l_(){var e=i_(u_);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var f_={draw:function(e,t){var n=Math.sqrt(t/Cb);e.moveTo(n,0),e.arc(0,0,n,0,Sb)}},d_={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},p_=Math.sqrt(1/3),h_=2*p_,v_={draw:function(e,t){var n=Math.sqrt(t/h_),r=n*p_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},g_=Math.sin(Cb/10)/Math.sin(7*Cb/10),m_=Math.sin(Sb/10)*g_,y_=-Math.cos(Sb/10)*g_,b_={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=m_*n,i=y_*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=Sb*o/5,u=Math.cos(a),c=Math.sin(a);e.lineTo(c*n,-u*n),e.lineTo(u*r-c*i,c*r+u*i)}e.closePath()}},__={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},x_=Math.sqrt(3),w_={draw:function(e,t){var n=-Math.sqrt(t/(3*x_));e.moveTo(0,2*n),e.lineTo(-x_*n,-n),e.lineTo(x_*n,-n),e.closePath()}},E_=Math.sqrt(3)/2,T_=1/Math.sqrt(12),k_=3*(T_/2+1),M_={draw:function(e,t){var n=Math.sqrt(t/k_),r=n/2,i=n*T_,o=r,a=n*T_+n,u=-o,c=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(u,c),e.lineTo(-.5*r-E_*i,E_*r+-.5*i),e.lineTo(-.5*o-E_*a,E_*o+-.5*a),e.lineTo(-.5*u-E_*c,E_*u+-.5*c),e.lineTo(-.5*r+E_*i,-.5*i-E_*r),e.lineTo(-.5*o+E_*a,-.5*a-E_*o),e.lineTo(-.5*u+E_*c,-.5*c-E_*u),e.closePath()}},N_=[f_,d_,v_,__,b_,w_,M_],C_=function(){var e=bb(f_),t=bb(64),n=null;function r(){var r;if(n||(n=r=Wo()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:bb(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:bb(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},O_=function(){};function S_(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function P_(e){this._context=e}P_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:S_(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:S_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var A_=function(e){return new P_(e)};function R_(e){this._context=e}R_.prototype={areaStart:O_,areaEnd:O_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:S_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var j_=function(e){return new R_(e)};function D_(e){this._context=e}D_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:S_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var I_=function(e){return new D_(e)};function L_(e,t){this._basis=new P_(e),this._beta=t}L_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,u=t[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*e[c]+(1-this._beta)*(i+r*a),this._beta*t[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var z_=function e(t){function n(e){return 1===t?new P_(e):new L_(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function F_(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function U_(e,t){this._context=e,this._k=(1-t)/6}U_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:F_(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:F_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var q_=function e(t){function n(e){return new U_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function B_(e,t){this._context=e,this._k=(1-t)/6}B_.prototype={areaStart:O_,areaEnd:O_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:F_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var W_=function e(t){function n(e){return new B_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function H_(e,t){this._context=e,this._k=(1-t)/6}H_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:F_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var V_=function e(t){function n(e){return new H_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Y_(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>Nb){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Nb){var s=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*s+e._x1*e._l23_2a-t*e._l12_2a)/l,a=(a*s+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function G_(e,t){this._context=e,this._alpha=t}G_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Y_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $_=function e(t){function n(e){return t?new G_(e,t):new U_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function X_(e,t){this._context=e,this._alpha=t}X_.prototype={areaStart:O_,areaEnd:O_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Y_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var K_=function e(t){function n(e){return t?new X_(e,t):new B_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Q_(e,t){this._context=e,this._alpha=t}Q_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Y_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Z_=function e(t){function n(e){return t?new Q_(e,t):new H_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function J_(e){this._context=e}J_.prototype={areaStart:O_,areaEnd:O_,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var ex=function(e){return new J_(e)};function tx(e){return e<0?-1:1}function nx(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(tx(o)+tx(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function rx(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ix(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,u=(o-r)/3;e._context.bezierCurveTo(r+u,i+u*t,o-u,a-u*n,o,a)}function ox(e){this._context=e}function ax(e){this._context=new ux(e)}function ux(e){this._context=e}function cx(e){return new ox(e)}function sx(e){return new ax(e)}function lx(e){this._context=e}function fx(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}ox.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ix(this,this._t0,rx(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ix(this,rx(this,n=nx(this,e,t)),n);break;default:ix(this,this._t0,n=nx(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(ax.prototype=Object.create(ox.prototype)).point=function(e,t){ox.prototype.point.call(this,t,e)},ux.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},lx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=fx(e),i=fx(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var dx=function(e){return new lx(e)};function px(e,t){this._context=e,this._t=t}px.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var hx=function(e){return new px(e,.5)};function vx(e){return new px(e,0)}function gx(e){return new px(e,1)}var mx=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],u=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},yx=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function bx(e,t){return e[t]}var _x=function(){var e=bb([]),t=yx,n=mx,r=bx;function i(i){var o,a,u=e.apply(this,arguments),c=i.length,s=u.length,l=new Array(s);for(o=0;o<s;++o){for(var f,d=u[o],p=l[o]=new Array(c),h=0;h<c;++h)p[h]=f=[0,+r(i[h],d,h,i)],f.data=i[h];p.key=d}for(o=0,a=t(l);o<s;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:bb(t_.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:bb(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?yx:"function"==typeof e?e:bb(t_.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?mx:e,i):n},i},xx=function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}mx(e,t)}},wx=function(e,t){if((u=e.length)>1)for(var n,r,i,o,a,u,c=0,s=e[t[0]].length;c<s;++c)for(o=a=0,n=0;n<u;++n)(i=(r=e[t[n]][c])[1]-r[0])>=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o},Ex=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<n;++a)u+=e[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}mx(e,t)}},Tx=function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var u=0,c=0,s=0;u<i;++u){for(var l=e[t[u]],f=l[a][1]||0,d=(f-(l[a-1][1]||0))/2,p=0;p<u;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,s+=d*f}n[a-1][1]+=n[a-1][0]=o,c&&(o-=s/c)}n[a-1][1]+=n[a-1][0]=o,mx(e,t)}},kx=function(e){var t=e.map(Mx);return yx(e).sort(function(e,n){return t[e]-t[n]})};function Mx(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}var Nx=function(e){return kx(e).reverse()},Cx=function(e){var t,n,r=e.length,i=e.map(Mx),o=yx(e).sort(function(e,t){return i[t]-i[e]}),a=0,u=0,c=[],s=[];for(t=0;t<r;++t)n=o[t],a<u?(a+=i[n],c.push(n)):(u+=i[n],s.push(n));return s.reverse().concat(c)},Ox=function(e){return yx(e).reverse()},Sx=function(e){return function(){return e}};function Px(e){return e[0]}function Ax(e){return e[1]}function Rx(){this._=null}function jx(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Dx(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Ix(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Lx(e){for(;e.L;)e=e.L;return e}Rx.prototype={constructor:Rx,insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=Lx(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(Dx(this,n),n=(e=n).U),n.C=!1,r.C=!0,Ix(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(Ix(this,n),n=(e=n).U),n.C=!1,r.C=!0,Dx(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,o=e.L,a=e.R;if(n=o?a?Lx(a):o:a,i?i.L===e?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=a,a.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,Dx(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Ix(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,Dx(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,Ix(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Dx(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,Ix(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};var zx=Rx;function Fx(e,t,n,r){var i=[null,null],o=sw.push(i)-1;return i.left=e,i.right=t,n&&qx(i,e,t,n),r&&qx(i,t,e,r),uw[e.index].halfedges.push(o),uw[t.index].halfedges.push(o),i}function Ux(e,t,n){var r=[t,n];return r.left=e,r}function qx(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function Bx(e,t,n,r,i){var o,a=e[0],u=e[1],c=a[0],s=a[1],l=0,f=1,d=u[0]-c,p=u[1]-s;if(o=t-c,d||!(o>0)){if(o/=d,d<0){if(o<l)return;o<f&&(f=o)}else if(d>0){if(o>f)return;o>l&&(l=o)}if(o=r-c,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>l&&(l=o)}else if(d>0){if(o<l)return;o<f&&(f=o)}if(o=n-s,p||!(o>0)){if(o/=p,p<0){if(o<l)return;o<f&&(f=o)}else if(p>0){if(o>f)return;o>l&&(l=o)}if(o=i-s,p||!(o<0)){if(o/=p,p<0){if(o>f)return;o>l&&(l=o)}else if(p>0){if(o<l)return;o<f&&(f=o)}return!(l>0||f<1)||(l>0&&(e[0]=[c+l*d,s+l*p]),f<1&&(e[1]=[c+f*d,s+f*p]),!0)}}}}}function Wx(e,t,n,r,i){var o=e[1];if(o)return!0;var a,u,c=e[0],s=e.left,l=e.right,f=s[0],d=s[1],p=l[0],h=l[1],v=(f+p)/2,g=(d+h)/2;if(h===d){if(v<t||v>=r)return;if(f>p){if(c){if(c[1]>=i)return}else c=[v,n];o=[v,i]}else{if(c){if(c[1]<n)return}else c=[v,i];o=[v,n]}}else if(u=g-(a=(f-p)/(h-d))*v,a<-1||a>1)if(f>p){if(c){if(c[1]>=i)return}else c=[(n-u)/a,n];o=[(i-u)/a,i]}else{if(c){if(c[1]<n)return}else c=[(i-u)/a,i];o=[(n-u)/a,n]}else if(d<h){if(c){if(c[0]>=r)return}else c=[t,a*t+u];o=[r,a*r+u]}else{if(c){if(c[0]<t)return}else c=[r,a*r+u];o=[t,a*t+u]}return e[0]=c,e[1]=o,!0}function Hx(e,t){var n=e.site,r=t.left,i=t.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=t[1],i=t[0]):(r=t[0],i=t[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function Vx(e,t){return t[+(t.left!==e.site)]}function Yx(e,t){return t[+(t.left===e.site)]}var Gx,$x=[];function Xx(){jx(this),this.x=this.y=this.arc=this.site=this.cy=null}function Kx(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var a=i[0],u=i[1],c=r[0]-a,s=r[1]-u,l=o[0]-a,f=o[1]-u,d=2*(c*f-s*l);if(!(d>=-fw)){var p=c*c+s*s,h=l*l+f*f,v=(f*p-s*h)/d,g=(c*h-l*p)/d,m=$x.pop()||new Xx;m.arc=e,m.site=i,m.x=v+a,m.y=(m.cy=g+u)+Math.sqrt(v*v+g*g),e.circle=m;for(var y=null,b=cw._;b;)if(m.y<b.y||m.y===b.y&&m.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}cw.insert(y,m),y||(Gx=m)}}}}function Qx(e){var t=e.circle;t&&(t.P||(Gx=t.N),cw.remove(t),$x.push(t),jx(t),e.circle=null)}var Zx=[];function Jx(){jx(this),this.edge=this.site=this.circle=null}function ew(e){var t=Zx.pop()||new Jx;return t.site=e,t}function tw(e){Qx(e),aw.remove(e),Zx.push(e),jx(e)}function nw(e){var t=e.circle,n=t.x,r=t.cy,i=[n,r],o=e.P,a=e.N,u=[e];tw(e);for(var c=o;c.circle&&Math.abs(n-c.circle.x)<lw&&Math.abs(r-c.circle.cy)<lw;)o=c.P,u.unshift(c),tw(c),c=o;u.unshift(c),Qx(c);for(var s=a;s.circle&&Math.abs(n-s.circle.x)<lw&&Math.abs(r-s.circle.cy)<lw;)a=s.N,u.push(s),tw(s),s=a;u.push(s),Qx(s);var l,f=u.length;for(l=1;l<f;++l)s=u[l],c=u[l-1],qx(s.edge,c.site,s.site,i);c=u[0],(s=u[f-1]).edge=Fx(c.site,s.site,null,i),Kx(c),Kx(s)}function rw(e){for(var t,n,r,i,o=e[0],a=e[1],u=aw._;u;)if((r=iw(u,a)-o)>lw)u=u.L;else{if(!((i=o-ow(u,a))>lw)){r>-lw?(t=u.P,n=u):i>-lw?(t=u,n=u.N):t=n=u;break}if(!u.R){t=u;break}u=u.R}!function(e){uw[e.index]={site:e,halfedges:[]}}(e);var c=ew(e);if(aw.insert(t,c),t||n){if(t===n)return Qx(t),n=ew(t.site),aw.insert(c,n),c.edge=n.edge=Fx(t.site,c.site),Kx(t),void Kx(n);if(n){Qx(t),Qx(n);var s=t.site,l=s[0],f=s[1],d=e[0]-l,p=e[1]-f,h=n.site,v=h[0]-l,g=h[1]-f,m=2*(d*g-p*v),y=d*d+p*p,b=v*v+g*g,_=[(g*y-p*b)/m+l,(d*b-v*y)/m+f];qx(n.edge,s,h,_),c.edge=Fx(s,e,null,_),n.edge=Fx(e,h,null,_),Kx(t),Kx(n)}else c.edge=Fx(t.site,c.site)}}function iw(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var u=(n=a.site)[0],c=n[1],s=c-t;if(!s)return u;var l=u-r,f=1/o-1/s,d=l/s;return f?(-d+Math.sqrt(d*d-2*f*(l*l/(-2*s)-c+s/2+i-o/2)))/f+r:(r+u)/2}function ow(e,t){var n=e.N;if(n)return iw(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var aw,uw,cw,sw,lw=1e-6,fw=1e-12;function dw(e,t){return t[1]-e[1]||t[0]-e[0]}function pw(e,t){var n,r,i,o=e.sort(dw).pop();for(sw=[],uw=new Array(e.length),aw=new zx,cw=new zx;;)if(i=Gx,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(rw(o),n=o[0],r=o[1]),o=e.pop();else{if(!i)break;nw(i.arc)}if(function(){for(var e,t,n,r,i=0,o=uw.length;i<o;++i)if((e=uw[i])&&(r=(t=e.halfedges).length)){var a=new Array(r),u=new Array(r);for(n=0;n<r;++n)a[n]=n,u[n]=Hx(e,sw[t[n]]);for(a.sort(function(e,t){return u[t]-u[e]}),n=0;n<r;++n)u[n]=t[a[n]];for(n=0;n<r;++n)t[n]=u[n]}}(),t){var a=+t[0][0],u=+t[0][1],c=+t[1][0],s=+t[1][1];!function(e,t,n,r){for(var i,o=sw.length;o--;)Wx(i=sw[o],e,t,n,r)&&Bx(i,e,t,n,r)&&(Math.abs(i[0][0]-i[1][0])>lw||Math.abs(i[0][1]-i[1][1])>lw)||delete sw[o]}(a,u,c,s),function(e,t,n,r){var i,o,a,u,c,s,l,f,d,p,h,v,g=uw.length,m=!0;for(i=0;i<g;++i)if(o=uw[i]){for(a=o.site,u=(c=o.halfedges).length;u--;)sw[c[u]]||c.splice(u,1);for(u=0,s=c.length;u<s;)h=(p=Yx(o,sw[c[u]]))[0],v=p[1],f=(l=Vx(o,sw[c[++u%s]]))[0],d=l[1],(Math.abs(h-f)>lw||Math.abs(v-d)>lw)&&(c.splice(u,0,sw.push(Ux(a,p,Math.abs(h-e)<lw&&r-v>lw?[e,Math.abs(f-e)<lw?d:r]:Math.abs(v-r)<lw&&n-h>lw?[Math.abs(d-r)<lw?f:n,r]:Math.abs(h-n)<lw&&v-t>lw?[n,Math.abs(f-n)<lw?d:t]:Math.abs(v-t)<lw&&h-e>lw?[Math.abs(d-t)<lw?f:e,t]:null))-1),++s);s&&(m=!1)}if(m){var y,b,_,x=1/0;for(i=0,m=null;i<g;++i)(o=uw[i])&&(_=(y=(a=o.site)[0]-e)*y+(b=a[1]-t)*b)<x&&(x=_,m=o);if(m){var w=[e,t],E=[e,r],T=[n,r],k=[n,t];m.halfedges.push(sw.push(Ux(a=m.site,w,E))-1,sw.push(Ux(a,E,T))-1,sw.push(Ux(a,T,k))-1,sw.push(Ux(a,k,w))-1)}}for(i=0;i<g;++i)(o=uw[i])&&(o.halfedges.length||delete uw[i])}(a,u,c,s)}this.edges=sw,this.cells=uw,aw=cw=sw=uw=null}pw.prototype={constructor:pw,polygons:function(){var e=this.edges;return this.cells.map(function(t){var n=t.halfedges.map(function(n){return Vx(t,e[n])});return n.data=t.site.data,n})},triangles:function(){var e=[],t=this.edges;return this.cells.forEach(function(n,r){if(o=(i=n.halfedges).length)for(var i,o,a,u,c,s,l=n.site,f=-1,d=t[i[o-1]],p=d.left===l?d.right:d.left;++f<o;)a=p,p=(d=t[i[f]]).left===l?d.right:d.left,a&&p&&r<a.index&&r<p.index&&(c=a,s=p,((u=l)[0]-s[0])*(c[1]-u[1])-(u[0]-c[0])*(s[1]-u[1])<0)&&e.push([l.data,a.data,p.data])}),e},links:function(){return this.edges.filter(function(e){return e.right}).map(function(e){return{source:e.left.data,target:e.right.data}})},find:function(e,t,n){for(var r,i,o=this,a=o._found||0,u=o.cells.length;!(i=o.cells[a]);)if(++a>=u)return null;var c=e-i.site[0],s=t-i.site[1],l=c*c+s*s;do{i=o.cells[r=a],a=null,i.halfedges.forEach(function(n){var r=o.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=e-u[0],s=t-u[1],f=c*c+s*s;f<l&&(l=f,a=u.index)}})}while(null!==a);return o._found=r,null==n||l<=n*n?i.site:null}};var hw=function(){var e=Px,t=Ax,n=null;function r(r){return new pw(r.map(function(n,i){var o=[Math.round(e(n,i,r)/lw)*lw,Math.round(t(n,i,r)/lw)*lw];return o.index=i,o.data=n,o}),n)}return r.polygons=function(e){return r(e).polygons()},r.links=function(e){return r(e).links()},r.triangles=function(e){return r(e).triangles()},r.x=function(t){return arguments.length?(e="function"==typeof t?t:Sx(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:Sx(+e),r):t},r.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r},vw=function(e){return function(){return e}};function gw(e,t,n){this.target=e,this.type=t,this.transform=n}function mw(e,t,n){this.k=e,this.x=t,this.y=n}mw.prototype={constructor:mw,scale:function(e){return 1===e?this:new mw(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new mw(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var yw=new mw(1,0,0);function bw(e){return e.__zoom||yw}function _w(){Ge.stopImmediatePropagation()}bw.prototype=mw.prototype;var xw=function(){Ge.preventDefault(),Ge.stopImmediatePropagation()};function ww(){return!Ge.button}function Ew(){var e,t,n=this;return n instanceof SVGElement?(e=(n=n.ownerSVGElement||n).width.baseVal.value,t=n.height.baseVal.value):(e=n.clientWidth,t=n.clientHeight),[[0,0],[e,t]]}function Tw(){return this.__zoom||yw}function kw(){return-Ge.deltaY*(Ge.deltaMode?120:1)/500}function Mw(){return"ontouchstart"in this}function Nw(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var Cw=function(){var e,t,n=ww,r=Ew,i=Nw,o=kw,a=Mw,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],s=250,l=sr,f=[],d=de("start","zoom","end"),p=500,h=150,v=0;function g(e){e.property("__zoom",Tw).on("wheel.zoom",E).on("mousedown.zoom",T).on("dblclick.zoom",k).filter(a).on("touchstart.zoom",M).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new mw(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new mw(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function _(e,t,n){e.on("start.zoom",function(){x(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).end()}).tween("zoom",function(){var e=arguments,i=x(this,e),o=r.apply(this,e),a=n||b(o),u=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=this.__zoom,s="function"==typeof t?t.apply(this,e):t,f=l(c.invert(a).concat(u/c.k),s.invert(a).concat(u/s.k));return function(e){if(1===e)e=s;else{var t=f(e),n=u/t[2];e=new mw(n,a[0]-t[0]*n,a[1]-t[1]*n)}i.zoom(null,e)}})}function x(e,t){for(var n,r=0,i=f.length;r<i;++r)if((n=f[r]).that===e)return n;return new w(e,t)}function w(e,t){this.that=e,this.args=t,this.index=-1,this.active=0,this.extent=r.apply(e,t)}function E(){if(n.apply(this,arguments)){var e=x(this,arguments),t=this.__zoom,r=Math.max(u[0],Math.min(u[1],t.k*Math.pow(2,o.apply(this,arguments)))),a=ft(this);if(e.wheel)e.mouse[0][0]===a[0]&&e.mouse[0][1]===a[1]||(e.mouse[1]=t.invert(e.mouse[0]=a)),clearTimeout(e.wheel);else{if(t.k===r)return;e.mouse=[a,t.invert(a)],ni(this),e.start()}xw(),e.wheel=setTimeout(function(){e.wheel=null,e.end()},h),e.zoom("mouse",i(y(m(t,r),e.mouse[0],e.mouse[1]),e.extent,c))}}function T(){if(!t&&n.apply(this,arguments)){var e=x(this,arguments),r=it(Ge.view).on("mousemove.zoom",function(){if(xw(),!e.moved){var t=Ge.clientX-a,n=Ge.clientY-u;e.moved=t*t+n*n>v}e.zoom("mouse",i(y(e.that.__zoom,e.mouse[0]=ft(e.that),e.mouse[1]),e.extent,c))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),yt(Ge.view,e.moved),xw(),e.end()},!0),o=ft(this),a=Ge.clientX,u=Ge.clientY;mt(Ge.view),_w(),e.mouse=[o,this.__zoom.invert(o)],ni(this),e.start()}}function k(){if(n.apply(this,arguments)){var e=this.__zoom,t=ft(this),o=e.invert(t),a=e.k*(Ge.shiftKey?.5:2),u=i(y(m(e,a),t,o),r.apply(this,arguments),c);xw(),s>0?it(this).transition().duration(s).call(_,u,t):it(this).call(g.transform,u)}}function M(){if(n.apply(this,arguments)){var t,r,i,o,a=x(this,arguments),u=Ge.changedTouches,c=u.length;for(_w(),r=0;r<c;++r)i=u[r],o=[o=pt(this,u,i.identifier),this.__zoom.invert(o),i.identifier],a.touch0?a.touch1||(a.touch1=o):(a.touch0=o,t=!0);if(e&&(e=clearTimeout(e),!a.touch1))return a.end(),void((o=it(this).on("dblclick.zoom"))&&o.apply(this,arguments));t&&(e=setTimeout(function(){e=null},p),ni(this),a.start())}}function N(){var t,n,r,o,a=x(this,arguments),u=Ge.changedTouches,s=u.length;for(xw(),e&&(e=clearTimeout(e)),t=0;t<s;++t)n=u[t],r=pt(this,u,n.identifier),a.touch0&&a.touch0[2]===n.identifier?a.touch0[0]=r:a.touch1&&a.touch1[2]===n.identifier&&(a.touch1[0]=r);if(n=a.that.__zoom,a.touch1){var l=a.touch0[0],f=a.touch0[1],d=a.touch1[0],p=a.touch1[1],h=(h=d[0]-l[0])*h+(h=d[1]-l[1])*h,v=(v=p[0]-f[0])*v+(v=p[1]-f[1])*v;n=m(n,Math.sqrt(h/v)),r=[(l[0]+d[0])/2,(l[1]+d[1])/2],o=[(f[0]+p[0])/2,(f[1]+p[1])/2]}else{if(!a.touch0)return;r=a.touch0[0],o=a.touch0[1]}a.zoom("touch",i(y(n,r,o),a.extent,c))}function C(){var e,n,r=x(this,arguments),i=Ge.changedTouches,o=i.length;for(_w(),t&&clearTimeout(t),t=setTimeout(function(){t=null},p),e=0;e<o;++e)n=i[e],r.touch0&&r.touch0[2]===n.identifier?delete r.touch0:r.touch1&&r.touch1[2]===n.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0?r.touch0[1]=this.__zoom.invert(r.touch0[0]):r.end()}return g.transform=function(e,t){var n=e.selection?e.selection():e;n.property("__zoom",Tw),e!==n?_(e,t):n.interrupt().each(function(){x(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},g.scaleBy=function(e,t){g.scaleTo(e,function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)})},g.scaleTo=function(e,t){g.transform(e,function(){var e=r.apply(this,arguments),n=this.__zoom,o=b(e),a=n.invert(o),u="function"==typeof t?t.apply(this,arguments):t;return i(y(m(n,u),o,a),e,c)})},g.translateBy=function(e,t,n){g.transform(e,function(){return i(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),c)})},g.translateTo=function(e,t,n){g.transform(e,function(){var e=r.apply(this,arguments),o=this.__zoom,a=b(e);return i(yw.translate(a[0],a[1]).scale(o.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)})},w.prototype={start:function(){return 1==++this.active&&(this.index=f.push(this)-1,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(f.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(e){Ze(new gw(g,e,this.that.__zoom),d.apply,d,[e,this.that,this.args])}},g.wheelDelta=function(e){return arguments.length?(o="function"==typeof e?e:vw(+e),g):o},g.filter=function(e){return arguments.length?(n="function"==typeof e?e:vw(!!e),g):n},g.touchable=function(e){return arguments.length?(a="function"==typeof e?e:vw(!!e),g):a},g.extent=function(e){return arguments.length?(r="function"==typeof e?e:vw([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),g):r},g.scaleExtent=function(e){return arguments.length?(u[0]=+e[0],u[1]=+e[1],g):[u[0],u[1]]},g.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],g):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},g.constrain=function(e){return arguments.length?(i=e,g):i},g.duration=function(e){return arguments.length?(s=+e,g):s},g.interpolate=function(e){return arguments.length?(l=e,g):l},g.on=function(){var e=d.on.apply(d,arguments);return e===d?g:e},g.clickDistance=function(e){return arguments.length?(v=(e=+e)*e,g):Math.sqrt(v)},g};n.d(t,"version",function(){return"5.7.0"}),n.d(t,"bisect",function(){return c}),n.d(t,"bisectRight",function(){return a}),n.d(t,"bisectLeft",function(){return u}),n.d(t,"ascending",function(){return r}),n.d(t,"bisector",function(){return i}),n.d(t,"cross",function(){return f}),n.d(t,"descending",function(){return d}),n.d(t,"deviation",function(){return v}),n.d(t,"extent",function(){return g}),n.d(t,"histogram",function(){return S}),n.d(t,"thresholdFreedmanDiaconis",function(){return A}),n.d(t,"thresholdScott",function(){return R}),n.d(t,"thresholdSturges",function(){return O}),n.d(t,"max",function(){return j}),n.d(t,"mean",function(){return D}),n.d(t,"median",function(){return I}),n.d(t,"merge",function(){return L}),n.d(t,"min",function(){return z}),n.d(t,"pairs",function(){return s}),n.d(t,"permute",function(){return F}),n.d(t,"quantile",function(){return P}),n.d(t,"range",function(){return w}),n.d(t,"scan",function(){return U}),n.d(t,"shuffle",function(){return q}),n.d(t,"sum",function(){return B}),n.d(t,"ticks",function(){return M}),n.d(t,"tickIncrement",function(){return N}),n.d(t,"tickStep",function(){return C}),n.d(t,"transpose",function(){return W}),n.d(t,"variance",function(){return h}),n.d(t,"zip",function(){return V}),n.d(t,"axisTop",function(){return re}),n.d(t,"axisRight",function(){return ie}),n.d(t,"axisBottom",function(){return oe}),n.d(t,"axisLeft",function(){return ae}),n.d(t,"brush",function(){return No}),n.d(t,"brushX",function(){return ko}),n.d(t,"brushY",function(){return Mo}),n.d(t,"brushSelection",function(){return To}),n.d(t,"chord",function(){return Do}),n.d(t,"ribbon",function(){return Xo}),n.d(t,"nest",function(){return Jo}),n.d(t,"set",function(){return ua}),n.d(t,"map",function(){return Zo}),n.d(t,"keys",function(){return ca}),n.d(t,"values",function(){return sa}),n.d(t,"entries",function(){return la}),n.d(t,"color",function(){return qt}),n.d(t,"rgb",function(){return Vt}),n.d(t,"hsl",function(){return Xt}),n.d(t,"lab",function(){return ln}),n.d(t,"hcl",function(){return yn}),n.d(t,"lch",function(){return mn}),n.d(t,"gray",function(){return sn}),n.d(t,"cubehelix",function(){return Mn}),n.d(t,"contours",function(){return _a}),n.d(t,"contourDensity",function(){return Ma}),n.d(t,"dispatch",function(){return de}),n.d(t,"drag",function(){return kt}),n.d(t,"dragDisable",function(){return mt}),n.d(t,"dragEnable",function(){return yt}),n.d(t,"dsvFormat",function(){return Ra}),n.d(t,"csvParse",function(){return Da}),n.d(t,"csvParseRows",function(){return Ia}),n.d(t,"csvFormat",function(){return La}),n.d(t,"csvFormatRows",function(){return za}),n.d(t,"tsvParse",function(){return Ua}),n.d(t,"tsvParseRows",function(){return qa}),n.d(t,"tsvFormat",function(){return Ba}),n.d(t,"tsvFormatRows",function(){return Wa}),n.d(t,"easeLinear",function(){return fi}),n.d(t,"easeQuad",function(){return hi}),n.d(t,"easeQuadIn",function(){return di}),n.d(t,"easeQuadOut",function(){return pi}),n.d(t,"easeQuadInOut",function(){return hi}),n.d(t,"easeCubic",function(){return mi}),n.d(t,"easeCubicIn",function(){return vi}),n.d(t,"easeCubicOut",function(){return gi}),n.d(t,"easeCubicInOut",function(){return mi}),n.d(t,"easePoly",function(){return _i}),n.d(t,"easePolyIn",function(){return yi}),n.d(t,"easePolyOut",function(){return bi}),n.d(t,"easePolyInOut",function(){return _i}),n.d(t,"easeSin",function(){return ki}),n.d(t,"easeSinIn",function(){return Ei}),n.d(t,"easeSinOut",function(){return Ti}),n.d(t,"easeSinInOut",function(){return ki}),n.d(t,"easeExp",function(){return Ci}),n.d(t,"easeExpIn",function(){return Mi}),n.d(t,"easeExpOut",function(){return Ni}),n.d(t,"easeExpInOut",function(){return Ci}),n.d(t,"easeCircle",function(){return Pi}),n.d(t,"easeCircleIn",function(){return Oi}),n.d(t,"easeCircleOut",function(){return Si}),n.d(t,"easeCircleInOut",function(){return Pi}),n.d(t,"easeBounce",function(){return Wi}),n.d(t,"easeBounceIn",function(){return Bi}),n.d(t,"easeBounceOut",function(){return Wi}),n.d(t,"easeBounceInOut",function(){return Hi}),n.d(t,"easeBack",function(){return Gi}),n.d(t,"easeBackIn",function(){return Vi}),n.d(t,"easeBackOut",function(){return Yi}),n.d(t,"easeBackInOut",function(){return Gi}),n.d(t,"easeElastic",function(){return Ki}),n.d(t,"easeElasticIn",function(){return Xi}),n.d(t,"easeElasticOut",function(){return Ki}),n.d(t,"easeElasticInOut",function(){return Qi}),n.d(t,"blob",function(){return Va}),n.d(t,"buffer",function(){return Ga}),n.d(t,"dsv",function(){return Qa}),n.d(t,"csv",function(){return Za}),n.d(t,"tsv",function(){return Ja}),n.d(t,"image",function(){return eu}),n.d(t,"json",function(){return nu}),n.d(t,"text",function(){return Xa}),n.d(t,"xml",function(){return iu}),n.d(t,"html",function(){return ou}),n.d(t,"svg",function(){return au}),n.d(t,"forceCenter",function(){return uu}),n.d(t,"forceCollide",function(){return _u}),n.d(t,"forceLink",function(){return Eu}),n.d(t,"forceManyBody",function(){return Ou}),n.d(t,"forceRadial",function(){return Su}),n.d(t,"forceSimulation",function(){return Cu}),n.d(t,"forceX",function(){return Pu}),n.d(t,"forceY",function(){return Au}),n.d(t,"formatDefaultLocale",function(){return $u}),n.d(t,"format",function(){return Uu}),n.d(t,"formatPrefix",function(){return qu}),n.d(t,"formatLocale",function(){return Gu}),n.d(t,"formatSpecifier",function(){return Iu}),n.d(t,"precisionFixed",function(){return Xu}),n.d(t,"precisionPrefix",function(){return Ku}),n.d(t,"precisionRound",function(){return Qu}),n.d(t,"geoArea",function(){return Wc}),n.d(t,"geoBounds",function(){return Ds}),n.d(t,"geoCentroid",function(){return Gs}),n.d(t,"geoCircle",function(){return il}),n.d(t,"geoClipAntimeridian",function(){return vl}),n.d(t,"geoClipCircle",function(){return gl}),n.d(t,"geoClipExtent",function(){return Tl}),n.d(t,"geoClipRectangle",function(){return _l}),n.d(t,"geoContains",function(){return Bl}),n.d(t,"geoDistance",function(){return Rl}),n.d(t,"geoGraticule",function(){return Vl}),n.d(t,"geoGraticule10",function(){return Yl}),n.d(t,"geoInterpolate",function(){return Ql}),n.d(t,"geoLength",function(){return Sl}),n.d(t,"geoPath",function(){return Kf}),n.d(t,"geoAlbers",function(){return vd}),n.d(t,"geoAlbersUsa",function(){return gd}),n.d(t,"geoAzimuthalEqualArea",function(){return _d}),n.d(t,"geoAzimuthalEqualAreaRaw",function(){return bd}),n.d(t,"geoAzimuthalEquidistant",function(){return wd}),n.d(t,"geoAzimuthalEquidistantRaw",function(){return xd}),n.d(t,"geoConicConformal",function(){return Cd}),n.d(t,"geoConicConformalRaw",function(){return Nd}),n.d(t,"geoConicEqualArea",function(){return hd}),n.d(t,"geoConicEqualAreaRaw",function(){return pd}),n.d(t,"geoConicEquidistant",function(){return Ad}),n.d(t,"geoConicEquidistantRaw",function(){return Pd}),n.d(t,"geoEqualEarth",function(){return Fd}),n.d(t,"geoEqualEarthRaw",function(){return zd}),n.d(t,"geoEquirectangular",function(){return Sd}),n.d(t,"geoEquirectangularRaw",function(){return Od}),n.d(t,"geoGnomonic",function(){return qd}),n.d(t,"geoGnomonicRaw",function(){return Ud}),n.d(t,"geoIdentity",function(){return Wd}),n.d(t,"geoProjection",function(){return ld}),n.d(t,"geoProjectionMutator",function(){return fd}),n.d(t,"geoMercator",function(){return Td}),n.d(t,"geoMercatorRaw",function(){return Ed}),n.d(t,"geoNaturalEarth1",function(){return Vd}),n.d(t,"geoNaturalEarth1Raw",function(){return Hd}),n.d(t,"geoOrthographic",function(){return Gd}),n.d(t,"geoOrthographicRaw",function(){return Yd}),n.d(t,"geoStereographic",function(){return Xd}),n.d(t,"geoStereographicRaw",function(){return $d}),n.d(t,"geoTransverseMercator",function(){return Qd}),n.d(t,"geoTransverseMercatorRaw",function(){return Kd}),n.d(t,"geoRotation",function(){return tl}),n.d(t,"geoStream",function(){return Dc}),n.d(t,"geoTransform",function(){return Qf}),n.d(t,"cluster",function(){return tp}),n.d(t,"hierarchy",function(){return rp}),n.d(t,"pack",function(){return Np}),n.d(t,"packSiblings",function(){return wp}),n.d(t,"packEnclose",function(){return sp}),n.d(t,"partition",function(){return Rp}),n.d(t,"stratify",function(){return Fp}),n.d(t,"tree",function(){return Yp}),n.d(t,"treemap",function(){return Qp}),n.d(t,"treemapBinary",function(){return Zp}),n.d(t,"treemapDice",function(){return Ap}),n.d(t,"treemapSlice",function(){return Gp}),n.d(t,"treemapSliceDice",function(){return Jp}),n.d(t,"treemapSquarify",function(){return Kp}),n.d(t,"treemapResquarify",function(){return eh}),n.d(t,"interpolate",function(){return Qn}),n.d(t,"interpolateArray",function(){return Un}),n.d(t,"interpolateBasis",function(){return On}),n.d(t,"interpolateBasisClosed",function(){return Sn}),n.d(t,"interpolateDate",function(){return qn}),n.d(t,"interpolateDiscrete",function(){return Zn}),n.d(t,"interpolateHue",function(){return Jn}),n.d(t,"interpolateNumber",function(){return Bn}),n.d(t,"interpolateObject",function(){return Wn}),n.d(t,"interpolateRound",function(){return er}),n.d(t,"interpolateString",function(){return Kn}),n.d(t,"interpolateTransformCss",function(){return or}),n.d(t,"interpolateTransformSvg",function(){return ar}),n.d(t,"interpolateZoom",function(){return sr}),n.d(t,"interpolateRgb",function(){return In}),n.d(t,"interpolateRgbBasis",function(){return zn}),n.d(t,"interpolateRgbBasisClosed",function(){return Fn}),n.d(t,"interpolateHsl",function(){return fr}),n.d(t,"interpolateHslLong",function(){return dr}),n.d(t,"interpolateLab",function(){return pr}),n.d(t,"interpolateHcl",function(){return vr}),n.d(t,"interpolateHclLong",function(){return gr}),n.d(t,"interpolateCubehelix",function(){return yr}),n.d(t,"interpolateCubehelixLong",function(){return br}),n.d(t,"piecewise",function(){return _r}),n.d(t,"quantize",function(){return Er}),n.d(t,"path",function(){return Wo}),n.d(t,"polygonArea",function(){return th}),n.d(t,"polygonCentroid",function(){return nh}),n.d(t,"polygonHull",function(){return ah}),n.d(t,"polygonContains",function(){return uh}),n.d(t,"polygonLength",function(){return ch}),n.d(t,"quadtree",function(){return hu}),n.d(t,"randomUniform",function(){return lh}),n.d(t,"randomNormal",function(){return fh}),n.d(t,"randomLogNormal",function(){return dh}),n.d(t,"randomBates",function(){return hh}),n.d(t,"randomIrwinHall",function(){return ph}),n.d(t,"randomExponential",function(){return vh}),n.d(t,"scaleBand",function(){return xh}),n.d(t,"scalePoint",function(){return wh}),n.d(t,"scaleIdentity",function(){return jh}),n.d(t,"scaleLinear",function(){return Rh}),n.d(t,"scaleLog",function(){return Bh}),n.d(t,"scaleOrdinal",function(){return _h}),n.d(t,"scaleImplicit",function(){return bh}),n.d(t,"scalePow",function(){return Hh}),n.d(t,"scaleSqrt",function(){return Vh}),n.d(t,"scaleQuantile",function(){return Yh}),n.d(t,"scaleQuantize",function(){return Gh}),n.d(t,"scaleThreshold",function(){return $h}),n.d(t,"scaleTime",function(){return Hm}),n.d(t,"scaleUtc",function(){return Vm}),n.d(t,"scaleSequential",function(){return Ym}),n.d(t,"scaleDiverging",function(){return Gm}),n.d(t,"schemeCategory10",function(){return Xm}),n.d(t,"schemeAccent",function(){return Km}),n.d(t,"schemeDark2",function(){return Qm}),n.d(t,"schemePaired",function(){return Zm}),n.d(t,"schemePastel1",function(){return Jm}),n.d(t,"schemePastel2",function(){return ey}),n.d(t,"schemeSet1",function(){return ty}),n.d(t,"schemeSet2",function(){return ny}),n.d(t,"schemeSet3",function(){return ry}),n.d(t,"interpolateBrBG",function(){return ay}),n.d(t,"schemeBrBG",function(){return oy}),n.d(t,"interpolatePRGn",function(){return cy}),n.d(t,"schemePRGn",function(){return uy}),n.d(t,"interpolatePiYG",function(){return ly}),n.d(t,"schemePiYG",function(){return sy}),n.d(t,"interpolatePuOr",function(){return dy}),n.d(t,"schemePuOr",function(){return fy}),n.d(t,"interpolateRdBu",function(){return hy}),n.d(t,"schemeRdBu",function(){return py}),n.d(t,"interpolateRdGy",function(){return gy}),n.d(t,"schemeRdGy",function(){return vy}),n.d(t,"interpolateRdYlBu",function(){return yy}),n.d(t,"schemeRdYlBu",function(){return my}),n.d(t,"interpolateRdYlGn",function(){return _y}),n.d(t,"schemeRdYlGn",function(){return by}),n.d(t,"interpolateSpectral",function(){return wy}),n.d(t,"schemeSpectral",function(){return xy}),n.d(t,"interpolateBuGn",function(){return Ty}),n.d(t,"schemeBuGn",function(){return Ey}),n.d(t,"interpolateBuPu",function(){return My}),n.d(t,"schemeBuPu",function(){return ky}),n.d(t,"interpolateGnBu",function(){return Cy}),n.d(t,"schemeGnBu",function(){return Ny}),n.d(t,"interpolateOrRd",function(){return Sy}),n.d(t,"schemeOrRd",function(){return Oy}),n.d(t,"interpolatePuBuGn",function(){return Ay}),n.d(t,"schemePuBuGn",function(){return Py}),n.d(t,"interpolatePuBu",function(){return jy}),n.d(t,"schemePuBu",function(){return Ry}),n.d(t,"interpolatePuRd",function(){return Iy}),n.d(t,"schemePuRd",function(){return Dy}),n.d(t,"interpolateRdPu",function(){return zy}),n.d(t,"schemeRdPu",function(){return Ly}),n.d(t,"interpolateYlGnBu",function(){return Uy}),n.d(t,"schemeYlGnBu",function(){return Fy}),n.d(t,"interpolateYlGn",function(){return By}),n.d(t,"schemeYlGn",function(){return qy}),n.d(t,"interpolateYlOrBr",function(){return Hy}),n.d(t,"schemeYlOrBr",function(){return Wy}),n.d(t,"interpolateYlOrRd",function(){return Yy}),n.d(t,"schemeYlOrRd",function(){return Vy}),n.d(t,"interpolateBlues",function(){return $y}),n.d(t,"schemeBlues",function(){return Gy}),n.d(t,"interpolateGreens",function(){return Ky}),n.d(t,"schemeGreens",function(){return Xy}),n.d(t,"interpolateGreys",function(){return Zy}),n.d(t,"schemeGreys",function(){return Qy}),n.d(t,"interpolatePurples",function(){return eb}),n.d(t,"schemePurples",function(){return Jy}),n.d(t,"interpolateReds",function(){return nb}),n.d(t,"schemeReds",function(){return tb}),n.d(t,"interpolateOranges",function(){return ib}),n.d(t,"schemeOranges",function(){return rb}),n.d(t,"interpolateCubehelixDefault",function(){return ob}),n.d(t,"interpolateRainbow",function(){return sb}),n.d(t,"interpolateWarm",function(){return ab}),n.d(t,"interpolateCool",function(){return ub}),n.d(t,"interpolateSinebow",function(){return pb}),n.d(t,"interpolateViridis",function(){return vb}),n.d(t,"interpolateMagma",function(){return gb}),n.d(t,"interpolateInferno",function(){return mb}),n.d(t,"interpolatePlasma",function(){return yb}),n.d(t,"create",function(){return ot}),n.d(t,"creator",function(){return ge}),n.d(t,"local",function(){return ut}),n.d(t,"matcher",function(){return Te}),n.d(t,"mouse",function(){return ft}),n.d(t,"namespace",function(){return ve}),n.d(t,"namespaces",function(){return he}),n.d(t,"clientPoint",function(){return lt}),n.d(t,"select",function(){return it}),n.d(t,"selectAll",function(){return dt}),n.d(t,"selection",function(){return rt}),n.d(t,"selector",function(){return ye}),n.d(t,"selectorAll",function(){return _e}),n.d(t,"style",function(){return Ae}),n.d(t,"touch",function(){return pt}),n.d(t,"touches",function(){return ht}),n.d(t,"window",function(){return Pe}),n.d(t,"event",function(){return Ge}),n.d(t,"customEvent",function(){return Ze}),n.d(t,"arc",function(){return zb}),n.d(t,"area",function(){return Hb}),n.d(t,"line",function(){return Wb}),n.d(t,"pie",function(){return Gb}),n.d(t,"areaRadial",function(){return Jb}),n.d(t,"radialArea",function(){return Jb}),n.d(t,"lineRadial",function(){return Zb}),n.d(t,"radialLine",function(){return Zb}),n.d(t,"pointRadial",function(){return e_}),n.d(t,"linkHorizontal",function(){return c_}),n.d(t,"linkVertical",function(){return s_}),n.d(t,"linkRadial",function(){return l_}),n.d(t,"symbol",function(){return C_}),n.d(t,"symbols",function(){return N_}),n.d(t,"symbolCircle",function(){return f_}),n.d(t,"symbolCross",function(){return d_}),n.d(t,"symbolDiamond",function(){return v_}),n.d(t,"symbolSquare",function(){return __}),n.d(t,"symbolStar",function(){return b_}),n.d(t,"symbolTriangle",function(){return w_}),n.d(t,"symbolWye",function(){return M_}),n.d(t,"curveBasisClosed",function(){return j_}),n.d(t,"curveBasisOpen",function(){return I_}),n.d(t,"curveBasis",function(){return A_}),n.d(t,"curveBundle",function(){return z_}),n.d(t,"curveCardinalClosed",function(){return W_}),n.d(t,"curveCardinalOpen",function(){return V_}),n.d(t,"curveCardinal",function(){return q_}),n.d(t,"curveCatmullRomClosed",function(){return K_}),n.d(t,"curveCatmullRomOpen",function(){return Z_}),n.d(t,"curveCatmullRom",function(){return $_}),n.d(t,"curveLinearClosed",function(){return ex}),n.d(t,"curveLinear",function(){return Ub}),n.d(t,"curveMonotoneX",function(){return cx}),n.d(t,"curveMonotoneY",function(){return sx}),n.d(t,"curveNatural",function(){return dx}),n.d(t,"curveStep",function(){return hx}),n.d(t,"curveStepAfter",function(){return gx}),n.d(t,"curveStepBefore",function(){return vx}),n.d(t,"stack",function(){return _x}),n.d(t,"stackOffsetExpand",function(){return xx}),n.d(t,"stackOffsetDiverging",function(){return wx}),n.d(t,"stackOffsetNone",function(){return mx}),n.d(t,"stackOffsetSilhouette",function(){return Ex}),n.d(t,"stackOffsetWiggle",function(){return Tx}),n.d(t,"stackOrderAscending",function(){return kx}),n.d(t,"stackOrderDescending",function(){return Nx}),n.d(t,"stackOrderInsideOut",function(){return Cx}),n.d(t,"stackOrderNone",function(){return yx}),n.d(t,"stackOrderReverse",function(){return Ox}),n.d(t,"timeInterval",function(){return Qh}),n.d(t,"timeMillisecond",function(){return Jh}),n.d(t,"timeMilliseconds",function(){return ev}),n.d(t,"utcMillisecond",function(){return Jh}),n.d(t,"utcMilliseconds",function(){return ev}),n.d(t,"timeSecond",function(){return iv}),n.d(t,"timeSeconds",function(){return ov}),n.d(t,"utcSecond",function(){return iv}),n.d(t,"utcSeconds",function(){return ov}),n.d(t,"timeMinute",function(){return uv}),n.d(t,"timeMinutes",function(){return cv}),n.d(t,"timeHour",function(){return lv}),n.d(t,"timeHours",function(){return fv}),n.d(t,"timeDay",function(){return pv}),n.d(t,"timeDays",function(){return hv}),n.d(t,"timeWeek",function(){return gv}),n.d(t,"timeWeeks",function(){return Ev}),n.d(t,"timeSunday",function(){return gv}),n.d(t,"timeSundays",function(){return Ev}),n.d(t,"timeMonday",function(){return mv}),n.d(t,"timeMondays",function(){return Tv}),n.d(t,"timeTuesday",function(){return yv}),n.d(t,"timeTuesdays",function(){return kv}),n.d(t,"timeWednesday",function(){return bv}),n.d(t,"timeWednesdays",function(){return Mv}),n.d(t,"timeThursday",function(){return _v}),n.d(t,"timeThursdays",function(){return Nv}),n.d(t,"timeFriday",function(){return xv}),n.d(t,"timeFridays",function(){return Cv}),n.d(t,"timeSaturday",function(){return wv}),n.d(t,"timeSaturdays",function(){return Ov}),n.d(t,"timeMonth",function(){return Pv}),n.d(t,"timeMonths",function(){return Av}),n.d(t,"timeYear",function(){return jv}),n.d(t,"timeYears",function(){return Dv}),n.d(t,"utcMinute",function(){return Lv}),n.d(t,"utcMinutes",function(){return zv}),n.d(t,"utcHour",function(){return Uv}),n.d(t,"utcHours",function(){return qv}),n.d(t,"utcDay",function(){return Wv}),n.d(t,"utcDays",function(){return Hv}),n.d(t,"utcWeek",function(){return Yv}),n.d(t,"utcWeeks",function(){return Jv}),n.d(t,"utcSunday",function(){return Yv}),n.d(t,"utcSundays",function(){return Jv}),n.d(t,"utcMonday",function(){return Gv}),n.d(t,"utcMondays",function(){return eg}),n.d(t,"utcTuesday",function(){return $v}),n.d(t,"utcTuesdays",function(){return tg}),n.d(t,"utcWednesday",function(){return Xv}),n.d(t,"utcWednesdays",function(){return ng}),n.d(t,"utcThursday",function(){return Kv}),n.d(t,"utcThursdays",function(){return rg}),n.d(t,"utcFriday",function(){return Qv}),n.d(t,"utcFridays",function(){return ig}),n.d(t,"utcSaturday",function(){return Zv}),n.d(t,"utcSaturdays",function(){return og}),n.d(t,"utcMonth",function(){return ug}),n.d(t,"utcMonths",function(){return cg}),n.d(t,"utcYear",function(){return lg}),n.d(t,"utcYears",function(){return fg}),n.d(t,"timeFormatDefaultLocale",function(){return Pm}),n.d(t,"timeFormat",function(){return mg}),n.d(t,"timeParse",function(){return yg}),n.d(t,"utcFormat",function(){return bg}),n.d(t,"utcParse",function(){return _g}),n.d(t,"timeFormatLocale",function(){return vg}),n.d(t,"isoFormat",function(){return Am}),n.d(t,"isoParse",function(){return Rm}),n.d(t,"now",function(){return Rr}),n.d(t,"timer",function(){return Ir}),n.d(t,"timerFlush",function(){return Lr}),n.d(t,"timeout",function(){return qr}),n.d(t,"interval",function(){return Br}),n.d(t,"transition",function(){return ci}),n.d(t,"active",function(){return to}),n.d(t,"interrupt",function(){return ni}),n.d(t,"voronoi",function(){return hw}),n.d(t,"zoom",function(){return Cw}),n.d(t,"zoomTransform",function(){return bw}),n.d(t,"zoomIdentity",function(){return yw})},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n.n(r),o=n(5),a=n.n(o),u=n(51),c=n.n(u),s=n(52),l=n.n(s),f=n(0),d=n.n(f),p=n(2),h=n.n(p),v=n(53),g=n.n(v),m=n(34),y=n.n(m),b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var x=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=_(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._setTargetNode=function(e){r._targetNode=e},r._getTargetNode=function(){return r._targetNode},_(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),b(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this._setTargetNode,getTargetNode:this._getTargetNode}}}},{key:"render",value:function(){var e=this.props,t=e.tag,n=e.children,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["tag","children"]);return!1!==t?Object(r.createElement)(t,i,n):n}}]),t}();x.childContextTypes={popperManager:d.a.object.isRequired},x.propTypes={tag:d.a.oneOfType([d.a.string,d.a.bool]),children:d.a.oneOfType([d.a.node,d.a.func])},x.defaultProps={tag:"div"};var w=x,E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var T=function(e,t){var n=e.component,i=void 0===n?"div":n,o=e.innerRef,a=e.children,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","innerRef","children"]),c=t.popperManager,s=function(e){c.setTargetNode(e),"function"==typeof o&&o(e)};if("function"==typeof a)return a({targetProps:{ref:s},restProps:u});var l=E({},u);return"string"==typeof i?l.ref=s:l.innerRef=s,Object(r.createElement)(i,l,a)};T.contextTypes={popperManager:d.a.object.isRequired},T.propTypes={component:d.a.oneOfType([d.a.node,d.a.func]),innerRef:d.a.func,children:d.a.oneOfType([d.a.node,d.a.func])};var k=T,M=n(35),N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function O(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var S=M.a.placements,P=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=O(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={},r._setArrowNode=function(e){r._arrowNode=e},r._getTargetNode=function(){if(r.props.target)return r.props.target;if(!r.context.popperManager||!r.context.popperManager.getTargetNode())throw new Error("Target missing. Popper must be given a target from the Popper Manager, or as a prop.");return r.context.popperManager.getTargetNode()},r._getOffsets=function(e){return Object.keys(e.offsets).map(function(t){return e.offsets[t]})},r._isDataDirty=function(e){return!r.state.data||JSON.stringify(r._getOffsets(r.state.data))!==JSON.stringify(r._getOffsets(e))},r._updateStateModifier={enabled:!0,order:900,fn:function(e){return r._isDataDirty(e)&&r.setState({data:e}),e}},r._getPopperStyle=function(){var e=r.state.data;return r._popper&&e?N({position:e.offsets.popper.position},e.styles):{position:"absolute",pointerEvents:"none",opacity:0}},r._getPopperPlacement=function(){return r.state.data?r.state.data.placement:void 0},r._getPopperHide=function(){return r.state.data&&r.state.data.hide?"":void 0},r._getArrowStyle=function(){if(r.state.data&&r.state.data.offsets.arrow){var e=r.state.data.offsets.arrow;return{top:e.top,left:e.left}}return{}},r._handlePopperRef=function(e){r._popperNode=e,e?r._createPopper():r._destroyPopper(),r.props.innerRef&&r.props.innerRef(e)},r._scheduleUpdate=function(){r._popper&&r._popper.scheduleUpdate()},O(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),C(t,[{key:"getChildContext",value:function(){return{popper:{setArrowNode:this._setArrowNode,getArrowStyle:this._getArrowStyle}}}},{key:"componentDidUpdate",value:function(e){e.placement===this.props.placement&&e.eventsEnabled===this.props.eventsEnabled&&e.target===this.props.target||(this._destroyPopper(),this._createPopper()),e.children!==this.props.children&&this._scheduleUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyPopper()}},{key:"_createPopper",value:function(){var e=this,t=this.props,n=t.placement,r=t.eventsEnabled,i=t.positionFixed,o=N({},this.props.modifiers,{applyStyle:{enabled:!1},updateState:this._updateStateModifier});this._arrowNode&&(o.arrow=N({},this.props.modifiers.arrow||{},{element:this._arrowNode})),this._popper=new M.a(this._getTargetNode(),this._popperNode,{placement:n,positionFixed:i,eventsEnabled:r,modifiers:o}),setTimeout(function(){return e._scheduleUpdate()})}},{key:"_destroyPopper",value:function(){this._popper&&this._popper.destroy()}},{key:"render",value:function(){var e=this.props,t=e.component,n=(e.innerRef,e.placement,e.eventsEnabled,e.positionFixed,e.modifiers,e.children),i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","innerRef","placement","eventsEnabled","positionFixed","modifiers","children"]),o=this._getPopperStyle(),a=this._getPopperPlacement(),u=this._getPopperHide();if("function"==typeof n)return n({popperProps:{ref:this._handlePopperRef,style:o,"data-placement":a,"data-x-out-of-boundaries":u},restProps:i,scheduleUpdate:this._scheduleUpdate});var c=N({},i,{style:N({},i.style,o),"data-placement":a,"data-x-out-of-boundaries":u});return"string"==typeof t?c.ref=this._handlePopperRef:c.innerRef=this._handlePopperRef,Object(r.createElement)(t,c,n)}}]),t}();P.contextTypes={popperManager:d.a.object},P.childContextTypes={popper:d.a.object.isRequired},P.propTypes={component:d.a.oneOfType([d.a.node,d.a.func]),innerRef:d.a.func,placement:d.a.oneOf(S),eventsEnabled:d.a.bool,positionFixed:d.a.bool,modifiers:d.a.object,children:d.a.oneOfType([d.a.node,d.a.func]),target:d.a.oneOfType([d.a.instanceOf("undefined"!=typeof Element?Element:Object),d.a.shape({getBoundingClientRect:d.a.func.isRequired,clientWidth:d.a.number.isRequired,clientHeight:d.a.number.isRequired})])},P.defaultProps={component:"div",placement:"bottom",eventsEnabled:!0,positionFixed:!1,modifiers:{}};var A=P,R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var j=function(e,t){var n=e.component,i=void 0===n?"span":n,o=e.innerRef,a=e.children,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","innerRef","children"]),c=t.popper,s=function(e){c.setArrowNode(e),"function"==typeof o&&o(e)},l=c.getArrowStyle();if("function"==typeof a)return a({arrowProps:{ref:s,style:l},restProps:u});var f=R({},u,{style:R({},l,u.style)});return"string"==typeof i?f.ref=s:f.innerRef=s,Object(r.createElement)(i,f,a)};j.contextTypes={popper:d.a.object.isRequired},j.propTypes={component:d.a.oneOfType([d.a.node,d.a.func]),innerRef:d.a.func,children:d.a.oneOfType([d.a.node,d.a.func])};var D=j,I=n(36),L=n.n(I);function z(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function F(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function U(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}z.__suppressDeprecationWarning=!0,F.__suppressDeprecationWarning=!0,U.__suppressDeprecationWarning=!0;var q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},W=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),H=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},G=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},$=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};function X(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function K(e){document.body.style.paddingRight=e>0?e+"px":null}function Q(){return document.body.clientWidth<window.innerWidth}function Z(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function J(){var e=X(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;Q()&&K(n+e)}var ee=void 0;function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee;return t?e.split(" ").map(function(e){return t[e]||e}).join(" "):e}function ne(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function re(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i=void 0,o={};r>0;)o[i=n[r-=1]]=e[i];return o}var ie={};function oe(e){ie[e]||("undefined"!=typeof console&&console.error(e),ie[e]=!0)}function ae(e,t){return function(n,r,i){null!==n[r]&&void 0!==n[r]&&oe('"'+r+'" property of "'+i+'" has been deprecated.\n'+t);for(var o=arguments.length,a=Array(o>3?o-3:0),u=3;u<o;u++)a[u-3]=arguments[u];return e.apply(void 0,[n,r,i].concat(a))}}function ue(e,t,n){if(!(e[t]instanceof Element))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var ce=d.a.oneOfType([d.a.string,d.a.func,ue,d.a.shape({current:d.a.any})]),se={Fade:150,Collapse:350,Modal:300,Carousel:600},le=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],fe={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},de={esc:27,space:32,enter:13,tab:9,up:38,down:40},pe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],he=!("undefined"==typeof window||!window.document||!window.document.createElement);function ve(e){return!(!e||"object"!==(void 0===e?"undefined":q(e)))&&"current"in e}function ge(e){if(ve(e))return e.current;if(g()(e))return e();if("string"==typeof e&&he){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#"+e)),!t.length)throw new Error("The target '"+e+"' could not be identified in the dom, tip: check spelling");return t}return e}function me(e){return null!==e&&(Array.isArray(e)||he&&"number"==typeof e.length)}function ye(e){var t=ge(e);return me(t)?t[0]:t}var be=["touchstart","click"];function _e(e,t,n){var r=e;me(r)||(r=[r]);var i=n;if("string"==typeof i&&(i=i.split(/\s+/)),!me(r)||"function"!=typeof t||!Array.isArray(i))throw new Error("\n      The first argument of this function must be DOM node or an array on DOM nodes or NodeList.\n      The second must be a function.\n      The third is a string or an array of strings that represents DOM events\n    ");return i.forEach(function(e){r.forEach(function(n){n.addEventListener(e,t)})}),function(){i.forEach(function(e){r.forEach(function(n){n.removeEventListener(e,t)})})}}var xe=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],we=(Object.freeze({getScrollbarWidth:X,setScrollbarWidth:K,isBodyOverflowing:Q,getOriginalBodyPadding:Z,conditionallyUpdateScrollbar:J,setGlobalCssModule:function(e){ee=e},mapToCssModules:te,omit:ne,pick:re,warnOnce:oe,deprecated:ae,DOMElement:ue,targetPropType:ce,TransitionTimeouts:se,TransitionPropTypeKeys:le,TransitionStatuses:fe,keyCodes:de,PopperPlacements:pe,canUseDOM:he,isReactRefObj:ve,findDOMElements:ge,isArrayOrNodeList:me,getTarget:ye,defaultToggleEvents:be,addMultipleEventListeners:_e,focusableElements:xe}),{tag:d.a.oneOfType([d.a.func,d.a.string]),fluid:d.a.bool,className:d.a.string,cssModule:d.a.object}),Ee=function(e){var t=e.className,n=e.cssModule,r=e.fluid,o=e.tag,a=G(e,["className","cssModule","fluid","tag"]),u=te(h()(t,r?"container-fluid":"container"),n);return i.a.createElement(o,V({},a,{className:u}))};Ee.propTypes=we,Ee.defaultProps={tag:"div"};var Te={tag:d.a.oneOfType([d.a.func,d.a.string]),noGutters:d.a.bool,className:d.a.string,cssModule:d.a.object,form:d.a.bool},ke=function(e){var t=e.className,n=e.cssModule,r=e.noGutters,o=e.tag,a=e.form,u=G(e,["className","cssModule","noGutters","tag","form"]),c=te(h()(t,r?"no-gutters":null,a?"form-row":"row"),n);return i.a.createElement(o,V({},u,{className:c}))};ke.propTypes=Te,ke.defaultProps={tag:"div"};var Me=d.a.oneOfType([d.a.number,d.a.string]),Ne=d.a.oneOfType([d.a.bool,d.a.number,d.a.string,d.a.shape({size:d.a.oneOfType([d.a.bool,d.a.number,d.a.string]),push:ae(Me,'Please use the prop "order"'),pull:ae(Me,'Please use the prop "order"'),order:Me,offset:Me})]),Ce={tag:d.a.oneOfType([d.a.func,d.a.string]),xs:Ne,sm:Ne,md:Ne,lg:Ne,xl:Ne,className:d.a.string,cssModule:d.a.object,widths:d.a.array},Oe={tag:"div",widths:["xs","sm","md","lg","xl"]},Se=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},Pe=function(e){var t=e.className,n=e.cssModule,r=e.widths,o=e.tag,a=G(e,["className","cssModule","widths","tag"]),u=[];r.forEach(function(t,r){var i=e[t];if(delete a[t],i||""===i){var o=!r;if(y()(i)){var c,s=o?"-":"-"+t+"-",l=Se(o,t,i.size);u.push(te(h()((H(c={},l,i.size||""===i.size),H(c,"order"+s+i.order,i.order||0===i.order),H(c,"offset"+s+i.offset,i.offset||0===i.offset),c)),n))}else{var f=Se(o,t,i);u.push(f)}}}),u.length||u.push("col");var c=te(h()(t,u),n);return i.a.createElement(o,V({},a,{className:c}))};Pe.propTypes=Ce,Pe.defaultProps=Oe;var Ae={light:d.a.bool,dark:d.a.bool,inverse:ae(d.a.bool,'Please use the prop "dark"'),full:d.a.bool,fixed:d.a.string,sticky:d.a.string,color:d.a.string,role:d.a.string,tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object,toggleable:ae(d.a.oneOfType([d.a.bool,d.a.string]),'Please use the prop "expand"'),expand:d.a.oneOfType([d.a.bool,d.a.string])},Re={xs:"sm",sm:"md",md:"lg",lg:"xl"},je=function(e){var t,n=e.toggleable,r=e.expand,o=e.className,a=e.cssModule,u=e.light,c=e.dark,s=e.inverse,l=e.fixed,f=e.sticky,d=e.color,p=e.tag,v=G(e,["toggleable","expand","className","cssModule","light","dark","inverse","fixed","sticky","color","tag"]),g=te(h()(o,"navbar",function(e){return!1!==e&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-"+e)}(r)||function(e){return void 0!==e&&"xl"!==e&&(!1===e?"navbar-expand":"navbar-expand-"+(!0===e?"sm":Re[e]||e))}(n),(H(t={"navbar-light":u,"navbar-dark":s||c},"bg-"+d,d),H(t,"fixed-"+l,l),H(t,"sticky-"+f,f),t)),a);return i.a.createElement(p,V({},v,{className:g}))};je.propTypes=Ae,je.defaultProps={tag:"nav",expand:!1};var De={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},Ie=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"navbar-brand"),n);return i.a.createElement(r,V({},o,{className:a}))};Ie.propTypes=De,Ie.defaultProps={tag:"a"};var Le={tag:d.a.oneOfType([d.a.func,d.a.string]),type:d.a.string,className:d.a.string,cssModule:d.a.object,children:d.a.node},ze=function(e){var t=e.className,n=e.cssModule,r=e.children,o=e.tag,a=G(e,["className","cssModule","children","tag"]),u=te(h()(t,"navbar-toggler"),n);return i.a.createElement(o,V({},a,{className:u}),r||i.a.createElement("span",{className:te("navbar-toggler-icon",n)}))};ze.propTypes=Le,ze.defaultProps={tag:"button",type:"button"};var Fe={tabs:d.a.bool,pills:d.a.bool,vertical:d.a.oneOfType([d.a.bool,d.a.string]),horizontal:d.a.string,justified:d.a.bool,fill:d.a.bool,navbar:d.a.bool,card:d.a.bool,tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},Ue=function(e){var t=e.className,n=e.cssModule,r=e.tabs,o=e.pills,a=e.vertical,u=e.horizontal,c=e.justified,s=e.fill,l=e.navbar,f=e.card,d=e.tag,p=G(e,["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"]),v=te(h()(t,l?"navbar-nav":"nav",!!u&&"justify-content-"+u,function(e){return!1!==e&&(!0===e||"xs"===e?"flex-column":"flex-"+e+"-column")}(a),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":o,"card-header-pills":f&&o,"nav-justified":c,"nav-fill":s}),n);return i.a.createElement(d,V({},p,{className:v}))};Ue.propTypes=Fe,Ue.defaultProps={tag:"ul",vertical:!1};var qe={tag:d.a.oneOfType([d.a.func,d.a.string]),active:d.a.bool,className:d.a.string,cssModule:d.a.object},Be=function(e){var t=e.className,n=e.cssModule,r=e.active,o=e.tag,a=G(e,["className","cssModule","active","tag"]),u=te(h()(t,"nav-item",!!r&&"active"),n);return i.a.createElement(o,V({},a,{className:u}))};Be.propTypes=qe,Be.defaultProps={tag:"li"};var We={disabled:d.a.bool,dropup:ae(d.a.bool,'Please use the prop "direction" with the value "up".'),direction:d.a.oneOf(["up","down","left","right"]),group:d.a.bool,isOpen:d.a.bool,nav:d.a.bool,active:d.a.bool,addonType:d.a.oneOfType([d.a.bool,d.a.oneOf(["prepend","append"])]),size:d.a.string,tag:d.a.string,toggle:d.a.func,children:d.a.node,className:d.a.string,cssModule:d.a.object,inNavbar:d.a.bool,setActiveFromChild:d.a.bool},He={toggle:d.a.func.isRequired,isOpen:d.a.bool.isRequired,direction:d.a.oneOf(["up","down","left","right"]).isRequired,inNavbar:d.a.bool.isRequired},Ve=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addEvents=n.addEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.removeEvents=n.removeEvents.bind(n),n.toggle=n.toggle.bind(n),n}return Y(t,e),W(t,[{key:"getChildContext",value:function(){return{toggle:this.props.toggle,isOpen:this.props.isOpen,direction:"down"===this.props.direction&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"getContainer",value:function(){return a.a.findDOMNode(this)}},{key:"addEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"handleDocumentClick",value:function(e){if(!e||3!==e.which&&("keyup"!==e.type||e.which===de.tab)){var t=this.getContainer();(!t.contains(e.target)||t===e.target||"keyup"===e.type&&e.which!==de.tab)&&this.toggle(e)}}},{key:"handleKeyDown",value:function(e){if(!(de.tab===e.which||/button/i.test(e.target.tagName)&&e.which===de.space||/input|textarea/i.test(e.target.tagName)||(e.preventDefault(),this.props.disabled))){var t=this.getContainer();if(e.which===de.space&&de.enter&&this.props.isOpen&&t!==e.target&&e.target.click(),e.which===de.esc||!this.props.isOpen)return this.toggle(e),void t.querySelector("[aria-expanded]").focus();var n=te("dropdown-menu",this.props.cssModule),r=te("dropdown-item",this.props.cssModule),i=te("disabled",this.props.cssModule),o=t.querySelectorAll("."+n+" ."+r+":not(."+i+")");if(o.length){for(var a=-1,u=String.fromCharCode(e.which).toLowerCase(),c=0;c<o.length;c+=1){if((o[c].textContent&&o[c].textContent[0].toLowerCase())===u||o[c]===e.target){a=c;break}}e.which===de.up&&a>0&&(a-=1),e.which===de.down&&a<o.length-1&&(a+=1),a<0&&(a=0),o[a].focus()}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var e,t=ne(this.props,["toggle","disabled","inNavbar","direction"]),n=t.className,r=t.cssModule,o=t.dropup,a=t.isOpen,u=t.group,c=t.size,s=t.nav,l=t.setActiveFromChild,f=t.active,d=t.addonType,p=G(t,["className","cssModule","dropup","isOpen","group","size","nav","setActiveFromChild","active","addonType"]),v="down"===this.props.direction&&o?"up":this.props.direction;p.tag=p.tag||(s?"li":"div");var g=!1;l&&i.a.Children.map(this.props.children[1].props.children,function(e){e.props.active&&(g=!0)});var m=te(h()(n,"down"!==v&&"drop"+v,!(!s||!f)&&"active",!(!l||!g)&&"active",(H(e={},"input-group-"+d,d),H(e,"btn-group",u),H(e,"btn-group-"+c,!!c),H(e,"dropdown",!u&&!d),H(e,"show",a),H(e,"nav-item",s),e)),r);return i.a.createElement(w,V({},p,{className:m,onKeyDown:this.handleKeyDown}))}}]),t}(i.a.Component);Ve.propTypes=We,Ve.defaultProps={isOpen:!1,direction:"down",nav:!1,active:!1,addonType:!1,inNavbar:!1,setActiveFromChild:!1},Ve.childContextTypes=He;var Ye={tag:d.a.oneOfType([d.a.func,d.a.string]),innerRef:d.a.oneOfType([d.a.object,d.a.func,d.a.string]),disabled:d.a.bool,active:d.a.bool,className:d.a.string,cssModule:d.a.object,onClick:d.a.func,href:d.a.any},Ge=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n}return Y(t,e),W(t,[{key:"onClick",value:function(e){this.props.disabled?e.preventDefault():("#"===this.props.href&&e.preventDefault(),this.props.onClick&&this.props.onClick(e))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.active,o=e.tag,a=e.innerRef,u=G(e,["className","cssModule","active","tag","innerRef"]),c=te(h()(t,"nav-link",{disabled:u.disabled,active:r}),n);return i.a.createElement(o,V({},u,{ref:a,onClick:this.onClick,className:c}))}}]),t}(i.a.Component);Ge.propTypes=Ye,Ge.defaultProps={tag:"a"};var $e={tag:d.a.oneOfType([d.a.func,d.a.string]),listTag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,listClassName:d.a.string,cssModule:d.a.object,children:d.a.node,"aria-label":d.a.string},Xe=function(e){var t=e.className,n=e.listClassName,r=e.cssModule,o=e.children,a=e.tag,u=e.listTag,c=e["aria-label"],s=G(e,["className","listClassName","cssModule","children","tag","listTag","aria-label"]),l=te(h()(t),r),f=te(h()("breadcrumb",n),r);return i.a.createElement(a,V({},s,{className:l,"aria-label":c}),i.a.createElement(u,{className:f},o))};Xe.propTypes=$e,Xe.defaultProps={tag:"nav",listTag:"ol","aria-label":"breadcrumb"};var Ke={tag:d.a.oneOfType([d.a.func,d.a.string]),active:d.a.bool,className:d.a.string,cssModule:d.a.object},Qe=function(e){var t=e.className,n=e.cssModule,r=e.active,o=e.tag,a=G(e,["className","cssModule","active","tag"]),u=te(h()(t,!!r&&"active","breadcrumb-item"),n);return i.a.createElement(o,V({},a,{className:u,"aria-current":r?"page":void 0}))};Qe.propTypes=Ke,Qe.defaultProps={tag:"li"};var Ze={active:d.a.bool,"aria-label":d.a.string,block:d.a.bool,color:d.a.string,disabled:d.a.bool,outline:d.a.bool,tag:d.a.oneOfType([d.a.func,d.a.string]),innerRef:d.a.oneOfType([d.a.object,d.a.func,d.a.string]),onClick:d.a.func,size:d.a.string,children:d.a.node,className:d.a.string,cssModule:d.a.object,close:d.a.bool},Je=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n}return Y(t,e),W(t,[{key:"onClick",value:function(e){this.props.disabled?e.preventDefault():this.props.onClick&&this.props.onClick(e)}},{key:"render",value:function(){var e=this.props,t=e.active,n=e["aria-label"],r=e.block,o=e.className,a=e.close,u=e.cssModule,c=e.color,s=e.outline,l=e.size,f=e.tag,d=e.innerRef,p=G(e,["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"]);a&&void 0===p.children&&(p.children=i.a.createElement("span",{"aria-hidden":!0},"×"));var v="btn"+(s?"-outline":"")+"-"+c,g=te(h()(o,{close:a},a||"btn",a||v,!!l&&"btn-"+l,!!r&&"btn-block",{active:t,disabled:this.props.disabled}),u);p.href&&"button"===f&&(f="a");var m=a?"Close":null;return i.a.createElement(f,V({type:"button"===f&&p.onClick?"button":void 0},p,{className:g,ref:d,onClick:this.onClick,"aria-label":n||m}))}}]),t}(i.a.Component);Je.propTypes=Ze,Je.defaultProps={color:"secondary",tag:"button"};var et={children:d.a.node},tt=function(e){return i.a.createElement(Ve,V({group:!0},e))};tt.propTypes=et;var nt={tag:d.a.oneOfType([d.a.func,d.a.string]),"aria-label":d.a.string,className:d.a.string,cssModule:d.a.object,role:d.a.string,size:d.a.string,vertical:d.a.bool},rt=function(e){var t=e.className,n=e.cssModule,r=e.size,o=e.vertical,a=e.tag,u=G(e,["className","cssModule","size","vertical","tag"]),c=te(h()(t,!!r&&"btn-group-"+r,o?"btn-group-vertical":"btn-group"),n);return i.a.createElement(a,V({},u,{className:c}))};rt.propTypes=nt,rt.defaultProps={tag:"div",role:"group"};var it={tag:d.a.oneOfType([d.a.func,d.a.string]),"aria-label":d.a.string,className:d.a.string,cssModule:d.a.object,role:d.a.string},ot=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"btn-toolbar"),n);return i.a.createElement(r,V({},o,{className:a}))};ot.propTypes=it,ot.defaultProps={tag:"div",role:"toolbar"};var at={children:d.a.node,active:d.a.bool,disabled:d.a.bool,divider:d.a.bool,tag:d.a.oneOfType([d.a.func,d.a.string]),header:d.a.bool,onClick:d.a.func,className:d.a.string,cssModule:d.a.object,toggle:d.a.bool},ut={toggle:d.a.func},ct=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n.getTabIndex=n.getTabIndex.bind(n),n}return Y(t,e),W(t,[{key:"onClick",value:function(e){this.props.disabled||this.props.header||this.props.divider?e.preventDefault():(this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e))}},{key:"getTabIndex",value:function(){return this.props.disabled||this.props.header||this.props.divider?"-1":"0"}},{key:"render",value:function(){var e=this.getTabIndex(),t=ne(this.props,["toggle"]),n=t.className,r=t.cssModule,o=t.divider,a=t.tag,u=t.header,c=t.active,s=G(t,["className","cssModule","divider","tag","header","active"]),l=te(h()(n,{disabled:s.disabled,"dropdown-item":!o&&!u,active:c,"dropdown-header":u,"dropdown-divider":o}),r);return"button"===a&&(u?a="h6":o?a="div":s.href&&(a="a")),i.a.createElement(a,V({type:"button"===a&&(s.onClick||this.props.toggle)?"button":void 0},s,{tabIndex:e,className:l,onClick:this.onClick}))}}]),t}(i.a.Component);ct.propTypes=at,ct.defaultProps={tag:"button",toggle:!0},ct.contextTypes=ut;var st={tag:d.a.string,children:d.a.node.isRequired,right:d.a.bool,flip:d.a.bool,modifiers:d.a.object,className:d.a.string,cssModule:d.a.object,persist:d.a.bool},lt={isOpen:d.a.bool.isRequired,direction:d.a.oneOf(["up","down","left","right"]).isRequired,inNavbar:d.a.bool.isRequired},ft={flip:{enabled:!1}},dt={up:"top",left:"left",right:"right",down:"bottom"},pt=function(e,t){var n=e.className,r=e.cssModule,o=e.right,a=e.tag,u=e.flip,c=e.modifiers,s=e.persist,l=G(e,["className","cssModule","right","tag","flip","modifiers","persist"]),f=te(h()(n,"dropdown-menu",{"dropdown-menu-right":o,show:t.isOpen}),r),d=a;if(s||t.isOpen&&!t.inNavbar){d=A;var p=dt[t.direction]||"bottom",v=o?"end":"start";l.placement=p+"-"+v,l.component=a,l.modifiers=u?c:V({},c,ft)}return i.a.createElement(d,V({tabIndex:"-1",role:"menu"},l,{"aria-hidden":!t.isOpen,className:f,"x-placement":l.placement}))};pt.propTypes=st,pt.defaultProps={tag:"div",flip:!0},pt.contextTypes=lt;var ht={caret:d.a.bool,color:d.a.string,children:d.a.node,className:d.a.string,cssModule:d.a.object,disabled:d.a.bool,onClick:d.a.func,"aria-haspopup":d.a.bool,split:d.a.bool,tag:d.a.oneOfType([d.a.func,d.a.string]),nav:d.a.bool},vt={isOpen:d.a.bool.isRequired,toggle:d.a.func.isRequired,inNavbar:d.a.bool.isRequired},gt=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onClick=n.onClick.bind(n),n}return Y(t,e),W(t,[{key:"onClick",value:function(e){this.props.disabled?e.preventDefault():(this.props.nav&&!this.props.tag&&e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.context.toggle(e))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.color,r=e.cssModule,o=e.caret,a=e.split,u=e.nav,c=e.tag,s=G(e,["className","color","cssModule","caret","split","nav","tag"]),l=s["aria-label"]||"Toggle Dropdown",f=te(h()(t,{"dropdown-toggle":o||a,"dropdown-toggle-split":a,"nav-link":u}),r),d=s.children||i.a.createElement("span",{className:"sr-only"},l),p=void 0;return u&&!c?(p="a",s.href="#"):c?p=c:(p=Je,s.color=n,s.cssModule=r),this.context.inNavbar?i.a.createElement(p,V({},s,{className:f,onClick:this.onClick,"aria-expanded":this.context.isOpen,children:d})):i.a.createElement(k,V({},s,{className:f,component:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,children:d}))}}]),t}(i.a.Component);function mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yt(e,t){return e(t={exports:{}},t.exports),t.exports}gt.propTypes=ht,gt.defaultProps={"aria-haspopup":!0,color:"secondary"},gt.contextTypes=vt,mt(yt(function(e,t){t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}};var n,r=(n=d.a)&&n.__esModule?n:{default:n};t.timeoutsShape=r.default.oneOfType([r.default.number,r.default.shape({enter:r.default.number,exit:r.default.number}).isRequired]),t.classNamesShape=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,exit:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterDone:r.default.string,enterActive:r.default.string,exit:r.default.string,exitDone:r.default.string,exitActive:r.default.string})])}));var bt=mt(yt(function(e,t){t.__esModule=!0,t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(d.a),r=u(i.a),o=u(a.a);function u(e){return e&&e.__esModule?e:{default:e}}var c=t.UNMOUNTED="unmounted",s=t.EXITED="exited",l=t.ENTERING="entering",f=t.ENTERED="entered",p=t.EXITING="exiting",h=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":q(t))&&"function"!=typeof t?e:t}(this,e.call(this,n,r)),o=r.transitionGroup,a=o&&!o.isMounting?n.enter:n.appear,u=void 0;return i.nextStatus=null,n.in?a?(u=s,i.nextStatus=l):u=f:u=n.unmountOnExit||n.mountOnEnter?c:s,i.state={status:u},i.nextCallback=null,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":q(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{transitionGroup:null}},t.prototype.componentDidMount=function(){this.updateStatus(!0)},t.prototype.componentWillReceiveProps=function(e){var t=(this.pendingState||this.state).status;e.in?(t===c&&this.setState({status:s}),t!==l&&t!==f&&(this.nextStatus=l)):t!==l&&t!==f||(this.nextStatus=p)},t.prototype.componentDidUpdate=function(){this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cancelNextCallback()},t.prototype.getTimeouts=function(){var e=this.props.timeout,t=void 0,n=void 0,r=void 0;return t=n=r=e,null!=e&&"number"!=typeof e&&(t=e.exit,n=e.enter,r=e.appear),{exit:t,enter:n,appear:r}},t.prototype.updateStatus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nextStatus;if(null!==t){this.nextStatus=null,this.cancelNextCallback();var n=o.default.findDOMNode(this);t===l?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===s&&this.setState({status:c})},t.prototype.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts();t||r?(this.props.onEnter(e,i),this.safeSetState({status:l},function(){n.props.onEntering(e,i),n.onTransitionEnd(e,o.enter,function(){n.safeSetState({status:f},function(){n.props.onEntered(e,i)})})})):this.safeSetState({status:f},function(){n.props.onEntered(e)})},t.prototype.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:p},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:s},function(){t.props.onExited(e)})})})):this.safeSetState({status:s},function(){t.props.onExited(e)})},t.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.prototype.safeSetState=function(e,t){var n=this;this.pendingState=e,t=this.setNextCallback(t),this.setState(e,function(){n.pendingState=null,t()})},t.prototype.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},t.prototype.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},t.prototype.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children"]);if(delete i.in,delete i.mountOnEnter,delete i.unmountOnExit,delete i.appear,delete i.enter,delete i.exit,delete i.timeout,delete i.addEndListener,delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,"function"==typeof n)return n(e,i);var o=r.default.Children.only(n);return r.default.cloneElement(o,i)},t}(r.default.Component);function v(){}h.contextTypes={transitionGroup:n.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4,t.default=h})),_t=V({},bt.propTypes,{children:d.a.oneOfType([d.a.arrayOf(d.a.node),d.a.node]),tag:d.a.oneOfType([d.a.string,d.a.func]),baseClass:d.a.string,baseClassActive:d.a.string,className:d.a.string,cssModule:d.a.object,innerRef:d.a.oneOfType([d.a.object,d.a.string,d.a.func])}),xt=V({},bt.defaultProps,{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:se.Fade,appear:!0,enter:!0,exit:!0,in:!0});function wt(e){var t=e.tag,n=e.baseClass,r=e.baseClassActive,o=e.className,a=e.cssModule,u=e.children,c=e.innerRef,s=G(e,["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"]),l=re(s,le),f=ne(s,le);return i.a.createElement(bt,l,function(e){var s="entered"===e,l=te(h()(o,n,s&&r),a);return i.a.createElement(t,V({className:l},f,{ref:c}),u)})}wt.propTypes=_t,wt.defaultProps=xt;var Et={color:d.a.string,pill:d.a.bool,tag:d.a.oneOfType([d.a.func,d.a.string]),children:d.a.node,className:d.a.string,cssModule:d.a.object},Tt=function(e){var t=e.className,n=e.cssModule,r=e.color,o=e.pill,a=e.tag,u=G(e,["className","cssModule","color","pill","tag"]),c=te(h()(t,"badge","badge-"+r,!!o&&"badge-pill"),n);return u.href&&"span"===a&&(a="a"),i.a.createElement(a,V({},u,{className:c}))};Tt.propTypes=Et,Tt.defaultProps={color:"secondary",pill:!1,tag:"span"};var kt={tag:d.a.oneOfType([d.a.func,d.a.string]),inverse:d.a.bool,color:d.a.string,block:ae(d.a.bool,'Please use the props "body"'),body:d.a.bool,outline:d.a.bool,className:d.a.string,cssModule:d.a.object,innerRef:d.a.oneOfType([d.a.object,d.a.string,d.a.func])},Mt=function(e){var t=e.className,n=e.cssModule,r=e.color,o=e.block,a=e.body,u=e.inverse,c=e.outline,s=e.tag,l=e.innerRef,f=G(e,["className","cssModule","color","block","body","inverse","outline","tag","innerRef"]),d=te(h()(t,"card",!!u&&"text-white",!(!o&&!a)&&"card-body",!!r&&(c?"border":"bg")+"-"+r),n);return i.a.createElement(s,V({},f,{className:d,ref:l}))};Mt.propTypes=kt,Mt.defaultProps={tag:"div"};var Nt={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},Ct=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"card-group"),n);return i.a.createElement(r,V({},o,{className:a}))};Ct.propTypes=Nt,Ct.defaultProps={tag:"div"};var Ot={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},St=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"card-deck"),n);return i.a.createElement(r,V({},o,{className:a}))};St.propTypes=Ot,St.defaultProps={tag:"div"};var Pt={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},At=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"card-columns"),n);return i.a.createElement(r,V({},o,{className:a}))};At.propTypes=Pt,At.defaultProps={tag:"div"};var Rt={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},jt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"card-body"),n);return i.a.createElement(r,V({},o,{className:a}))};jt.propTypes=Rt,jt.defaultProps={tag:"div"};var Dt={tag:d.a.oneOfType([d.a.func,d.a.string]),innerRef:d.a.oneOfType([d.a.object,d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},It=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.innerRef,a=G(e,["className","cssModule","tag","innerRef"]),u=te(h()(t,"card-link"),n);return i.a.createElement(r,V({},a,{ref:o,className:u}))};It.propTypes=Dt,It.defaultProps={tag:"a"};var Lt={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},zt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"card-footer"),n);return i.a.createElement(r,V({},o,{className:a}))};zt.propTypes=Lt,zt.defaultProps={tag:"div"};var Ft={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},Ut=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"card-header"),n);return i.a.createElement(r,V({},o,{className:a}))};Ut.propTypes=Ft,Ut.defaultProps={tag:"div"};var qt={tag:d.a.oneOfType([d.a.func,d.a.string]),top:d.a.bool,bottom:d.a.bool,className:d.a.string,cssModule:d.a.object},Bt=function(e){var t=e.className,n=e.cssModule,r=e.top,o=e.bottom,a=e.tag,u=G(e,["className","cssModule","top","bottom","tag"]),c="card-img";r&&(c="card-img-top"),o&&(c="card-img-bottom");var s=te(h()(t,c),n);return i.a.createElement(a,V({},u,{className:s}))};Bt.propTypes=qt,Bt.defaultProps={tag:"img"};var Wt={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},Ht=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"card-img-overlay"),n);return i.a.createElement(r,V({},o,{className:a}))};Ht.propTypes=Wt,Ht.defaultProps={tag:"div"};var Vt=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={startAnimation:!1},n.onEnter=n.onEnter.bind(n),n.onEntering=n.onEntering.bind(n),n.onExit=n.onExit.bind(n),n.onExiting=n.onExiting.bind(n),n.onExited=n.onExited.bind(n),n}return Y(t,e),W(t,[{key:"onEnter",value:function(e,t){this.setState({startAnimation:!1}),this.props.onEnter(e,t)}},{key:"onEntering",value:function(e,t){var n=e.offsetHeight;return this.setState({startAnimation:!0}),this.props.onEntering(e,t),n}},{key:"onExit",value:function(e){this.setState({startAnimation:!1}),this.props.onExit(e)}},{key:"onExiting",value:function(e){this.setState({startAnimation:!0}),e.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(e)}},{key:"onExited",value:function(e){e.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.in,r=t.children,o=t.cssModule,a=t.slide,u=t.tag,c=t.className,s=G(t,["in","children","cssModule","slide","tag","className"]);return i.a.createElement(bt,V({},s,{enter:a,exit:a,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(t){var n=e.context.direction,a=t===fe.ENTERED||t===fe.EXITING,s=(t===fe.ENTERING||t===fe.EXITING)&&e.state.startAnimation&&("right"===n?"carousel-item-left":"carousel-item-right"),l=t===fe.ENTERING&&("right"===n?"carousel-item-next":"carousel-item-prev"),f=te(h()(c,"carousel-item",a&&"active",s,l),o);return i.a.createElement(u,{className:f},r)})}}]),t}(i.a.Component);Vt.propTypes=V({},bt.propTypes,{tag:d.a.oneOfType([d.a.func,d.a.string]),in:d.a.bool,cssModule:d.a.object,children:d.a.node,slide:d.a.bool,className:d.a.string}),Vt.defaultProps=V({},bt.defaultProps,{tag:"div",timeout:se.Carousel,slide:!0}),Vt.contextTypes={direction:d.a.string};var Yt=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKeyPress=n.handleKeyPress.bind(n),n.renderItems=n.renderItems.bind(n),n.hoverStart=n.hoverStart.bind(n),n.hoverEnd=n.hoverEnd.bind(n),n.state={direction:"right",indicatorClicked:!1},n}return Y(t,e),W(t,[{key:"getChildContext",value:function(){return{direction:this.state.direction}}},{key:"componentDidMount",value:function(){"carousel"===this.props.ride&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}},{key:"componentWillReceiveProps",value:function(e){this.setInterval(e),this.props.activeIndex+1===e.activeIndex?this.setState({direction:"right"}):this.props.activeIndex-1===e.activeIndex?this.setState({direction:"left"}):this.props.activeIndex>e.activeIndex?this.setState({direction:this.state.indicatorClicked?"left":"right"}):this.props.activeIndex!==e.activeIndex&&this.setState({direction:this.state.indicatorClicked?"right":"left"}),this.setState({indicatorClicked:!1})}},{key:"componentWillUnmount",value:function(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}},{key:"setInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.clearInterval(),e.interval&&(this.cycleInterval=setInterval(function(){e.next()},parseInt(e.interval,10)))})},{key:"clearInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){clearInterval(this.cycleInterval)})},{key:"hoverStart",value:function(){var e;("hover"===this.props.pause&&this.clearInterval(),this.props.mouseEnter)&&(e=this.props).mouseEnter.apply(e,arguments)}},{key:"hoverEnd",value:function(){var e;("hover"===this.props.pause&&this.setInterval(),this.props.mouseLeave)&&(e=this.props).mouseLeave.apply(e,arguments)}},{key:"handleKeyPress",value:function(e){this.props.keyboard&&(37===e.keyCode?this.props.previous():39===e.keyCode&&this.props.next())}},{key:"renderItems",value:function(e,t){var n=this,r=this.props.slide;return i.a.createElement("div",{role:"listbox",className:t},e.map(function(e,t){var o=t===n.props.activeIndex;return i.a.cloneElement(e,{in:o,slide:r})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.cssModule,r=t.slide,o=t.className,a=te(h()(o,"carousel",r&&"slide"),n),u=te(h()("carousel-inner"),n),c=this.props.children.filter(function(e){return null!=e&&"boolean"!=typeof e});if(c.every(function(e){return e.type===Vt}))return i.a.createElement("div",{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},this.renderItems(c,u));if(c[0]instanceof Array){var s=c[0],l=c[1],f=c[2];return i.a.createElement("div",{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},this.renderItems(s,u),l,f)}var d=c[0],p=i.a.cloneElement(d,{onClickHandler:function(t){"function"==typeof d.props.onClickHandler&&e.setState({indicatorClicked:!0},function(){return d.props.onClickHandler(t)})}}),v=c[1],g=c[2],m=c[3];return i.a.createElement("div",{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd},p,this.renderItems(v,u),g,m)}}]),t}(i.a.Component);Yt.propTypes={activeIndex:d.a.number,next:d.a.func.isRequired,previous:d.a.func.isRequired,keyboard:d.a.bool,pause:d.a.oneOf(["hover",!1]),ride:d.a.oneOf(["carousel"]),interval:d.a.oneOfType([d.a.number,d.a.string,d.a.bool]),children:d.a.array,mouseEnter:d.a.func,mouseLeave:d.a.func,slide:d.a.bool,cssModule:d.a.object,className:d.a.string},Yt.defaultProps={interval:5e3,pause:"hover",keyboard:!0,slide:!0},Yt.childContextTypes={direction:d.a.string};var Gt=function(e){var t=e.direction,n=e.onClickHandler,r=e.cssModule,o=e.directionText,a=e.className,u=te(h()(a,"carousel-control-"+t),r),c=te(h()("carousel-control-"+t+"-icon"),r),s=te(h()("sr-only"),r);return i.a.createElement("a",{className:u,role:"button",tabIndex:"0",onClick:function(e){e.preventDefault(),n()}},i.a.createElement("span",{className:c,"aria-hidden":"true"}),i.a.createElement("span",{className:s},o||t))};Gt.propTypes={direction:d.a.oneOf(["prev","next"]).isRequired,onClickHandler:d.a.func.isRequired,cssModule:d.a.object,directionText:d.a.string,className:d.a.string};var $t=function(e){var t=e.items,n=e.activeIndex,r=e.cssModule,o=e.onClickHandler,a=e.className,u=te(h()(a,"carousel-indicators"),r),c=t.map(function(e,t){var a=te(h()({active:n===t}),r);return i.a.createElement("li",{key:""+(e.key||e.src)+e.caption+e.altText,onClick:function(e){e.preventDefault(),o(t)},className:a})});return i.a.createElement("ol",{className:u},c)};$t.propTypes={items:d.a.array.isRequired,activeIndex:d.a.number.isRequired,cssModule:d.a.object,onClickHandler:d.a.func.isRequired,className:d.a.string};var Xt=function(e){var t=e.captionHeader,n=e.captionText,r=e.cssModule,o=e.className,a=te(h()(o,"carousel-caption","d-none","d-md-block"),r);return i.a.createElement("div",{className:a},i.a.createElement("h3",null,t),i.a.createElement("p",null,n))};Xt.propTypes={captionHeader:d.a.string,captionText:d.a.string.isRequired,cssModule:d.a.object,className:d.a.string};var Kt={items:d.a.array.isRequired,indicators:d.a.bool,controls:d.a.bool,autoPlay:d.a.bool,activeIndex:d.a.number,next:d.a.func,previous:d.a.func,goToIndex:d.a.func},Qt=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.animating=!1,n.state={activeIndex:0},n.next=n.next.bind(n),n.previous=n.previous.bind(n),n.goToIndex=n.goToIndex.bind(n),n.onExiting=n.onExiting.bind(n),n.onExited=n.onExited.bind(n),n}return Y(t,e),W(t,[{key:"onExiting",value:function(){this.animating=!0}},{key:"onExited",value:function(){this.animating=!1}},{key:"next",value:function(){if(!this.animating){var e=this.state.activeIndex===this.props.items.length-1?0:this.state.activeIndex+1;this.setState({activeIndex:e})}}},{key:"previous",value:function(){if(!this.animating){var e=0===this.state.activeIndex?this.props.items.length-1:this.state.activeIndex-1;this.setState({activeIndex:e})}}},{key:"goToIndex",value:function(e){this.animating||this.setState({activeIndex:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.indicators,o=t.controls,a=t.items,u=t.goToIndex,c=G(t,["autoPlay","indicators","controls","items","goToIndex"]),s=this.state.activeIndex,l=a.map(function(t){return i.a.createElement(Vt,{onExiting:e.onExiting,onExited:e.onExited,key:t.src},i.a.createElement("img",{className:"d-block w-100",src:t.src,alt:t.altText}),i.a.createElement(Xt,{captionText:t.caption,captionHeader:t.header||t.caption}))});return i.a.createElement(Yt,V({activeIndex:s,next:this.next,previous:this.previous,ride:n?"carousel":void 0},c),r&&i.a.createElement($t,{items:a,activeIndex:c.activeIndex||s,onClickHandler:u||this.goToIndex}),l,o&&i.a.createElement(Gt,{direction:"prev",directionText:"Previous",onClickHandler:c.previous||this.previous}),o&&i.a.createElement(Gt,{direction:"next",directionText:"Next",onClickHandler:c.next||this.next}))}}]),t}(r.Component);Qt.propTypes=Kt,Qt.defaultProps={controls:!0,indicators:!0,autoPlay:!0};var Zt={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},Jt=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"card-subtitle"),n);return i.a.createElement(r,V({},o,{className:a}))};Jt.propTypes=Zt,Jt.defaultProps={tag:"h6"};var en={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},tn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"card-text"),n);return i.a.createElement(r,V({},o,{className:a}))};tn.propTypes=en,tn.defaultProps={tag:"p"};var nn={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},rn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"card-title"),n);return i.a.createElement(r,V({},o,{className:a}))};rn.propTypes=nn,rn.defaultProps={tag:"h5"};d.a.string,d.a.oneOfType([d.a.string,d.a.number]).isRequired,d.a.string.isRequired,d.a.node,d.a.bool,d.a.bool,d.a.bool,d.a.string,d.a.object,d.a.oneOfType([d.a.node,d.a.array,d.a.func]),d.a.oneOfType([d.a.object,d.a.string,d.a.func]);var on={children:d.a.node.isRequired,className:d.a.string,placement:d.a.string,placementPrefix:d.a.string,arrowClassName:d.a.string,hideArrow:d.a.bool,tag:d.a.string,isOpen:d.a.bool.isRequired,cssModule:d.a.object,offset:d.a.oneOfType([d.a.string,d.a.number]),fallbackPlacement:d.a.oneOfType([d.a.string,d.a.array]),flip:d.a.bool,container:ce,target:ce.isRequired,modifiers:d.a.object,boundariesElement:d.a.oneOfType([d.a.string,ue])},an={popperManager:d.a.object.isRequired},un=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handlePlacementChange=n.handlePlacementChange.bind(n),n.setTargetNode=n.setTargetNode.bind(n),n.getTargetNode=n.getTargetNode.bind(n),n.state={},n}return Y(t,e),W(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this.setTargetNode,getTargetNode:this.getTargetNode}}}},{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen?this.handleProps():this._element&&this.renderIntoSubtree()}},{key:"componentWillUnmount",value:function(){this.hide()}},{key:"setTargetNode",value:function(e){this.targetNode=e}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return ye(this.props.container)}},{key:"handlePlacementChange",value:function(e){return this.state.placement!==e.placement&&this.setState({placement:e.placement}),e}},{key:"handleProps",value:function(){"inline"!==this.props.container&&(this.props.isOpen?this.show():this.hide())}},{key:"hide",value:function(){this._element&&(this.getContainerNode().removeChild(this._element),a.a.unmountComponentAtNode(this._element),this._element=null)}},{key:"show",value:function(){this._element=document.createElement("div"),this.getContainerNode().appendChild(this._element),this.renderIntoSubtree(),this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"renderIntoSubtree",value:function(){a.a.unstable_renderSubtreeIntoContainer(this,this.renderChildren(),this._element)}},{key:"renderChildren",value:function(){var e=this.props,t=e.cssModule,n=e.children,r=(e.isOpen,e.flip),o=(e.target,e.offset),a=e.fallbackPlacement,u=e.placementPrefix,c=e.arrowClassName,s=e.hideArrow,l=e.className,f=e.tag,d=(e.container,e.modifiers),p=e.boundariesElement,v=G(e,["cssModule","children","isOpen","flip","target","offset","fallbackPlacement","placementPrefix","arrowClassName","hideArrow","className","tag","container","modifiers","boundariesElement"]),g=te(h()("arrow",c),t),m=(this.state.placement||v.placement).split("-")[0],y=te(h()(l,u?u+"-"+m:m),this.props.cssModule),b=V({offset:{offset:o},flip:{enabled:r,behavior:a},preventOverflow:{boundariesElement:p},update:{enabled:!0,order:950,fn:this.handlePlacementChange}},d);return i.a.createElement(A,V({modifiers:b},v,{component:f,className:y,"x-placement":this.state.placement||v.placement}),n,!s&&i.a.createElement(D,{className:g}))}},{key:"render",value:function(){return this.setTargetNode(ye(this.props.target)),"inline"===this.props.container&&this.props.isOpen?this.renderChildren():null}}]),t}(i.a.Component);un.propTypes=on,un.defaultProps={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:0,fallbackPlacement:"flip",flip:!0,container:"body",modifiers:{}},un.childContextTypes=an;var cn=function(e,t){return t.popperManager.setTargetNode(ye(e.target)),null};cn.contextTypes={popperManager:d.a.object.isRequired},cn.propTypes={target:ce.isRequired};var sn={placement:d.a.oneOf(pe),target:ce.isRequired,container:ce,boundariesElement:d.a.oneOfType([d.a.string,ue]),isOpen:d.a.bool,disabled:d.a.bool,hideArrow:d.a.bool,className:d.a.string,innerClassName:d.a.string,placementPrefix:d.a.string,cssModule:d.a.object,toggle:d.a.func,delay:d.a.oneOfType([d.a.shape({show:d.a.number,hide:d.a.number}),d.a.number]),modifiers:d.a.object,offset:d.a.oneOfType([d.a.string,d.a.number])},ln={show:0,hide:0},fn={isOpen:!1,hideArrow:!1,placement:"right",placementPrefix:"bs-popover",delay:ln,toggle:function(){}},dn=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addTargetEvents=n.addTargetEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.removeTargetEvents=n.removeTargetEvents.bind(n),n.getRef=n.getRef.bind(n),n.toggle=n.toggle.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n._target=null,n}return Y(t,e),W(t,[{key:"componentDidMount",value:function(){this._target=ye(this.props.target),this.handleProps()}},{key:"componentDidUpdate",value:function(){this.handleProps()}},{key:"componentWillUnmount",value:function(){this.clearShowTimeout(),this.clearHideTimeout(),this.removeTargetEvents()}},{key:"getRef",value:function(e){this._popover=e}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===(void 0===t?"undefined":q(t))?isNaN(t[e])?ln[e]:t[e]:t}},{key:"handleProps",value:function(){this.props.isOpen?this.show():this.hide()}},{key:"show",value:function(){this.clearHideTimeout(),this.addTargetEvents(),this.props.isOpen||(this.clearShowTimeout(),this._showTimeout=setTimeout(this.toggle,this.getDelay("show")))}},{key:"hide",value:function(){this.clearShowTimeout(),this.removeTargetEvents(),this.props.isOpen&&(this.clearHideTimeout(),this._hideTimeout=setTimeout(this.toggle,this.getDelay("hide")))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){this._target&&(e.target===this._target||this._target.contains(e.target)||e.target===this._popover||this._popover&&this._popover.contains(e.target)||(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&this.toggle(e)))}},{key:"addTargetEvents",value:function(){var e=this;["click","touchstart"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeTargetEvents",value:function(){var e=this;["click","touchstart"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){if(!this.props.isOpen)return null;var e=ne(this.props,Object.keys(sn)),t=te(h()("popover-inner",this.props.innerClassName),this.props.cssModule),n=te(h()("popover","show",this.props.className),this.props.cssModule);return i.a.createElement(un,{className:n,target:this.props.target,isOpen:this.props.isOpen,hideArrow:this.props.hideArrow,placement:this.props.placement,placementPrefix:this.props.placementPrefix,container:this.props.container,modifiers:this.props.modifiers,offset:this.props.offset,boundariesElement:this.props.boundariesElement},i.a.createElement("div",V({},e,{className:t,ref:this.getRef})))}}]),t}(i.a.Component);dn.propTypes=sn,dn.defaultProps=fn;var pn={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},hn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"popover-header"),n);return i.a.createElement(r,V({},o,{className:a}))};hn.propTypes=pn,hn.defaultProps={tag:"h3"};var vn={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},gn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"popover-body"),n);return i.a.createElement(r,V({},o,{className:a}))};gn.propTypes=vn,gn.defaultProps={tag:"div"};var mn={children:d.a.node,bar:d.a.bool,multi:d.a.bool,tag:d.a.string,value:d.a.oneOfType([d.a.string,d.a.number]),max:d.a.oneOfType([d.a.string,d.a.number]),animated:d.a.bool,striped:d.a.bool,color:d.a.string,className:d.a.string,barClassName:d.a.string,cssModule:d.a.object},yn=function(e){var t=e.children,n=e.className,r=e.barClassName,o=e.cssModule,a=e.value,u=e.max,c=e.animated,s=e.striped,l=e.color,f=e.bar,d=e.multi,p=e.tag,v=G(e,["children","className","barClassName","cssModule","value","max","animated","striped","color","bar","multi","tag"]),g=L()(a)/L()(u)*100,m=te(h()(n,"progress"),o),y=te(h()("progress-bar",f&&n||r,c?"progress-bar-animated":null,l?"bg-"+l:null,s||c?"progress-bar-striped":null),o),b=d?t:i.a.createElement("div",{className:y,style:{width:g+"%"},role:"progressbar","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":u,children:t});return f?b:i.a.createElement(p,V({},v,{className:m,children:b}))};yn.propTypes=mn,yn.defaultProps={tag:"div",value:0,max:100};var bn={children:d.a.node.isRequired,node:d.a.any},_n=function(e){function t(){return B(this,t),$(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Y(t,e),W(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return he?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),a.a.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(i.a.Component);function xn(){}_n.propTypes=bn;var wn=d.a.shape(wt.propTypes),En={isOpen:d.a.bool,autoFocus:d.a.bool,centered:d.a.bool,size:d.a.string,toggle:d.a.func,keyboard:d.a.bool,role:d.a.string,labelledBy:d.a.string,backdrop:d.a.oneOfType([d.a.bool,d.a.oneOf(["static"])]),onEnter:d.a.func,onExit:d.a.func,onOpened:d.a.func,onClosed:d.a.func,children:d.a.node,className:d.a.string,wrapClassName:d.a.string,modalClassName:d.a.string,backdropClassName:d.a.string,contentClassName:d.a.string,external:d.a.node,fade:d.a.bool,cssModule:d.a.object,zIndex:d.a.oneOfType([d.a.number,d.a.string]),backdropTransition:wn,modalTransition:wn,innerRef:d.a.oneOfType([d.a.object,d.a.string,d.a.func])},Tn=Object.keys(En),kn={isOpen:!1,autoFocus:!0,centered:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:xn,onClosed:xn,modalTransition:{timeout:se.Modal},backdropTransition:{mountOnEnter:!0,timeout:se.Fade}},Mn=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._element=null,n._originalBodyPadding=null,n.getFocusableChildren=n.getFocusableChildren.bind(n),n.handleBackdropClick=n.handleBackdropClick.bind(n),n.handleBackdropMouseDown=n.handleBackdropMouseDown.bind(n),n.handleEscape=n.handleEscape.bind(n),n.handleTab=n.handleTab.bind(n),n.onOpened=n.onOpened.bind(n),n.onClosed=n.onClosed.bind(n),n.state={isOpen:e.isOpen},e.isOpen&&n.init(),n}return Y(t,e),W(t,[{key:"componentDidMount",value:function(){this.props.onEnter&&this.props.onEnter(),this.state.isOpen&&this.props.autoFocus&&this.setFocus(),this._isMounted=!0}},{key:"componentWillReceiveProps",value:function(e){e.isOpen&&!this.props.isOpen&&this.setState({isOpen:e.isOpen})}},{key:"componentWillUpdate",value:function(e,t){t.isOpen&&!this.state.isOpen&&this.init()}},{key:"componentDidUpdate",value:function(e,t){this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.props.onExit&&this.props.onExit(),this.state.isOpen&&this.destroy(),this._isMounted=!1}},{key:"onOpened",value:function(e,t){this.props.onOpened(),(this.props.modalTransition.onEntered||xn)(e,t)}},{key:"onClosed",value:function(e){this.props.onClosed(),(this.props.modalTransition.onExited||xn)(e),this.destroy(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&"function"==typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(xe.join(", "))}},{key:"getFocusedChild",value:function(){var e=void 0,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e}},{key:"handleBackdropClick",value:function(e){if(e.target===this._mouseDownElement){if(e.stopPropagation(),!this.props.isOpen||!0!==this.props.backdrop)return;var t=this._dialog;e.target&&!t.contains(e.target)&&this.props.toggle&&this.props.toggle(e)}}},{key:"handleTab",value:function(e){if(9===e.which){for(var t=this.getFocusableChildren(),n=t.length,r=this.getFocusedChild(),i=0,o=0;o<n;o+=1)if(t[o]===r){i=o;break}e.shiftKey&&0===i?(e.preventDefault(),t[n-1].focus()):e.shiftKey||i!==n-1||(e.preventDefault(),t[0].focus())}}},{key:"handleBackdropMouseDown",value:function(e){this._mouseDownElement=e.target}},{key:"handleEscape",value:function(e){this.props.isOpen&&this.props.keyboard&&27===e.keyCode&&this.props.toggle&&this.props.toggle(e)}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch(e){this._triggeringElement=null}this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._originalBodyPadding=Z(),J(),document.body.appendChild(this._element),0===t.openCount&&(document.body.className=h()(document.body.className,te("modal-open",this.props.cssModule))),t.openCount+=1}},{key:"destroy",value:function(){if(this._element&&(document.body.removeChild(this._element),this._element=null),this._triggeringElement&&(this._triggeringElement.focus&&this._triggeringElement.focus(),this._triggeringElement=null),t.openCount<=1){var e=te("modal-open",this.props.cssModule),n=new RegExp("(^| )"+e+"( |$)");document.body.className=document.body.className.replace(n," ").trim()}t.openCount-=1,K(this._originalBodyPadding)}},{key:"renderModalDialog",value:function(){var e,t=this,n=ne(this.props,Tn);return i.a.createElement("div",V({},n,{className:te(h()("modal-dialog",this.props.className,(e={},H(e,"modal-"+this.props.size,this.props.size),H(e,"modal-dialog-centered",this.props.centered),e)),this.props.cssModule),role:"document",ref:function(e){t._dialog=e}}),i.a.createElement("div",{className:te(h()("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){if(this.state.isOpen){var e=this.props,t=e.wrapClassName,n=e.modalClassName,r=e.backdropClassName,o=e.cssModule,a=e.isOpen,u=e.backdrop,c=e.role,s=e.labelledBy,l=e.external,f=e.innerRef,d={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":s,role:c,tabIndex:"-1"},p=this.props.fade,v=V({},wt.defaultProps,this.props.modalTransition,{baseClass:p?this.props.modalTransition.baseClass:"",timeout:p?this.props.modalTransition.timeout:0}),g=V({},wt.defaultProps,this.props.backdropTransition,{baseClass:p?this.props.backdropTransition.baseClass:"",timeout:p?this.props.backdropTransition.timeout:0}),m=p?i.a.createElement(wt,V({},g,{in:a&&!!u,cssModule:o,className:te(h()("modal-backdrop",r),o)})):i.a.createElement("div",{className:te(h()("modal-backdrop","show",r),o)});return i.a.createElement(_n,{node:this._element},i.a.createElement("div",{className:te(t)},i.a.createElement(wt,V({},d,v,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:o,className:te(h()("modal",n),o),innerRef:f}),l,this.renderModalDialog()),m))}return null}}]),t}(i.a.Component);Mn.propTypes=En,Mn.defaultProps=kn,Mn.openCount=0;var Nn={tag:d.a.oneOfType([d.a.func,d.a.string]),wrapTag:d.a.oneOfType([d.a.func,d.a.string]),toggle:d.a.func,className:d.a.string,cssModule:d.a.object,children:d.a.node,closeAriaLabel:d.a.string,charCode:d.a.oneOfType([d.a.string,d.a.number]),close:d.a.object},Cn=function(e){var t=void 0,n=e.className,r=e.cssModule,o=e.children,a=e.toggle,u=e.tag,c=e.wrapTag,s=e.closeAriaLabel,l=e.charCode,f=e.close,d=G(e,["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","charCode","close"]),p=te(h()(n,"modal-header"),r);if(!f&&a){var v="number"==typeof l?String.fromCharCode(l):l;t=i.a.createElement("button",{type:"button",onClick:a,className:te("close",r),"aria-label":s},i.a.createElement("span",{"aria-hidden":"true"},v))}return i.a.createElement(c,V({},d,{className:p}),i.a.createElement(u,{className:te("modal-title",r)},o),f||t)};Cn.propTypes=Nn,Cn.defaultProps={tag:"h5",wrapTag:"div",closeAriaLabel:"Close",charCode:215};var On={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},Sn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"modal-body"),n);return i.a.createElement(r,V({},o,{className:a}))};Sn.propTypes=On,Sn.defaultProps={tag:"div"};var Pn={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},An=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"modal-footer"),n);return i.a.createElement(r,V({},o,{className:a}))};An.propTypes=Pn,An.defaultProps={tag:"div"};var Rn={placement:d.a.oneOf(pe),target:ce.isRequired,container:ce,isOpen:d.a.bool,disabled:d.a.bool,hideArrow:d.a.bool,boundariesElement:d.a.oneOfType([d.a.string,ue]),className:d.a.string,innerClassName:d.a.string,arrowClassName:d.a.string,cssModule:d.a.object,toggle:d.a.func,autohide:d.a.bool,placementPrefix:d.a.string,delay:d.a.oneOfType([d.a.shape({show:d.a.number,hide:d.a.number}),d.a.number]),modifiers:d.a.object,offset:d.a.oneOfType([d.a.string,d.a.number]),innerRef:d.a.oneOfType([d.a.func,d.a.string,d.a.object]),trigger:d.a.string},jn={show:0,hide:250},Dn={isOpen:!1,hideArrow:!1,placement:"top",placementPrefix:"bs-tooltip",delay:jn,autohide:!0,toggle:function(){}},In=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._target=null,n.addTargetEvents=n.addTargetEvents.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n.removeTargetEvents=n.removeTargetEvents.bind(n),n.toggle=n.toggle.bind(n),n.onMouseOverTooltip=n.onMouseOverTooltip.bind(n),n.onMouseLeaveTooltip=n.onMouseLeaveTooltip.bind(n),n.onMouseOverTooltipContent=n.onMouseOverTooltipContent.bind(n),n.onMouseLeaveTooltipContent=n.onMouseLeaveTooltipContent.bind(n),n.show=n.show.bind(n),n.hide=n.hide.bind(n),n.onEscKeyDown=n.onEscKeyDown.bind(n),n}return Y(t,e),W(t,[{key:"componentDidMount",value:function(){this._target=ye(this.props.target),this.addTargetEvents()}},{key:"componentWillUnmount",value:function(){this.clearHideTimeout(),this.clearShowTimeout(),this.removeTargetEvents()}},{key:"onMouseOverTooltip",value:function(e){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,e),this.getDelay("show"))}},{key:"onMouseLeaveTooltip",value:function(e){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide"))}},{key:"onMouseOverTooltipContent",value:function(){this.props.autohide||this._hideTimeout&&this.clearHideTimeout()}},{key:"onMouseLeaveTooltipContent",value:function(e){this.props.autohide||(this._showTimeout&&this.clearShowTimeout(),e.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(e){"Escape"===e.key&&this.hide(e)}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===(void 0===t?"undefined":q(t))?isNaN(t[e])?jn[e]:t[e]:t}},{key:"show",value:function(e){this.props.isOpen||(this.clearShowTimeout(),this.toggle(e))}},{key:"hide",value:function(e){this.props.isOpen&&(this.clearHideTimeout(),this.toggle(e))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"handleDocumentClick",value:function(e){null===this._target||e.target!==this._target&&!this._target.contains(e.target)?this.props.isOpen&&"tooltip"!==e.target.getAttribute("role")&&(this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide"))):(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen||this.toggle(e))}},{key:"addTargetEvents",value:function(){var e=this;if(this.props.trigger){var t=this.props.trigger.split(" ");-1===t.indexOf("manual")&&(t.indexOf("click")>-1&&["click","touchstart"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)}),null!==this._target&&(t.indexOf("hover")>-1&&(this._target.addEventListener("mouseover",this.onMouseOverTooltip,!0),this._target.addEventListener("mouseout",this.onMouseLeaveTooltip,!0)),t.indexOf("focus")>-1&&(this._target.addEventListener("focusin",this.show,!0),this._target.addEventListener("focusout",this.hide,!0)),this._target.addEventListener("keydown",this.onEscKeyDown,!0)))}else null!==this._target&&(this._target.addEventListener("mouseover",this.onMouseOverTooltip,!0),this._target.addEventListener("mouseout",this.onMouseLeaveTooltip,!0),this._target.addEventListener("keydown",this.onEscKeyDown,!0),this._target.addEventListener("focusin",this.show,!0),this._target.addEventListener("focusout",this.hide,!0)),["click","touchstart"].forEach(function(t){return document.addEventListener(t,e.handleDocumentClick,!0)})}},{key:"removeTargetEvents",value:function(){var e=this;null!==this._target&&(this._target.removeEventListener("mouseover",this.onMouseOverTooltip,!0),this._target.removeEventListener("mouseout",this.onMouseLeaveTooltip,!0),this._target.addEventListener("keydown",this.onEscKeyDown,!0),this._target.addEventListener("focusin",this.show,!0),this._target.addEventListener("focusout",this.hide,!0)),["click","touchstart"].forEach(function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)})}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){if(!this.props.isOpen)return null;var e=ne(this.props,Object.keys(Rn)),t=te(h()("tooltip-inner",this.props.innerClassName),this.props.cssModule),n=te(h()("tooltip","show",this.props.className),this.props.cssModule);return i.a.createElement(un,{className:n,target:this.props.target,isOpen:this.props.isOpen,hideArrow:this.props.hideArrow,boundariesElement:this.props.boundariesElement,placement:this.props.placement,placementPrefix:this.props.placementPrefix,arrowClassName:this.props.arrowClassName,container:this.props.container,modifiers:this.props.modifiers,offset:this.props.offset,cssModule:this.props.cssModule},i.a.createElement("div",V({},e,{ref:this.props.innerRef,className:t,role:"tooltip","aria-hidden":this.props.isOpen,onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent,onKeyDown:this.onEscKeyDown})))}}]),t}(i.a.Component);In.propTypes=Rn,In.defaultProps=Dn;var Ln={className:d.a.string,cssModule:d.a.object,size:d.a.string,bordered:d.a.bool,borderless:d.a.bool,striped:d.a.bool,inverse:ae(d.a.bool,'Please use the prop "dark"'),dark:d.a.bool,hover:d.a.bool,responsive:d.a.oneOfType([d.a.bool,d.a.string]),tag:d.a.oneOfType([d.a.func,d.a.string]),responsiveTag:d.a.oneOfType([d.a.func,d.a.string])},zn=function(e){var t=e.className,n=e.cssModule,r=e.size,o=e.bordered,a=e.borderless,u=e.striped,c=e.inverse,s=e.dark,l=e.hover,f=e.responsive,d=e.tag,p=e.responsiveTag,v=G(e,["className","cssModule","size","bordered","borderless","striped","inverse","dark","hover","responsive","tag","responsiveTag"]),g=te(h()(t,"table",!!r&&"table-"+r,!!o&&"table-bordered",!!a&&"table-borderless",!!u&&"table-striped",!(!s&&!c)&&"table-dark",!!l&&"table-hover"),n),m=i.a.createElement(d,V({},v,{className:g}));if(f){var y=!0===f?"table-responsive":"table-responsive-"+f;return i.a.createElement(p,{className:y},m)}return m};zn.propTypes=Ln,zn.defaultProps={tag:"table",responsiveTag:"div"};var Fn={tag:d.a.oneOfType([d.a.func,d.a.string]),flush:d.a.bool,className:d.a.string,cssModule:d.a.object},Un=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.flush,a=G(e,["className","cssModule","tag","flush"]),u=te(h()(t,"list-group",!!o&&"list-group-flush"),n);return i.a.createElement(r,V({},a,{className:u}))};Un.propTypes=Fn,Un.defaultProps={tag:"ul"};var qn={children:d.a.node,inline:d.a.bool,tag:d.a.oneOfType([d.a.func,d.a.string]),innerRef:d.a.oneOfType([d.a.object,d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},Bn=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getRef=n.getRef.bind(n),n.submit=n.submit.bind(n),n}return Y(t,e),W(t,[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.inline,o=e.tag,a=e.innerRef,u=G(e,["className","cssModule","inline","tag","innerRef"]),c=te(h()(t,!!r&&"form-inline"),n);return i.a.createElement(o,V({},u,{ref:a,className:c}))}}]),t}(r.Component);Bn.propTypes=qn,Bn.defaultProps={tag:"form"};var Wn={children:d.a.node,tag:d.a.string,className:d.a.string,cssModule:d.a.object,valid:d.a.bool,tooltip:d.a.bool},Hn={tag:"div",valid:void 0},Vn=function(e){var t=e.className,n=e.cssModule,r=e.valid,o=e.tooltip,a=e.tag,u=G(e,["className","cssModule","valid","tooltip","tag"]),c=o?"tooltip":"feedback",s=te(h()(t,r?"valid-"+c:"invalid-"+c),n);return i.a.createElement(a,V({},u,{className:s}))};Vn.propTypes=Wn,Vn.defaultProps=Hn;var Yn={children:d.a.node,row:d.a.bool,check:d.a.bool,inline:d.a.bool,disabled:d.a.bool,tag:d.a.string,className:d.a.string,cssModule:d.a.object},Gn=function(e){var t=e.className,n=e.cssModule,r=e.row,o=e.disabled,a=e.check,u=e.inline,c=e.tag,s=G(e,["className","cssModule","row","disabled","check","inline","tag"]),l=te(h()(t,"position-relative",!!r&&"row",a?"form-check":"form-group",!(!a||!u)&&"form-check-inline",!(!a||!o)&&"disabled"),n);return i.a.createElement(c,V({},s,{className:l}))};Gn.propTypes=Yn,Gn.defaultProps={tag:"div"};var $n={children:d.a.node,inline:d.a.bool,tag:d.a.oneOfType([d.a.func,d.a.string]),color:d.a.string,className:d.a.string,cssModule:d.a.object},Xn=function(e){var t=e.className,n=e.cssModule,r=e.inline,o=e.color,a=e.tag,u=G(e,["className","cssModule","inline","color","tag"]),c=te(h()(t,!r&&"form-text",!!o&&"text-"+o),n);return i.a.createElement(a,V({},u,{className:c}))};Xn.propTypes=$n,Xn.defaultProps={tag:"small",color:"muted"};var Kn={children:d.a.node,type:d.a.string,size:d.a.string,bsSize:d.a.string,state:ae(d.a.string,'Please use the props "valid" and "invalid" to indicate the state.'),valid:d.a.bool,invalid:d.a.bool,tag:d.a.oneOfType([d.a.func,d.a.string]),innerRef:d.a.oneOfType([d.a.object,d.a.func,d.a.string]),static:ae(d.a.bool,'Please use the prop "plaintext"'),plaintext:d.a.bool,addon:d.a.bool,className:d.a.string,cssModule:d.a.object},Qn=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getRef=n.getRef.bind(n),n.focus=n.focus.bind(n),n}return Y(t,e),W(t,[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.type,o=e.bsSize,a=e.state,u=e.valid,c=e.invalid,s=e.tag,l=e.addon,f=e.static,d=e.plaintext,p=e.innerRef,v=G(e,["className","cssModule","type","bsSize","state","valid","invalid","tag","addon","static","plaintext","innerRef"]),g=["radio","checkbox"].indexOf(r)>-1,m=new RegExp("\\D","g"),y=s||("select"===r||"textarea"===r?r:"input"),b="form-control";d||f?(b+="-plaintext",y=s||"p"):"file"===r?b+="-file":g&&(b=l?null:"form-check-input"),a&&void 0===u&&void 0===c&&("danger"===a?c=!0:"success"===a&&(u=!0)),v.size&&m.test(v.size)&&(oe('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),o=v.size,delete v.size);var _=te(h()(t,c&&"is-invalid",u&&"is-valid",!!o&&"form-control-"+o,b),n);return("input"===y||s&&"function"==typeof s)&&(v.type=r),!v.children||d||f||"select"===r||"string"!=typeof y||"select"===y||(oe('Input with a type of "'+r+'" cannot have children. Please use "value"/"defaultValue" instead.'),delete v.children),i.a.createElement(y,V({},v,{ref:p,className:_}))}}]),t}(i.a.Component);Qn.propTypes=Kn,Qn.defaultProps={type:"text"};var Zn={tag:d.a.oneOfType([d.a.func,d.a.string]),size:d.a.string,className:d.a.string,cssModule:d.a.object},Jn=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.size,a=G(e,["className","cssModule","tag","size"]),u=te(h()(t,"input-group",o?"input-group-"+o:null),n);return i.a.createElement(r,V({},a,{className:u}))};Jn.propTypes=Zn,Jn.defaultProps={tag:"div"};var er={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object},tr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"input-group-text"),n);return i.a.createElement(r,V({},o,{className:a}))};tr.propTypes=er,tr.defaultProps={tag:"span"};var nr={tag:d.a.oneOfType([d.a.func,d.a.string]),addonType:d.a.oneOf(["prepend","append"]).isRequired,children:d.a.node,className:d.a.string,cssModule:d.a.object},rr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.addonType,a=e.children,u=G(e,["className","cssModule","tag","addonType","children"]),c=te(h()(t,"input-group-"+o),n);return"string"==typeof a?i.a.createElement(r,V({},u,{className:c}),i.a.createElement(tr,{children:a})):i.a.createElement(r,V({},u,{className:c,children:a}))};rr.propTypes=nr,rr.defaultProps={tag:"div"};d.a.oneOfType([d.a.func,d.a.string]),d.a.oneOf(["prepend","append"]).isRequired,d.a.node,d.a.string,d.a.object,d.a.string,d.a.object,d.a.oneOf(["prepend","append"]).isRequired,d.a.node;var ir=d.a.oneOfType([d.a.number,d.a.string]),or=d.a.oneOfType([d.a.string,d.a.number,d.a.shape({size:ir,push:ae(ir,'Please use the prop "order"'),pull:ae(ir,'Please use the prop "order"'),order:ir,offset:ir})]),ar={children:d.a.node,hidden:d.a.bool,check:d.a.bool,size:d.a.string,for:d.a.string,tag:d.a.string,className:d.a.string,cssModule:d.a.object,xs:or,sm:or,md:or,lg:or,xl:or,widths:d.a.array},ur={tag:"label",widths:["xs","sm","md","lg","xl"]},cr=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},sr=function(e){var t=e.className,n=e.cssModule,r=e.hidden,o=e.widths,a=e.tag,u=e.check,c=e.size,s=e.for,l=G(e,["className","cssModule","hidden","widths","tag","check","size","for"]),f=[];o.forEach(function(t,r){var i=e[t];if(delete l[t],i||""===i){var o=!r,a=void 0;if(y()(i)){var u,c=o?"-":"-"+t+"-";a=cr(o,t,i.size),f.push(te(h()((H(u={},a,i.size||""===i.size),H(u,"order"+c+i.order,i.order||0===i.order),H(u,"offset"+c+i.offset,i.offset||0===i.offset),u))),n)}else a=cr(o,t,i),f.push(a)}});var d=te(h()(t,!!r&&"sr-only",!!u&&"form-check-label",!!c&&"col-form-label-"+c,f,!!f.length&&"col-form-label"),n);return i.a.createElement(a,V({htmlFor:s},l,{className:d}))};sr.propTypes=ar,sr.defaultProps=ur;d.a.bool,d.a.bool,d.a.node,d.a.string,d.a.object,d.a.bool,d.a.bool,d.a.bool,d.a.bool,d.a.bool,d.a.bool,d.a.oneOfType([d.a.func,d.a.string]),d.a.bool;var lr={children:d.a.node,className:d.a.string,listClassName:d.a.string,cssModule:d.a.object,size:d.a.string,tag:d.a.oneOfType([d.a.func,d.a.string]),listTag:d.a.oneOfType([d.a.func,d.a.string]),"aria-label":d.a.string},fr=function(e){var t=e.className,n=e.listClassName,r=e.cssModule,o=e.size,a=e.tag,u=e.listTag,c=e["aria-label"],s=G(e,["className","listClassName","cssModule","size","tag","listTag","aria-label"]),l=te(h()(t),r),f=te(h()(n,"pagination",H({},"pagination-"+o,!!o)),r);return i.a.createElement(a,{className:l,"aria-label":c},i.a.createElement(u,V({},s,{className:f})))};fr.propTypes=lr,fr.defaultProps={tag:"nav",listTag:"ul","aria-label":"pagination"};var dr={active:d.a.bool,children:d.a.node,className:d.a.string,cssModule:d.a.object,disabled:d.a.bool,tag:d.a.oneOfType([d.a.func,d.a.string])},pr=function(e){var t=e.active,n=e.className,r=e.cssModule,o=e.disabled,a=e.tag,u=G(e,["active","className","cssModule","disabled","tag"]),c=te(h()(n,"page-item",{active:t,disabled:o}),r);return i.a.createElement(a,V({},u,{className:c}))};pr.propTypes=dr,pr.defaultProps={tag:"li"};var hr={"aria-label":d.a.string,children:d.a.node,className:d.a.string,cssModule:d.a.object,next:d.a.bool,previous:d.a.bool,tag:d.a.oneOfType([d.a.func,d.a.string])},vr=function(e){var t=e.className,n=e.cssModule,r=e.next,o=e.previous,a=e.tag,u=G(e,["className","cssModule","next","previous","tag"]),c=te(h()(t,"page-link"),n),s=void 0;o?s="Previous":r&&(s="Next");var l=e["aria-label"]||s,f=void 0;o?f="«":r&&(f="»");var d=e.children;return d&&Array.isArray(d)&&0===d.length&&(d=null),u.href||"a"!==a||(a="button"),(o||r)&&(d=[i.a.createElement("span",{"aria-hidden":"true",key:"caret"},d||f),i.a.createElement("span",{className:"sr-only",key:"sr"},l)]),i.a.createElement(a,V({},u,{className:c,"aria-label":l}),d)};vr.propTypes=hr,vr.defaultProps={tag:"a"};var gr={tag:d.a.oneOfType([d.a.func,d.a.string]),activeTab:d.a.any,className:d.a.string,cssModule:d.a.object},mr={activeTabId:d.a.any},yr=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={activeTab:n.props.activeTab},n}return Y(t,e),W(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){return t.activeTab!==e.activeTab?{activeTab:e.activeTab}:null}}]),W(t,[{key:"getChildContext",value:function(){return{activeTabId:this.state.activeTab}}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,r=e.tag,o=ne(this.props,Object.keys(gr)),a=te(h()("tab-content",t),n);return i.a.createElement(r,V({},o,{className:a}))}}]),t}(r.Component);!function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==i){var o=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+o+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==r?"\n  "+r:"")+(null!==i?"\n  "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=z,t.componentWillReceiveProps=F),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=U;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}}(yr),yr.propTypes=gr,yr.defaultProps={tag:"div"},yr.childContextTypes=mr;var br={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.string,cssModule:d.a.object,tabId:d.a.any},_r={activeTabId:d.a.any};function xr(e,t){var n=e.className,r=e.cssModule,o=e.tabId,a=e.tag,u=G(e,["className","cssModule","tabId","tag"]),c=te(h()("tab-pane",n,{active:o===t.activeTabId}),r);return i.a.createElement(a,V({},u,{className:c}))}xr.propTypes=br,xr.defaultProps={tag:"div"},xr.contextTypes=_r;var wr={tag:d.a.oneOfType([d.a.func,d.a.string]),fluid:d.a.bool,className:d.a.string,cssModule:d.a.object},Er=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.fluid,a=G(e,["className","cssModule","tag","fluid"]),u=te(h()(t,"jumbotron",!!o&&"jumbotron-fluid"),n);return i.a.createElement(r,V({},a,{className:u}))};Er.propTypes=wr,Er.defaultProps={tag:"div"};var Tr,kr={children:d.a.node,className:d.a.string,closeClassName:d.a.string,closeAriaLabel:d.a.string,cssModule:d.a.object,color:d.a.string,fade:d.a.bool,isOpen:d.a.bool,toggle:d.a.func,tag:d.a.oneOfType([d.a.func,d.a.string]),transition:d.a.shape(wt.propTypes),innerRef:d.a.oneOfType([d.a.object,d.a.string,d.a.func])},Mr={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:V({},wt.defaultProps,{unmountOnExit:!0})};function Nr(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,o=e.cssModule,a=e.tag,u=e.color,c=e.isOpen,s=e.toggle,l=e.children,f=e.transition,d=e.fade,p=e.innerRef,v=G(e,["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"]),g=te(h()(t,"alert","alert-"+u,{"alert-dismissible":s}),o),m=te(h()("close",n),o),y=V({},wt.defaultProps,f,{baseClass:d?f.baseClass:"",timeout:d?f.timeout:0});return i.a.createElement(wt,V({},v,y,{tag:a,className:g,in:c,role:"alert",innerRef:p}),s?i.a.createElement("button",{type:"button",className:m,"aria-label":r,onClick:s},i.a.createElement("span",{"aria-hidden":"true"},"×")):null,l)}Nr.propTypes=kr,Nr.defaultProps=Mr;var Cr=V({},bt.propTypes,{isOpen:d.a.bool,children:d.a.oneOfType([d.a.arrayOf(d.a.node),d.a.node]),tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.node,navbar:d.a.bool,cssModule:d.a.object,innerRef:d.a.oneOfType([d.a.func,d.a.string,d.a.object])}),Or=V({},bt.defaultProps,{isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:se.Collapse}),Sr=(H(Tr={},fe.ENTERING,"collapsing"),H(Tr,fe.ENTERED,"collapse show"),H(Tr,fe.EXITING,"collapsing"),H(Tr,fe.EXITED,"collapse"),Tr);function Pr(e){return e.scrollHeight}var Ar=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={height:null},["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(e){n[e]=n[e].bind(n)}),n}return Y(t,e),W(t,[{key:"onEntering",value:function(e,t){this.setState({height:Pr(e)}),this.props.onEntering(e,t)}},{key:"onEntered",value:function(e,t){this.setState({height:null}),this.props.onEntered(e,t)}},{key:"onExit",value:function(e){this.setState({height:Pr(e)}),this.props.onExit(e)}},{key:"onExiting",value:function(e){e.offsetHeight;this.setState({height:0}),this.props.onExiting(e)}},{key:"onExited",value:function(e){this.setState({height:null}),this.props.onExited(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.tag,r=t.isOpen,o=t.className,a=t.navbar,u=t.cssModule,c=t.children,s=(t.innerRef,G(t,["tag","isOpen","className","navbar","cssModule","children","innerRef"])),l=this.state.height,f=re(s,le),d=ne(s,le);return i.a.createElement(bt,V({},f,{in:r,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(t){var r=function(e){return Sr[e]||"collapse"}(t),s=te(h()(o,r,a&&"navbar-collapse"),u),f=null===l?null:{height:l};return i.a.createElement(n,V({},d,{style:V({},d.style,f),className:s,ref:e.props.innerRef}),c)})}}]),t}(r.Component);Ar.propTypes=Cr,Ar.defaultProps=Or;var Rr={tag:d.a.oneOfType([d.a.func,d.a.string]),active:d.a.bool,disabled:d.a.bool,color:d.a.string,action:d.a.bool,className:d.a.any,cssModule:d.a.object},jr=function(e){e.preventDefault()},Dr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.active,a=e.disabled,u=e.action,c=e.color,s=G(e,["className","cssModule","tag","active","disabled","action","color"]),l=te(h()(t,!!o&&"active",!!a&&"disabled",!!u&&"list-group-item-action",!!c&&"list-group-item-"+c,"list-group-item"),n);return a&&(s.onClick=jr),i.a.createElement(r,V({},s,{className:l}))};Dr.propTypes=Rr,Dr.defaultProps={tag:"li"};var Ir={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.any,cssModule:d.a.object},Lr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"list-group-item-heading"),n);return i.a.createElement(r,V({},o,{className:a}))};Lr.propTypes=Ir,Lr.defaultProps={tag:"h5"};var zr={tag:d.a.oneOfType([d.a.func,d.a.string]),className:d.a.any,cssModule:d.a.object},Fr=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=G(e,["className","cssModule","tag"]),a=te(h()(t,"list-group-item-text"),n);return i.a.createElement(r,V({},o,{className:a}))};Fr.propTypes=zr,Fr.defaultProps={tag:"p"};(function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!0},n.toggle=n.toggle.bind(n),n}Y(t,e),W(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return i.a.createElement(Nr,V({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])})(r.Component),function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}Y(t,e),W(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return i.a.createElement(tt,V({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])}(r.Component);var Ur={toggler:d.a.string.isRequired,toggleEvents:d.a.arrayOf(d.a.string)},qr={toggleEvents:be},Br=function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.togglers=null,n.removeEventListeners=null,n.toggle=n.toggle.bind(n),n.state={isOpen:!1},n}return Y(t,e),W(t,[{key:"componentDidMount",value:function(){this.togglers=ge(this.props.toggler),this.togglers.length&&(this.removeEventListeners=_e(this.togglers,this.toggle,this.props.toggleEvents))}},{key:"componentWillUnmount",value:function(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}},{key:"toggle",value:function(e){this.setState(function(e){return{isOpen:!e.isOpen}}),e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=(e.toggleEvents,G(e,["toggleEvents"]));return i.a.createElement(Ar,V({isOpen:this.state.isOpen},t))}}]),t}(r.Component);Br.propTypes=Ur,Br.defaultProps=qr;(function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}Y(t,e),W(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return i.a.createElement(Ve,V({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])})(r.Component),function(e){function t(e){B(this,t);var n=$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isOpen:!1},n.toggle=n.toggle.bind(n),n}Y(t,e),W(t,[{key:"toggle",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){return i.a.createElement(In,V({isOpen:this.state.isOpen,toggle:this.toggle},this.props))}}])}(r.Component);function Wr(e){var t="function"==typeof Map?new Map:void 0;return(Wr=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Hr(e,arguments,Kr(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Zr(r,e)})(e)}function Hr(e,t,n){return(Hr=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Zr(i,n.prototype),i}).apply(null,arguments)}function Vr(e){return(Vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $r(e,t,n){return t&&Gr(e.prototype,t),n&&Gr(e,n),e}function Xr(e,t){return!t||"object"!==Vr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Kr(e){return(Kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zr(e,t)}function Zr(e,t){return(Zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jr=function(e){function t(e){var n;return Yr(this,t),(n=Xr(this,Kr(t).call(this,e))).state={speed:0},n}return Qr(t,i.a.Component),$r(t,[{key:"componentDidMount",value:function(){var e=this;setInterval(function(){e.setState({speed:55})},1e3),setTimeout(setInterval(function(){e.setState({speed:57})},1500),1e3)}},{key:"render",value:function(){return i.a.createElement("div",{className:"chart-area"},i.a.createElement("link",{rel:"stylesheet",href:"../lib/black-dashboard-react.css"}),i.a.createElement("link",{rel:"stylesheet",href:"../lib/nucleo-icons.css"}),i.a.createElement(Mt,{className:"card-chart"},i.a.createElement(Ut,null,i.a.createElement("h5",{className:"card-category"},"Speedometer Component")),i.a.createElement(jt,null,i.a.createElement(c.a,{minValue:0,maxValue:170,value:this.state.speed}))))}}]),t}(),ei=function(e){function t(){return Yr(this,t),Xr(this,Kr(t).apply(this,arguments))}return Qr(t,Wr(HTMLElement)),$r(t,[{key:"connectedCallback",value:function(){var e=document.createElement("span"),t=this.attachShadow({mode:"open"}).appendChild(e);l()(t),a.a.render(i.a.createElement("div",null,i.a.createElement(Jr,null)),e)}}]),t}();customElements.define("__componentName__",ei)}]);