-
Notifications
You must be signed in to change notification settings - Fork 0
/
proto-app-grid.min.js
53 lines (53 loc) · 330 KB
/
proto-app-grid.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,o){r.apply(this,[e,t,o].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){"use strict";n(1),n(101)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=window,t=document,n=t.documentElement,r=t.getElementsByTagName("body")[0],o=e.innerWidth||n.clientWidth||r.clientWidth,i=e.innerHeight||n.clientHeight||r.clientHeight;return{width:o,height:i}}var i=n(2),a=r(i),u=n(8),l=r(u),c=n(16),f=r(c);window.ProtoGraph=window.ProtoGraph||{},window.ProtoGraph.Card=window.ProtoGraph.Card||{},ProtoGraph.Card.toMaps=function(){this.cardType="Map"},ProtoGraph.Card.toMaps.prototype.init=function(e){this.options=e},ProtoGraph.Card.toMaps.prototype.getData=function(e){return this.containerInstance.exportData()},ProtoGraph.Card.toMaps.prototype.renderLaptop=function(){var e=this,t=o(),n=void 0;n=t.width<=450?"mobile":"laptop",l.default.render(a.default.createElement(f.default,{dataURL:this.options.dataURL,topoURL:this.options.topoURL,chartOptions:this.options.chartOptions,mode:n,dimensionWidth:t.width,filters:this.options.filters,filterConfigurationJSON:this.options.filterConfigurationJSON,ref:function(t){e.containerInstance=e.containerInstance||t}}),this.options.selector)}},function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){/** @license React v16.4.2
* react.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";function r(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]);v(!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)}function o(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||j}function i(){}function a(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||j}function u(e,t,n){var r=void 0,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)L.call(t,r)&&!U.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:S,type:e,key:i,ref:a,props:o,_owner:A.current}}function l(e){return"object"==typeof e&&null!==e&&e.$$typeof===S}function c(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function f(e,t,n,r){if(D.length){var o=D.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}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>D.length&&D.push(e)}function d(e,t,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case S:case x:a=!0}}if(a)return n(o,e,""===t?"."+p(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){i=e[u];var l=t+p(i,u);a+=d(i,l,n,o)}else if(null===e||"undefined"==typeof e?l=null:(l=P&&e[P]||e["@@iterator"],l="function"==typeof l?l:null),"function"==typeof l)for(e=l.call(e),u=0;!(i=e.next()).done;)i=i.value,l=t+p(i,u++),a+=d(i,l,n,o);else"object"===i&&(n=""+e,r("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function p(e,t){return"object"==typeof e&&null!==e&&null!=e.key?c(e.key):t.toString(36)}function h(e,t){e.func.call(e.context,t,e.count++)}function g(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?m(e,r,n,w.thatReturnsArgument):null!=e&&(l(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(F,"$&/")+"/")+n,e={$$typeof:S,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function m(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(F,"$&/")+"/"),t=f(t,i,r,o),null==e||d(e,"",g,t),s(t)}var y=n(4),v=n(5),b=n(6),w=n(7),_="function"==typeof Symbol&&Symbol.for,S=_?Symbol.for("react.element"):60103,x=_?Symbol.for("react.portal"):60106,E=_?Symbol.for("react.fragment"):60107,C=_?Symbol.for("react.strict_mode"):60108,k=_?Symbol.for("react.profiler"):60114,O=_?Symbol.for("react.provider"):60109,M=_?Symbol.for("react.context"):60110,T=_?Symbol.for("react.async_mode"):60111,N=_?Symbol.for("react.forward_ref"):60112;_&&Symbol.for("react.timeout");var P="function"==typeof Symbol&&Symbol.iterator,j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?r("85"):void 0,this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},i.prototype=o.prototype;var R=a.prototype=new i;R.constructor=a,y(R,o.prototype),R.isPureReactComponent=!0;var A={current:null},L=Object.prototype.hasOwnProperty,U={key:!0,ref:!0,__self:!0,__source:!0},F=/\/+/g,D=[],z={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return m(e,r,null,t,n),r},forEach:function(e,t,n){return null==e?e:(t=f(null,null,t,n),null==e||d(e,"",h,t),void s(t))},count:function(e){return null==e?0:d(e,"",w.thatReturnsNull,null)},toArray:function(e){var t=[];return m(e,t,null,w.thatReturnsArgument),t},only:function(e){return l(e)?void 0:r("143"),e}},createRef:function(){return{current:null}},Component:o,PureComponent:a,createContext:function(e,t){return void 0===t&&(t=null),e={$$typeof:M,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_currentValue2:e,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null},e.Provider={$$typeof:O,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:N,render:e}},Fragment:E,StrictMode:C,unstable_AsyncMode:T,unstable_Profiler:k,createElement:u,cloneElement:function(e,t,n){null===e||void 0===e?r("267",e):void 0;var o=void 0,i=y({},e.props),a=e.key,u=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,l=A.current),void 0!==t.key&&(a=""+t.key);var c=void 0;e.type&&e.type.defaultProps&&(c=e.type.defaultProps);for(o in t)L.call(t,o)&&!U.hasOwnProperty(o)&&(i[o]=void 0===t[o]&&void 0!==c?c[o]:t[o])}if(o=arguments.length-2,1===o)i.children=n;else if(1<o){c=Array(o);for(var f=0;f<o;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:S,type:e.type,key:a,ref:u,props:i,_owner:l}},createFactory:function(e){var t=u.bind(null,e);return t.type=e,t},isValidElement:l,version:"16.4.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:A,assign:y}},I={default:z},B=I&&z||I;e.exports=B.default?B.default:B},function(e,t){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){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;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,u,l=n(e),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var f in r)i.call(r,f)&&(l[f]=r[f]);if(o){u=o(r);for(var s=0;s<u.length;s++)a.call(r,u[s])&&(l[u[s]]=r[u[s]])}}return l}},function(e,t,n){"use strict";function r(e,t,n,r,i,a,u,l){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,r,i,a,u,l],s=0;c=new Error(t.replace(/%s/g,function(){return f[s++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(9)},function(e,t,n){/** @license React v16.4.0
* react-dom.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";function r(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]);Rr(!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)}function o(e,t,n,r,o,i,a,u,l){this._hasCaughtError=!1,this._caughtError=null;var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this._caughtError=e,this._hasCaughtError=!0}}function i(){if(Wr._hasRethrowError){var e=Wr._rethrowError;throw Wr._rethrowError=null,Wr._hasRethrowError=!1,e}}function a(){if(Hr)for(var e in qr){var t=qr[e],n=Hr.indexOf(e);if(-1<n?void 0:r("96",e),!Vr[n]){t.extractEvents?void 0:r("97",e),Vr[n]=t,n=t.eventTypes;for(var o in n){var i=void 0,a=n[o],l=t,c=o;Yr.hasOwnProperty(c)?r("99",c):void 0,Yr[c]=a;var f=a.phasedRegistrationNames;if(f){for(i in f)f.hasOwnProperty(i)&&u(f[i],l,c);i=!0}else a.registrationName?(u(a.registrationName,l,c),i=!0):i=!1;i?void 0:r("98",o,e)}}}}function u(e,t,n){Jr[e]?r("100",e):void 0,Jr[e]=t,$r[e]=t.eventTypes[n].dependencies}function l(e){Hr?r("101"):void 0,Hr=Array.prototype.slice.call(e),a()}function c(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];qr.hasOwnProperty(t)&&qr[t]===o||(qr[t]?r("102",t):void 0,qr[t]=o,n=!0)}n&&a()}function f(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=Qr(r),Wr.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function s(e,t){return null==t?r("30"):void 0,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 d(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function p(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)f(e,t,n[o],r[o]);else n&&f(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function h(e){return p(e,!0)}function g(e){return p(e,!1)}function m(e,t){var n=e.stateNode;if(!n)return null;var o=Xr(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(e=e.type,o=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}return e?null:(n&&"function"!=typeof n?r("231",t,typeof n):void 0,n)}function y(e,t){null!==e&&(Zr=s(Zr,e)),e=Zr,Zr=null,e&&(t?d(e,h):d(e,g),Zr?r("95"):void 0,Wr.rethrowCaughtError())}function v(e,t,n,r){for(var o=null,i=0;i<Vr.length;i++){var a=Vr[i];a&&(a=a.extractEvents(e,t,n,r))&&(o=s(o,a))}y(o,!1)}function b(e){if(e[ro])return e[ro];for(;!e[ro];){if(!e.parentNode)return null;e=e.parentNode}return e=e[ro],5===e.tag||6===e.tag?e:null}function w(e){return 5===e.tag||6===e.tag?e.stateNode:void r("33")}function _(e){return e[oo]||null}function S(e){do e=e.return;while(e&&5!==e.tag);return e?e:null}function x(e,t,n){for(var r=[];e;)r.push(e),e=S(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function E(e,t,n){(t=m(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=s(n._dispatchListeners,t),n._dispatchInstances=s(n._dispatchInstances,e))}function C(e){e&&e.dispatchConfig.phasedRegistrationNames&&x(e._targetInst,E,e)}function k(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;t=t?S(t):null,x(t,E,e)}}function O(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=m(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=s(n._dispatchListeners,t),n._dispatchInstances=s(n._dispatchInstances,e))}function M(e){e&&e.dispatchConfig.registrationName&&O(e._targetInst,null,e)}function T(e){d(e,C)}function N(e,t,n,r){if(n&&r)e:{for(var o=n,i=r,a=0,u=o;u;u=S(u))a++;u=0;for(var l=i;l;l=S(l))u++;for(;0<a-u;)o=S(o),a--;for(;0<u-a;)i=S(i),u--;for(;a--;){if(o===i||o===i.alternate)break e;o=S(o),i=S(i)}o=null}else o=null;for(i=o,o=[];n&&n!==i&&(a=n.alternate,null===a||a!==i);)o.push(n),n=S(n);for(n=[];r&&r!==i&&(a=r.alternate,null===a||a!==i);)n.push(r),r=S(r);for(r=0;r<o.length;r++)O(o[r],"bubbled",e);for(e=n.length;0<e--;)O(n[e],"captured",t)}function P(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function j(e){if(lo[e])return lo[e];if(!uo[e])return e;var t,n=uo[e];for(t in n)if(n.hasOwnProperty(t)&&t in co)return lo[e]=n[t];return e}function R(){return!mo&&Lr.canUseDOM&&(mo="textContent"in document.documentElement?"textContent":"innerText"),mo}function A(){if(yo._fallbackText)return yo._fallbackText;var e,t,n=yo._startText,r=n.length,o=L(),i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return yo._fallbackText=o.slice(e,1<t?1-t:void 0),yo._fallbackText}function L(){return"value"in yo._root?yo._root.value:yo._root[R()]}function U(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var o in e)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Fr.thatReturnsTrue:Fr.thatReturnsFalse,this.isPropagationStopped=Fr.thatReturnsFalse,this}function F(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function D(e){e instanceof this?void 0:r("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function z(e){e.eventPool=[],e.getPooled=F,e.release=D}function I(e,t){switch(e){case"keyup":return-1!==So.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function B(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function W(e,t){switch(e){case"compositionend":return B(t);case"keypress":return 32!==t.which?null:(To=!0,Oo);case"textInput":return e=t.data,e===Oo&&To?null:e;default:return null}}function H(e,t){if(No)return"compositionend"===e||!xo&&I(e,t)?(e=A(),yo._root=null,yo._startText=null,yo._fallbackText=null,No=!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 ko?null:t.data;default:return null}}function q(e){if(e=Kr(e)){jo&&"function"==typeof jo.restoreControlledState?void 0:r("194");var t=Xr(e.stateNode);jo.restoreControlledState(e.stateNode,e.type,t)}}function V(e){Ao?Lo?Lo.push(e):Lo=[e]:Ao=e}function Y(){return null!==Ao||null!==Lo}function J(){if(Ao){var e=Ao,t=Lo;if(Lo=Ao=null,q(e),t)for(e=0;e<t.length;e++)q(t[e])}}function $(e,t){return e(t)}function G(e,t,n){return e(t,n)}function X(){}function K(e,t){if(Fo)return e(t);Fo=!0;try{return $(e,t)}finally{Fo=!1,Y()&&(X(),J())}}function Q(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Do[e.type]:"textarea"===t}function Z(e){return e=e.target||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ee(e,t){return!(!Lr.canUseDOM||t&&!("addEventListener"in document))&&(e="on"+e,t=e in document,t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t="function"==typeof t[e]),t)}function te(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ne(e){var t=te(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!=typeof n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.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]}}}}function re(e){e._valueTracker||(e._valueTracker=ne(e))}function oe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=te(e)?e.checked?"true":"false":e.value),e=r,e!==n&&(t.setValue(e),!0)}function ie(e){return null===e||"undefined"==typeof e?null:(e=Ko&&e[Ko]||e["@@iterator"],"function"==typeof e?e:null)}function ae(e){var t=e.type;if("function"==typeof t)return t.displayName||t.name;if("string"==typeof t)return t;switch(t){case $o:return"AsyncMode";case Jo:return"Context.Consumer";case Ho:return"ReactFragment";case Wo:return"ReactPortal";case Vo:return"Profiler("+e.pendingProps.id+")";case Yo:return"Context.Provider";case qo:return"StrictMode";case Xo:return"Timeout"}if("object"==typeof t&&null!==t)switch(t.$$typeof){case Go:return e=t.render.displayName||t.render.name||"",""!==e?"ForwardRef("+e+")":"ForwardRef"}return null}function ue(e){var t="";do{e:switch(e.tag){case 0:case 1:case 2:case 5:var n=e._debugOwner,r=e._debugSource,o=ae(e),i=null;n&&(i=ae(n)),n=r,o="\n in "+(o||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":i?" (created by "+i+")":"");break e;default:o=""}t+=o,e=e.return}while(e);return t}function le(e){return!!ei.hasOwnProperty(e)||!Zo.hasOwnProperty(e)&&(Qo.test(e)?ei[e]=!0:(Zo[e]=!0,!1))}function ce(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:(e=e.toLowerCase().slice(0,5),"data-"!==e&&"aria-"!==e));default:return!1}}function fe(e,t,n,r){if(null===t||"undefined"==typeof t||ce(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}function se(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}function de(e){return e[1].toUpperCase()}function pe(e,t,n,r){var o=ti.hasOwnProperty(t)?ti[t]:null,i=null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]);i||(fe(t,n,o,r)&&(n=null),r||null===o?le(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(o=o.type,n=3===o||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function he(e,t){var n=t.checked;return Ur({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ge(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=we(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 me(e,t){t=t.checked,null!=t&&pe(e,"checked",t,!1)}function ye(e,t){me(e,t);var n=we(t.value);null!=n&&("number"===t.type?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n)),t.hasOwnProperty("value")?be(e,t.type,n):t.hasOwnProperty("defaultValue")&&be(e,t.type,we(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ve(e,t){(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue"))&&(""===e.value&&(e.value=""+e._wrapperState.initialValue),e.defaultValue=""+e._wrapperState.initialValue),t=e.name,""!==t&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)}function be(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function we(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function _e(e,t,n){return e=U.getPooled(ri.change,e,t,n),e.type="change",V(n),T(e),e}function Se(e){y(e,!1)}function xe(e){var t=w(e);if(oe(t))return e}function Ee(e,t){if("change"===e)return t}function Ce(){oi&&(oi.detachEvent("onpropertychange",ke),ii=oi=null)}function ke(e){"value"===e.propertyName&&xe(ii)&&(e=_e(ii,e,Z(e)),K(Se,e))}function Oe(e,t,n){"focus"===e?(Ce(),oi=t,ii=n,oi.attachEvent("onpropertychange",ke)):"blur"===e&&Ce()}function Me(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return xe(ii)}function Te(e,t){if("click"===e)return xe(t)}function Ne(e,t){if("input"===e||"change"===e)return xe(t)}function Pe(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=ci[e])&&!!t[e]}function je(){return Pe}function Re(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(t=t.return,0!==(2&t.effectTag))return 1}return 3===t.tag?2:3}function Ae(e){2!==Re(e)?r("188"):void 0}function Le(e){var t=e.alternate;if(!t)return t=Re(e),3===t?r("188"):void 0,1===t?null:e;for(var n=e,o=t;;){var i=n.return,a=i?i.alternate:null;if(!i||!a)break;if(i.child===a.child){for(var u=i.child;u;){if(u===n)return Ae(i),e;if(u===o)return Ae(i),t;u=u.sibling}r("188")}if(n.return!==o.return)n=i,o=a;else{u=!1;for(var l=i.child;l;){if(l===n){u=!0,n=i,o=a;break}if(l===o){u=!0,o=i,n=a;break}l=l.sibling}if(!u){for(l=a.child;l;){if(l===n){u=!0,n=a,o=i;break}if(l===o){u=!0,o=a,n=i;break}l=l.sibling}u?void 0:r("189")}}n.alternate!==o?r("190"):void 0}return 3!==n.tag?r("188"):void 0,n.stateNode.current===n?e:t}function Ue(e){if(e=Le(e),!e)return null;for(var t=e;;){if(5===t.tag||6===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}function Fe(e){if(e=Le(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)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}function De(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,0===e&&13===t&&(e=13)):e=t,10===e&&(e=13),32<=e||13===e?e:0}function ze(e,t){var n=e[0];e=e[1];var r="on"+(e[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},Ci[e]=t,ki[n]=t}function Ie(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(n=3!==n.tag?null:n.stateNode.containerInfo,!n)break;e.ancestors.push(t),t=b(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],v(e.topLevelType,t,e.nativeEvent,Z(e.nativeEvent))}function Be(e){Ni=!!e}function We(e,t){if(!t)return null;var n=(Mi(e)?qe:Ve).bind(null,e);t.addEventListener(e,n,!1)}function He(e,t){if(!t)return null;var n=(Mi(e)?qe:Ve).bind(null,e);t.addEventListener(e,n,!0)}function qe(e,t){G(Ve,e,t)}function Ve(e,t){if(Ni){var n=Z(t);if(n=b(n),null===n||"number"!=typeof n.tag||2===Re(n)||(n=null),Ti.length){var r=Ti.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{K(Ie,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Ti.length&&Ti.push(e)}}}function Ye(e){return Object.prototype.hasOwnProperty.call(e,Ai)||(e[Ai]=Ri++,ji[e[Ai]]={}),ji[e[Ai]]}function Je(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $e(e,t){var n=Je(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Je(n)}}function Ge(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}function Xe(e,t){if(Ii||null==Fi||Fi!==Dr())return null;var n=Fi;return"selectionStart"in n&&Ge(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,zi&&zr(zi,n)?null:(zi=n,e=U.getPooled(Ui.select,Di,e,t),e.type="select",e.target=Fi,T(e),e)}function Ke(e){var t="";return Ar.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}function Qe(e,t){return e=Ur({children:void 0},t),(t=Ke(t.children))&&(e.children=t),e}function Ze(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+n,t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function et(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function tt(e,t){return null!=t.dangerouslySetInnerHTML?r("91"):void 0,Ur({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nt(e,t){var n=t.value;null==n&&(n=t.defaultValue,t=t.children,null!=t&&(null!=n?r("92"):void 0,Array.isArray(t)&&(1>=t.length?void 0:r("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function rt(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function ot(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function it(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 at(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?it(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function ut(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function lt(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=n,i=t[n];o=null==i||"boolean"==typeof i||""===i?"":r||"number"!=typeof i||0===i||ca.hasOwnProperty(o)&&ca[o]?(""+i).trim():i+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}function ct(e,t,n){t&&(sa[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?r("137",e,n()):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?r("60"):void 0,"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML?void 0:r("61")),null!=t.style&&"object"!=typeof t.style?r("62",n()):void 0)}function ft(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 st(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Ye(e);t=$r[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":He("scroll",e);break;case"focus":case"blur":He("focus",e),He("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":ee(o,!0)&&He(o,e);break;case"invalid":case"submit":case"reset":break;default:-1===go.indexOf(o)&&We(o,e)}n[o]=!0}}}function dt(e,t,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===aa.html&&(r=it(e)),r===aa.html?"script"===e?(e=n.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function pt(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function ht(e,t,n,r){var o=ft(t,n);switch(t){case"iframe":case"object":We("load",e);var i=n;break;case"video":case"audio":for(i=0;i<go.length;i++)We(go[i],e);i=n;break;case"source":We("error",e),i=n;break;case"img":case"image":case"link":We("error",e),We("load",e),i=n;break;case"form":We("reset",e),We("submit",e),i=n;break;case"details":We("toggle",e),i=n;break;case"input":ge(e,n),i=he(e,n),We("invalid",e),st(r,"onChange");break;case"option":i=Qe(e,n);break;case"select":et(e,n),i=Ur({},n,{value:void 0}),We("invalid",e),st(r,"onChange");break;case"textarea":nt(e,n),i=tt(e,n),We("invalid",e),st(r,"onChange");break;default:i=n}ct(t,i,da);var a,u=i;for(a in u)if(u.hasOwnProperty(a)){var l=u[a];"style"===a?lt(e,l,da):"dangerouslySetInnerHTML"===a?(l=l?l.__html:void 0,null!=l&&la(e,l)):"children"===a?"string"==typeof l?("textarea"!==t||""!==l)&&ut(e,l):"number"==typeof l&&ut(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Jr.hasOwnProperty(a)?null!=l&&st(r,a):null!=l&&pe(e,a,l,o))}switch(t){case"input":re(e),ve(e,n);break;case"textarea":re(e),ot(e,n);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,t=n.value,null!=t?Ze(e,!!n.multiple,t,!1):null!=n.defaultValue&&Ze(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Fr)}}function gt(e,t,n,r,o){var i=null;switch(t){case"input":n=he(e,n),r=he(e,r),i=[];break;case"option":n=Qe(e,n),r=Qe(e,r),i=[];break;case"select":n=Ur({},n,{value:void 0}),r=Ur({},r,{value:void 0}),i=[];break;case"textarea":n=tt(e,n),r=tt(e,r),i=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=Fr)}ct(t,r,da),t=e=void 0;var a=null;for(e in n)if(!r.hasOwnProperty(e)&&n.hasOwnProperty(e)&&null!=n[e])if("style"===e){var u=n[e];for(t in u)u.hasOwnProperty(t)&&(a||(a={}),a[t]="")}else"dangerouslySetInnerHTML"!==e&&"children"!==e&&"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&"autoFocus"!==e&&(Jr.hasOwnProperty(e)?i||(i=[]):(i=i||[]).push(e,null));for(e in r){var l=r[e];if(u=null!=n?n[e]:void 0,r.hasOwnProperty(e)&&l!==u&&(null!=l||null!=u))if("style"===e)if(u){for(t in u)!u.hasOwnProperty(t)||l&&l.hasOwnProperty(t)||(a||(a={}),a[t]="");for(t in l)l.hasOwnProperty(t)&&u[t]!==l[t]&&(a||(a={}),a[t]=l[t])}else a||(i||(i=[]),i.push(e,a)),a=l;else"dangerouslySetInnerHTML"===e?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(i=i||[]).push(e,""+l)):"children"===e?u===l||"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(e,""+l):"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&(Jr.hasOwnProperty(e)?(null!=l&&st(o,e),i||u===l||(i=[])):(i=i||[]).push(e,l))}return a&&(i=i||[]).push("style",a),i}function mt(e,t,n,r,o){"input"===n&&"radio"===o.type&&null!=o.name&&me(e,o),ft(n,r),r=ft(n,o);for(var i=0;i<t.length;i+=2){var a=t[i],u=t[i+1];"style"===a?lt(e,u,da):"dangerouslySetInnerHTML"===a?la(e,u):"children"===a?ut(e,u):pe(e,a,u,r)}switch(n){case"input":ye(e,o);break;case"textarea":rt(e,o);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!o.multiple,n=o.value,null!=n?Ze(e,!!o.multiple,n,!1):t!==!!o.multiple&&(null!=o.defaultValue?Ze(e,!!o.multiple,o.defaultValue,!0):Ze(e,!!o.multiple,o.multiple?[]:"",!1))}}function yt(e,t,n,r,o){switch(t){case"iframe":case"object":We("load",e);break;case"video":case"audio":for(r=0;r<go.length;r++)We(go[r],e);break;case"source":We("error",e);break;case"img":case"image":case"link":We("error",e),We("load",e);break;case"form":We("reset",e),We("submit",e);break;case"details":We("toggle",e);break;case"input":ge(e,n),We("invalid",e),st(o,"onChange");break;case"select":et(e,n),We("invalid",e),st(o,"onChange");break;case"textarea":nt(e,n),We("invalid",e),st(o,"onChange")}ct(t,n,da),r=null;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];"children"===i?"string"==typeof a?e.textContent!==a&&(r=["children",a]):"number"==typeof a&&e.textContent!==""+a&&(r=["children",""+a]):Jr.hasOwnProperty(i)&&null!=a&&st(o,i)}switch(t){case"input":re(e),ve(e,n);break;case"textarea":re(e),ot(e,n);break;case"select":case"option":break;default:"function"==typeof n.onClick&&(e.onclick=Fr)}return r}function vt(e,t){return e.nodeValue!==t}function bt(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function wt(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html}function _t(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function St(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function xt(e){return{current:e}}function Et(e){0>wa||(e.current=ba[wa],ba[wa]=null,wa--)}function Ct(e,t){wa++,ba[wa]=e.current,e.current=t}function kt(e){return Mt(e)?xa:_a.current}function Ot(e,t){var n=e.type.contextTypes;if(!n)return Br;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mt(e){return 2===e.tag&&null!=e.type.childContextTypes}function Tt(e){Mt(e)&&(Et(Sa,e),Et(_a,e))}function Nt(e){Et(Sa,e),Et(_a,e)}function Pt(e,t,n){_a.current!==Br?r("168"):void 0,Ct(_a,t,e),Ct(Sa,n,e)}function jt(e,t){var n=e.stateNode,o=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;n=n.getChildContext();for(var i in n)i in o?void 0:r("108",ae(e)||"Unknown",i);return Ur({},t,n)}function Rt(e){if(!Mt(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Br,xa=_a.current,Ct(_a,t,e),Ct(Sa,Sa.current,e),!0}function At(e,t){var n=e.stateNode;if(n?void 0:r("169"),t){var o=jt(e,xa);n.__reactInternalMemoizedMergedChildContext=o,Et(Sa,e),Et(_a,e),Ct(_a,o,e)}else Et(Sa,e);Ct(Sa,t,e)}function Lt(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.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function Ut(e,t,n){var r=e.alternate;return null===r?(r=new Lt(e.tag,t,e.key,e.mode),r.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.expirationTime=n,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ft(e,t,n){var o=e.type,i=e.key;if(e=e.props,"function"==typeof o)var a=o.prototype&&o.prototype.isReactComponent?2:0;else if("string"==typeof o)a=5;else switch(o){case Ho:return Dt(e.children,t,n,i);case $o:a=11,t|=3;break;case qo:a=11,t|=2;break;case Vo:return o=new Lt(15,e,i,4|t),o.type=Vo,o.expirationTime=n,o;case Xo:a=16,t|=2;break;default:e:{switch("object"==typeof o&&null!==o?o.$$typeof:null){case Yo:a=13;break e;case Jo:a=12;break e;case Go:a=14;break e;default:r("130",null==o?o:typeof o,"")}a=void 0}}return t=new Lt(a,e,i,t),t.type=o,t.expirationTime=n,t}function Dt(e,t,n,r){return e=new Lt(10,e,r,t),e.expirationTime=n,e}function zt(e,t,n){return e=new Lt(6,e,null,t),e.expirationTime=n,e}function It(e,t,n){return t=new Lt(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bt(e,t,n){return t=new Lt(3,null,null,t?3:0),e={current:t,containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e}function Wt(e){return function(t){try{return e(t)}catch(e){}}}function Ht(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);Ea=Wt(function(e){return t.onCommitFiberRoot(n,e)}),Ca=Wt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function qt(e){"function"==typeof Ea&&Ea(e)}function Vt(e){"function"==typeof Ca&&Ca(e)}function Yt(e){return{expirationTime:0,baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Jt(e){return{expirationTime:e.expirationTime,baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function $t(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Gt(e,t,n){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t),(0===e.expirationTime||e.expirationTime>n)&&(e.expirationTime=n)}function Xt(e,t,n){var r=e.alternate;if(null===r){var o=e.updateQueue,i=null;null===o&&(o=e.updateQueue=Yt(e.memoizedState))}else o=e.updateQueue,i=r.updateQueue,null===o?null===i?(o=e.updateQueue=Yt(e.memoizedState),i=r.updateQueue=Yt(r.memoizedState)):o=e.updateQueue=Jt(i):null===i&&(i=r.updateQueue=Jt(o));null===i||o===i?Gt(o,t,n):null===o.lastUpdate||null===i.lastUpdate?(Gt(o,t,n),Gt(i,t,n)):(Gt(o,t,n),i.lastUpdate=t)}function Kt(e,t,n){var r=e.updateQueue;r=null===r?e.updateQueue=Yt(e.memoizedState):Qt(e,r),null===r.lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=t:(r.lastCapturedUpdate.next=t,r.lastCapturedUpdate=t),(0===r.expirationTime||r.expirationTime>n)&&(r.expirationTime=n)}function Qt(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Jt(t)),t}function Zt(e,t,n,r,o,i){switch(n.tag){case 1:return e=n.payload,"function"==typeof e?e.call(i,r,o):e;case 3:e.effectTag=e.effectTag&-1025|64;case 0:if(e=n.payload,o="function"==typeof e?e.call(i,r,o):e,null===o||void 0===o)break;return Ur({},r,o);case 2:ka=!0}return r}function en(e,t,n,r,o){if(ka=!1,!(0===t.expirationTime||t.expirationTime>o)){t=Qt(e,t);for(var i=t.baseState,a=null,u=0,l=t.firstUpdate,c=i;null!==l;){var f=l.expirationTime;f>o?(null===a&&(a=l,i=c),(0===u||u>f)&&(u=f)):(c=Zt(e,t,l,c,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(f=null,l=t.firstCapturedUpdate;null!==l;){var s=l.expirationTime;s>o?(null===f&&(f=l,null===a&&(i=c)),(0===u||u>s)&&(u=s)):(c=Zt(e,t,l,c,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===f?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===f&&(i=c),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=f,t.expirationTime=u,e.memoizedState=c}}function tn(e,t){"function"!=typeof e?r("191",e):void 0,e.call(t)}function nn(e,t,n){for(null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),e=t.firstEffect,t.firstEffect=t.lastEffect=null;null!==e;){var r=e.callback;null!==r&&(e.callback=null,tn(r,n)),e=e.nextEffect}for(e=t.firstCapturedEffect,t.firstCapturedEffect=t.lastCapturedEffect=null;null!==e;)t=e.callback,null!==t&&(e.callback=null,tn(t,n)),e=e.nextEffect}function rn(e,t){return{value:e,source:t,stack:ue(t)}}function on(e){var t=e.type._context;Ct(Ta,t._changedBits,e),Ct(Ma,t._currentValue,e),Ct(Oa,e,e),t._currentValue=e.pendingProps.value,t._changedBits=e.stateNode}function an(e){var t=Ta.current,n=Ma.current;Et(Oa,e),Et(Ma,e),Et(Ta,e),e=e.type._context,e._currentValue=n,
e._changedBits=t}function un(e){return e===Na?r("174"):void 0,e}function ln(e,t){Ct(Ra,t,e),Ct(ja,e,e),Ct(Pa,Na,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:at(null,"");break;default:n=8===n?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=at(t,n)}Et(Pa,e),Ct(Pa,t,e)}function cn(e){Et(Pa,e),Et(ja,e),Et(Ra,e)}function fn(e){ja.current===e&&(Et(Pa,e),Et(ja,e))}function sn(e,t,n){var r=e.memoizedState;t=t(n,r),r=null===t||void 0===t?r:Ur({},r,t),e.memoizedState=r,e=e.updateQueue,null!==e&&0===e.expirationTime&&(e.baseState=r)}function dn(e,t,n,r,o,i){var a=e.stateNode;return e=e.type,"function"==typeof a.shouldComponentUpdate?a.shouldComponentUpdate(n,o,i):!(e.prototype&&e.prototype.isPureReactComponent&&zr(t,n)&&zr(r,o))}function pn(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&&Aa.enqueueReplaceState(t,t.state,null)}function hn(e,t){var n=e.type,r=e.stateNode,o=e.pendingProps,i=kt(e);r.props=o,r.state=e.memoizedState,r.refs=Br,r.context=Ot(e,i),i=e.updateQueue,null!==i&&(en(e,i,o,r,t),r.state=e.memoizedState),i=e.type.getDerivedStateFromProps,"function"==typeof i&&(sn(e,i,o),r.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(n=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),n!==r.state&&Aa.enqueueReplaceState(r,r.state,null),i=e.updateQueue,null!==i&&(en(e,i,o,r,t),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}function gn(e,t,n){if(e=n.ref,null!==e&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var o=void 0;n&&(2!==n.tag?r("110"):void 0,o=n.stateNode),o?void 0:r("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=o.refs===Br?o.refs={}:o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}"string"!=typeof e?r("148"):void 0,n._owner?void 0:r("254",e)}return e}function mn(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function yn(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 o(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=Ut(e,t,n),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,null!==r?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n)):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?(t=zt(n,e.mode,r),t.return=e,t):(t=i(t,n,r),t.return=e,t)}function c(e,t,n,r){return null!==t&&t.type===n.type?(r=i(t,n.props,r),r.ref=gn(e,t,n),r.return=e,r):(r=Ft(n,e.mode,r),r.ref=gn(e,t,n),r.return=e,r)}function f(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=It(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[],r),t.return=e,t)}function s(e,t,n,r,o){return null===t||10!==t.tag?(t=Dt(n,e.mode,r,o),t.return=e,t):(t=i(t,n,r),t.return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return t=zt(""+t,e.mode,n),t.return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Bo:return n=Ft(t,e.mode,n),n.ref=gn(e,null,t),n.return=e,n;case Wo:return t=It(t,e.mode,n),t.return=e,t}if(La(t)||ie(t))return t=Dt(t,e.mode,n,null),t.return=e,t;mn(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Bo:return n.key===o?n.type===Ho?s(e,t,n.props.children,r,o):c(e,t,n,r):null;case Wo:return n.key===o?f(e,t,n,r):null}if(La(n)||ie(n))return null!==o?null:s(e,t,n,r,null);mn(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return e=e.get(n)||null,l(t,e,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Bo:return e=e.get(null===r.key?n:r.key)||null,r.type===Ho?s(t,e,r.props.children,o,r.key):c(t,e,r,o);case Wo:return e=e.get(null===r.key?n:r.key)||null,f(t,e,r,o)}if(La(r)||ie(r))return e=e.get(n)||null,s(t,e,r,o,null);mn(t,r)}return null}function g(r,i,u,l){for(var c=null,f=null,s=i,g=i=0,m=null;null!==s&&g<u.length;g++){s.index>g?(m=s,s=null):m=s.sibling;var y=p(r,s,u[g],l);if(null===y){null===s&&(s=m);break}e&&s&&null===y.alternate&&t(r,s),i=a(y,i,g),null===f?c=y:f.sibling=y,f=y,s=m}if(g===u.length)return n(r,s),c;if(null===s){for(;g<u.length;g++)(s=d(r,u[g],l))&&(i=a(s,i,g),null===f?c=s:f.sibling=s,f=s);return c}for(s=o(r,s);g<u.length;g++)(m=h(s,r,g,u[g],l))&&(e&&null!==m.alternate&&s.delete(null===m.key?g:m.key),i=a(m,i,g),null===f?c=m:f.sibling=m,f=m);return e&&s.forEach(function(e){return t(r,e)}),c}function m(i,u,l,c){var f=ie(l);"function"!=typeof f?r("150"):void 0,l=f.call(l),null==l?r("151"):void 0;for(var s=f=null,g=u,m=u=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var b=p(i,g,v.value,c);if(null===b){g||(g=y);break}e&&g&&null===b.alternate&&t(i,g),u=a(b,u,m),null===s?f=b:s.sibling=b,s=b,g=y}if(v.done)return n(i,g),f;if(null===g){for(;!v.done;m++,v=l.next())v=d(i,v.value,c),null!==v&&(u=a(v,u,m),null===s?f=v:s.sibling=v,s=v);return f}for(g=o(i,g);!v.done;m++,v=l.next())v=h(g,i,m,v.value,c),null!==v&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),u=a(v,u,m),null===s?f=v:s.sibling=v,s=v);return e&&g.forEach(function(e){return t(i,e)}),f}return function(e,o,a,l){"object"==typeof a&&null!==a&&a.type===Ho&&null===a.key&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case Bo:e:{var f=a.key;for(c=o;null!==c;){if(c.key===f){if(10===c.tag?a.type===Ho:c.type===a.type){n(e,c.sibling),o=i(c,a.type===Ho?a.props.children:a.props,l),o.ref=gn(e,c,a),o.return=e,e=o;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===Ho?(o=Dt(a.props.children,e.mode,l,a.key),o.return=e,e=o):(l=Ft(a,e.mode,l),l.ref=gn(e,o,a),l.return=e,e=l)}return u(e);case Wo:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),o=i(o,a.children||[],l),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=It(a,e.mode,l),o.return=e,e=o}return u(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),o=i(o,a,l),o.return=e,e=o):(n(e,o),o=zt(a,e.mode,l),o.return=e,e=o),u(e);if(La(a))return g(e,o,a,l);if(ie(a))return m(e,o,a,l);if(c&&mn(e,a),"undefined"==typeof a)switch(e.tag){case 2:case 1:l=e.type,r("152",l.displayName||l.name||"Component")}return n(e,o)}}function vn(e,t){var n=new Lt(5,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 bn(e,t){switch(e.tag){case 5:var n=e.type;return t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,null!==t&&(e.stateNode=t,!0);case 6:return t=""===e.pendingProps||3!==t.nodeType?null:t,null!==t&&(e.stateNode=t,!0);default:return!1}}function wn(e){if(Ia){var t=za;if(t){var n=t;if(!bn(e,t)){if(t=_t(n),!t||!bn(e,t))return e.effectTag|=2,Ia=!1,void(Da=e);vn(Da,n)}Da=e,za=St(t)}else e.effectTag|=2,Ia=!1,Da=e}}function _n(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;Da=e}function Sn(e){if(e!==Da)return!1;if(!Ia)return _n(e),Ia=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!wt(t,e.memoizedProps))for(t=za;t;)vn(e,t),t=_t(t);return _n(e),za=Da?_t(e.stateNode):null,!0}function xn(){za=Da=null,Ia=!1}function En(e,t,n){Cn(e,t,n,t.expirationTime)}function Cn(e,t,n,r){t.child=null===e?Fa(t,null,n,r):Ua(t,e.child,n,r)}function kn(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function On(e,t,n,r,o){kn(e,t);var i=0!==(64&t.effectTag);if(!n&&!i)return r&&At(t,!1),Pn(e,t);n=t.stateNode,zo.current=t;var a=i?null:n.render();return t.effectTag|=1,i&&(Cn(e,t,null,o),t.child=null),Cn(e,t,a,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&At(t,!0),t.child}function Mn(e){var t=e.stateNode;t.pendingContext?Pt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Pt(e,t.context,!1),ln(e,t.containerInfo)}function Tn(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){switch(o.tag){case 12:var i=0|o.stateNode;if(o.type===t&&0!==(i&n)){for(i=o;null!==i;){var a=i.alternate;if(0===i.expirationTime||i.expirationTime>r)i.expirationTime=r,null!==a&&(0===a.expirationTime||a.expirationTime>r)&&(a.expirationTime=r);else{if(null===a||!(0===a.expirationTime||a.expirationTime>r))break;a.expirationTime=r}i=i.return}i=null}else i=o.child;break;case 13:i=o.type===e.type?null:o.child;break;default:i=o.child}if(null!==i)i.return=o;else for(i=o;null!==i;){if(i===e){i=null;break}if(o=i.sibling,null!==o){o.return=i.return,i=o;break}i=i.return}o=i}}function Nn(e,t,n){var r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=!0;if(Sa.current)a=!1;else if(i===o)return t.stateNode=0,on(t),Pn(e,t);var u=o.value;if(t.memoizedProps=o,null===i)u=1073741823;else if(i.value===o.value){if(i.children===o.children&&a)return t.stateNode=0,on(t),Pn(e,t);u=0}else{var l=i.value;if(l===u&&(0!==l||1/l===1/u)||l!==l&&u!==u){if(i.children===o.children&&a)return t.stateNode=0,on(t),Pn(e,t);u=0}else if(u="function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,u):1073741823,u|=0,0===u){if(i.children===o.children&&a)return t.stateNode=0,on(t),Pn(e,t)}else Tn(t,r,u,n)}return t.stateNode=u,on(t),En(e,t,o.children),t.child}function Pn(e,t){if(null!==e&&t.child!==e.child?r("153"):void 0,null!==t.child){e=t.child;var n=Ut(e,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=Ut(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function jn(e,t,n){if(0===t.expirationTime||t.expirationTime>n){switch(t.tag){case 3:Mn(t);break;case 2:Rt(t);break;case 4:ln(t,t.stateNode.containerInfo);break;case 13:on(t)}return null}switch(t.tag){case 0:null!==e?r("155"):void 0;var o=t.type,i=t.pendingProps,a=kt(t);return a=Ot(t,a),o=o(i,a),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(a=t.type,t.tag=2,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,a=a.getDerivedStateFromProps,"function"==typeof a&&sn(t,a,i),i=Rt(t),o.updater=Aa,t.stateNode=o,o._reactInternalFiber=t,hn(t,n),e=On(e,t,!0,i,n)):(t.tag=1,En(e,t,o),t.memoizedProps=i,e=t.child),e;case 1:return i=t.type,n=t.pendingProps,Sa.current||t.memoizedProps!==n?(o=kt(t),o=Ot(t,o),i=i(n,o),t.effectTag|=1,En(e,t,i),t.memoizedProps=n,e=t.child):e=Pn(e,t),e;case 2:if(i=Rt(t),null===e)if(null===t.stateNode){var u=t.pendingProps,l=t.type;o=kt(t);var c=2===t.tag&&null!=t.type.contextTypes;a=c?Ot(t,o):Br,u=new l(u,a),t.memoizedState=null!==u.state&&void 0!==u.state?u.state:null,u.updater=Aa,t.stateNode=u,u._reactInternalFiber=t,c&&(c=t.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=o,c.__reactInternalMemoizedMaskedChildContext=a),hn(t,n),o=!0}else{l=t.type,o=t.stateNode,c=t.memoizedProps,a=t.pendingProps,o.props=c;var f=o.context;u=kt(t),u=Ot(t,u);var s=l.getDerivedStateFromProps;(l="function"==typeof s||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(c!==a||f!==u)&&pn(t,o,a,u),ka=!1;var d=t.memoizedState;f=o.state=d;var p=t.updateQueue;null!==p&&(en(t,p,a,o,n),f=t.memoizedState),c!==a||d!==f||Sa.current||ka?("function"==typeof s&&(sn(t,s,a),f=t.memoizedState),(c=ka||dn(t,c,a,d,f,u))?(l||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.effectTag|=4)):("function"==typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=a,t.memoizedState=f),o.props=a,o.state=f,o.context=u,o=c):("function"==typeof o.componentDidMount&&(t.effectTag|=4),o=!1)}else l=t.type,o=t.stateNode,a=t.memoizedProps,c=t.pendingProps,o.props=a,f=o.context,u=kt(t),u=Ot(t,u),s=l.getDerivedStateFromProps,(l="function"==typeof s||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==c||f!==u)&&pn(t,o,c,u),ka=!1,f=t.memoizedState,d=o.state=f,p=t.updateQueue,null!==p&&(en(t,p,c,o,n),d=t.memoizedState),a!==c||f!==d||Sa.current||ka?("function"==typeof s&&(sn(t,s,c),d=t.memoizedState),(s=ka||dn(t,a,c,f,d,u))?(l||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(c,d,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(c,d,u)),"function"==typeof o.componentDidUpdate&&(t.effectTag|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=256),t.memoizedProps=c,t.memoizedState=d),o.props=c,o.state=d,o.context=u,o=s):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.effectTag|=256),o=!1);return On(e,t,o,i,n);case 3:return Mn(t),i=t.updateQueue,null!==i?(o=t.memoizedState,o=null!==o?o.element:null,en(t,i,t.pendingProps,null,n),i=t.memoizedState.element,i===o?(xn(),e=Pn(e,t)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(za=St(t.stateNode.containerInfo),Da=t,o=Ia=!0),o?(t.effectTag|=2,t.child=Fa(t,null,i,n)):(xn(),En(e,t,i)),e=t.child)):(xn(),e=Pn(e,t)),e;case 5:return un(Ra.current),i=un(Pa.current),o=at(i,t.type),i!==o&&(Ct(ja,t,t),Ct(Pa,o,t)),null===e&&wn(t),i=t.type,c=t.memoizedProps,o=t.pendingProps,a=null!==e?e.memoizedProps:null,Sa.current||c!==o||((c=1&t.mode&&!!o.hidden)&&(t.expirationTime=1073741823),c&&1073741823===n)?(c=o.children,wt(i,o)?c=null:a&&wt(i,a)&&(t.effectTag|=16),kn(e,t),1073741823!==n&&1&t.mode&&o.hidden?(t.expirationTime=1073741823,t.memoizedProps=o,e=null):(En(e,t,c),t.memoizedProps=o,e=t.child)):e=Pn(e,t),e;case 6:return null===e&&wn(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 4:return ln(t,t.stateNode.containerInfo),i=t.pendingProps,Sa.current||t.memoizedProps!==i?(null===e?t.child=Ua(t,null,i,n):En(e,t,i),t.memoizedProps=i,e=t.child):e=Pn(e,t),e;case 14:return i=t.type.render,n=t.pendingProps,o=t.ref,Sa.current||t.memoizedProps!==n||o!==(null!==e?e.ref:null)?(i=i(n,o),En(e,t,i),t.memoizedProps=n,e=t.child):e=Pn(e,t),e;case 10:return n=t.pendingProps,Sa.current||t.memoizedProps!==n?(En(e,t,n),t.memoizedProps=n,e=t.child):e=Pn(e,t),e;case 11:return n=t.pendingProps.children,Sa.current||null!==n&&t.memoizedProps!==n?(En(e,t,n),t.memoizedProps=n,e=t.child):e=Pn(e,t),e;case 15:return n=t.pendingProps,t.memoizedProps===n?e=Pn(e,t):(En(e,t,n.children),t.memoizedProps=n,e=t.child),e;case 13:return Nn(e,t,n);case 12:e:if(o=t.type,a=t.pendingProps,c=t.memoizedProps,i=o._currentValue,u=o._changedBits,Sa.current||0!==u||c!==a){if(t.memoizedProps=a,l=a.unstable_observedBits,void 0!==l&&null!==l||(l=1073741823),t.stateNode=l,0!==(u&l))Tn(t,o,u,n);else if(c===a){e=Pn(e,t);break e}n=a.children,n=n(i),t.effectTag|=1,En(e,t,n),e=t.child}else e=Pn(e,t);return e;default:r("156")}}function Rn(e){e.effectTag|=4}function An(e,t){var n=t.pendingProps;switch(t.tag){case 1:return null;case 2:return Tt(t),null;case 3:cn(t),Nt(t);var o=t.stateNode;return o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(Sn(t),t.effectTag&=-3),Ba(t),null;case 5:fn(t),o=un(Ra.current);var i=t.type;if(null!==e&&null!=t.stateNode){var a=e.memoizedProps,u=t.stateNode,l=un(Pa.current);u=gt(u,i,a,n,o),Wa(e,t,u,i,a,n,o,l),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!n)return null===t.stateNode?r("166"):void 0,null;if(e=un(Pa.current),Sn(t))n=t.stateNode,i=t.type,a=t.memoizedProps,n[ro]=t,n[oo]=a,o=yt(n,i,a,e,o),t.updateQueue=o,null!==o&&Rn(t);else{e=dt(i,n,o,e),e[ro]=t,e[oo]=n;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}ht(e,i,n,o),bt(i,n)&&Rn(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ha(e,t,e.memoizedProps,n);else{if("string"!=typeof n)return null===t.stateNode?r("166"):void 0,null;o=un(Ra.current),un(Pa.current),Sn(t)?(o=t.stateNode,n=t.memoizedProps,o[ro]=t,vt(o,n)&&Rn(t)):(o=pt(n,o),o[ro]=t,t.stateNode=o)}return null;case 14:return null;case 16:return null;case 10:return null;case 11:return null;case 15:return null;case 4:return cn(t),Ba(t),null;case 13:return an(t),null;case 12:return null;case 0:r("167");default:r("156")}}function Ln(e,t){var n=t.source;null===t.stack&&null!==n&&ue(n),null!==n&&ae(n),t=t.value,null!==e&&2===e.tag&&ae(e);try{t&&t.suppressReactErrorLogging||console.error(t)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}}function Un(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Xn(e,t)}else t.current=null}function Fn(e){switch("function"==typeof Vt&&Vt(e),e.tag){case 2:Un(e);var t=e.stateNode;if("function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Xn(e,t)}break;case 5:Un(e);break;case 4:In(e)}}function Dn(e){return 5===e.tag||3===e.tag||4===e.tag}function zn(e){e:{for(var t=e.return;null!==t;){if(Dn(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var o=t=void 0;switch(n.tag){case 5:t=n.stateNode,o=!1;break;case 3:t=n.stateNode.containerInfo,o=!0;break;case 4:t=n.stateNode.containerInfo,o=!0;break;default:r("161")}16&n.effectTag&&(ut(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Dn(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===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(5===i.tag||6===i.tag)if(n)if(o){var a=t,u=i.stateNode,l=n;8===a.nodeType?a.parentNode.insertBefore(u,l):a.insertBefore(u,l)}else t.insertBefore(i.stateNode,n);else o?(a=t,u=i.stateNode,8===a.nodeType?a.parentNode.insertBefore(u,a):a.appendChild(u)):t.appendChild(i.stateNode);else if(4!==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 In(e){for(var t=e,n=!1,o=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n?r("160"):void 0,n.tag){case 5:o=n.stateNode,i=!1;break e;case 3:o=n.stateNode.containerInfo,i=!0;break e;case 4:o=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var a=t,u=a;;)if(Fn(u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===a)break;for(;null===u.sibling;){if(null===u.return||u.return===a)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}i?(a=o,u=t.stateNode,8===a.nodeType?a.parentNode.removeChild(u):a.removeChild(u)):o.removeChild(t.stateNode)}else if(4===t.tag?o=t.stateNode.containerInfo:Fn(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;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Bn(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var i=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&(n[oo]=o,mt(n,a,i,e,o))}break;case 6:null===t.stateNode?r("162"):void 0,t.stateNode.nodeValue=t.memoizedProps;break;case 3:break;case 15:break;case 16:break;default:r("163")}}function Wn(e,t,n){n=$t(n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hr(r),Ln(e,t)},n}function Hn(e,t,n){n=$t(n),n.tag=3;var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===ou?ou=new Set([this]):ou.add(this);var n=t.value,r=t.stack;Ln(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function qn(e,t,n,r,o,i){n.effectTag|=512,n.firstEffect=n.lastEffect=null,r=rn(r,n),e=t;do{switch(e.tag){case 3:return e.effectTag|=1024,r=Wn(e,r,i),void Kt(e,r,i);case 2:if(t=r,n=e.stateNode,0===(64&e.effectTag)&&null!==n&&"function"==typeof n.componentDidCatch&&(null===ou||!ou.has(n)))return e.effectTag|=1024,r=Hn(e,t,i),void Kt(e,r,i)}e=e.return}while(null!==e)}function Vn(e){switch(e.tag){case 2:Tt(e);var t=e.effectTag;return 1024&t?(e.effectTag=t&-1025|64,e):null;case 3:return cn(e),Nt(e),t=e.effectTag,1024&t?(e.effectTag=t&-1025|64,e):null;case 5:return fn(e),null;case 16:return t=e.effectTag,1024&t?(e.effectTag=t&-1025|64,e):null;case 4:return cn(e),null;case 13:return an(e),null;default:return null}}function Yn(){if(null!==Xa)for(var e=Xa.return;null!==e;){var t=e;switch(t.tag){case 2:Tt(t);break;case 3:cn(t),Nt(t);break;case 5:fn(t);break;case 4:cn(t);break;case 13:an(t)}e=e.return}Ka=null,Qa=0,Za=-1,eu=!1,Xa=null,ru=!1}function Jn(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0===(512&e.effectTag)){t=An(t,e,Qa);var o=e;if(1073741823===Qa||1073741823!==o.expirationTime){var i=0;switch(o.tag){case 3:case 2:var a=o.updateQueue;null!==a&&(i=a.expirationTime)}for(a=o.child;null!==a;)0!==a.expirationTime&&(0===i||i>a.expirationTime)&&(i=a.expirationTime),a=a.sibling;o.expirationTime=i}if(null!==t)return t;if(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)),null!==r)return r;if(null===n){ru=!0;break}e=n}else{if(e=Vn(e,eu,Qa),null!==e)return e.effectTag&=511,e;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==r)return r;if(null===n)break;e=n}}return null}function $n(e){var t=jn(e.alternate,e,Qa);return null===t&&(t=Jn(e)),zo.current=null,t}function Gn(e,t,n){Ga?r("243"):void 0,Ga=!0,t===Qa&&e===Ka&&null!==Xa||(Yn(),Ka=e,Qa=t,Za=-1,Xa=Ut(Ka.current,null,Qa),e.pendingCommitExpirationTime=0);var o=!1;for(eu=!n||Qa<=Va;;){try{if(n)for(;null!==Xa&&!pr();)Xa=$n(Xa);else for(;null!==Xa;)Xa=$n(Xa)}catch(t){if(null===Xa)o=!0,hr(t);else{null===Xa?r("271"):void 0,n=Xa;var i=n.return;if(null===i){o=!0,hr(t);break}qn(e,i,n,t,eu,Qa,Ya),Xa=Jn(n)}}break}if(Ga=!1,o)return null;if(null===Xa){if(ru)return e.pendingCommitExpirationTime=t,e.current.alternate;eu?r("262"):void 0,0<=Za&&setTimeout(function(){var t=e.current.expirationTime;0!==t&&(0===e.remainingExpirationTime||e.remainingExpirationTime<t)&&or(e,t)},Za),gr(e.current.expirationTime)}return null}function Xn(e,t){var n;e:{for(Ga&&!nu?r("263"):void 0,n=e.return;null!==n;){switch(n.tag){case 2:var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof o.componentDidCatch&&(null===ou||!ou.has(o))){e=rn(t,e),e=Hn(n,e,1),Xt(n,e,1),Zn(n,1),n=void 0;break e}break;case 3:e=rn(t,e),e=Wn(n,e,1),Xt(n,e,1),Zn(n,1),n=void 0;break e}n=n.return}3===e.tag&&(n=rn(t,e),n=Wn(e,n,1),Xt(e,n,1),Zn(e,1)),n=void 0}return n}function Kn(){var e=2+25*(((er()-2+500)/25|0)+1);return e<=Ja&&(e=Ja+1),Ja=e}function Qn(e,t){return e=0!==$a?$a:Ga?nu?1:Qa:1&t.mode?bu?2+10*(((e-2+15)/10|0)+1):2+25*(((e-2+500)/25|0)+1):1,bu&&(0===du||e>du)&&(du=e),e}function Zn(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!Ga&&0!==Qa&&t<Qa&&Yn();var o=n.current.expirationTime;Ga&&!nu&&Ka===n||or(n,o),Su>_u&&r("185")}e=e.return}}function er(){return Ya=ma()-qa,Va=(Ya/10|0)+2}function tr(e){var t=$a;$a=2+25*(((er()-2+500)/25|0)+1);try{return e()}finally{$a=t}}function nr(e,t,n,r,o){var i=$a;$a=1;try{return e(t,n,r,o)}finally{$a=i}}function rr(e){if(0!==uu){if(e>uu)return;va(lu)}var t=ma()-qa;uu=e,lu=ya(ar,{timeout:10*(e-2)-t})}function or(e,t){if(null===e.nextScheduledRoot)e.remainingExpirationTime=t,null===au?(iu=au=e,e.nextScheduledRoot=e):(au=au.nextScheduledRoot=e,au.nextScheduledRoot=iu);else{var n=e.remainingExpirationTime;(0===n||t<n)&&(e.remainingExpirationTime=t)}cu||(yu?vu&&(fu=e,su=1,sr(e,1,!1)):1===t?ur():rr(t))}function ir(){var e=0,t=null;if(null!==au)for(var n=au,o=iu;null!==o;){var i=o.remainingExpirationTime;if(0===i){if(null===n||null===au?r("244"):void 0,o===o.nextScheduledRoot){iu=au=o.nextScheduledRoot=null;break}if(o===iu)iu=i=o.nextScheduledRoot,au.nextScheduledRoot=i,o.nextScheduledRoot=null;else{if(o===au){au=n,au.nextScheduledRoot=iu,o.nextScheduledRoot=null;break}n.nextScheduledRoot=o.nextScheduledRoot,o.nextScheduledRoot=null}o=n.nextScheduledRoot}else{if((0===e||i<e)&&(e=i,t=o),o===au)break;n=o,o=o.nextScheduledRoot}}n=fu,null!==n&&n===t&&1===e?Su++:Su=0,fu=t,su=e}function ar(e){lr(0,!0,e)}function ur(){lr(1,!1,null)}function lr(e,t,n){if(mu=n,ir(),t)for(;null!==fu&&0!==su&&(0===e||e>=su)&&(!pu||er()>=su);)er(),sr(fu,su,!pu),ir();else for(;null!==fu&&0!==su&&(0===e||e>=su);)sr(fu,su,!1),ir();null!==mu&&(uu=0,lu=-1),0!==su&&rr(su),mu=null,pu=!1,fr()}function cr(e,t){cu?r("253"):void 0,fu=e,su=t,sr(e,t,!1),ur(),fr()}function fr(){if(Su=0,null!==wu){var e=wu;wu=null;for(var t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){hu||(hu=!0,gu=e)}}}if(hu)throw e=gu,gu=null,hu=!1,e}function sr(e,t,n){cu?r("245"):void 0,cu=!0,n?(n=e.finishedWork,null!==n?dr(e,n,t):(e.finishedWork=null,n=Gn(e,t,!0),null!==n&&(pr()?e.finishedWork=n:dr(e,n,t)))):(n=e.finishedWork,null!==n?dr(e,n,t):(e.finishedWork=null,n=Gn(e,t,!1),null!==n&&dr(e,n,t))),cu=!1}function dr(e,t,n){var o=e.firstBatch;if(null!==o&&o._expirationTime<=n&&(null===wu?wu=[o]:wu.push(o),o._defer))return e.finishedWork=t,void(e.remainingExpirationTime=0);if(e.finishedWork=null,nu=Ga=!0,n=t.stateNode,n.current===t?r("177"):void 0,o=n.pendingCommitExpirationTime,0===o?r("261"):void 0,n.pendingCommitExpirationTime=0,er(),zo.current=null,1<t.effectTag)if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var i=t.firstEffect}else i=t;else i=t.firstEffect;ha=Ni;var a=Dr();if(Ge(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{var l=window.getSelection&&window.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{u.nodeType,f.nodeType}catch(e){u=null;break e}var s=0,d=-1,p=-1,h=0,g=0,m=a,y=null;t:for(;;){for(var v;m!==u||0!==c&&3!==m.nodeType||(d=s+c),m!==f||0!==l&&3!==m.nodeType||(p=s+l),3===m.nodeType&&(s+=m.nodeValue.length),null!==(v=m.firstChild);)y=m,m=v;for(;;){if(m===a)break t;if(y===u&&++h===c&&(d=s),y===f&&++g===l&&(p=s),null!==(v=m.nextSibling))break;m=y,y=m.parentNode}m=v}u=-1===d||-1===p?null:{start:d,end:p}}else u=null}u=u||{start:0,end:0}}else u=null;for(ga={focusedElem:a,selectionRange:u},Be(!1),tu=i;null!==tu;){a=!1,u=void 0;try{for(;null!==tu;){if(256&tu.effectTag){var b=tu.alternate;switch(c=tu,c.tag){case 2:if(256&c.effectTag&&null!==b){var w=b.memoizedProps,_=b.memoizedState,S=c.stateNode;S.props=c.memoizedProps,S.state=c.memoizedState;var x=S.getSnapshotBeforeUpdate(w,_);S.__reactInternalSnapshotBeforeUpdate=x}break;case 3:case 5:case 6:case 4:break;default:r("163")}}tu=tu.nextEffect}}catch(e){a=!0,u=e}a&&(null===tu?r("178"):void 0,Xn(tu,u),null!==tu&&(tu=tu.nextEffect))}for(tu=i;null!==tu;){b=!1,w=void 0;try{for(;null!==tu;){var E=tu.effectTag;if(16&E&&ut(tu.stateNode,""),128&E){var C=tu.alternate;if(null!==C){var k=C.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(14&E){case 2:zn(tu),tu.effectTag&=-3;break;case 6:zn(tu),tu.effectTag&=-3,Bn(tu.alternate,tu);break;case 4:Bn(tu.alternate,tu);break;case 8:_=tu,In(_),_.return=null,_.child=null,_.alternate&&(_.alternate.child=null,_.alternate.return=null)}tu=tu.nextEffect}}catch(e){b=!0,w=e}b&&(null===tu?r("178"):void 0,Xn(tu,w),null!==tu&&(tu=tu.nextEffect))}if(k=ga,C=Dr(),E=k.focusedElem,b=k.selectionRange,C!==E&&Ir(document.documentElement,E)){Ge(E)&&(C=b.start,k=b.end,void 0===k&&(k=C),"selectionStart"in E?(E.selectionStart=C,E.selectionEnd=Math.min(k,E.value.length)):window.getSelection&&(C=window.getSelection(),w=E[R()].length,k=Math.min(b.start,w),b=void 0===b.end?k:Math.min(b.end,w),!C.extend&&k>b&&(w=b,b=k,k=w),w=$e(E,k),_=$e(E,b),w&&_&&(1!==C.rangeCount||C.anchorNode!==w.node||C.anchorOffset!==w.offset||C.focusNode!==_.node||C.focusOffset!==_.offset)&&(S=document.createRange(),S.setStart(w.node,w.offset),C.removeAllRanges(),k>b?(C.addRange(S),C.extend(_.node,_.offset)):(S.setEnd(_.node,_.offset),C.addRange(S))))),C=[];for(k=E;k=k.parentNode;)1===k.nodeType&&C.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(E.focus(),E=0;E<C.length;E++)k=C[E],k.element.scrollLeft=k.left,k.element.scrollTop=k.top}for(ga=null,Be(ha),ha=null,n.current=t,tu=i;null!==tu;){i=!1,E=void 0;try{for(C=o;null!==tu;){var O=tu.effectTag;if(36&O){var M=tu.alternate;switch(k=tu,b=C,k.tag){case 2:var T=k.stateNode;if(4&k.effectTag)if(null===M)T.props=k.memoizedProps,T.state=k.memoizedState,T.componentDidMount();else{var N=M.memoizedProps,P=M.memoizedState;T.props=k.memoizedProps,T.state=k.memoizedState,T.componentDidUpdate(N,P,T.__reactInternalSnapshotBeforeUpdate)}var j=k.updateQueue;null!==j&&(T.props=k.memoizedProps,T.state=k.memoizedState,nn(k,j,T,b));break;case 3:var A=k.updateQueue;if(null!==A){if(w=null,null!==k.child)switch(k.child.tag){case 5:w=k.child.stateNode;break;case 2:w=k.child.stateNode}nn(k,A,w,b)}break;case 5:var L=k.stateNode;null===M&&4&k.effectTag&&bt(k.type,k.memoizedProps)&&L.focus();break;case 6:break;case 4:break;case 15:break;case 16:break;default:r("163")}}if(128&O){k=void 0;var U=tu.ref;if(null!==U){var F=tu.stateNode;switch(tu.tag){case 5:k=F;break;default:k=F}"function"==typeof U?U(k):U.current=k}}var D=tu.nextEffect;tu.nextEffect=null,tu=D}}catch(e){i=!0,E=e}i&&(null===tu?r("178"):void 0,Xn(tu,E),null!==tu&&(tu=tu.nextEffect))}Ga=nu=!1,"function"==typeof qt&&qt(t.stateNode),t=n.current.expirationTime,0===t&&(ou=null),e.remainingExpirationTime=t}function pr(){return!(null===mu||mu.timeRemaining()>xu)&&(pu=!0)}function hr(e){null===fu?r("246"):void 0,fu.remainingExpirationTime=0,hu||(hu=!0,gu=e)}function gr(e){null===fu?r("246"):void 0,fu.remainingExpirationTime=e}function mr(e,t){var n=yu;yu=!0;try{return e(t)}finally{(yu=n)||cu||ur()}}function yr(e,t){if(yu&&!vu){vu=!0;try{return e(t)}finally{vu=!1}}return e(t)}function vr(e,t){cu?r("187"):void 0;var n=yu;yu=!0;try{return nr(e,t)}finally{yu=n,ur()}}function br(e){var t=yu;yu=!0;try{nr(e)}finally{(yu=t)||cu||lr(1,!1,null)}}function wr(e,t,n,o,i){var a=t.current;if(n){n=n._reactInternalFiber;var u;e:{for(2===Re(n)&&2===n.tag?void 0:r("170"),u=n;3!==u.tag;){if(Mt(u)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}(u=u.return)?void 0:r("171")}u=u.stateNode.context}n=Mt(n)?jt(n,u):u}else n=Br;return null===t.context?t.context=n:t.pendingContext=n,
t=i,i=$t(o),i.payload={element:e},t=void 0===t?null:t,null!==t&&(i.callback=t),Xt(a,i,o),Zn(a,o),o}function _r(e){var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?r("188"):r("268",Object.keys(e))),e=Ue(t),null===e?null:e.stateNode}function Sr(e,t,n,r){var o=t.current,i=er();return o=Qn(i,o),wr(e,t,n,o,r)}function xr(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Er(e){var t=e.findFiberByHostInstance;return Ht(Ur({},e,{findHostInstanceByFiber:function(e){return e=Ue(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}function Cr(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Wo,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function kr(e){this._expirationTime=Kn(),this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Or(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Mr(e,t,n){this._internalRoot=Bt(e,t,n)}function Tr(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Nr(e,t){if(t||(t=e?9===e.nodeType?e.documentElement:e.firstChild:null,t=!(!t||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Mr(e,!1,t)}function Pr(e,t,n,o,i){Tr(n)?void 0:r("200");var a=n._reactRootContainer;if(a){if("function"==typeof i){var u=i;i=function(){var e=xr(a._internalRoot);u.call(e)}}null!=e?a.legacy_renderSubtreeIntoContainer(e,t,i):a.render(t,i)}else{if(a=n._reactRootContainer=Nr(n,o),"function"==typeof i){var l=i;i=function(){var e=xr(a._internalRoot);l.call(e)}}yr(function(){null!=e?a.legacy_renderSubtreeIntoContainer(e,t,i):a.render(t,i)})}return xr(a._internalRoot)}function jr(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Tr(t)?void 0:r("200"),Cr(e,t,null,n)}var Rr=n(5),Ar=n(2),Lr=n(10),Ur=n(4),Fr=n(7),Dr=n(11),zr=n(12),Ir=n(13),Br=n(6);Ar?void 0:r("227");var Wr={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(e,t,n,r,i,a,u,l,c){o.apply(Wr,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,i,a,u,l){if(Wr.invokeGuardedCallback.apply(this,arguments),Wr.hasCaughtError()){var c=Wr.clearCaughtError();Wr._hasRethrowError||(Wr._hasRethrowError=!0,Wr._rethrowError=c)}},rethrowCaughtError:function(){return i.apply(Wr,arguments)},hasCaughtError:function(){return Wr._hasCaughtError},clearCaughtError:function(){if(Wr._hasCaughtError){var e=Wr._caughtError;return Wr._caughtError=null,Wr._hasCaughtError=!1,e}r("198")}},Hr=null,qr={},Vr=[],Yr={},Jr={},$r={},Gr={plugins:Vr,eventNameDispatchConfigs:Yr,registrationNameModules:Jr,registrationNameDependencies:$r,possibleRegistrationNames:null,injectEventPluginOrder:l,injectEventPluginsByName:c},Xr=null,Kr=null,Qr=null,Zr=null,eo={injectEventPluginOrder:l,injectEventPluginsByName:c},to={injection:eo,getListener:m,runEventsInBatch:y,runExtractedEventsInBatch:v},no=Math.random().toString(36).slice(2),ro="__reactInternalInstance$"+no,oo="__reactEventHandlers$"+no,io={precacheFiberNode:function(e,t){t[ro]=e},getClosestInstanceFromNode:b,getInstanceFromNode:function(e){return e=e[ro],!e||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:w,getFiberCurrentPropsFromNode:_,updateFiberProps:function(e,t){e[oo]=t}},ao={accumulateTwoPhaseDispatches:T,accumulateTwoPhaseDispatchesSkipTarget:function(e){d(e,k)},accumulateEnterLeaveDispatches:N,accumulateDirectDispatches:function(e){d(e,M)}},uo={animationend:P("Animation","AnimationEnd"),animationiteration:P("Animation","AnimationIteration"),animationstart:P("Animation","AnimationStart"),transitionend:P("Transition","TransitionEnd")},lo={},co={};Lr.canUseDOM&&(co=document.createElement("div").style,"AnimationEvent"in window||(delete uo.animationend.animation,delete uo.animationiteration.animation,delete uo.animationstart.animation),"TransitionEvent"in window||delete uo.transitionend.transition);var fo=j("animationend"),so=j("animationiteration"),po=j("animationstart"),ho=j("transitionend"),go="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mo=null,yo={_root:null,_startText:null,_fallbackText:null},vo="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),bo={type:null,target:null,currentTarget:Fr.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};Ur(U.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Fr.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Fr.thatReturnsTrue)},persist:function(){this.isPersistent=Fr.thatReturnsTrue},isPersistent:Fr.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<vo.length;t++)this[vo[t]]=null}}),U.Interface=bo,U.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return Ur(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=Ur({},r.Interface,e),n.extend=r.extend,z(n),n},z(U);var wo=U.extend({data:null}),_o=U.extend({data:null}),So=[9,13,27,32],xo=Lr.canUseDOM&&"CompositionEvent"in window,Eo=null;Lr.canUseDOM&&"documentMode"in document&&(Eo=document.documentMode);var Co=Lr.canUseDOM&&"TextEvent"in window&&!Eo,ko=Lr.canUseDOM&&(!xo||Eo&&8<Eo&&11>=Eo),Oo=String.fromCharCode(32),Mo={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(" ")}},To=!1,No=!1,Po={eventTypes:Mo,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(xo)e:{switch(e){case"compositionstart":o=Mo.compositionStart;break e;case"compositionend":o=Mo.compositionEnd;break e;case"compositionupdate":o=Mo.compositionUpdate;break e}o=void 0}else No?I(e,n)&&(o=Mo.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Mo.compositionStart);return o?(ko&&(No||o!==Mo.compositionStart?o===Mo.compositionEnd&&No&&(i=A()):(yo._root=r,yo._startText=L(),No=!0)),o=wo.getPooled(o,t,n,r),i?o.data=i:(i=B(n),null!==i&&(o.data=i)),T(o),i=o):i=null,(e=Co?W(e,n):H(e,n))?(t=_o.getPooled(Mo.beforeInput,t,n,r),t.data=e,T(t)):t=null,null===i?t:null===t?i:[i,t]}},jo=null,Ro={injectFiberControlledHostComponent:function(e){jo=e}},Ao=null,Lo=null,Uo={injection:Ro,enqueueStateRestore:V,needsStateRestore:Y,restoreStateIfNeeded:J},Fo=!1,Do={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},zo=Ar.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Io="function"==typeof Symbol&&Symbol.for,Bo=Io?Symbol.for("react.element"):60103,Wo=Io?Symbol.for("react.portal"):60106,Ho=Io?Symbol.for("react.fragment"):60107,qo=Io?Symbol.for("react.strict_mode"):60108,Vo=Io?Symbol.for("react.profiler"):60114,Yo=Io?Symbol.for("react.provider"):60109,Jo=Io?Symbol.for("react.context"):60110,$o=Io?Symbol.for("react.async_mode"):60111,Go=Io?Symbol.for("react.forward_ref"):60112,Xo=Io?Symbol.for("react.timeout"):60113,Ko="function"==typeof Symbol&&Symbol.iterator,Qo=/^[: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]*$/,Zo={},ei={},ti={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ti[e]=new se(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ti[t]=new se(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ti[e]=new se(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(e){ti[e]=new se(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){ti[e]=new se(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){ti[e]=new se(e,3,!0,e.toLowerCase(),null)}),["capture","download"].forEach(function(e){ti[e]=new se(e,4,!1,e.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(e){ti[e]=new se(e,6,!1,e.toLowerCase(),null)}),["rowSpan","start"].forEach(function(e){ti[e]=new se(e,5,!1,e.toLowerCase(),null)});var ni=/[\-:]([a-z])/g;"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(ni,de);ti[t]=new se(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(ni,de);ti[t]=new se(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ni,de);ti[t]=new se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),ti.tabIndex=new se("tabIndex",1,!1,"tabindex",null);var ri={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},oi=null,ii=null,ai=!1;Lr.canUseDOM&&(ai=ee("input")&&(!document.documentMode||9<document.documentMode));var ui={eventTypes:ri,_isInputEventSupported:ai,extractEvents:function(e,t,n,r){var o=t?w(t):window,i=void 0,a=void 0,u=o.nodeName&&o.nodeName.toLowerCase();return"select"===u||"input"===u&&"file"===o.type?i=Ee:Q(o)?ai?i=Ne:(i=Me,a=Oe):(u=o.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Te),i&&(i=i(e,t))?_e(i,n,r):(a&&a(e,o,t),void("blur"===e&&null!=t&&(e=t._wrapperState||o._wrapperState)&&e.controlled&&"number"===o.type&&be(o,"number",o.value)))}},li=U.extend({view:null,detail:null}),ci={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},fi=li.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:je,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}}),si=fi.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),di={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},pi={eventTypes:di,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?b(t):null):i=null,i===t)return null;var a=void 0,u=void 0,l=void 0,c=void 0;return"mouseout"===e||"mouseover"===e?(a=fi,u=di.mouseLeave,l=di.mouseEnter,c="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=si,u=di.pointerLeave,l=di.pointerEnter,c="pointer"),e=null==i?o:w(i),o=null==t?o:w(t),u=a.getPooled(u,i,n,r),u.type=c+"leave",u.target=e,u.relatedTarget=o,n=a.getPooled(l,t,n,r),n.type=c+"enter",n.target=o,n.relatedTarget=e,N(u,n,i,t),[u,n]}},hi=U.extend({animationName:null,elapsedTime:null,pseudoElement:null}),gi=U.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mi=li.extend({relatedTarget:null}),yi={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vi={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"},bi=li.extend({key:function(e){if(e.key){var t=yi[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=De(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?vi[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:je,charCode:function(e){return"keypress"===e.type?De(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?De(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),wi=fi.extend({dataTransfer:null}),_i=li.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:je}),Si=U.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),xi=fi.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}),Ei=[["abort","abort"],[fo,"animationEnd"],[so,"animationIteration"],[po,"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"],[ho,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],Ci={},ki={};[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["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){ze(e,!0)}),Ei.forEach(function(e){ze(e,!1)});var Oi={eventTypes:Ci,isInteractiveTopLevelEventType:function(e){return e=ki[e],void 0!==e&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var o=ki[e];if(!o)return null;switch(e){case"keypress":if(0===De(n))return null;case"keydown":case"keyup":e=bi;break;case"blur":case"focus":e=mi;break;case"click":if(2===n.button)return null;case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=fi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=wi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=_i;break;case fo:case so:case po:e=hi;break;case ho:e=Si;break;case"scroll":e=li;break;case"wheel":e=xi;break;case"copy":case"cut":case"paste":e=gi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=si;break;default:e=U}return t=e.getPooled(o,t,n,r),T(t),t}},Mi=Oi.isInteractiveTopLevelEventType,Ti=[],Ni=!0,Pi={get _enabled(){return Ni},setEnabled:Be,isEnabled:function(){return Ni},trapBubbledEvent:We,trapCapturedEvent:He,dispatchEvent:Ve},ji={},Ri=0,Ai="_reactListenersID"+(""+Math.random()).slice(2),Li=Lr.canUseDOM&&"documentMode"in document&&11>=document.documentMode,Ui={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Fi=null,Di=null,zi=null,Ii=!1,Bi={eventTypes:Ui,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Ye(i),o=$r.onSelect;for(var a=0;a<o.length;a++){var u=o[a];if(!i.hasOwnProperty(u)||!i[u]){i=!1;break e}}i=!0}o=!i}if(o)return null;switch(i=t?w(t):window,e){case"focus":(Q(i)||"true"===i.contentEditable)&&(Fi=i,Di=t,zi=null);break;case"blur":zi=Di=Fi=null;break;case"mousedown":Ii=!0;break;case"contextmenu":case"mouseup":return Ii=!1,Xe(n,r);case"selectionchange":if(Li)break;case"keydown":case"keyup":return Xe(n,r)}return null}};eo.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Xr=io.getFiberCurrentPropsFromNode,Kr=io.getInstanceFromNode,Qr=io.getNodeFromInstance,eo.injectEventPluginsByName({SimpleEventPlugin:Oi,EnterLeaveEventPlugin:pi,ChangeEventPlugin:ui,SelectEventPlugin:Bi,BeforeInputEventPlugin:Po});var Wi=void 0;Wi="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};var Hi=void 0,qi=void 0;if(Lr.canUseDOM){var Vi=[],Yi=0,Ji={},$i=-1,Gi=!1,Xi=!1,Ki=0,Qi=33,Zi=33,ea={didTimeout:!1,timeRemaining:function(){var e=Ki-Wi();return 0<e?e:0}},ta=function(e,t){if(Ji[t])try{e(ea)}finally{delete Ji[t]}},na="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===na&&(Gi=!1,0!==Vi.length)){if(0!==Vi.length&&(e=Wi(),!(-1===$i||$i>e))){$i=-1,ea.didTimeout=!0;for(var t=0,n=Vi.length;t<n;t++){var r=Vi[t],o=r.timeoutTime;-1!==o&&o<=e?ta(r.scheduledCallback,r.callbackId):-1!==o&&(-1===$i||o<$i)&&($i=o)}}for(e=Wi();0<Ki-e&&0<Vi.length;)e=Vi.shift(),ea.didTimeout=!1,ta(e.scheduledCallback,e.callbackId),e=Wi();0<Vi.length&&!Xi&&(Xi=!0,requestAnimationFrame(ra))}},!1);var ra=function(e){Xi=!1;var t=e-Ki+Zi;t<Zi&&Qi<Zi?(8>t&&(t=8),Zi=t<Qi?Qi:t):Qi=t,Ki=e+Zi,Gi||(Gi=!0,window.postMessage(na,"*"))};Hi=function(e,t){var n=-1;return null!=t&&"number"==typeof t.timeout&&(n=Wi()+t.timeout),(-1===$i||-1!==n&&n<$i)&&($i=n),Yi++,t=Yi,Vi.push({scheduledCallback:e,callbackId:t,timeoutTime:n}),Ji[t]=!0,Xi||(Xi=!0,requestAnimationFrame(ra)),t},qi=function(e){delete Ji[e]}}else{var oa=0,ia={};Hi=function(e){var t=oa++,n=setTimeout(function(){e({timeRemaining:function(){return 1/0},didTimeout:!1})});return ia[t]=n,t},qi=function(e){var t=ia[e];delete ia[e],clearTimeout(t)}}var aa={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},ua=void 0,la=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!==aa.svg||"innerHTML"in e)e.innerHTML=t;else{for(ua=ua||document.createElement("div"),ua.innerHTML="<svg>"+t+"</svg>",t=ua.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),ca={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,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},fa=["Webkit","ms","Moz","O"];Object.keys(ca).forEach(function(e){fa.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ca[t]=ca[e]})});var sa=Ur({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}),da=Fr.thatReturns(""),pa={createElement:dt,createTextNode:pt,setInitialProperties:ht,diffProperties:gt,updateProperties:mt,diffHydratedProperties:yt,diffHydratedText:vt,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(ye(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 o=n[t];if(o!==e&&o.form===e.form){var i=_(o);i?void 0:r("90"),oe(o),ye(o,i)}}}break;case"textarea":rt(e,n);break;case"select":t=n.value,null!=t&&Ze(e,!!n.multiple,t,!1)}}},ha=null,ga=null,ma=Wi,ya=Hi,va=qi;new Set;var ba=[],wa=-1,_a=xt(Br),Sa=xt(!1),xa=Br,Ea=null,Ca=null,ka=!1,Oa=xt(null),Ma=xt(null),Ta=xt(0),Na={},Pa=xt(Na),ja=xt(Na),Ra=xt(Na),Aa={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===Re(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=er();r=Qn(r,e);var o=$t(r);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),Xt(e,o,r),Zn(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=er();r=Qn(r,e);var o=$t(r);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),Xt(e,o,r),Zn(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=er();n=Qn(n,e);var r=$t(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Xt(e,r,n),Zn(e,n)}},La=Array.isArray,Ua=yn(!0),Fa=yn(!1),Da=null,za=null,Ia=!1,Ba=void 0,Wa=void 0,Ha=void 0;Ba=function(){},Wa=function(e,t,n){(t.updateQueue=n)&&Rn(t)},Ha=function(e,t,n,r){n!==r&&Rn(t)};var qa=ma(),Va=2,Ya=qa,Ja=0,$a=0,Ga=!1,Xa=null,Ka=null,Qa=0,Za=-1,eu=!1,tu=null,nu=!1,ru=!1,ou=null,iu=null,au=null,uu=0,lu=-1,cu=!1,fu=null,su=0,du=0,pu=!1,hu=!1,gu=null,mu=null,yu=!1,vu=!1,bu=!1,wu=null,_u=1e3,Su=0,xu=1,Eu={updateContainerAtExpirationTime:wr,createContainer:function(e,t,n){return Bt(e,t,n)},updateContainer:Sr,flushRoot:cr,requestWork:or,computeUniqueAsyncExpiration:Kn,batchedUpdates:mr,unbatchedUpdates:yr,deferredUpdates:tr,syncUpdates:nr,interactiveUpdates:function(e,t,n){if(bu)return e(t,n);yu||cu||0===du||(lr(du,!1,null),du=0);var r=bu,o=yu;yu=bu=!0;try{return e(t,n)}finally{bu=r,(yu=o)||cu||ur()}},flushInteractiveUpdates:function(){cu||0===du||(lr(du,!1,null),du=0)},flushControlled:br,flushSync:vr,getPublicRootInstance:xr,findHostInstance:_r,findHostInstanceWithNoPortals:function(e){return e=Fe(e),null===e?null:e.stateNode},injectIntoDevTools:Er};Ro.injectFiberControlledHostComponent(pa),kr.prototype.render=function(e){this._defer?void 0:r("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,o=new Or;return wr(e,t,null,n,o._onCommit),o},kr.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},kr.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t?void 0:r("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var o=null,i=t;i!==this;)o=i,i=i._next;null===o?r("251"):void 0,o._next=i._next,this._next=t,e.firstBatch=this}this._defer=!1,cr(e,n),t=this._next,this._next=null,t=e.firstBatch=t,null!==t&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},kr.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])()}},Or.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Or.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?r("191",n):void 0,n()}}},Mr.prototype.render=function(e,t){var n=this._internalRoot,r=new Or;return t=void 0===t?null:t,null!==t&&r.then(t),Sr(e,n,null,r._onCommit),r},Mr.prototype.unmount=function(e){var t=this._internalRoot,n=new Or;return e=void 0===e?null:e,null!==e&&n.then(e),Sr(null,t,null,n._onCommit),n},Mr.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,o=new Or;return n=void 0===n?null:n,null!==n&&o.then(n),Sr(t,r,e,o._onCommit),o},Mr.prototype.createBatch=function(){var e=new kr(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},$=Eu.batchedUpdates,G=Eu.interactiveUpdates,X=Eu.flushInteractiveUpdates;var Cu={createPortal:jr,findDOMNode:function(e){return null==e?null:1===e.nodeType?e:_r(e)},hydrate:function(e,t,n){return Pr(null,e,t,!0,n)},render:function(e,t,n){return Pr(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){return null==e||void 0===e._reactInternalFiber?r("38"):void 0,Pr(e,t,n,!1,o)},unmountComponentAtNode:function(e){return Tr(e)?void 0:r("40"),!!e._reactRootContainer&&(yr(function(){Pr(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return jr.apply(void 0,arguments)},unstable_batchedUpdates:mr,unstable_deferredUpdates:tr,flushSync:vr,unstable_flushControlled:br,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:to,EventPluginRegistry:Gr,EventPropagators:ao,ReactControlledComponent:Uo,ReactDOMComponentTree:io,ReactDOMEventListener:Pi},unstable_createRoot:function(e,t){return new Mr(e,!0,null!=t&&!0===t.hydrate)}};Er({findFiberByHostInstance:b,bundleType:0,version:"16.4.0",rendererPackageName:"react-dom"});var ku={default:Cu},Ou=ku&&Cu||ku;e.exports=Ou.default?Ou.default:Ou},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t){"use strict";function n(e){if(e=e||("undefined"!=typeof document?document:void 0),"undefined"==typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=n},function(e,t){"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(!o.call(t,r[a])||!n(e[r[a]],t[r[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(14);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(15);e.exports=r},function(e,t){"use strict";function n(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 u(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)}Object.defineProperty(t,"__esModule",{value:!0});var l=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}}(),c=n(2),f=r(c),s=n(17),d=r(s),p=n(44),h=n(70),g=r(h),m=n(93),y=r(m),v=n(84),b=r(v),w=n(100),_=r(w),S=n(71),x=r(S),E=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return window.location.hash.split("/")[1],n.state={dataJSON:void 0,topoJSON:{},category:null,filterJSON:[],filteredDataJSON:void 0,filters:n.props.filters,showModal:!1,card:void 0,
mode:window.innerWidth<=500?"col4":"col7",filterConfigurationJSON:n.props.filterConfigurationJSON,obj:{}},n.ListReference=void 0,n.showModal=n.showModal.bind(n),n.closeModal=n.closeModal.bind(n),n.onTabChange=n.onTabChange.bind(n),n}return u(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.dataURL,r=t.topoURL;t.filterConfigsURL,d.default.all([d.default.get(n),d.default.get(r)]).then(d.default.spread(function(t,n){var r=void 0,o=void 0,i=void 0,a=void 0,u=void 0;r=t.data,r.forEach(function(e,t){e.u_id=t+1}),o=e.state.filters.map(function(t){return u=b.default.groupBy(r,t.propName),a=e.findKeyValue(u),{name:t.alias,key:t.propName,filters:e.sortObject(e.createObj(u,t.propName,a),t)}}),i=[{name:"Tab - 1",filters:o}],e.setState({dataJSON:r,filteredDataJSON:r,topoJSON:n.data,filterJSON:i,keyValue:a},function(t){e.initF3BTWShareLinks(),window.ga&&ga(function(){var e=ga.getAll()[0].get("name");window.ga(e+".send",{hitType:"event",eventCategory:"user interaction",eventAction:"click",eventLabel:"map view"}),window.ga(e+".send",{hitType:"event",eventCategory:"user interaction",eventAction:"select",eventLabel:this.state.mapDropdownName})})})})),this.getScreenSize(),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),r=this;do for(t=n.length;--t>=0&&n.item(t)!==r;);while(t<0&&(r=r.parentElement));return r})}},{key:"findKeyValue",value:function(e){var t=[];for(var n in e)t.push(n);return t}},{key:"createObj",value:function(e,t,n){for(var r={},o=0;o<n.length;o++)void 0===e[n[o]]?r[n[o]]=[]:r[n[o]]=e[n[o]];return r}},{key:"initF3BTWShareLinks",value:function(){var e,t,n=window.location.href,r=$('meta[property="og:description"]').attr("content"),o=$('meta[name="twitter:description"]').attr("content");n=n.split("#")[0],e="http://www.facebook.com/sharer/sharer.php?u="+n+(r?"&description="+encodeURI(r):""),t="http://twitter.com/share?url="+n+(o?"&text="+encodeURI(o):""),document.getElementById("facebook-share-link").href=e,document.getElementById("twitter-share-link").href=t}},{key:"componentDidUpdate",value:function(){$(".tabs-area .single-tab").on("click",function(e){$(".single-tab").removeClass("active-tab"),$(this).addClass("active-tab"),$(".tabs.active-area").removeClass("active-area"),$(".tabs"+this.dataset.href).addClass("active-area")}),"col4"===this.state.mode&&($(".hamburger-icon").on("click",function(e){$(".mobile-navigations-screen").addClass("mobile-navigations-screen-slide-in")}),$(".close-icon").on("click",function(e){$(".mobile-navigations-screen").removeClass("mobile-navigations-screen-slide-in")}))}},{key:"getUniqueValuesOfKey",value:function(e,t){return e.reduce(function(e,n){return n[t]&&!~e.indexOf(n[t])&&e.push(n[t]),e},[])}},{key:"sortObject",value:function(e,t){var n=[];for(var r in e)e.hasOwnProperty(r)&&n.push({name:""+r,value:r,count:void 0===e[r]?0:e[r].length});return"year"==t.propName?n.sort(function(e,t){return t.value-e.value}):n.sort(function(e,t){var n=e.count,r=t.count;return r-n}),n}},{key:"onChange",value:function(e){var t=this,n=void 0,r=void 0,o=this.state.filters.map(function(o){return n=b.default.groupBy(e,o.propName),r=t.findKeyValue(b.default.groupBy(t.state.dataJSON,o.propName)),{name:o.alias,key:o.propName,filters:t.sortObject(t.createObj(n,o.propName,r),o)}}),i=[{name:"Tab - 1",filters:o}];this.setState({filteredDataJSON:e,filterJSON:i})}},{key:"showModal",value:function(e){e.persist(),window.ga&&window.ga(function(){var e=ga.getAll()[0].get("name");window.ga(e+".send",{hitType:"event",eventCategory:"user interaction",eventAction:"click",eventLabel:"tell me how this map is constructed"})}),this.setState({iframeURL:e.target.dataset.iframe_url,showModal:!0})}},{key:"closeModal",value:function(){this.setState({iframeURL:void 0,showModal:!1})}},{key:"onTabChange",value:function(e){var t=e.target.getAttribute("id"),n=void 0;if(window.ga&&(!window.ga||window.ga.constructor===Function)){switch(t){case"map-tab":n="map view";break;case"list-tab":n="table view";break;default:n=""}window.ga&&ga(function(){var e=ga.getAll()[0].get("name");window.ga(e+".send",{hitType:"event",eventCategory:"user interaction",eventAction:"click",eventLabel:n})})}}},{key:"renderLoader",value:function(){var e,t,n=ProtoGraph.site.house_colour,r=(e={display:"-webkit-flex"},o(e,"display","flex"),o(e,"WebkitFlex","0 1 auto"),o(e,"flex","0 1 auto"),o(e,"WebkitFlexDirection","column"),o(e,"flexDirection","column"),o(e,"WebkitFlexGrow",1),o(e,"flexGrow",1),o(e,"WebkitFlexShrink",0),o(e,"flexShrink",0),o(e,"WebkitFlexBasis","100%"),o(e,"flexBasis","100%"),o(e,"maxWidth","100%"),o(e,"height","200px"),o(e,"WebkitAlignItems","center"),o(e,"alignItems","center"),o(e,"WebkitJustifyContent","center"),o(e,"justifyContent","center"),e);return f.default.createElement("div",{className:"outer-container",style:(t={boxSizing:"border-box",display:"-webkit-flex"},o(t,"display","flex"),o(t,"WebkitFlex","0 1 auto"),o(t,"flex","0 1 auto"),o(t,"WebkitFlexDirection","row"),o(t,"flexDirection","row"),o(t,"WebkitFlexWrap","wrap"),o(t,"flexWrap","wrap"),o(t,"clear","both"),t)},f.default.createElement("div",{className:"inner-container",style:r},f.default.createElement(p.RiseLoader,{color:n})))}},{key:"renderLaptop",value:function(){var e=this;return void 0===this.state.dataJSON?this.renderLoader():($(".social-share-icons").css("display","block"),f.default.createElement("div",{className:"banner-area"},f.default.createElement("div",{className:"proto-col col-4 filter-col protograph-filter-area"},f.default.createElement("div",{className:"summary"},f.default.createElement("div",{className:"article-share-icons"},f.default.createElement("a",{href:"#",id:"facebook-share-link",target:"_blank"},f.default.createElement("div",{className:"single-share-icon"},f.default.createElement("img",{src:"https://cdn.protograph.pykih.com/Assets/proto-app/img/article-share-facebook.png"}))),f.default.createElement("a",{href:"#",id:"twitter-share-link",target:"_blank"},f.default.createElement("div",{className:"single-share-icon"},f.default.createElement("img",{src:"https://cdn.protograph.pykih.com/Assets/proto-app/img/article-share-twitter.png"})))),ProtoGraph.page.summary&&f.default.createElement("div",{className:"summary-text"},ProtoGraph.page.summary)),f.default.createElement(_.default,{configurationJSON:this.props.filterConfigurationJSON,dataJSON:this.state.filteredDataJSON,filterJSON:this.state.filterJSON,onChange:function(t){e.onChange(t)},hintText:"Select a parameter to filter by its value."})),f.default.createElement("div",{className:"proto-col col-12 protograph-app-map-and-list"},f.default.createElement("div",{className:"tabs-area"},f.default.createElement("div",{className:"single-tab active-tab",id:"map-tab","data-href":"#map-area"},"MAP"),f.default.createElement("div",{className:"single-tab",id:"list-tab","data-href":"#list-area"},"LIST")),f.default.createElement("div",{className:"tabs map-area active-area",id:"map-area"},f.default.createElement("div",{className:"map-hint-text"},"Click on the circle to see details of the incident"),f.default.createElement(y.default,{dataJSON:this.state.filteredDataJSON,topoJSON:this.state.topoJSON,showModal:this.showModal,mode:this.props.mode,chartOptions:this.props.chartOptions})),f.default.createElement("div",{className:"tabs list-area",id:"list-area"},f.default.createElement(g.default,{dataJSON:this.state.filteredDataJSON,mode:this.props.mode,showModal:this.showModal})),f.default.createElement(x.default,{showModal:this.state.showModal,closeModal:this.closeModal,mode:this.state.mode,iframeURL:this.state.iframeURL}))))}},{key:"render",value:function(){return this.renderLaptop()}},{key:"getScreenSize",value:function(){var e=window,t=document,n=t.documentElement,r=t.getElementsByTagName("body")[0],o=e.innerWidth||n.clientWidth||r.clientWidth,i=e.innerHeight||n.clientHeight||r.clientHeight;return{width:o,height:i}}}]),t}(f.default.Component);t.default=E},function(e,t,n){e.exports=n(18)},function(e,t,n){"use strict";function r(e){var t=new a(e),n=i(a.prototype.request,t);return o.extend(n,a.prototype,t),o.extend(n,t),n}var o=n(19),i=n(20),a=n(22),u=n(23),l=r(u);l.Axios=a,l.create=function(e){return r(o.merge(u,e))},l.Cancel=n(41),l.CancelToken=n(42),l.isCancel=n(38),l.all=function(e){return Promise.all(e)},l.spread=n(43),e.exports=l,e.exports.default=l},function(e,t,n){"use strict";function r(e){return"[object Array]"===E.call(e)}function o(e){return"[object ArrayBuffer]"===E.call(e)}function i(e){return"undefined"!=typeof FormData&&e instanceof FormData}function a(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function u(e){return"string"==typeof e}function l(e){return"number"==typeof e}function c(e){return"undefined"==typeof e}function f(e){return null!==e&&"object"==typeof e}function s(e){return"[object Date]"===E.call(e)}function d(e){return"[object File]"===E.call(e)}function p(e){return"[object Blob]"===E.call(e)}function h(e){return"[object Function]"===E.call(e)}function g(e){return f(e)&&h(e.pipe)}function m(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function y(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function v(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document}function b(e,t){if(null!==e&&"undefined"!=typeof e)if("object"==typeof e||r(e)||(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function w(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=w(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)b(arguments[n],e);return t}function _(e,t,n){return b(t,function(t,r){n&&"function"==typeof t?e[r]=S(t,n):e[r]=t}),e}var S=n(20),x=n(21),E=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:o,isBuffer:x,isFormData:i,isArrayBufferView:a,isString:u,isNumber:l,isObject:f,isUndefined:c,isDate:s,isFile:d,isBlob:p,isFunction:h,isStream:g,isURLSearchParams:m,isStandardBrowserEnv:v,forEach:b,merge:w,extend:_,trim:y}},function(e,t){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new a,response:new a}}var o=n(23),i=n(19),a=n(35),u=n(36),l=n(39),c=n(40);r.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,this.defaults,{method:"get"},e),e.method=e.method.toLowerCase(),e.baseURL&&!l(e.url)&&(e.url=c(e.baseURL,e.url));var t=[u,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){(function(t){"use strict";function r(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function o(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(26):"undefined"!=typeof t&&(e=n(26)),e}var i=n(19),a=n(25),u={"Content-Type":"application/x-www-form-urlencoded"},l={adapter:o(),transformRequest:[function(e,t){return a(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){l.headers[e]={}}),i.forEach(["post","put","patch"],function(e){l.headers[e]=i.merge(u)}),e.exports=l}).call(t,n(24))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function i(e){if(s===clearTimeout)return clearTimeout(e);if((s===r||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}function a(){g&&p&&(g=!1,p.length?h=p.concat(h):m=-1,h.length&&u())}function u(){if(!g){var e=o(a);g=!0;for(var t=h.length;t;){for(p=h,h=[];++m<t;)p&&p[m].run();m=-1,t=h.length}p=null,g=!1,i(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var f,s,d=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(e){f=n}try{s="function"==typeof clearTimeout?clearTimeout:r}catch(e){s=r}}();var p,h=[],g=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new l(e,t)),1!==h.length||g||o(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(19);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(19),o=n(27),i=n(30),a=n(31),u=n(32),l=n(28),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(33);e.exports=function(e){return new Promise(function(t,f){var s=e.data,d=e.headers;r.isFormData(s)&&delete d["Content-Type"];var p=new XMLHttpRequest,h="onreadystatechange",g=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||u(e.url)||(p=new window.XDomainRequest,h="onload",g=!0,p.onprogress=function(){},p.ontimeout=function(){}),e.auth){var m=e.auth.username||"",y=e.auth.password||"";d.Authorization="Basic "+c(m+":"+y)}if(p.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p[h]=function(){if(p&&(4===p.readyState||g)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?p.response:p.responseText,i={data:r,status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:n,config:e,request:p};o(t,f,i),p=null}},p.onerror=function(){f(l("Network Error",e,null,p)),p=null},p.ontimeout=function(){f(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var v=n(34),b=(e.withCredentials||u(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}if("setRequestHeader"in p&&r.forEach(d,function(e,t){"undefined"==typeof s&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),f(e),p=null)}),void 0===s&&(s=null),p.send(s)})}},function(e,t,n){"use strict";var r=n(28);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(19);e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var a=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)&&(t+="[]"),o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),i=a.join("&")}return i&&(e+=(e.indexOf("?")===-1?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(19);e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}},function(e,t,n){"use strict";var r=n(19);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t){"use strict";function n(){this.message="String contains an invalid character"}function r(e){for(var t,r,i=String(e),a="",u=0,l=o;i.charAt(0|u)||(l="=",u%1);a+=l.charAt(63&t>>8-u%1*8)){if(r=i.charCodeAt(u+=.75),r>255)throw new n;t=t<<8|r}return a}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",e.exports=r},function(e,t,n){"use strict";var r=n(19);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,a){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(19);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(19),i=n(37),a=n(38),u=n(23);e.exports=function(e){r(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||u.adapter;return t(e).then(function(t){return r(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(r(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(19);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(41);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SyncLoader=t.SquareLoader=t.SkewLoader=t.ScaleLoader=t.RotateLoader=t.RiseLoader=t.RingLoader=t.PulseLoader=t.PacmanLoader=t.MoonLoader=t.GridLoader=t.FadeLoader=t.DotLoader=t.ClipLoader=t.BounceLoader=t.BeatLoader=void 0;var o=n(45),i=r(o),a=n(55),u=r(a),l=n(56),c=r(l),f=n(57),s=r(f),d=n(58),p=r(d),h=n(59),g=r(h),m=n(60),y=r(m),v=n(61),b=r(v),w=n(62),_=r(w),S=n(63),x=r(S),E=n(64),C=r(E),k=n(65),O=r(k),M=n(66),T=r(M),N=n(67),P=r(N),j=n(68),R=r(j),A=n(69),L=r(A);t.BeatLoader=i.default,t.BounceLoader=u.default,t.ClipLoader=c.default,t.DotLoader=s.default,t.FadeLoader=p.default,t.GridLoader=g.default,t.MoonLoader=y.default,t.PacmanLoader=b.default,t.PulseLoader=_.default,t.RingLoader=x.default,t.RiseLoader=C.default,t.RotateLoader=O.default,t.ScaleLoader=T.default,t.SkewLoader=P.default,t.SquareLoader=R.default,t.SyncLoader=L.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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},l=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}}(),c=n(2),f=r(c),s=n(46),d=r(s),p=n(49),h=r(p),g=n(52),m=r(g),y={"50%":{transform:"scale(0.75)",opacity:.2},"100%":{transform:"scale(1)",opacity:1}},v=(0,m.default)(y),b={loading:d.default.bool,color:d.default.string,size:d.default.oneOfType([d.default.number,d.default.string]),margin:d.default.oneOfType([d.default.number,d.default.string]),verticalAlign:d.default.oneOfType([d.default.number,d.default.string])},w=Object.keys(b),_=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getBallStyle=function(){return{backgroundColor:r.props.color,width:r.props.size,height:r.props.size,margin:r.props.margin,borderRadius:"100%",verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(e){var t=[v,"0.7s",(e%2?0:.35)+"s","infinite","linear"].join(" "),n="both";return{animation:t,animationFillMode:n}},r.getStyle=function(e){return(0,h.default)(r.getBallStyle(e),r.getAnimationStyle(e),{display:"inline-block",border:"0px solid transparent"})},a=n,i(r,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t=u({},this.props);if(b&&w)for(var n=w.length,r=0;r<n;r++)delete t[w[r]];return f.default.createElement("div",t,f.default.createElement("div",{style:this.getStyle(1)}),f.default.createElement("div",{style:this.getStyle(2)}),f.default.createElement("div",{style:this.getStyle(3)}))}return null}}]),t}(c.Component);_.propTypes=b,_.defaultProps={loading:!0,color:"#ffffff",size:"15px",margin:"2px"},t.default=_,e.exports=t.default},function(e,t,n){e.exports=n(47)()},function(e,t,n){"use strict";var r=n(7),o=n(5),i=n(48);e.exports=function(){function e(e,t,n,r,a,u){u!==i&&o(!1,"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")}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=r,n.PropTypes=n,n}},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";var r=n(50);e.exports=function(e,t){for(var n=Object(e),o=Object.prototype.hasOwnProperty,i=1;i<arguments.length;i++){var a=arguments[i];if(null!=a){var u=Object(a);for(var l in u)o.call(u,l)&&(n[l]=u[l])}}var c={};for(var l in n)c[r(l)]=n[l];return c}},function(e,t,n){"use strict";var r,o=n(51),i=["Moz","Webkit","O","ms"];e.exports=function(e,t){var n;if(e in o)return e;var a=e.charAt(0).toUpperCase()+e.substr(1);if(r){if(n=r+a,n in o)return n}else for(var u=0;u<i.length;++u)if(n=i[u]+a,n in o)return r=i[u],n;return t?void 0:e}},function(e,t){"use strict";e.exports=document.createElement("div").style},function(e,t,n){"use strict";var r=n(53),o=n(54)(),i=0;e.exports=function(e){var t="anim_"+ ++i+ +new Date,n="@"+o+"keyframes "+t+" {";for(var a in e){n+=a+" {";for(var u in e[a]){var l=":"+e[a][u]+";";n+=o+u+l,n+=u+l}n+="}"}return n+="}",r(n),t}},function(e,t){"use strict";var n;e.exports=function(e){n||(n=document.createElement("style"),document.getElementsByTagName("head")[0].appendChild(n),n=n.sheet||n.styleSheet);var t=(n.cssRules||n.rules).length;return n.insertRule(e,t),n}},function(e,t){"use strict";var n;e.exports=function(){if(n)return n;var e=window.getComputedStyle(document.documentElement,""),t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return n="-"+t+"-"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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},l=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}}(),c=n(2),f=r(c),s=n(46),d=r(s),p=n(49),h=r(p),g=n(52),m=r(g),y={"0%, 100%":{transform:"scale(0)"},"50%":{transform:"scale(1.0)"}},v=(0,m.default)(y),b={loading:d.default.bool,color:d.default.string,size:d.default.oneOfType([d.default.number,d.default.string]),verticalAlign:d.default.oneOfType([d.default.number,d.default.string])},w=Object.keys(b),_=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getBallStyle=function(){return{backgroundColor:r.props.color,width:r.props.size,height:r.props.size,borderRadius:"100%",opacity:.6,position:"absolute",top:0,left:0,verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(e){var t=[v,"2s",1===e?"1s":"0s","infinite","ease-in-out"].join(" "),n="both";return{animation:t,animationFillMode:n}},r.getStyle=function(e){return e?(0,h.default)(r.getBallStyle(e),r.getAnimationStyle(e),{border:"0px solid transparent"}):(0,h.default)({width:r.props.size,height:r.props.size,position:"relative",border:"0px solid transparent"})},a=n,i(r,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t=u({},this.props);if(b&&w)for(var n=w.length,r=0;r<n;r++)delete t[w[r]];return f.default.createElement("div",t,f.default.createElement("div",{style:this.getStyle()},f.default.createElement("div",{style:this.getStyle(1)}),f.default.createElement("div",{style:this.getStyle(2)})))}return null}}]),t}(c.Component);_.propTypes=b,_.defaultProps={loading:!0,color:"#ffffff",size:"60px"},t.default=_,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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},l=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}}(),c=n(2),f=r(c),s=n(46),d=r(s),p=n(49),h=r(p),g=n(52),m=r(g),y={"0%":{transform:"rotate(0deg) scale(1)"},"50%":{transform:"rotate(180deg) scale(0.8)"},"100%":{transform:"rotate(360deg) scale(1)"}},v=(0,m.default)(y),b={loading:d.default.bool,color:d.default.string,size:d.default.oneOfType([d.default.number,d.default.string]),verticalAlign:d.default.oneOfType([d.default.number,d.default.string])},w=Object.keys(b),_=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getBallStyle=function(){return{width:r.props.size,height:r.props.size,border:"2px solid",borderColor:r.props.color,borderBottomColor:"transparent",borderRadius:"100%",background:"transparent !important",verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(){var e=[v,"0.75s","0s","infinite","linear"].join(" "),t="both";return{animation:e,animationFillMode:t}},r.getStyle=function(e){return(0,h.default)({border:"0px solid transparent"},r.getBallStyle(e),r.getAnimationStyle(),{display:"inline-block"})},a=n,i(r,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t=u({},this.props);if(b&&w)for(var n=w.length,r=0;r<n;r++)delete t[w[r]];return f.default.createElement("div",t,f.default.createElement("div",{style:this.getStyle()}))}return null}}]),t}(c.Component);_.propTypes=b,_.defaultProps={loading:!0,color:"#ffffff",size:"35px"},t.default=_,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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},l=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}}(),c=n(2),f=r(c),s=n(46),d=r(s),p=n(49),h=r(p),g=n(52),m=r(g),y={"100%":{transform:"rotate(360deg)"}},v={"0%, 100%":{transform:"scale(0)"},"50%":{transform:"scale(1.0)"}},b=(0,m.default)(y),w=(0,m.default)(v),_={loading:d.default.bool,color:d.default.string,size:d.default.oneOfType([d.default.number,d.default.string]),margin:d.default.oneOfType([d.default.number,d.default.string]),verticalAlign:d.default.oneOfType([d.default.number,d.default.string])},S=Object.keys(_),x=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getBallStyle=function(e){return{backgroundColor:r.props.color,width:e,height:e,borderRadius:"100%",verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(e){var t=[0===e?b:w,"2s",2===e?"-1s":"0s","infinite","linear"].join(" "),n="forwards";return{animation:t,animationFillMode:n}},r.getStyle=function(e){var t=0|r.props.size,n=t/2;return e?(0,h.default)(r.getBallStyle(n),r.getAnimationStyle(e),{position:"absolute",top:e%2?0:"auto",bottom:e%2?"auto":0,border:"0px solid transparent"}):(0,h.default)(r.getAnimationStyle(e),{width:t,height:t,position:"relative",border:"0px solid transparent"})},a=n,i(r,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t=u({},this.props);if(_&&S)for(var n=S.length,r=0;r<n;r++)delete t[S[r]];return f.default.createElement("div",t,f.default.createElement("div",{style:this.getStyle(0)},f.default.createElement("div",{style:this.getStyle(1)}),f.default.createElement("div",{style:this.getStyle(2)})))}return null}}]),t}(c.Component);x.propTypes=_,x.defaultProps={loading:!0,color:"#ffffff",size:"60px"},t.default=x,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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},l=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}}(),c=n(2),f=r(c),s=n(46),d=r(s),p=n(49),h=r(p),g=n(52),m=r(g),y={"50%":{opacity:.3},"100%":{opacity:1}},v=(0,m.default)(y),b={loading:d.default.bool,color:d.default.string,height:d.default.oneOfType([d.default.number,d.default.string]),width:d.default.oneOfType([d.default.number,d.default.string]),margin:d.default.oneOfType([d.default.number,d.default.string]),radius:d.default.string,verticalAlign:d.default.oneOfType([d.default.number,d.default.string])},w=Object.keys(b),_=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getLineStyle=function(){return{backgroundColor:r.props.color,height:r.props.height,width:r.props.width,margin:r.props.margin,borderRadius:r.props.radius,verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(e){var t=[v,"1.2s",.12*e+"s","infinite","ease-in-out"].join(" "),n="both";return{animation:t,animationFillMode:n}},r.getPosStyle=function(e){var t=20,n=t/2+t/5.5,r={l1:{top:t,left:0},l2:{top:n,left:n,transform:"rotate(-45deg)"},l3:{top:0,left:t,transform:"rotate(90deg)"},l4:{top:-n,left:n,transform:"rotate(45deg)"},l5:{top:-t,left:0},l6:{top:-n,left:-n,transform:"rotate(-45deg)"},l7:{top:0,left:-t,transform:"rotate(90deg)"},l8:{top:n,left:-n,transform:"rotate(45deg)"}};return r["l"+e]},r.getStyle=function(e){return(0,h.default)(r.getLineStyle(e),r.getPosStyle(e),r.getAnimationStyle(e),{position:"absolute",border:"0px solid transparent"})},a=n,i(r,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t={position:"relative",fontSize:0},n=u({},this.props);if(b&&w)for(var r=w.length,o=0;o<r;o++)delete n[w[o]];return f.default.createElement("div",n,f.default.createElement("div",{style:t},f.default.createElement("div",{style:this.getStyle(1)}),f.default.createElement("div",{style:this.getStyle(2)}),f.default.createElement("div",{style:this.getStyle(3)}),f.default.createElement("div",{style:this.getStyle(4)}),f.default.createElement("div",{style:this.getStyle(5)}),f.default.createElement("div",{style:this.getStyle(6)}),f.default.createElement("div",{style:this.getStyle(7)}),f.default.createElement("div",{style:this.getStyle(8)})))}return null}}]),t}(c.Component);_.propTypes=b,_.defaultProps={loading:!0,color:"#ffffff",height:"15px",width:"5px",margin:"2px",radius:"2px"},t.default=_,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function u(e){return Math.random()*e}Object.defineProperty(t,"__esModule",{value:!0});var l=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}}(),f=n(2),s=r(f),d=n(46),p=r(d),h=n(49),g=r(h),m=n(52),y=r(m),v={"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.5)",opacity:.7},"100%":{transform:"scale(1)",opacity:1}},b=(0,y.default)(v),w={loading:p.default.bool,color:p.default.string,size:p.default.oneOfType([p.default.number,p.default.string]),margin:p.default.oneOfType([p.default.number,p.default.string]),verticalAlign:p.default.oneOfType([p.default.number,p.default.string])},_=Object.keys(w),S=function(e){function t(){var e,n,r,a;o(this,t);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),r.getBallStyle=function(){return{backgroundColor:r.props.color,width:r.props.size,height:r.props.size,margin:r.props.margin,borderRadius:"100%",verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(){var e=u(100)/100+.6+"s",t=u(100)/100-.2+"s",n=[b,e,t,"infinite","ease"].join(" "),r="both";return{animation:n,animationFillMode:r}},r.getStyle=function(e){return(0,g.default)(r.getBallStyle(e),r.getAnimationStyle(e),{display:"inline-block",border:"0px solid transparent"})},a=n,i(r,a)}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t={width:3*parseFloat(this.props.size)+6*parseFloat(this.props.margin),fontSize:0},n=l({},this.props);if(w&&_)for(var r=_.length,o=0;o<r;o++)delete n[_[o]];return s.default.createElement("div",n,s.default.createElement("div",{style:t},s.default.createElement("div",{style:this.getStyle(1)}),s.default.createElement("div",{style:this.getStyle(2)}),s.default.createElement("div",{style:this.getStyle(3)}),s.default.createElement("div",{style:this.getStyle(4)}),s.default.createElement("div",{style:this.getStyle(5)}),s.default.createElement("div",{style:this.getStyle(6)}),s.default.createElement("div",{style:this.getStyle(7)}),s.default.createElement("div",{style:this.getStyle(8)}),s.default.createElement("div",{style:this.getStyle(9)})))}return null}}]),t}(f.Component);S.propTypes=w,S.defaultProps={loading:!0,color:"#ffffff",
size:"15px",margin:"2px"},t.default=S,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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},l=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}}(),c=n(2),f=r(c),s=n(46),d=r(s),p=n(49),h=r(p),g=n(52),m=r(g),y={"100%":{transform:"rotate(360deg)"}},v=(0,m.default)(y),b={loading:d.default.bool,color:d.default.string,size:d.default.oneOfType([d.default.number,d.default.string]),margin:d.default.oneOfType([d.default.number,d.default.string]),verticalAlign:d.default.oneOfType([d.default.number,d.default.string])},w=Object.keys(b),_=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getBallStyle=function(e){return{width:e,height:e,borderRadius:"100%",verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(){var e=[v,"0.6s","0s","infinite","linear"].join(" "),t="forwards";return{animation:e,animationFillMode:t}},r.getStyle=function(e){var t=0|r.props.size,n=t/7;return 1===e?(0,h.default)({border:"0px solid transparent"},r.getBallStyle(n),r.getAnimationStyle(e),{backgroundColor:r.props.color,opacity:"0.8",position:"absolute",top:t/2-n/2}):2===e?(0,h.default)({border:"0px solid transparent"},r.getBallStyle(t),{border:n+"px solid "+r.props.color,opacity:.1}):(0,h.default)({border:"0px solid transparent"},r.getAnimationStyle(e),{position:"relative"})},a=n,i(r,a)}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props.loading;if(e){var t=u({},this.props);if(b&&w)for(var n=w.length,r=0;r<n;r++)delete t[w[r]];return f.default.createElement("div",t,f.default.createElement("div",{style:this.getStyle(0)},f.default.createElement("div",{style:this.getStyle(1)}),f.default.createElement("div",{style:this.getStyle(2)})))}return null}}]),t}(c.Component);_.propTypes=b,_.defaultProps={loading:!0,color:"#ffffff",size:"60px"},t.default=_,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(46),s=r(f),d=n(49),p=r(d),h=n(52),g=r(h),m={},y={loading:s.default.bool,color:s.default.string,size:s.default.oneOfType([s.default.number,s.default.string]),margin:s.default.oneOfType([s.default.number,s.default.string]),verticalAlign:s.default.oneOfType([s.default.number,s.default.string])},v=Object.keys(y),b=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),f=0;f<u;f++)l[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getBallStyle=function(){return{backgroundColor:r.props.color,width:r.props.size,height:r.props.size,margin:r.props.margin,borderRadius:"100%",verticalAlign:r.props.verticalAlign,border:"0px solid transparent"}},r.getAnimationStyle=function(e){var t=r.props.size,n=m[t];if(!n){var o={"75%":{opacity:.7},"100%":{transform:"translate("+-4*t+"px, "+-t/4+"px)"}};n=m[t]=(0,g.default)(o)}var i=[n,"1s",.25*e+"s","infinite","linear"].join(" "),a="both";return{animation:i,animationFillMode:a}},r.getStyle=function(e){if(e|!1){var t=r.props.size+"px solid transparent",n=r.props.size+"px solid "+r.props.color;return{width:0,height:0,borderRight:t,borderTop:n,borderLeft:n,borderBottom:n,borderRadius:r.props.size}}return(0,p.default)(r.getBallStyle(e),r.getAnimationStyle(e),{width:10,height:10,transform:"translate(0, "+-r.props.size/4+"px)",position:"absolute",top:25,left:100})},r.renderLoader=function(e){if(e){var t={position:"relative",fontSize:0},n=Object.assign({},r.props);if(y&&v)for(var o=v.length,i=0;i<o;i++)delete n[v[i]];return c.default.createElement("div",n,c.default.createElement("div",{style:t},c.default.createElement("div",{style:r.getStyle(1)}),c.default.createElement("div",{style:r.getStyle(2)}),c.default.createElement("div",{style:r.getStyle(3)}),c.default.createElement("div",{style:r.getStyle(4)}),c.default.createElement("div",{style:r.getStyle(5)})))}return null},a=n,i(r,a)}return a(t,e),u(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);b.propTypes=y,b.defaultProps={loading:!0,color:"#fff",size:25,margin:2},t.default=b,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(46),s=r(f),d=n(49),p=r(d),h=n(52),g=r(h),m={"0%":{transform:"scale(1)",opacity:1},"45%":{transform:"scale(0.1)",opacity:.7},"80%":{transform:"scale(1)",opacity:1}},y=(0,g.default)(m),v={loading:s.default.bool,color:s.default.string,size:s.default.oneOfType([s.default.number,s.default.string]),margin:s.default.oneOfType([s.default.number,s.default.string]),verticalAlign:s.default.oneOfType([s.default.number,s.default.string])},b=Object.keys(v),w=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),f=0;f<u;f++)l[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getBallStyle=function(){return{backgroundColor:r.props.color,width:r.props.size,height:r.props.size,margin:r.props.margin,borderRadius:"100%",verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(e){var t=[y,"0.75s",.12*e+"s","infinite","cubic-bezier(.2,.68,.18,1.08)"].join(" "),n="both";return{animation:t,animationFillMode:n}},r.getStyle=function(e){return(0,p.default)(r.getBallStyle(e),r.getAnimationStyle(e),{display:"inline-block",border:"0px solid transparent"})},r.renderLoader=function(e){if(e){var t=Object.assign({},r.props);if(v&&b)for(var n=b.length,o=0;o<n;o++)delete t[b[o]];return c.default.createElement("div",t,c.default.createElement("div",{style:r.getStyle(1)}),c.default.createElement("div",{style:r.getStyle(2)}),c.default.createElement("div",{style:r.getStyle(3)}))}return null},a=n,i(r,a)}return a(t,e),u(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);w.propTypes=v,w.defaultProps={loading:!0,color:"#ffffff",size:"15px",margin:"2px"},t.default=w,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(46),s=r(f),d=n(49),p=r(d),h=n(52),g=r(h),m={"0%":{transform:"rotateX(0deg) rotateY(0deg) rotateZ(0deg)"},"100%":{transform:"rotateX(180deg) rotateY(360deg) rotateZ(360deg)"}},y={"0%":{transform:"rotateX(0deg) rotateY(0deg) rotateZ(0deg)"},"100%":{transform:"rotateX(360deg) rotateY(180deg) rotateZ(360deg)"}},v=(0,g.default)(m),b=(0,g.default)(y),w={loading:s.default.bool,color:s.default.string,size:s.default.oneOfType([s.default.number,s.default.string]),margin:s.default.oneOfType([s.default.number,s.default.string]),verticalAlign:s.default.oneOfType([s.default.number,s.default.string])},_=Object.keys(w),S=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),f=0;f<u;f++)l[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getCircleStyle=function(e){return{width:e,height:e,border:e/10+"px solid "+r.props.color,opacity:.4,borderRadius:"100%",verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(e){var t=[e|!1?v:b,"2s","0s","infinite","linear"].join(" "),n="forwards",r="800px";return{perspective:r,animation:t,animationFillMode:n}},r.getStyle=function(e){var t=parseInt(r.props.size,10);return e?(0,p.default)({border:"0px solid transparent"},r.getCircleStyle(t),r.getAnimationStyle(e),{position:"absolute",top:0,left:0}):{width:t,height:t,position:"relative",border:"0px solid transparent"}},r.renderLoader=function(e){if(e){var t=Object.assign({},r.props);if(w&&_)for(var n=_.length,o=0;o<n;o++)delete t[_[o]];return c.default.createElement("div",t,c.default.createElement("div",{style:r.getStyle(0)},c.default.createElement("div",{style:r.getStyle(1)}),c.default.createElement("div",{style:r.getStyle(2)})))}return null},a=n,i(r,a)}return a(t,e),u(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);S.propTypes=w,S.defaultProps={loading:!0,color:"#ffffff",size:"60px"},t.default=S,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(46),s=r(f),d=n(49),p=r(d),h=n(52),g=r(h),m=30,y={"0%":{transform:"scale(1.1)"},"25%":{transform:"translateY(-"+m+"px)"},"50%":{transform:"scale(0.4)"},"75%":{transform:"translateY("+m+"px)"},"100%":{transform:"translateY(0) scale(1.0)"}},v={"0%":{transform:"scale(0.4)"},25:{transform:"translateY("+m+"px)"},"50%":{transform:"scale(1.1)"},"75%":{transform:"translateY(-"+m+"px)"},"100%":{transform:"translateY(0) scale(0.75)"}},b=(0,g.default)(y),w=(0,g.default)(v),_={loading:s.default.bool,color:s.default.string,size:s.default.oneOfType([s.default.number,s.default.string]),margin:s.default.oneOfType([s.default.number,s.default.string]),verticalAlign:s.default.oneOfType([s.default.number,s.default.string])},S=Object.keys(_),x=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),f=0;f<u;f++)l[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getBallStyle=function(){return{backgroundColor:r.props.color,width:r.props.size,height:r.props.size,margin:r.props.margin,borderRadius:"100%",verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(e){var t=[e%2===0?b:w,"1s","0s","infinite","cubic-bezier(.15,.46,.9,.6)"].join(" "),n="both";return{animation:t,animationFillMode:n}},r.getStyle=function(e){return(0,p.default)(r.getBallStyle(e),r.getAnimationStyle(e),{display:"inline-block",border:"0px solid transparent"})},r.renderLoader=function(e){if(e){var t=Object.assign({},r.props);if(_&&S)for(var n=S.length,o=0;o<n;o++)delete t[S[o]];return c.default.createElement("div",t,c.default.createElement("div",{style:r.getStyle(1)}),c.default.createElement("div",{style:r.getStyle(2)}),c.default.createElement("div",{style:r.getStyle(3)}),c.default.createElement("div",{style:r.getStyle(4)}),c.default.createElement("div",{style:r.getStyle(5)}))}return null},a=n,i(r,a)}return a(t,e),u(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);x.propTypes=_,x.defaultProps={loading:!0,color:"#ffffff",size:"15px",margin:"2px"},t.default=x,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(46),s=r(f),d=n(49),p=r(d),h=n(52),g=r(h),m={"0%":{transform:"rotate(0deg)"},"50%":{transform:"rotate(180deg)"},"100%":{transform:"rotate(360deg)"}},y=(0,g.default)(m),v={loading:s.default.bool,color:s.default.string,size:s.default.oneOfType([s.default.number,s.default.string]),margin:s.default.oneOfType([s.default.number,s.default.string]),verticalAlign:s.default.oneOfType([s.default.number,s.default.string])},b=Object.keys(v),w=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),f=0;f<u;f++)l[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getBallStyle=function(){return{backgroundColor:r.props.color,width:r.props.size,height:r.props.size,margin:r.props.margin,borderRadius:"100%",verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(){var e=[y,"1s","0s","infinite","cubic-bezier(.7,-.13,.22,.86)"].join(" "),t="both";return{animation:e,animationFillMode:t}},r.getStyle=function(e){return e?(0,p.default)(r.getBallStyle(e),{opacity:"0.8",position:"absolute",top:0,left:e%2?-28:25,border:"0px solid transparent"}):(0,p.default)(r.getBallStyle(e),r.getAnimationStyle(e),{display:"inline-block",position:"relative",border:"0px solid transparent"})},r.renderLoader=function(e){if(e){var t=Object.assign({},r.props);if(v&&b)for(var n=b.length,o=0;o<n;o++)delete t[b[o]];return c.default.createElement("div",t,c.default.createElement("div",{style:r.getStyle()},c.default.createElement("div",{style:r.getStyle(1)}),c.default.createElement("div",{style:r.getStyle(2)})))}return null},a=n,i(r,a)}return a(t,e),u(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);w.propTypes=v,w.defaultProps={loading:!0,color:"#ffffff",size:"15px",margin:"2px"},t.default=w,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(46),s=r(f),d=n(49),p=r(d),h=n(52),g=r(h),m={"0%":{transform:"scaley(1.0)"},"50%":{transform:"scaley(0.4)"},"100%":{transform:"scaley(1.0)"}},y=(0,g.default)(m),v={loading:s.default.bool,color:s.default.string,height:s.default.oneOfType([s.default.number,s.default.string]),width:s.default.oneOfType([s.default.number,s.default.string]),margin:s.default.oneOfType([s.default.number,s.default.string]),radius:s.default.string,verticalAlign:s.default.oneOfType([s.default.number,s.default.string])},b=Object.keys(v),w=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),f=0;f<u;f++)l[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getLineStyle=function(){return{backgroundColor:r.props.color,height:r.props.height,width:r.props.width,margin:r.props.margin,borderRadius:r.props.radius,verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(e){var t=[y,"1s",.1*e+"s","infinite","cubic-bezier(.2,.68,.18,1.08)"].join(" "),n="both";return{animation:t,animationFillMode:n}},r.getStyle=function(e){return(0,p.default)(r.getLineStyle(e),r.getAnimationStyle(e),{display:"inline-block",border:"0px solid transparent"})},r.renderLoader=function(e){if(e){var t=Object.assign({},r.props);if(v&&b)for(var n=b.length,o=0;o<n;o++)delete t[b[o]];return c.default.createElement("div",t,c.default.createElement("div",{style:r.getStyle(1)}),c.default.createElement("div",{style:r.getStyle(2)}),c.default.createElement("div",{style:r.getStyle(3)}),c.default.createElement("div",{style:r.getStyle(4)}),c.default.createElement("div",{style:r.getStyle(5)}))}return null},a=n,i(r,a)}return a(t,e),u(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);w.propTypes=v,w.defaultProps={loading:!0,color:"#fff",height:"35px",width:"4px",margin:"2px",radius:"2px"},t.default=w,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(46),s=r(f),d=n(49),p=r(d),h=n(52),g=r(h),m={"25%":{transform:"perspective(100px) rotateX(180deg) rotateY(0)"},"50%":{transform:"perspective(100px) rotateX(180deg) rotateY(180deg)"},"75%":{transform:"perspective(100px) rotateX(0) rotateY(180deg)"},"100%":{transform:"perspective(100px) rotateX(0) rotateY(0)"}},y=(0,g.default)(m),v={loading:s.default.bool,color:s.default.string,size:s.default.oneOfType([s.default.number,s.default.string]),verticalAlign:s.default.oneOfType([s.default.number,s.default.string])},b=Object.keys(v),w=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),f=0;f<u;f++)l[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getSharpStyle=function(){return{width:0,height:0,borderLeft:r.props.size+" solid transparent",borderRight:r.props.size+" solid transparent",borderBottom:r.props.size+" solid "+r.props.color,verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(){var e=[y,"3s","0s","infinite","cubic-bezier(.09,.57,.49,.9)"].join(" "),t="both";return{animation:e,animationFillMode:t}},r.getStyle=function(e){return(0,p.default)({border:"0px solid transparent"},r.getSharpStyle(e),r.getAnimationStyle(e),{display:"inline-block"})},r.renderLoader=function(e){if(e){var t=Object.assign({},r.props);if(v&&b)for(var n=b.length,o=0;o<n;o++)delete t[b[o]];return c.default.createElement("div",t,c.default.createElement("div",{style:r.getStyle()}))}return null},a=n,i(r,a)}return a(t,e),u(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);w.propTypes=v,w.defaultProps={loading:!0,color:"#fff",size:"20px"},t.default=w,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(46),s=r(f),d=n(49),p=r(d),h=n(52),g=r(h),m={"25%":{transform:"rotateX(180deg) rotateY(0)"},"50%":{transform:"rotateX(180deg) rotateY(180deg)"},"75%":{transform:"rotateX(0) rotateY(180deg)"},"100%":{transform:"rotateX(0) rotateY(0)"}},y=(0,g.default)(m),v={loading:s.default.bool,color:s.default.string,size:s.default.oneOfType([s.default.number,s.default.string]),margin:s.default.oneOfType([s.default.number,s.default.string]),verticalAlign:s.default.oneOfType([s.default.number,s.default.string])},b=Object.keys(v),w=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),f=0;f<u;f++)l[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getSquareStyle=function(){return{backgroundColor:r.props.color,width:r.props.size,height:r.props.size,verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(){var e=[y,"3s","0s","infinite","cubic-bezier(.09,.57,.49,.9)"].join(" "),t="both",n="100px";return{perspective:n,animation:e,animationFillMode:t}},r.getStyle=function(e){return(0,p.default)(r.getSquareStyle(e),r.getAnimationStyle(e),{display:"inline-block",border:"0px solid transparent"})},r.renderLoader=function(e){if(e){var t=Object.assign({},r.props);if(v&&b)for(var n=b.length,o=0;o<n;o++)delete t[b[o]];return c.default.createElement("div",t,c.default.createElement("div",{style:r.getStyle()}))}return null},a=n,i(r,a)}return a(t,e),u(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);w.propTypes=v,w.defaultProps={loading:!0,color:"#ffffff",size:"50px"},t.default=w,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(46),s=r(f),d=n(49),p=r(d),h=n(52),g=r(h),m={"33%":{transform:"translateY(10px)"},"66%":{transform:"translateY(-10px)"},"100%":{transform:"translateY(0)"}},y=(0,g.default)(m),v={loading:s.default.bool,color:s.default.string,size:s.default.oneOfType([s.default.number,s.default.string]),margin:s.default.oneOfType([s.default.number,s.default.string]),verticalAlign:s.default.oneOfType([s.default.number,s.default.string])},b=Object.keys(v),w=function(e){function t(){var e,n,r,a;o(this,t);for(var u=arguments.length,l=Array(u),f=0;f<u;f++)l[f]=arguments[f];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.getBallStyle=function(){return{backgroundColor:r.props.color,width:r.props.size,height:r.props.size,margin:r.props.margin,borderRadius:"100%",verticalAlign:r.props.verticalAlign}},r.getAnimationStyle=function(e){var t=[y,"0.6s",.07*e+"s","infinite","ease-in-out"].join(" "),n="both";return{animation:t,animationFillMode:n}},r.getStyle=function(e){return(0,p.default)(r.getBallStyle(e),r.getAnimationStyle(e),{display:"inline-block",border:"0px solid transparent"})},r.renderLoader=function(e){if(e){var t=Object.assign({},r.props);if(v&&b)for(var n=b.length,o=0;o<n;o++)delete t[b[o]];return c.default.createElement("div",t,c.default.createElement("div",{style:r.getStyle(1)}),c.default.createElement("div",{style:r.getStyle(2)}),c.default.createElement("div",{style:r.getStyle(3)}))}return null},a=n,i(r,a)}return a(t,e),u(t,[{key:"render",value:function(){return this.renderLoader(this.props.loading)}}]),t}(l.Component);w.propTypes=v,w.defaultProps={loading:!0,color:"#ffffff",size:"15px",margin:"2px"},t.default=w,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(71),s=(r(f),n(84)),d=(r(s),function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r={no_of_cards:28,cardsInRow:window.innerWidth<=500?1:4,cardsVisible:n.props.dataJSON.slice(0,28)};return n.state=r,n}return a(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({cardsVisible:e.dataJSON.slice(0,this.state.no_of_cards)})}},{key:"loadMoreCard",value:function(){var e=this.props.dataJSON.length,t=this.state.no_of_cards+this.state.no_of_cards<=e?this.state.no_of_cards+this.state.no_of_cards:e;this.setState({no_of_cards:t,cardsVisible:this.props.dataJSON.slice(0,t)})}},{key:"render",value:function(){var e=this;if(0===this.props.dataJSON.length)return c.default.createElement("h2",null,"No cards to display");var t=this.state.cardsVisible.map(function(t,n){var r=(n+1)%e.state.cardsInRow==0?"protograph-card div-without-margin-right":"protograph-card";return c.default.createElement("div",{id:"protograph-grid-card-"+t.state+"-"+t.date,onClick:e.props.showModal,"data-viewcast_id":t.view_cast_id,className:"protograph-grid-card protograph-trigger-modal "+r,"data-district_code":t.district},c.default.createElement("div",{className:"proto-card-content","data-iframe_url":t.iframe_url},c.default.createElement("div",{className:"proto-card-date"},t.date),c.default.createElement("div",{className:"proto-card-location"},t.district,", ",t.state),c.default.createElement("div",{className:"proto-context-div"},c.default.createElement("div",{className:"proto-context-title"},"CONTEXT/BIAS INDICATOR"),c.default.createElement("div",{className:"proto-context"},t.pretext_to_incident))))});return c.default.createElement("div",{id:"cards-list",className:"protograph-card-area"},t,c.default.createElement("div",{className:"clearfix"}),this.state.no_of_cards<this.props.dataJSON.length?c.default.createElement("button",{id:"show-more-cards",onClick:function(t){return e.loadMoreCard()}},"Show more"):null)}}]),t}(c.default.Component));t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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);
}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(72),s=r(f),d=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.afterOpen=e.afterOpen.bind(e),e.handleRequestClose=e.handleRequestClose.bind(e),e}return a(t,e),u(t,[{key:"afterOpen",value:function(){var e=this;this.props.iframeURL&&setTimeout(function(t){new ProtoEmbed.initFrame(document.getElementById("protograph_modal_card"),e.props.iframeURL,e.props.mode,{headerJSON:ProtoGraph.headerJSON})},0),document.body.style["overflow-y"]="hidden"}},{key:"handleRequestClose",value:function(){document.body.style["overflow-y"]="auto"}},{key:"render",value:function(){var e=this;return c.default.createElement(s.default,{isOpen:this.props.showModal,onAfterOpen:this.afterOpen,onRequestClose:function(t){e.handleRequestClose(t),e.props.closeModal(t)},closeTimeoutMS:0,overlayClassName:"protograph-modal-overlay",className:"proto-col col-7 protograph-modal",shouldFocusAfterRender:!1,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!1,shouldReturnFocusAfterClose:!0,role:"dialog",parentSelector:function(){return document.body},aria:{labelledby:"heading",describedby:"full_description"}},c.default.createElement("div",{className:"protograph-close-modal",onClick:function(t){e.handleRequestClose(t),e.props.closeModal(t)}},c.default.createElement("div",{className:"protograph-close-text"},c.default.createElement("i",{className:"remove icon"}))),c.default.createElement("div",{id:"protograph_modal_card"}))}}]),t}(c.default.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(73),i=r(o);t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";function r(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}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 u(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)}function l(e){return e()}Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var c=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},f=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}}(),s=n(2),d=o(s),p=n(8),h=o(p),g=n(46),m=o(g),y=n(74),v=o(y),b=n(78),w=r(b),_=n(81),S=o(_),x=n(83),E=t.portalClassName="ReactModalPortal",C=t.bodyOpenClassName="ReactModal__Body--open",k=void 0!==h.default.createPortal,O=k?h.default.createPortal:h.default.unstable_renderSubtreeIntoContainer,M=function(e){function t(){var e,n,r,o;i(this,t);for(var u=arguments.length,f=Array(u),s=0;s<u;s++)f[s]=arguments[s];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(f))),r.removePortal=function(){!k&&h.default.unmountComponentAtNode(r.node);var e=l(r.props.parentSelector);e.removeChild(r.node)},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=O(r,d.default.createElement(v.default,c({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},o=n,a(r,o)}return u(t,e),f(t,[{key:"componentDidMount",value:function(){if(_.canUseDOM){k||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName;var e=l(this.props.parentSelector);e.appendChild(this.node),!k&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(e){var t=l(e.parentSelector),n=l(this.props.parentSelector);return{prevParent:t,nextParent:n}}},{key:"componentDidUpdate",value:function(e,t,n){if(_.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;if(e.portalClassName!==i&&(this.node.className=i),e.isOpen||o){var a=n.prevParent,u=n.nextParent;u!==a&&(a.removeChild(this.node),u.appendChild(this.node)),!k&&this.renderPortal(this.props)}}}},{key:"componentWillUnmount",value:function(){if(_.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return _.canUseDOM&&k?(!this.node&&k&&(this.node=document.createElement("div")),O(d.default.createElement(v.default,c({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){w.setElement(e)}}]),t}(s.Component);M.propTypes={isOpen:m.default.bool.isRequired,style:m.default.shape({content:m.default.object,overlay:m.default.object}),portalClassName:m.default.string,bodyOpenClassName:m.default.string,htmlOpenClassName:m.default.string,className:m.default.oneOfType([m.default.string,m.default.shape({base:m.default.string.isRequired,afterOpen:m.default.string.isRequired,beforeClose:m.default.string.isRequired})]),overlayClassName:m.default.oneOfType([m.default.string,m.default.shape({base:m.default.string.isRequired,afterOpen:m.default.string.isRequired,beforeClose:m.default.string.isRequired})]),appElement:m.default.instanceOf(S.default),onAfterOpen:m.default.func,onRequestClose:m.default.func,closeTimeoutMS:m.default.number,ariaHideApp:m.default.bool,shouldFocusAfterRender:m.default.bool,shouldCloseOnOverlayClick:m.default.bool,shouldReturnFocusAfterClose:m.default.bool,parentSelector:m.default.func,aria:m.default.object,role:m.default.string,contentLabel:m.default.string,shouldCloseOnEsc:m.default.bool,overlayRef:m.default.func,contentRef:m.default.func},M.defaultProps={isOpen:!1,portalClassName:E,bodyOpenClassName:C,ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},M.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,x.polyfill)(M),t.default=M},function(e,t,n){"use strict";function r(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}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 u(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)}Object.defineProperty(t,"__esModule",{value:!0});var l=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"==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},f=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}}(),s=n(2),d=o(s),p=n(46),h=o(p),g=n(75),m=r(g),y=n(77),v=o(y),b=n(78),w=r(b),_=n(80),S=r(_),x=n(81),E=o(x),C={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},k=9,O=27,M=0,T=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName;S.remove(document.body,i),o&&S.remove(document.getElementsByTagName("html")[0],o),r&&M>0&&(M-=1,0===M&&w.show(t)),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(m.returnFocus(),m.teardownScopedFocus()):m.popWithoutFocus())},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(m.setupScopedFocus(n.node),m.markForFocusLater()),n.setState({isOpen:!0},function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen()}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){e.keyCode===k&&(0,v.default)(n.content,e),n.props.shouldCloseOnEsc&&e.keyCode===O&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===("undefined"==typeof t?"undefined":c(t))?t:{base:C[e],afterOpen:C[e]+"--after-open",beforeClose:C[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.ariaAttributes=function(e){return Object.keys(e).reduce(function(t,n){return t["aria-"+n]=e[n],t},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return u(t,e),f(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;S.add(document.body,o),r&&S.add(document.getElementsByTagName("html")[0],r),n&&(M+=1,w.hide(t))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.overlayClassName,r=e.defaultStyles,o=t?{}:r.content,i=n?{}:r.overlay;return this.shouldBeClosed()?null:d.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",n),style:l({},i,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown,"aria-modal":"true"},d.default.createElement("div",l({ref:this.setContentRef,style:l({},o,this.props.style.content),className:this.buildClassName("content",t),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.ariaAttributes(this.props.aria||{}),{"data-testid":this.props.testId}),this.props.children))}}]),t}(s.Component);T.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},T.propTypes={isOpen:h.default.bool.isRequired,defaultStyles:h.default.shape({content:h.default.object,overlay:h.default.object}),style:h.default.shape({content:h.default.object,overlay:h.default.object}),className:h.default.oneOfType([h.default.string,h.default.object]),overlayClassName:h.default.oneOfType([h.default.string,h.default.object]),bodyOpenClassName:h.default.string,htmlOpenClassName:h.default.string,ariaHideApp:h.default.bool,appElement:h.default.instanceOf(E.default),onAfterOpen:h.default.func,onRequestClose:h.default.func,closeTimeoutMS:h.default.number,shouldFocusAfterRender:h.default.bool,shouldCloseOnOverlayClick:h.default.bool,shouldReturnFocusAfterClose:h.default.bool,role:h.default.string,contentLabel:h.default.string,aria:h.default.object,children:h.default.node,shouldCloseOnEsc:h.default.bool,overlayRef:h.default.func,contentRef:h.default.func,testId:h.default.string},t.default=T,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){g=!0}function i(){if(g){if(g=!1,!h)return;setTimeout(function(){if(!h.contains(document.activeElement)){var e=(0,d.default)(h)[0]||h;e.focus()}},0)}}function a(){p.push(document.activeElement)}function u(){var e=null;try{return void(0!==p.length&&(e=p.pop(),e.focus()))}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}}function l(){p.length>0&&p.pop()}function c(e){h=e,window.addEventListener?(window.addEventListener("blur",o,!1),document.addEventListener("focus",i,!0)):(window.attachEvent("onBlur",o),document.attachEvent("onFocus",i))}function f(){h=null,window.addEventListener?(window.removeEventListener("blur",o),document.removeEventListener("focus",i)):(window.detachEvent("onBlur",o),document.detachEvent("onFocus",i))}Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=o,t.handleFocus=i,t.markForFocusLater=a,t.returnFocus=u,t.popWithoutFocus=l,t.setupScopedFocus=c,t.teardownScopedFocus=f;var s=n(76),d=r(s),p=[],h=null,g=!1},function(e,t){"use strict";function n(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow"):"none"==n.getPropertyValue("display")}function r(e){for(var t=e;t&&t!==document.body;){if(n(t))return!1;t=t.parentNode}return!0}function o(e,t){var n=e.nodeName.toLowerCase(),o=u.test(n)&&!e.disabled||("a"===n?e.href||t:t);return o&&r(e)}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}function a(e){return[].slice.call(e.querySelectorAll("*"),0).filter(i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;/*!
* Adapted from jQuery UI core
*
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/category/ui-core/
*/
var u=/input|select|textarea|button|object/;e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=(0,a.default)(e);if(!n.length)return void t.preventDefault();var r=t.shiftKey,o=n[0],i=n[n.length-1];if(e===document.activeElement){if(!r)return;u=i}var u;if(i!==document.activeElement||r||(u=o),o===document.activeElement&&r&&(u=i),u)return t.preventDefault(),void u.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),c=null!=l&&"Chrome"!=l[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent);if(c){var f=n.indexOf(document.activeElement);f>-1&&(f+=r?-1:1),t.preventDefault(),n[f].focus()}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(76),a=r(i);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function i(e){var t=e;if("string"==typeof t){var n=document.querySelectorAll(t);o(n,t),t="length"in n?n[0]:n}return p=t||p}function a(e){return!(!e&&!p&&((0,d.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),1))}function u(e){a(e)&&(e||p).setAttribute("aria-hidden","true")}function l(e){a(e)&&(e||p).removeAttribute("aria-hidden")}function c(){p=null}function f(){p=null}Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=o,t.setElement=i,t.validateElement=a,t.hide=u,t.show=l,t.documentNotReadyOrSSRTesting=c,t.resetForTesting=f;var s=n(79),d=r(s),p=null},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(){}Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=r;var o={},i={},a=function(e,t){return e[t]||(e[t]=0),e[t]+=1,t},u=function(e,t){return e[t]&&(e[t]-=1),t},l=function(e,t,n){n.forEach(function(n){a(t,n),e.add(n)})},c=function(e,t,n){n.forEach(function(n){u(t,n),0===t[n]&&e.remove(n)})};t.add=function(e,t){return l(e.classList,"html"==e.nodeName.toLowerCase()?o:i,t.split(" "))},t.remove=function(e,t){return c(e.classList,"html"==e.nodeName.toLowerCase()?o:i,t.split(" "))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var o=n(82),i=r(o),a=i.default,u=a.canUseDOM?window.HTMLElement:{};t.canUseDOM=a.canUseDOM,t.default=u},function(e,t,n){var r;/*!
Copyright (c) 2015 Jed Watson.
Based on code that is Copyright 2013-2015, Facebook, Inc.
All rights reserved.
*/
!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};r=function(){return i}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}()},function(e,t){"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function r(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function o(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}}function i(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 i=null,a=null,u=null;if("function"==typeof t.componentWillMount?i="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(i="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?u="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==i||null!==a||null!==u){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\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=n,t.componentWillReceiveProps=r),"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=o;var f=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;f.call(this,e,t,r)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,t.polyfill=i},function(e,t,n){"use strict";function r(e,t,n){var r=(0,h.scaleOrdinal)().domain(t).range(n);return r(e)}function o(e,t){for(var n=document.getElementsByClassName("circle-"+e),r=document.getElementsByClassName("map-circles"),o=0;o<r.length;o++)r[o].r.baseVal.value=4;for(var i=0;i<n.length;i++)n[i].r.baseVal.value=6}function i(e){var t=(0,g.timeFormat)("%B '%Y");return t(new Date(e))}function a(e,t){var n={},r=void 0;switch("undefined"==typeof t?"undefined":p(t)){case"string":e.forEach(function(e){if(Array.isArray(e[t]))for(var o in e[t])r=e[t][o]?e[t][o]:"Not available","function"==typeof r||(n[r]?n[r].push(e):n[r]=[e]);else r=e[t]?e[t]:"Not available",n[r]?n[r].push(e):n[r]=[e]});break;case"function":e.forEach(function(e){var r=t(e);n[r]?n[r].push(e):n[r]=[e]})}return n}function u(){return null}function l(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="json",n.onload=function(){var e=n.status;200==e?t(null,n.response):t(e)},n.send()}function c(){var e=window,t=document,n=t.documentElement,r=t.getElementsByTagName("body")[0],o=e.innerWidth||n.clientWidth||r.clientWidth,i=e.innerHeight||n.clientHeight||r.clientHeight;return{width:o,height:i}}function f(e,t){var n=Date.now();return function(){n+t-Date.now()<0&&(e(),n=Date.now())}}function s(e,t,n){return e.sort(function(e,r){var o=e[t],i=r[t];switch(n){case"asce":return o<i?-1:o>i?1:0;case"desc":return o<i?1:o>i?-1:0;default:return o<i?-1:o>i?1:0}})}function d(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}var p="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},h=n(85),g=n(92);e.exports={getJSON:l,empty:u,getScreenSize:c,groupBy:a,setColorScale:r,highlightCircle:o,formatDate:i,throttle:f,sortByKey:s,slugify:d}},function(e,t,n){!function(e,r){r(t,n(86),n(87),n(88),n(90),n(91),n(92),n(89))}(this,function(e,t,n,r,o,i,a,u){"use strict";function l(e){function t(t){var n=t+"",a=r.get(n);if(!a){if(i!==H)return i;r.set(n,a=o.push(t))}return e[(a-1)%e.length]}var r=n.map(),o=[],i=H;return e=null==e?[]:W.call(e),t.domain=function(e){if(!arguments.length)return o.slice();o=[],r=n.map();for(var i,a,u=-1,l=e.length;++u<l;)r.has(a=(i=e[u])+"")||r.set(a,o.push(i));return t},t.range=function(n){return arguments.length?(e=W.call(n),t):e.slice()},t.unknown=function(e){return arguments.length?(i=e,t):i},t.copy=function(){return l().domain(o).range(e).unknown(i)},t}function c(){function e(){var e=i().length,o=u[1]<u[0],l=u[o-0],c=u[1-o];n=(c-l)/Math.max(1,e-s+2*d),f&&(n=Math.floor(n)),l+=(c-l-n*(e-s))*p,r=n*(1-s),f&&(l=Math.round(l),r=Math.round(r));var h=t.range(e).map(function(e){return l+n*e});return a(o?h.reverse():h)}var n,r,o=l().unknown(void 0),i=o.domain,a=o.range,u=[0,1],f=!1,s=0,d=0,p=.5;return delete o.unknown,o.domain=function(t){return arguments.length?(i(t),e()):i()},o.range=function(t){return arguments.length?(u=[+t[0],+t[1]],e()):u.slice()},o.rangeRound=function(t){return u=[+t[0],+t[1]],f=!0,e()},o.bandwidth=function(){return r},o.step=function(){return n},o.round=function(t){return arguments.length?(f=!!t,e()):f},o.padding=function(t){return arguments.length?(s=d=Math.max(0,Math.min(1,t)),e()):s},o.paddingInner=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),e()):s},o.paddingOuter=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),e()):d},o.align=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),e()):p},o.copy=function(){return c().domain(i()).range(u).round(f).paddingInner(s).paddingOuter(d).align(p)},e()}function f(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return f(t())},e}function s(){return f(c().paddingInner(1))}function d(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:q(t)}function p(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}function h(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}function g(e,t,n,r){var o=e[0],i=e[1],a=t[0],u=t[1];return i<o?(o=n(i,o),a=r(u,a)):(o=n(o,i),a=r(a,u)),function(e){return a(o(e))}}function m(e,n,r,o){var i=Math.min(e.length,n.length)-1,a=new Array(i),u=new Array(i),l=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),n=n.slice().reverse());++l<i;)a[l]=r(e[l],e[l+1]),u[l]=o(n[l],n[l+1]);return function(n){var r=t.bisect(e,n,1,i)-1;return u[r](a[r](n))}}function y(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function v(e,t){function n(){return i=Math.min(l.length,c.length)>2?m:g,a=u=null,o}function o(t){return(a||(a=i(l,c,s?p(e):e,f)))(+t)}var i,a,u,l=Y,c=Y,f=r.interpolate,s=!1;return o.invert=function(e){return(u||(u=i(c,l,d,s?h(t):t)))(+e)},o.domain=function(e){return arguments.length?(l=B.call(e,V),n()):l.slice()},o.range=function(e){return arguments.length?(c=W.call(e),n()):c.slice()},o.rangeRound=function(e){return c=W.call(e),f=r.interpolateRound,n()},o.clamp=function(e){return arguments.length?(s=!!e,n()):s},o.interpolate=function(e){return arguments.length?(f=e,n()):f},n()}function b(e){var n=e.domain;return e.ticks=function(e){var r=n();return t.ticks(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,t){return J(n(),e,t)},e.nice=function(r){null==r&&(r=10);var o,i=n(),a=0,u=i.length-1,l=i[a],c=i[u];return c<l&&(o=l,l=c,c=o,o=a,a=u,u=o),o=t.tickIncrement(l,c,r),o>0?(l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o,o=t.tickIncrement(l,c,r)):o<0&&(l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o,o=t.tickIncrement(l,c,r)),o>0?(i[a]=Math.floor(l/o)*o,i[u]=Math.ceil(c/o)*o,n(i)):o<0&&(i[a]=Math.ceil(l*o)/o,i[u]=Math.floor(c*o)/o,n(i)),e},e}function w(){var e=v(d,r.interpolateNumber);return e.copy=function(){return y(e,w())},b(e)}function _(){function e(e){return+e}var t=[0,1];return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=B.call(n,V),e):t.slice()},e.copy=function(){return _().domain(t)},b(e)}function S(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:q(t)}function x(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 E(e){return isFinite(e)?+("1e"+e):e<0?0:e}function C(e){return 10===e?E:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function k(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 O(e){return function(t){return-e(-t)}}function M(){function e(){return a=k(i),u=C(i),r()[0]<0&&(a=O(a),u=O(u)),n}var n=v(S,x).domain([1,10]),r=n.domain,i=10,a=k(10),u=C(10);return n.base=function(t){return arguments.length?(i=+t,e()):i},n.domain=function(t){return arguments.length?(r(t),e()):r()},n.ticks=function(e){var n,o=r(),l=o[0],c=o[o.length-1];(n=c<l)&&(p=l,l=c,c=p);var f,s,d,p=a(l),h=a(c),g=null==e?10:+e,m=[];if(!(i%1)&&h-p<g){if(p=Math.round(p)-1,h=Math.round(h)+1,l>0){for(;p<h;++p)for(s=1,f=u(p);s<i;++s)if(d=f*s,!(d<l)){if(d>c)break;m.push(d)}}else for(;p<h;++p)for(s=i-1,f=u(p);s>=1;--s)if(d=f*s,!(d<l)){if(d>c)break;m.push(d)}}else m=t.ticks(p,h,Math.min(h-p,g)).map(u);return n?m.reverse():m},n.tickFormat=function(e,t){if(null==t&&(t=10===i?".0e":","),"function"!=typeof t&&(t=o.format(t)),e===1/0)return t;null==e&&(e=10);var r=Math.max(1,i*e/n.ticks().length);return function(e){var n=e/u(Math.round(a(e)));return n*i<i-.5&&(n*=i),n<=r?t(e):""}},n.nice=function(){return r($(r(),{floor:function(e){return u(Math.floor(a(e)))},ceil:function(e){return u(Math.ceil(a(e)))}}))},n.copy=function(){return y(n,M().base(i))},n}function T(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function N(){function e(e,t){return(t=T(t,n)-(e=T(e,n)))?function(r){return(T(r,n)-e)/t}:q(t)}function t(e,t){return t=T(t,n)-(e=T(e,n)),function(r){return T(e+t*r,1/n)}}var n=1,r=v(e,t),o=r.domain;return r.exponent=function(e){return arguments.length?(n=+e,o(o())):n},r.copy=function(){return y(r,N().exponent(n))},b(r)}function P(){return N().exponent(.5)}function j(){function e(){var e=0,a=Math.max(1,o.length);for(i=new Array(a-1);++e<a;)i[e-1]=t.quantile(r,e/a);return n}function n(e){if(!isNaN(e=+e))return o[t.bisect(i,e)]}var r=[],o=[],i=[];return n.invertExtent=function(e){var t=o.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:r[0],t<i.length?i[t]:r[r.length-1]]},n.domain=function(n){if(!arguments.length)return r.slice();r=[];for(var o,i=0,a=n.length;i<a;++i)o=n[i],null==o||isNaN(o=+o)||r.push(o);return r.sort(t.ascending),e()},n.range=function(t){return arguments.length?(o=W.call(t),e()):o.slice()},n.quantiles=function(){return i.slice()},n.copy=function(){return j().domain(r).range(o)},n}function R(){function e(e){if(e<=e)return u[t.bisect(a,e,0,i)]}function n(){var t=-1;for(a=new Array(i);++t<i;)a[t]=((t+1)*o-(t-i)*r)/(i+1);return e}var r=0,o=1,i=1,a=[.5],u=[0,1];return e.domain=function(e){return arguments.length?(r=+e[0],o=+e[1],n()):[r,o]},e.range=function(e){return arguments.length?(i=(u=W.call(e)).length-1,n()):u.slice()},e.invertExtent=function(e){var t=u.indexOf(e);return t<0?[NaN,NaN]:t<1?[r,a[0]]:t>=i?[a[i-1],o]:[a[t-1],a[t]]},e.copy=function(){return R().domain([r,o]).range(u)},b(e)}function A(){function e(e){if(e<=e)return r[t.bisect(n,e,0,o)]}var n=[.5],r=[0,1],o=1;return e.domain=function(t){return arguments.length?(n=W.call(t),o=Math.min(n.length,r.length-1),e):n.slice()},e.range=function(t){return arguments.length?(r=W.call(t),o=Math.min(n.length,r.length-1),e):r.slice()},e.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},e.copy=function(){return A().domain(n).range(r)},e}function L(e){return new Date(e)}function U(e){return e instanceof Date?+e:+new Date(+e)}function F(e,n,o,i,a,u,l,c,f){function s(t){return(l(t)<t?b:u(t)<t?w:a(t)<t?_:i(t)<t?S:n(t)<t?o(t)<t?x:E:e(t)<t?C:k)(t)}function p(n,r,o,i){if(null==n&&(n=10),"number"==typeof n){var a=Math.abs(o-r)/n,u=t.bisector(function(e){return e[2]}).right(O,a);u===O.length?(i=t.tickStep(r/te,o/te,n),n=e):u?(u=O[a/O[u-1][2]<O[u][2]/a?u-1:u],i=u[1],n=u[0]):(i=Math.max(t.tickStep(r,o,n),1),n=c)}return null==i?n:n.every(i)}var h=v(d,r.interpolateNumber),g=h.invert,m=h.domain,b=f(".%L"),w=f(":%S"),_=f("%I:%M"),S=f("%I %p"),x=f("%a %d"),E=f("%b %d"),C=f("%B"),k=f("%Y"),O=[[l,1,G],[l,5,5*G],[l,15,15*G],[l,30,30*G],[u,1,X],[u,5,5*X],[u,15,15*X],[u,30,30*X],[a,1,K],[a,3,3*K],[a,6,6*K],[a,12,12*K],[i,1,Q],[i,2,2*Q],[o,1,Z],[n,1,ee],[n,3,3*ee],[e,1,te]];return h.invert=function(e){return new Date(g(e))},h.domain=function(e){return arguments.length?m(B.call(e,U)):m().map(L)},h.ticks=function(e,t){var n,r=m(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=p(e,o,i,t),n=n?n.range(o,i+1):[],a?n.reverse():n},h.tickFormat=function(e,t){return null==t?s:f(t)},h.nice=function(e,t){var n=m();return(e=p(e,n[0],n[n.length-1],t))?m($(n,e)):h},h.copy=function(){return y(h,F(e,n,o,i,a,u,l,c,f))},h}function D(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function z(e){function t(t){var i=(t-n)/(r-n);return e(o?Math.max(0,Math.min(1,i)):i)}var n=0,r=1,o=!1;return t.domain=function(e){return arguments.length?(n=+e[0],r=+e[1],t):[n,r]},t.clamp=function(e){return arguments.length?(o=!!e,t):o},t.interpolator=function(n){return arguments.length?(e=n,t):e},t.copy=function(){return z(e).domain([n,r]).clamp(o)},b(t)}var I=Array.prototype,B=I.map,W=I.slice,H={name:"implicit"},q=function(e){return function(){return e}},V=function(e){return+e},Y=[0,1],J=function(e,n,r){var i,a=e[0],u=e[e.length-1],l=t.tickStep(a,u,null==n?10:n);switch(r=o.formatSpecifier(null==r?",f":r),r.type){case"s":var c=Math.max(Math.abs(a),Math.abs(u));return null!=r.precision||isNaN(i=o.precisionPrefix(l,c))||(r.precision=i),o.formatPrefix(r,c);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=o.precisionRound(l,Math.max(Math.abs(a),Math.abs(u))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=o.precisionFixed(l))||(r.precision=i-2*("%"===r.type))}return o.format(r)},$=function(e,t){e=e.slice();var n,r=0,o=e.length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e},G=1e3,X=60*G,K=60*X,Q=24*K,Z=7*Q,ee=30*Q,te=365*Q,ne=function(){return F(i.timeYear,i.timeMonth,i.timeWeek,i.timeDay,i.timeHour,i.timeMinute,i.timeSecond,i.timeMillisecond,a.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},re=function(){return F(i.utcYear,i.utcMonth,i.utcWeek,i.utcDay,i.utcHour,i.utcMinute,i.utcSecond,i.utcMillisecond,a.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},oe=function(e){return e.match(/.{6}/g).map(function(e){return"#"+e})},ie=oe("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ae=oe("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),ue=oe("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),le=oe("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),ce=r.interpolateCubehelixLong(u.cubehelix(300,.5,0),u.cubehelix(-240,.5,1)),fe=r.interpolateCubehelixLong(u.cubehelix(-100,.75,.35),u.cubehelix(80,1.5,.8)),se=r.interpolateCubehelixLong(u.cubehelix(260,.75,.35),u.cubehelix(80,1.5,.8)),de=u.cubehelix(),pe=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return de.h=360*e-100,de.s=1.5-1.5*t,de.l=.8-.9*t,de+""},he=D(oe("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),ge=D(oe("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),me=D(oe("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ye=D(oe("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));e.scaleBand=c,e.scalePoint=s,e.scaleIdentity=_,e.scaleLinear=w,e.scaleLog=M,e.scaleOrdinal=l,e.scaleImplicit=H,e.scalePow=N,e.scaleSqrt=P,e.scaleQuantile=j,e.scaleQuantize=R,e.scaleThreshold=A,e.scaleTime=ne,e.scaleUtc=re,e.schemeCategory10=ie,e.schemeCategory20b=ae,e.schemeCategory20c=ue,e.schemeCategory20=le,e.interpolateCubehelixDefault=ce,e.interpolateRainbow=pe,e.interpolateWarm=fe,e.interpolateCool=se,e.interpolateViridis=he,e.interpolateMagma=ge,e.interpolateInferno=me,e.interpolatePlasma=ye,e.scaleSequential=z,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e){return function(t,n){return a(e(t),n)}}function n(e,t){return[e,t]}function r(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=E?10:i>=C?5:i>=k?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=E?10:i>=C?5:i>=k?2:1)}function o(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=E?o*=10:i>=C?o*=5:i>=k&&(o*=2),t<e?-o:o}function i(e){return e.length}var a=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},u=function(e){return 1===e.length&&(e=t(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}},l=u(a),c=l.right,f=l.left,s=function(e,t){null==t&&(t=n);for(var r=0,o=e.length-1,i=e[0],a=new Array(o<0?0:o);r<o;)a[r]=t(i,i=e[++r]);return a},d=function(e,t,r){var o,i,a,u,l=e.length,c=t.length,f=new Array(l*c);for(null==r&&(r=n),o=a=0;o<l;++o)for(u=e[o],i=0;i<c;++i,++a)f[a]=r(u,t[i]);return f},p=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},h=function(e){return null===e?NaN:+e},g=function(e,t){var n,r,o=e.length,i=0,a=-1,u=0,l=0;if(null==t)for(;++a<o;)isNaN(n=h(e[a]))||(r=n-u,u+=r/++i,l+=r*(n-u));else for(;++a<o;)isNaN(n=h(t(e[a],a,e)))||(r=n-u,u+=r/++i,l+=r*(n-u));if(i>1)return l/(i-1)},m=function(e,t){var n=g(e,t);return n?Math.sqrt(n):n},y=function(e,t){var n,r,o,i=e.length,a=-1;if(null==t){for(;++a<i;)if(null!=(n=e[a])&&n>=n)for(r=o=n;++a<i;)null!=(n=e[a])&&(r>n&&(r=n),o<n&&(o=n))}else for(;++a<i;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=o=n;++a<i;)null!=(n=t(e[a],a,e))&&(r>n&&(r=n),o<n&&(o=n));return[r,o]},v=Array.prototype,b=v.slice,w=v.map,_=function(e){return function(){return e}},S=function(e){return e},x=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i},E=Math.sqrt(50),C=Math.sqrt(10),k=Math.sqrt(2),O=function(e,t,n){var o,i,a,u,l=-1;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((o=t<e)&&(i=e,e=t,t=i),0===(u=r(e,t,n))||!isFinite(u))return[];if(u>0)for(e=Math.ceil(e/u),t=Math.floor(t/u),a=new Array(i=Math.ceil(t-e+1));++l<i;)a[l]=(e+l)*u;else for(e=Math.floor(e*u),t=Math.ceil(t*u),a=new Array(i=Math.ceil(e-t+1));++l<i;)a[l]=(e-l)/u;return o&&a.reverse(),a},M=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},T=function(){function e(e){var i,a,u=e.length,l=new Array(u);for(i=0;i<u;++i)l[i]=t(e[i],i,e);var f=n(l),s=f[0],d=f[1],p=r(l,s,d);Array.isArray(p)||(p=o(s,d,p),p=x(Math.ceil(s/p)*p,Math.floor(d/p)*p,p));for(var h=p.length;p[0]<=s;)p.shift(),--h;for(;p[h-1]>d;)p.pop(),--h;var g,m=new Array(h+1);for(i=0;i<=h;++i)g=m[i]=[],g.x0=i>0?p[i-1]:s,g.x1=i<h?p[i]:d;for(i=0;i<u;++i)a=l[i],s<=a&&a<=d&&m[c(p,a,0,h)].push(e[i]);return m}var t=S,n=y,r=M;return e.value=function(n){return arguments.length?(t="function"==typeof n?n:_(n),e):t},e.domain=function(t){return arguments.length?(n="function"==typeof t?t:_([t[0],t[1]]),e):n},e.thresholds=function(t){return arguments.length?(r="function"==typeof t?t:_(Array.isArray(t)?b.call(t):t),e):r},e},N=function(e,t,n){if(null==n&&(n=h),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,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),u=+n(e[i+1],i+1,e);return a+(u-a)*(o-i)}},P=function(e,t,n){return e=w.call(e,h).sort(a),Math.ceil((n-t)/(2*(N(e,.75)-N(e,.25))*Math.pow(e.length,-1/3)))},j=function(e,t,n){return Math.ceil((n-t)/(3.5*m(e)*Math.pow(e.length,-1/3)))},R=function(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i<o;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<o;)null!=(n=e[i])&&n>r&&(r=n)}else for(;++i<o;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<o;)null!=(n=t(e[i],i,e))&&n>r&&(r=n);return r},A=function(e,t){var n,r=e.length,o=r,i=-1,a=0;if(null==t)for(;++i<r;)isNaN(n=h(e[i]))?--o:a+=n;else for(;++i<r;)isNaN(n=h(t(e[i],i,e)))?--o:a+=n;if(o)return a/o},L=function(e,t){var n,r=e.length,o=-1,i=[];if(null==t)for(;++o<r;)isNaN(n=h(e[o]))||i.push(n);else for(;++o<r;)isNaN(n=h(t(e[o],o,e)))||i.push(n);return N(i.sort(a),.5)},U=function(e){for(var t,n,r,o=e.length,i=-1,a=0;++i<o;)a+=e[i].length;for(n=new Array(a);--o>=0;)for(r=e[o],t=r.length;--t>=0;)n[--a]=r[t];return n},F=function(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i<o;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<o;)null!=(n=e[i])&&r>n&&(r=n)}else for(;++i<o;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<o;)null!=(n=t(e[i],i,e))&&r>n&&(r=n);return r},D=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},z=function(e,t){if(n=e.length){var n,r,o=0,i=0,u=e[i];for(null==t&&(t=a);++o<n;)(t(r=e[o],u)<0||0!==t(u,u))&&(u=r,i=o);return 0===t(u,u)?i:void 0}},I=function(e,t,n){for(var r,o,i=(null==n?e.length:n)-(t=null==t?0:+t);i;)o=Math.random()*i--|0,r=e[i+t],e[i+t]=e[o+t],e[o+t]=r;return e},B=function(e,t){var n,r=e.length,o=-1,i=0;if(null==t)for(;++o<r;)(n=+e[o])&&(i+=n);else for(;++o<r;)(n=+t(e[o],o,e))&&(i+=n);return i},W=function(e){if(!(o=e.length))return[];for(var t=-1,n=F(e,i),r=new Array(n);++t<n;)for(var o,a=-1,u=r[t]=new Array(o);++a<o;)u[a]=e[a][t];return r},H=function(){return W(arguments)};e.bisect=c,e.bisectRight=c,e.bisectLeft=f,e.ascending=a,e.bisector=u,e.cross=d,e.descending=p,e.deviation=m,e.extent=y,e.histogram=T,e.thresholdFreedmanDiaconis=P,e.thresholdScott=j,e.thresholdSturges=M,e.max=R,e.mean=A,e.median=L,e.merge=U,e.min=F,e.pairs=s,e.permute=D,e.quantile=N,e.range=x,e.scan=z,e.shuffle=I,e.sum=B,e.ticks=O,e.tickIncrement=r,e.tickStep=o,e.transpose=W,e.variance=g,e.zip=H,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(){}function n(e,n){var r=new t;if(e instanceof t)e.each(function(e,t){r.set(t,e)});else if(Array.isArray(e)){var o,i=-1,a=e.length;if(null==n)for(;++i<a;)r.set(i,e[i]);else for(;++i<a;)r.set(n(o=e[i],i,e),o)}else if(e)for(var u in e)r.set(u,e[u]);return r}function r(){return{}}function o(e,t,n){e[t]=n}function i(){return n()}function a(e,t,n){e.set(t,n)}function u(){}function l(e,t){var n=new u;if(e instanceof u)e.each(function(e){n.add(e)});else if(e){var r=-1,o=e.length;if(null==t)for(;++r<o;)n.add(e[r]);else for(;++r<o;)n.add(t(e[r],r,e))}return n}var c="$";t.prototype=n.prototype={constructor:t,has:function(e){return c+e in this},get:function(e){return this[c+e]},set:function(e,t){return this[c+e]=t,this},remove:function(e){var t=c+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===c&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===c&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===c&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===c&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===c&&++e;return e},empty:function(){for(var e in this)if(e[0]===c)return!1;return!0},each:function(e){for(var t in this)t[0]===c&&e(this[t],t.slice(1),this)}};var f=function(){function e(t,r,o,i){if(r>=f.length)return null!=u&&t.sort(u),null!=l?l(t):t;for(var a,c,s,d=-1,p=t.length,h=f[r++],g=n(),m=o();++d<p;)(s=g.get(a=h(c=t[d])+""))?s.push(c):g.set(a,[c]);return g.each(function(t,n){i(m,n,e(t,r,o,i))}),m}function t(e,n){if(++n>f.length)return e;var r,o=s[n-1];return null!=l&&n>=f.length?r=e.entries():(r=[],e.each(function(e,o){r.push({key:o,values:t(e,n)})})),null!=o?r.sort(function(e,t){return o(e.key,t.key)}):r}var u,l,c,f=[],s=[];return c={object:function(t){return e(t,0,r,o)},map:function(t){return e(t,0,i,a)},entries:function(n){return t(e(n,0,i,a),0)},key:function(e){return f.push(e),c},sortKeys:function(e){return s[f.length-1]=e,c},sortValues:function(e){return u=e,c},rollup:function(e){return l=e,c}}},s=n.prototype;u.prototype=l.prototype={constructor:u,has:s.has,add:function(e){return e+="",this[c+e]=e,this},remove:s.remove,clear:s.clear,values:s.keys,size:s.size,empty:s.empty,each:s.each};var d=function(e){var t=[];for(var n in e)t.push(n);return t},p=function(e){var t=[];for(var n in e)t.push(e[n]);return t},h=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t};e.nest=f,e.set=l,e.map=n,e.keys=d,e.values=p,e.entries=h,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){!function(e,r){r(t,n(89))}(this,function(e,t){"use strict";function n(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function r(e,t){return function(n){return e+n*t}}function o(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)}}function i(e,t){var n=t-e;return n?r(e,n>180||n<-180?n-360*Math.round(n/360):n):M(isNaN(e)?t:e)}function a(e){return 1===(e=+e)?u:function(t,n){
return n-t?o(t,n,e):M(isNaN(t)?n:t)}}function u(e,t){var n=t-e;return n?r(e,n):M(isNaN(e)?t:e)}function l(e){return function(n){var r,o,i=n.length,a=new Array(i),u=new Array(i),l=new Array(i);for(r=0;r<i;++r)o=t.rgb(n[r]),a[r]=o.r||0,u[r]=o.g||0,l[r]=o.b||0;return a=e(a),u=e(u),l=e(l),o.opacity=1,function(e){return o.r=a(e),o.g=u(e),o.b=l(e),o+""}}}function c(e){return function(){return e}}function f(e){return function(t){return e(t)+""}}function s(e){return"none"===e?W:(S||(S=document.createElement("DIV"),x=document.documentElement,E=document.defaultView),S.style.transform=e,e=E.getComputedStyle(x.appendChild(S),null).getPropertyValue("transform"),x.removeChild(S),e=e.slice(7,-1).split(","),H(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function d(e){return null==e?W:(C||(C=document.createElementNS("http://www.w3.org/2000/svg","g")),C.setAttribute("transform",e),(e=C.transform.baseVal.consolidate())?(e=e.matrix,H(e.a,e.b,e.c,e.d,e.e,e.f)):W)}function p(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}function i(e,r,o,i,a,u){if(e!==o||r!==i){var l=a.push("translate(",null,t,null,n);u.push({i:l-4,x:A(e,o)},{i:l-2,x:A(r,i)})}else(o||i)&&a.push("translate("+o+t+i+n)}function a(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:A(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}function u(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:A(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}function l(e,t,n,r,i,a){if(e!==n||t!==r){var u=i.push(o(i)+"scale(",null,",",null,")");a.push({i:u-4,x:A(e,n)},{i:u-2,x:A(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}return function(t,n){var r=[],o=[];return t=e(t),n=e(n),i(t.translateX,t.translateY,n.translateX,n.translateY,r,o),a(t.rotate,n.rotate,r,o),u(t.skewX,n.skewX,r,o),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,o),t=n=null,function(e){for(var t,n=-1,i=o.length;++n<i;)r[(t=o[n]).i]=t.x(e);return r.join("")}}}function h(e){return((e=Math.exp(e))+1/e)/2}function g(e){return((e=Math.exp(e))-1/e)/2}function m(e){return((e=Math.exp(2*e))-1)/(e+1)}function y(e){return function(n,r){var o=e((n=t.hsl(n)).h,(r=t.hsl(r)).h),i=u(n.s,r.s),a=u(n.l,r.l),l=u(n.opacity,r.opacity);return function(e){return n.h=o(e),n.s=i(e),n.l=a(e),n.opacity=l(e),n+""}}}function v(e,n){var r=u((e=t.lab(e)).l,(n=t.lab(n)).l),o=u(e.a,n.a),i=u(e.b,n.b),a=u(e.opacity,n.opacity);return function(t){return e.l=r(t),e.a=o(t),e.b=i(t),e.opacity=a(t),e+""}}function b(e){return function(n,r){var o=e((n=t.hcl(n)).h,(r=t.hcl(r)).h),i=u(n.c,r.c),a=u(n.l,r.l),l=u(n.opacity,r.opacity);return function(e){return n.h=o(e),n.c=i(e),n.l=a(e),n.opacity=l(e),n+""}}}function w(e){return function n(r){function o(n,o){var i=e((n=t.cubehelix(n)).h,(o=t.cubehelix(o)).h),a=u(n.s,o.s),l=u(n.l,o.l),c=u(n.opacity,o.opacity);return function(e){return n.h=i(e),n.s=a(e),n.l=l(Math.pow(e,r)),n.opacity=c(e),n+""}}return r=+r,o.gamma=n,o}(1)}function _(e,t){for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}var S,x,E,C,k=function(e){var t=e.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[o],a=e[o+1],u=o>0?e[o-1]:2*i-a,l=o<t-1?e[o+2]:2*a-i;return n((r-o/t)*t,u,i,a,l)}},O=function(e){var t=e.length;return function(r){var o=Math.floor(((r%=1)<0?++r:r)*t),i=e[(o+t-1)%t],a=e[o%t],u=e[(o+1)%t],l=e[(o+2)%t];return n((r-o/t)*t,i,a,u,l)}},M=function(e){return function(){return e}},T=function e(n){function r(e,n){var r=o((e=t.rgb(e)).r,(n=t.rgb(n)).r),i=o(e.g,n.g),a=o(e.b,n.b),l=u(e.opacity,n.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=l(t),e+""}}var o=a(n);return r.gamma=e,r}(1),N=l(k),P=l(O),j=function(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=z(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}},R=function(e,t){var n=new Date;return e=+e,t-=e,function(r){return n.setTime(e+t*r),n}},A=function(e,t){return e=+e,t-=e,function(n){return e+t*n}},L=function(e,t){var n,r={},o={};null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={});for(n in t)n in e?r[n]=z(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}},U=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,F=new RegExp(U.source,"g"),D=function(e,t){var n,r,o,i=U.lastIndex=F.lastIndex=0,a=-1,u=[],l=[];for(e+="",t+="";(n=U.exec(e))&&(r=F.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,l.push({i:a,x:A(n,r)})),i=F.lastIndex;return i<t.length&&(o=t.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?l[0]?f(l[0].x):c(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)u[(n=l[r]).i]=n.x(e);return u.join("")})},z=function(e,n){var r,o=typeof n;return null==n||"boolean"===o?M(n):("number"===o?A:"string"===o?(r=t.color(n))?(n=r,T):D:n instanceof t.color?T:n instanceof Date?R:Array.isArray(n)?j:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?L:A)(e,n)},I=function(e,t){return e=+e,t-=e,function(n){return Math.round(e+t*n)}},B=180/Math.PI,W={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},H=function(e,t,n,r,o,i){var a,u,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,l/=u),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*B,skewX:Math.atan(l)*B,scaleX:a,scaleY:u}},q=p(s,"px, ","px)","deg)"),V=p(d,", ",")",")"),Y=Math.SQRT2,J=2,$=4,G=1e-12,X=function(e,t){var n,r,o=e[0],i=e[1],a=e[2],u=t[0],l=t[1],c=t[2],f=u-o,s=l-i,d=f*f+s*s;if(d<G)r=Math.log(c/a)/Y,n=function(e){return[o+e*f,i+e*s,a*Math.exp(Y*e*r)]};else{var p=Math.sqrt(d),y=(c*c-a*a+$*d)/(2*a*J*p),v=(c*c-a*a-$*d)/(2*c*J*p),b=Math.log(Math.sqrt(y*y+1)-y),w=Math.log(Math.sqrt(v*v+1)-v);r=(w-b)/Y,n=function(e){var t=e*r,n=h(b),u=a/(J*p)*(n*m(Y*t+b)-g(b));return[o+u*f,i+u*s,a*n/h(Y*t+b)]}}return n.duration=1e3*r,n},K=y(i),Q=y(u),Z=b(i),ee=b(u),te=w(i),ne=w(u),re=function(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n};e.interpolate=z,e.interpolateArray=j,e.interpolateBasis=k,e.interpolateBasisClosed=O,e.interpolateDate=R,e.interpolateNumber=A,e.interpolateObject=L,e.interpolateRound=I,e.interpolateString=D,e.interpolateTransformCss=q,e.interpolateTransformSvg=V,e.interpolateZoom=X,e.interpolateRgb=T,e.interpolateRgbBasis=N,e.interpolateRgbBasisClosed=P,e.interpolateHsl=K,e.interpolateHslLong=Q,e.interpolateLab=v,e.interpolateHcl=Z,e.interpolateHclLong=ee,e.interpolateCubehelix=te,e.interpolateCubehelixLong=ne,e.piecewise=_,e.quantize=re,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function n(){}function r(e){var t;return e=(e+"").trim().toLowerCase(),(t=U.exec(e))?(t=parseInt(t[1],16),new l(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1)):(t=F.exec(e))?o(parseInt(t[1],16)):(t=D.exec(e))?new l(t[1],t[2],t[3],1):(t=z.exec(e))?new l(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=I.exec(e))?i(t[1],t[2],t[3],t[4]):(t=B.exec(e))?i(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=W.exec(e))?f(t[1],t[2]/100,t[3]/100,1):(t=H.exec(e))?f(t[1],t[2]/100,t[3]/100,t[4]):q.hasOwnProperty(e)?o(q[e]):"transparent"===e?new l(NaN,NaN,NaN,0):null}function o(e){return new l(e>>16&255,e>>8&255,255&e,1)}function i(e,t,n,r){return r<=0&&(e=t=n=NaN),new l(e,t,n,r)}function a(e){return e instanceof n||(e=r(e)),e?(e=e.rgb(),new l(e.r,e.g,e.b,e.opacity)):new l}function u(e,t,n,r){return 1===arguments.length?a(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function c(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function f(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new p(e,t,n,r)}function s(e){if(e instanceof p)return new p(e.h,e.s,e.l,e.opacity);if(e instanceof n||(e=r(e)),!e)return new p;if(e instanceof p)return e;e=e.rgb();var t=e.r/255,o=e.g/255,i=e.b/255,a=Math.min(t,o,i),u=Math.max(t,o,i),l=NaN,c=u-a,f=(u+a)/2;return c?(l=t===u?(o-i)/c+6*(o<i):o===u?(i-t)/c+2:(t-o)/c+4,c/=f<.5?u+a:2-u-a,l*=60):c=f>0&&f<1?0:l,new p(l,c,f,e.opacity)}function d(e,t,n,r){return 1===arguments.length?s(e):new p(e,t,n,null==r?1:r)}function p(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function h(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function g(e){if(e instanceof v)return new v(e.l,e.a,e.b,e.opacity);if(e instanceof k){if(isNaN(e.h))return new v(e.l,0,0,e.opacity);var t=e.h*V;return new v(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof l||(e=a(e));var n,r,o=S(e.r),i=S(e.g),u=S(e.b),c=b((.2225045*o+.7168786*i+.0606169*u)/G);return o===i&&i===u?n=r=c:(n=b((.4360747*o+.3850649*i+.1430804*u)/$),r=b((.0139322*o+.0971045*i+.7141733*u)/X)),new v(116*c-16,500*(n-c),200*(c-r),e.opacity)}function m(e,t){return new v(e,0,0,null==t?1:t)}function y(e,t,n,r){return 1===arguments.length?g(e):new v(e,t,n,null==r?1:r)}function v(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function b(e){return e>ee?Math.pow(e,1/3):e/Z+K}function w(e){return e>Q?e*e*e:Z*(e-K)}function _(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function S(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function x(e){if(e instanceof k)return new k(e.h,e.c,e.l,e.opacity);if(e instanceof v||(e=g(e)),0===e.a&&0===e.b)return new k(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Y;return new k(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function E(e,t,n,r){return 1===arguments.length?x(e):new k(n,t,e,null==r?1:r)}function C(e,t,n,r){return 1===arguments.length?x(e):new k(e,t,n,null==r?1:r)}function k(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function O(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);e instanceof l||(e=a(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(le*r+ae*t-ue*n)/(le+ae-ue),i=r-o,u=(ie*(n-o)-re*i)/oe,c=Math.sqrt(u*u+i*i)/(ie*o*(1-o)),f=c?Math.atan2(u,i)*Y-120:NaN;return new T(f<0?f+360:f,c,o,e.opacity)}function M(e,t,n,r){return 1===arguments.length?O(e):new T(e,t,n,null==r?1:r)}function T(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}var N=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e},P=.7,j=1/P,R="\\s*([+-]?\\d+)\\s*",A="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",L="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",U=/^#([0-9a-f]{3})$/,F=/^#([0-9a-f]{6})$/,D=new RegExp("^rgb\\("+[R,R,R]+"\\)$"),z=new RegExp("^rgb\\("+[L,L,L]+"\\)$"),I=new RegExp("^rgba\\("+[R,R,R,A]+"\\)$"),B=new RegExp("^rgba\\("+[L,L,L,A]+"\\)$"),W=new RegExp("^hsl\\("+[A,L,L]+"\\)$"),H=new RegExp("^hsla\\("+[A,L,L,A]+"\\)$"),q={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};N(n,r,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),N(l,u,t(n,{brighter:function(e){return e=null==e?j:Math.pow(j,e),new l(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?P:Math.pow(P,e),new l(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"#"+c(this.r)+c(this.g)+c(this.b)},toString:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(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+")")}})),N(p,d,t(n,{brighter:function(e){return e=null==e?j:Math.pow(j,e),new p(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?P:Math.pow(P,e),new p(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,o=2*n-r;return new l(h(e>=240?e-240:e+120,o,r),h(e,o,r),h(e<120?e+240:e-120,o,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 V=Math.PI/180,Y=180/Math.PI,J=18,$=.96422,G=1,X=.82521,K=4/29,Q=6/29,Z=3*Q*Q,ee=Q*Q*Q;N(v,y,t(n,{brighter:function(e){return new v(this.l+J*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new v(this.l-J*(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 t=$*w(t),e=G*w(e),n=X*w(n),new l(_(3.1338561*t-1.6168667*e-.4906146*n),_(-.9787684*t+1.9161415*e+.033454*n),_(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),N(k,C,t(n,{brighter:function(e){return new k(this.h,this.c,this.l+J*(null==e?1:e),this.opacity)},darker:function(e){return new k(this.h,this.c,this.l-J*(null==e?1:e),this.opacity)},rgb:function(){return g(this).rgb()}}));var te=-.14861,ne=1.78277,re=-.29227,oe=-.90649,ie=1.97294,ae=ie*oe,ue=ie*ne,le=ne*re-oe*te;N(T,M,t(n,{brighter:function(e){return e=null==e?j:Math.pow(j,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?P:Math.pow(P,e),new T(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new l(255*(t+n*(te*r+ne*o)),255*(t+n*(re*r+oe*o)),255*(t+n*(ie*r)),this.opacity)}})),e.color=r,e.rgb=u,e.hsl=d,e.lab=y,e.hcl=C,e.lch=E,e.gray=m,e.cubehelix=M,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e){return new n(e)}function n(e){if(!(t=l.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]||""}function r(t){return f=y(t),e.format=f.format,e.formatPrefix=f.formatPrefix,f}var o=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)]},i=function(e){return e=o(Math.abs(e)),e?e[1]:NaN},a=function(e,t){return function(n,r){for(var o=n.length,i=[],a=0,u=e[0],l=0;o>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),i.push(n.substring(o-=u,o+u)),!((l+=u+1)>r));)u=e[a=(a+1)%e.length];return i.reverse().join(t)}},u=function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}},l=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;t.prototype=n.prototype,n.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 c,f,s=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(o>0){if(!+e[r])break e;o=0}}return o>0?e.slice(0,o)+e.slice(t+1):e},d=function(e,t){var n=o(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(c=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return a===u?r:a>u?r+new Array(a-u+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+o(e,Math.max(0,t+a-1))[0]},p=function(e,t){var n=o(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")},h={"%":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 p(100*e,t)},r:p,s:d,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},g=function(e){return e},m=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],y=function(e){function n(e){function n(e){var t,n,u,l=S,p=x;if("c"===_)p=E(e)+p,e="";else{e=+e;var h=e<0;if(e=E(Math.abs(e),b),w&&(e=s(e)),h&&0===+e&&(h=!1),l=(h?"("===a?a:"-":"-"===a||"("===a?"":a)+l,p=("s"===_?m[8+c/3]:"")+p+(h&&"("===a?")":""),C)for(t=-1,n=e.length;++t<n;)if(u=e.charCodeAt(t),48>u||u>57){p=(46===u?f+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}v&&!g&&(e=o(e,1/0));var k=l.length+e.length+p.length,O=k<y?new Array(y-k+1).join(r):"";switch(v&&g&&(e=o(O+e,O.length?y-p.length:1/0),O=""),i){case"<":e=l+e+p+O;break;case"=":e=l+O+e+p;break;case"^":e=O.slice(0,k=O.length>>1)+l+e+p+O.slice(k);break;default:e=O+l+e+p}return d(e)}e=t(e);var r=e.fill,i=e.align,a=e.sign,u=e.symbol,g=e.zero,y=e.width,v=e.comma,b=e.precision,w=e.trim,_=e.type;"n"===_?(v=!0,_="g"):h[_]||(null==b&&(b=12),w=!0,_="g"),(g||"0"===r&&"="===i)&&(g=!0,r="0",i="=");var S="$"===u?l[0]:"#"===u&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===u?l[1]:/[%p]/.test(_)?p:"",E=h[_],C=/[defgprs%]/.test(_);return b=null==b?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),n.toString=function(){return e+""},n}function r(e,r){var o=n((e=t(e),e.type="f",e)),a=3*Math.max(-8,Math.min(8,Math.floor(i(r)/3))),u=Math.pow(10,-a),l=m[8+a/3];return function(e){return o(u*e)+l}}var o=e.grouping&&e.thousands?a(e.grouping,e.thousands):g,l=e.currency,f=e.decimal,d=e.numerals?u(e.numerals):g,p=e.percent||"%";return{format:n,formatPrefix:r}};r({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var v=function(e){return Math.max(0,-i(Math.abs(e)))},b=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(i(t)/3)))-i(Math.abs(e)))},w=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,i(t)-i(e))+1};e.formatDefaultLocale=r,e.formatLocale=y,e.formatSpecifier=t,e.precisionFixed=v,e.precisionPrefix=b,e.precisionRound=w,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e,n,r,a){function u(t){return e(t=new Date(+t)),t}return u.floor=u,u.ceil=function(t){return e(t=new Date(t-1)),n(t,1),e(t),t},u.round=function(e){var t=u(e),n=u.ceil(e);return e-t<n-e?t:n},u.offset=function(e,t){return n(e=new Date(+e),null==t?1:Math.floor(t)),e},u.range=function(t,r,o){var i,a=[];if(t=u.ceil(t),o=null==o?1:Math.floor(o),!(t<r&&o>0))return a;do a.push(i=new Date(+t)),n(t,o),e(t);while(i<t&&t<r);return a},u.filter=function(r){return t(function(t){if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},function(e,t){if(e>=e)if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););})},r&&(u.count=function(t,n){return o.setTime(+t),i.setTime(+n),e(o),e(i),Math.floor(r(o,i))},u.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?u.filter(a?function(t){return a(t)%e===0}:function(t){return u.count(0,t)%e===0}):u:null}),u}function n(e){return t(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())*c)/d})}function r(e){return t(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)/d})}var o=new Date,i=new Date,a=t(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?t(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):a:null};var u=a.range,l=1e3,c=6e4,f=36e5,s=864e5,d=6048e5,p=t(function(e){e.setTime(Math.floor(e/l)*l)},function(e,t){e.setTime(+e+t*l)},function(e,t){return(t-e)/l},function(e){return e.getUTCSeconds()}),h=p.range,g=t(function(e){e.setTime(Math.floor(e/c)*c)},function(e,t){e.setTime(+e+t*c)},function(e,t){return(t-e)/c},function(e){return e.getMinutes()}),m=g.range,y=t(function(e){var t=e.getTimezoneOffset()*c%f;t<0&&(t+=f),e.setTime(Math.floor((+e-t)/f)*f+t)},function(e,t){e.setTime(+e+t*f)},function(e,t){return(t-e)/f},function(e){return e.getHours()}),v=y.range,b=t(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())*c)/s},function(e){return e.getDate()-1}),w=b.range,_=n(0),S=n(1),x=n(2),E=n(3),C=n(4),k=n(5),O=n(6),M=_.range,T=S.range,N=x.range,P=E.range,j=C.range,R=k.range,A=O.range,L=t(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()}),U=L.range,F=t(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()});F.every=function(e){return isFinite(e=Math.floor(e))&&e>0?t(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 D=F.range,z=t(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*c)},function(e,t){return(t-e)/c},function(e){return e.getUTCMinutes()}),I=z.range,B=t(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*f)},function(e,t){return(t-e)/f},function(e){return e.getUTCHours()}),W=B.range,H=t(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/s},function(e){return e.getUTCDate()-1}),q=H.range,V=r(0),Y=r(1),J=r(2),$=r(3),G=r(4),X=r(5),K=r(6),Q=V.range,Z=Y.range,ee=J.range,te=$.range,ne=G.range,re=X.range,oe=K.range,ie=t(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()}),ae=ie.range,ue=t(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()});ue.every=function(e){return isFinite(e=Math.floor(e))&&e>0?t(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 le=ue.range;e.timeInterval=t,e.timeMillisecond=a,e.timeMilliseconds=u,e.utcMillisecond=a,e.utcMilliseconds=u,e.timeSecond=p,e.timeSeconds=h,e.utcSecond=p,e.utcSeconds=h,e.timeMinute=g,e.timeMinutes=m,e.timeHour=y,e.timeHours=v,e.timeDay=b,e.timeDays=w,e.timeWeek=_,e.timeWeeks=M,e.timeSunday=_,e.timeSundays=M,e.timeMonday=S,e.timeMondays=T,e.timeTuesday=x,e.timeTuesdays=N,e.timeWednesday=E,e.timeWednesdays=P,e.timeThursday=C,e.timeThursdays=j,e.timeFriday=k,e.timeFridays=R,e.timeSaturday=O,e.timeSaturdays=A,e.timeMonth=L,e.timeMonths=U,e.timeYear=F,e.timeYears=D,e.utcMinute=z,e.utcMinutes=I,e.utcHour=B,e.utcHours=W,e.utcDay=H,e.utcDays=q,e.utcWeek=V,e.utcWeeks=Q,e.utcSunday=V,e.utcSundays=Q,e.utcMonday=Y,e.utcMondays=Z,e.utcTuesday=J,e.utcTuesdays=ee,e.utcWednesday=$,e.utcWednesdays=te,e.utcThursday=G,e.utcThursdays=ne,e.utcFriday=X,e.utcFridays=re,e.utcSaturday=K,e.utcSaturdays=oe,e.utcMonth=ie,e.utcMonths=ae,e.utcYear=ue,e.utcYears=le,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){!function(e,r){r(t,n(91))}(this,function(e,t){"use strict";function n(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 r(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 o(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function i(e){function i(e,t){return function(n){var r,o,i,a=[],u=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++u<c;)37===e.charCodeAt(u)&&(a.push(e.slice(l,u)),null!=(o=me[r=e.charAt(++u)])?r=e.charAt(++u):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=u+1);return a.push(e.slice(l,u)),a.join("")}}function a(e,n){return function(i){var a,l,c=o(1900),f=u(c,e,i+="",0);if(f!=i.length)return null;if("Q"in c)return new Date(c.Q);if("p"in c&&(c.H=c.H%12+12*c.p),"V"in c){if(c.V<1||c.V>53)return null;"w"in c||(c.w=1),"Z"in c?(a=r(o(c.y)),l=a.getUTCDay(),a=l>4||0===l?t.utcMonday.ceil(a):t.utcMonday(a),a=t.utcDay.offset(a,7*(c.V-1)),c.y=a.getUTCFullYear(),c.m=a.getUTCMonth(),c.d=a.getUTCDate()+(c.w+6)%7):(a=n(o(c.y)),l=a.getDay(),a=l>4||0===l?t.timeMonday.ceil(a):t.timeMonday(a),a=t.timeDay.offset(a,7*(c.V-1)),c.y=a.getFullYear(),c.m=a.getMonth(),c.d=a.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),l="Z"in c?r(o(c.y)).getUTCDay():n(o(c.y)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,r(c)):n(c)}}function u(e,t,n,r){for(var o,i,a=0,u=t.length,l=n.length;a<u;){if(r>=l)return-1;if(o=t.charCodeAt(a++),37===o){if(o=t.charAt(a++),i=Ke[o in me?t.charAt(a++):o],!i||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function de(e,t,n){var r=ze.exec(t.slice(n));return r?(e.p=Ie[r[0].toLowerCase()],n+r[0].length):-1}function pe(e,t,n){var r=He.exec(t.slice(n));return r?(e.w=qe[r[0].toLowerCase()],n+r[0].length):-1}function he(e,t,n){var r=Be.exec(t.slice(n));return r?(e.w=We[r[0].toLowerCase()],n+r[0].length):-1}function ge(e,t,n){var r=Je.exec(t.slice(n));return r?(e.m=$e[r[0].toLowerCase()],n+r[0].length):-1}function ye(e,t,n){var r=Ve.exec(t.slice(n));return r?(e.m=Ye[r[0].toLowerCase()],n+r[0].length):-1}function ve(e,t,n){return u(e,Pe,t,n)}function be(e,t,n){return u(e,je,t,n)}function we(e,t,n){return u(e,Re,t,n)}function _e(e){return Ue[e.getDay()]}function Se(e){return Le[e.getDay()]}function xe(e){return De[e.getMonth()]}function Ee(e){return Fe[e.getMonth()]}function Ce(e){return Ae[+(e.getHours()>=12)]}function ke(e){return Ue[e.getUTCDay()]}function Oe(e){return Le[e.getUTCDay()]}function Me(e){return De[e.getUTCMonth()]}function Te(e){return Fe[e.getUTCMonth()]}function Ne(e){return Ae[+(e.getUTCHours()>=12)]}var Pe=e.dateTime,je=e.date,Re=e.time,Ae=e.periods,Le=e.days,Ue=e.shortDays,Fe=e.months,De=e.shortMonths,ze=l(Ae),Ie=c(Ae),Be=l(Le),We=c(Le),He=l(Ue),qe=c(Ue),Ve=l(Fe),Ye=c(Fe),Je=l(De),$e=c(De),Ge={a:_e,A:Se,b:xe,B:Ee,c:null,d:T,e:T,f:A,H:N,I:P,j:j,L:R,m:L,M:U,p:Ce,Q:fe,s:se,S:F,u:D,U:z,V:I,w:B,W:W,x:null,X:null,y:H,Y:q,Z:V,"%":ce},Xe={a:ke,A:Oe,b:Me,B:Te,c:null,d:Y,e:Y,f:K,H:J,I:$,j:G,L:X,m:Q,M:Z,p:Ne,Q:fe,s:se,S:ee,u:te,U:ne,V:re,w:oe,W:ie,x:null,X:null,y:ae,Y:ue,Z:le,"%":ce},Ke={a:pe,A:he,b:ge,B:ye,c:ve,d:b,e:b,f:C,H:_,I:_,j:w,L:E,m:v,M:S,p:de,Q:O,s:M,S:x,u:s,U:d,V:p,w:f,W:h,x:be,X:we,y:m,Y:g,Z:y,"%":k};return Ge.x=i(je,Ge),Ge.X=i(Re,Ge),Ge.c=i(Pe,Ge),Xe.x=i(je,Xe),Xe.X=i(Re,Xe),Xe.c=i(Pe,Xe),{format:function(e){var t=i(e+="",Ge);return t.toString=function(){return e},t},parse:function(e){var t=a(e+="",n);return t.toString=function(){return e},t},utcFormat:function(e){var t=i(e+="",Xe);return t.toString=function(){return e},t},utcParse:function(e){var t=a(e,r);return t.toString=function(){return e},t}}}function a(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function u(e){return e.replace(be,"\\$&")}function l(e){return new RegExp("^(?:"+e.map(u).join("|")+")","i")}function c(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function f(e,t,n){var r=ye.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function s(e,t,n){var r=ye.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function d(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function p(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function h(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function g(e,t,n){var r=ye.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function m(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function y(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 v(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function b(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function w(e,t,n){var r=ye.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function _(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function S(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function x(e,t,n){var r=ye.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function E(e,t,n){var r=ye.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function C(e,t,n){var r=ye.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function k(e,t,n){var r=ve.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function O(e,t,n){var r=ye.exec(t.slice(n));return r?(e.Q=+r[0],
n+r[0].length):-1}function M(e,t,n){var r=ye.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function T(e,t){return a(e.getDate(),t,2)}function N(e,t){return a(e.getHours(),t,2)}function P(e,t){return a(e.getHours()%12||12,t,2)}function j(e,n){return a(1+t.timeDay.count(t.timeYear(e),e),n,3)}function R(e,t){return a(e.getMilliseconds(),t,3)}function A(e,t){return R(e,t)+"000"}function L(e,t){return a(e.getMonth()+1,t,2)}function U(e,t){return a(e.getMinutes(),t,2)}function F(e,t){return a(e.getSeconds(),t,2)}function D(e){var t=e.getDay();return 0===t?7:t}function z(e,n){return a(t.timeSunday.count(t.timeYear(e),e),n,2)}function I(e,n){var r=e.getDay();return e=r>=4||0===r?t.timeThursday(e):t.timeThursday.ceil(e),a(t.timeThursday.count(t.timeYear(e),e)+(4===t.timeYear(e).getDay()),n,2)}function B(e){return e.getDay()}function W(e,n){return a(t.timeMonday.count(t.timeYear(e),e),n,2)}function H(e,t){return a(e.getFullYear()%100,t,2)}function q(e,t){return a(e.getFullYear()%1e4,t,4)}function V(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+a(t/60|0,"0",2)+a(t%60,"0",2)}function Y(e,t){return a(e.getUTCDate(),t,2)}function J(e,t){return a(e.getUTCHours(),t,2)}function $(e,t){return a(e.getUTCHours()%12||12,t,2)}function G(e,n){return a(1+t.utcDay.count(t.utcYear(e),e),n,3)}function X(e,t){return a(e.getUTCMilliseconds(),t,3)}function K(e,t){return X(e,t)+"000"}function Q(e,t){return a(e.getUTCMonth()+1,t,2)}function Z(e,t){return a(e.getUTCMinutes(),t,2)}function ee(e,t){return a(e.getUTCSeconds(),t,2)}function te(e){var t=e.getUTCDay();return 0===t?7:t}function ne(e,n){return a(t.utcSunday.count(t.utcYear(e),e),n,2)}function re(e,n){var r=e.getUTCDay();return e=r>=4||0===r?t.utcThursday(e):t.utcThursday.ceil(e),a(t.utcThursday.count(t.utcYear(e),e)+(4===t.utcYear(e).getUTCDay()),n,2)}function oe(e){return e.getUTCDay()}function ie(e,n){return a(t.utcMonday.count(t.utcYear(e),e),n,2)}function ae(e,t){return a(e.getUTCFullYear()%100,t,2)}function ue(e,t){return a(e.getUTCFullYear()%1e4,t,4)}function le(){return"+0000"}function ce(){return"%"}function fe(e){return+e}function se(e){return Math.floor(+e/1e3)}function de(t){return ge=i(t),e.timeFormat=ge.format,e.timeParse=ge.parse,e.utcFormat=ge.utcFormat,e.utcParse=ge.utcParse,ge}function pe(e){return e.toISOString()}function he(e){var t=new Date(e);return isNaN(t)?null:t}var ge,me={"-":"",_:" ",0:"0"},ye=/^\s*\d+/,ve=/^%/,be=/[\\^$*+?|[\]().{}]/g;de({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 we="%Y-%m-%dT%H:%M:%S.%LZ",_e=Date.prototype.toISOString?pe:e.utcFormat(we),Se=+new Date("2000-01-01T00:00:00.000Z")?he:e.utcParse(we);e.timeFormatDefaultLocale=de,e.timeFormatLocale=i,e.isoFormat=_e,e.isoParse=Se,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){"use strict";function r(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}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 u(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)}Object.defineProperty(t,"__esModule",{value:!0});var l=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}}(),c=n(2),f=o(c),s=n(94),d=r(s),p=n(95),h=n(96),g=o(h),m=n(98),y=o(m),v=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.panLeft=function(){var e=n.state.matrix;e[4]+=20,n.setState({matrix:e})},n.panRight=function(){var e=n.state.matrix;e[4]-=20,n.setState({matrix:e})},n.panUp=function(){var e=n.state.matrix;e[5]+=20,n.setState({matrix:e})},n.panDown=function(){var e=n.state.matrix;e[5]-=20,n.setState({matrix:e})},n.zoom=function(e){for(var t=n.state.matrix,r=t.length,o=0;o<r;o++)t[o]*=e;t[4]+=(1-e)*n.state.offsetWidth/2,t[5]+=(1-e)*n.state.offsetHeight/2,n.setState({matrix:t})},n.state={projection:void 0,regions:[],outlines:[],country:void 0,path:void 0,offsetWidth:void 0,offsetHeight:void 0,matrix:[1,0,0,1,0,0],dragging:!1},n}return u(t,e),l(t,[{key:"componentWillMount",value:function(){var e="laptop"===this.props.mode?700:360,t="laptop"===this.props.mode?700:400,n=this.props.topoJSON,r=d.feature(n,n.objects),o=(0,p.geoCentroid)(d.feature(n,n.objects)),i=700,a=(0,p.geoMercator)().center(o).scale(i).translate([e/2,t/2]),u=(0,p.geoPath)().projection(a),l=u.bounds(r),c=i*e/(l[1][0]-l[0][0]),s=i*t/(l[1][1]-l[0][1]);i=c<s?c:s;var h=[e-(l[0][0]+l[1][0])/2,t-(l[0][1]+l[1][1])/2];a=(0,p.geoMercator)().center(o).scale(i).translate(h),u=u.projection(a);var g=r.features.map(function(e,t){return f.default.createElement("g",{key:t,className:"region"},f.default.createElement("path",{className:"geo-region",d:u(e)}))}),m=r.features.map(function(e,t){return f.default.createElement("path",{key:t,className:"geo region-outline",d:u(e)})});this.setState({projection:a,regions:g,outlines:m,country:r,path:u,offsetWidth:e,offsetHeight:t})}},{key:"render",value:function(){var e=this,t={strokeWidth:.675},n=this.state,r=n.projection,o=n.regions,i=n.outlines,a=n.country,u=n.path,l=n.offsetWidth,c=n.offsetHeight;return n.matrix,n.dragging,f.default.createElement("div",null,f.default.createElement("div",{className:"map-nav"},f.default.createElement("button",{className:"zoom-button",onClick:function(){e.zoom(.8)}},"–"),f.default.createElement("button",{className:"zoom-button",onClick:function(){e.zoom(1.25)}},"+"),f.default.createElement("div",{className:"pan-nav"},f.default.createElement("button",{className:"zoom-button",onClick:function(){e.panUp()}},"↑"),f.default.createElement("div",null,f.default.createElement("button",{className:"zoom-button",onClick:function(){e.panLeft()}},"←"),f.default.createElement("button",{className:"zoom-button",onClick:function(){e.panRight()}},"→")),f.default.createElement("button",{className:"zoom-button",onClick:function(){e.panDown()}},"↓"))),f.default.createElement("svg",{id:"map_svg",viewBox:"0, 0, "+l+", "+c,width:l,height:c},f.default.createElement("g",{id:"map-group",transform:"matrix("+this.state.matrix.join(" ")+")"},f.default.createElement("g",{id:"regions-grp",className:"regions"},o),f.default.createElement("path",{className:"geo-borders",d:u(a)}),f.default.createElement("g",{className:"outlines",style:t},i),f.default.createElement(g.default,{dataJSON:this.props.dataJSON,projection:r,chartOptions:this.props.chartOptions,height:c,width:l}),f.default.createElement(y.default,{data:this.props.dataJSON,projection:r,width:l,height:c,mode:this.props.mode,circleClicked:this.props.circleClicked,handleCircleClicked:this.props.handleCircleClicked,circleHover:this.props.circleHover,showModal:this.props.showModal}))))}}]),t}(f.default.Component);t.default=v},function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e,t){var r=t.id,o=t.bbox,i=null==t.properties?{}:t.properties,a=n(e,t);return null==r&&null==o?{type:"Feature",properties:i,geometry:a}:null==o?{type:"Feature",id:r,properties:i,geometry:a}:{type:"Feature",id:r,bbox:o,properties:i,geometry:a}}function n(e,t){function n(e,t){t.length&&t.pop();for(var n=s[e<0?~e:e],r=0,o=n.length;r<o;++r)t.push(c(n[r],r));e<0&&f(t,o)}function r(e){return c(e)}function o(e){for(var t=[],r=0,o=e.length;r<o;++r)n(e[r],t);return t.length<2&&t.push(t[0]),t}function i(e){for(var t=o(e);t.length<4;)t.push(t[0]);return t}function a(e){return e.map(i)}function u(e){var t,n=e.type;switch(n){case"GeometryCollection":return{type:n,geometries:e.geometries.map(u)};case"Point":t=r(e.coordinates);break;case"MultiPoint":t=e.coordinates.map(r);break;case"LineString":t=o(e.arcs);break;case"MultiLineString":t=e.arcs.map(o);break;case"Polygon":t=a(e.arcs);break;case"MultiPolygon":t=e.arcs.map(a);break;default:return null}return{type:n,coordinates:t}}var c=l(e.transform),s=e.arcs;return u(t)}function r(e,t,n){var r,i,a;if(arguments.length>1)r=o(e,t,n);else for(i=0,r=new Array(a=e.arcs.length);i<a;++i)r[i]=i;return{type:"MultiLineString",arcs:d(e,r)}}function o(e,t,n){function r(e){var t=e<0?~e:e;(f[t]||(f[t]=[])).push({i:e,g:l})}function o(e){e.forEach(r)}function i(e){e.forEach(o)}function a(e){e.forEach(i)}function u(e){switch(l=e,e.type){case"GeometryCollection":e.geometries.forEach(u);break;case"LineString":o(e.arcs);break;case"MultiLineString":case"Polygon":i(e.arcs);break;case"MultiPolygon":a(e.arcs)}}var l,c=[],f=[];return u(t),f.forEach(null==n?function(e){c.push(e[0].i)}:function(e){n(e[0].g,e[e.length-1].g)&&c.push(e[0].i)}),c}function i(e){for(var t,n=-1,r=e.length,o=e[r-1],i=0;++n<r;)t=o,o=e[n],i+=t[0]*o[1]-t[1]*o[0];return Math.abs(i)}function a(e,t){function r(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(r);break;case"Polygon":o(e.arcs);break;case"MultiPolygon":e.arcs.forEach(o)}}function o(e){e.forEach(function(t){t.forEach(function(t){(u[t=t<0?~t:t]||(u[t]=[])).push(e)})}),l.push(e)}function a(t){return i(n(e,{type:"Polygon",arcs:[t]}).coordinates[0])}var u={},l=[],c=[];return t.forEach(r),l.forEach(function(e){if(!e._){var t=[],n=[e];for(e._=1,c.push(t);e=n.pop();)t.push(e),e.forEach(function(e){e.forEach(function(e){u[e<0?~e:e].forEach(function(e){e._||(e._=1,n.push(e))})})})}}),l.forEach(function(e){delete e._}),{type:"MultiPolygon",arcs:c.map(function(t){var n,r=[];if(t.forEach(function(e){e.forEach(function(e){e.forEach(function(e){u[e<0?~e:e].length<2&&r.push(e)})})}),r=d(e,r),(n=r.length)>1)for(var o,i,l=1,c=a(r[0]);l<n;++l)(o=a(r[l]))>c&&(i=r[0],r[0]=r[l],r[l]=i,c=o);return r})}}var u=function(e){return e},l=function(e){if(null==e)return u;var t,n,r=e.scale[0],o=e.scale[1],i=e.translate[0],a=e.translate[1];return function(e,u){u||(t=n=0);var l=2,c=e.length,f=new Array(c);for(f[0]=(t+=e[0])*r+i,f[1]=(n+=e[1])*o+a;l<c;)f[l]=e[l],++l;return f}},c=function(e){function t(e){e=o(e),e[0]<i&&(i=e[0]),e[0]>u&&(u=e[0]),e[1]<a&&(a=e[1]),e[1]>c&&(c=e[1])}function n(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(n);break;case"Point":t(e.coordinates);break;case"MultiPoint":e.coordinates.forEach(t)}}var r,o=l(e.transform),i=1/0,a=i,u=-i,c=-i;e.arcs.forEach(function(e){for(var t,n=-1,r=e.length;++n<r;)t=o(e[n],n),t[0]<i&&(i=t[0]),t[0]>u&&(u=t[0]),t[1]<a&&(a=t[1]),t[1]>c&&(c=t[1])});for(r in e.objects)n(e.objects[r]);return[i,a,u,c]},f=function(e,t){for(var n,r=e.length,o=r-t;o<--r;)n=e[o],e[o++]=e[r],e[r]=n},s=function(e,n){return"GeometryCollection"===n.type?{type:"FeatureCollection",features:n.geometries.map(function(n){return t(e,n)})}:t(e,n)},d=function(e,t){function n(t){var n,r=e.arcs[t<0?~t:t],o=r[0];return e.transform?(n=[0,0],r.forEach(function(e){n[0]+=e[0],n[1]+=e[1]})):n=r[r.length-1],t<0?[n,o]:[o,n]}function r(e,t){for(var n in e){var r=e[n];delete t[r.start],delete r.start,delete r.end,r.forEach(function(e){o[e<0?~e:e]=1}),u.push(r)}}var o={},i={},a={},u=[],l=-1;return t.forEach(function(n,r){var o,i=e.arcs[n<0?~n:n];i.length<3&&!i[1][0]&&!i[1][1]&&(o=t[++l],t[l]=n,t[r]=o)}),t.forEach(function(e){var t,r,o=n(e),u=o[0],l=o[1];if(t=a[u])if(delete a[t.end],t.push(e),t.end=l,r=i[l]){delete i[r.start];var c=r===t?t:t.concat(r);i[c.start=t.start]=a[c.end=r.end]=c}else i[t.start]=a[t.end]=t;else if(t=i[l])if(delete i[t.start],t.unshift(e),t.start=u,r=a[u]){delete a[r.end];var f=r===t?t:r.concat(t);i[f.start=r.start]=a[f.end=t.end]=f}else i[t.start]=a[t.end]=t;else t=[e],i[t.start=u]=a[t.end=l]=t}),r(a,i),r(i,a),t.forEach(function(e){o[e<0?~e:e]||u.push([e])}),u},p=function(e){return n(e,r.apply(this,arguments))},h=function(e){return n(e,a.apply(this,arguments))},g=function(e,t){for(var n=0,r=e.length;n<r;){var o=n+r>>>1;e[o]<t?n=o+1:r=o}return n},m=function(e){function t(e,t){e.forEach(function(e){e<0&&(e=~e);var n=o[e];n?n.push(t):o[e]=[t]})}function n(e,n){e.forEach(function(e){t(e,n)})}function r(e,t){"GeometryCollection"===e.type?e.geometries.forEach(function(e){r(e,t)}):e.type in a&&a[e.type](e.arcs,t)}var o={},i=e.map(function(){return[]}),a={LineString:t,MultiLineString:n,Polygon:n,MultiPolygon:function(e,t){e.forEach(function(e){n(e,t)})}};e.forEach(r);for(var u in o)for(var l=o[u],c=l.length,f=0;f<c;++f)for(var s=f+1;s<c;++s){var d,p=l[f],h=l[s];(d=i[p])[u=g(d,h)]!==h&&d.splice(u,0,h),(d=i[h])[u=g(d,p)]!==p&&d.splice(u,0,p)}return i},y=function(e){if(null==e)return u;var t,n,r=e.scale[0],o=e.scale[1],i=e.translate[0],a=e.translate[1];return function(e,u){u||(t=n=0);var l=2,c=e.length,f=new Array(c),s=Math.round((e[0]-i)/r),d=Math.round((e[1]-a)/o);for(f[0]=s-t,t=s,f[1]=d-n,n=d;l<c;)f[l]=e[l],++l;return f}},v=function(e,t){function n(e){return p(e)}function r(e){var t;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(r)};break;case"Point":t={type:"Point",coordinates:n(e.coordinates)};break;case"MultiPoint":t={type:"MultiPoint",coordinates:e.coordinates.map(n)};break;default:return e}return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),null!=e.properties&&(t.properties=e.properties),t}function o(e){var t,n=0,r=1,o=e.length,i=new Array(o);for(i[0]=p(e[0],0);++n<o;)((t=p(e[n],n))[0]||t[1])&&(i[r++]=t);return 1===r&&(i[r++]=[0,0]),i.length=r,i}if(e.transform)throw new Error("already quantized");if(t&&t.scale)s=e.bbox;else{if(!((i=Math.floor(t))>=2))throw new Error("n must be ≥2");s=e.bbox||c(e);var i,a=s[0],u=s[1],l=s[2],f=s[3];t={scale:[l-a?(l-a)/(i-1):1,f-u?(f-u)/(i-1):1],translate:[a,u]}}var s,d,p=y(t),h=e.objects,g={};for(d in h)g[d]=r(h[d]);return{type:"Topology",bbox:s,transform:t,objects:g,arcs:e.arcs.map(o)}};e.bbox=c,e.feature=s,e.mesh=p,e.meshArcs=r,e.merge=h,e.mergeArcs=a,e.neighbors=m,e.quantize=v,e.transform=l,e.untransform=y,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){!function(e,r){r(t,n(86))}(this,function(e,t){"use strict";function n(){return new r}function r(){this.reset()}function o(e,t,n){var r=e.s=t+n,o=r-t,i=r-o;e.t=t-i+(n-o)}function i(e){return e>1?0:e<-1?Ln:Math.acos(e)}function a(e){return e>1?Un:e<-1?-Un:Math.asin(e)}function u(e){return(e=Gn(e/2))*e}function l(){}function c(e,t){e&&er.hasOwnProperty(e.type)&&er[e.type](e,t)}function f(e,t,n){var r,o=-1,i=e.length-n;for(t.lineStart();++o<i;)r=e[o],t.point(r[0],r[1],r[2]);t.lineEnd()}function s(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)f(e[n],t,1);t.polygonEnd()}function d(e,t){e&&Zn.hasOwnProperty(e.type)?Zn[e.type](e,t):c(e,t)}function p(){rr.point=g}function h(){m(en,tn)}function g(e,t){rr.point=m,en=e,tn=t,e*=In,t*=In,nn=e,rn=qn(t=t/2+Fn),on=Gn(t)}function m(e,t){e*=In,t*=In,t=t/2+Fn;var n=e-nn,r=n>=0?1:-1,o=r*n,i=qn(t),a=Gn(t),u=on*a,l=rn*i+u*qn(o),c=u*r*Gn(o);tr.add(Hn(c,l)),nn=e,rn=i,on=a}function y(e){return nr.reset(),d(e,rr),2*nr}function v(e){return[Hn(e[1],e[0]),a(e[2])]}function b(e){var t=e[0],n=e[1],r=qn(n);return[r*qn(t),r*Gn(t),Gn(n)]}function w(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function _(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 S(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function x(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function E(e){var t=Kn(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function C(e,t){hn.push(gn=[an=e,ln=e]),t<un&&(un=t),t>cn&&(cn=t)}function k(e,t){var n=b([e*In,t*In]);if(pn){var r=_(pn,n),o=[r[1],-r[0],0],i=_(o,r);E(i),i=v(i);var a,u=e-fn,l=u>0?1:-1,c=i[0]*zn*l,f=Bn(u)>180;f^(l*fn<c&&c<l*e)?(a=i[1]*zn,a>cn&&(cn=a)):(c=(c+360)%360-180,f^(l*fn<c&&c<l*e)?(a=-i[1]*zn,a<un&&(un=a)):(t<un&&(un=t),t>cn&&(cn=t))),f?e<fn?j(an,e)>j(an,ln)&&(ln=e):j(e,ln)>j(an,ln)&&(an=e):ln>=an?(e<an&&(an=e),e>ln&&(ln=e)):e>fn?j(an,e)>j(an,ln)&&(ln=e):j(e,ln)>j(an,ln)&&(an=e)}else hn.push(gn=[an=e,ln=e]);t<un&&(un=t),t>cn&&(cn=t),pn=n,fn=e}function O(){ir.point=k}function M(){gn[0]=an,gn[1]=ln,ir.point=C,pn=null}function T(e,t){if(pn){var n=e-fn;or.add(Bn(n)>180?n+(n>0?360:-360):n)}else sn=e,dn=t;rr.point(e,t),k(e,t)}function N(){rr.lineStart()}function P(){T(sn,dn),rr.lineEnd(),Bn(or)>Rn&&(an=-(ln=180)),gn[0]=an,gn[1]=ln,pn=null}function j(e,t){return(t-=e)<0?t+360:t}function R(e,t){return e[0]-t[0]}function A(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function L(e){var t,n,r,o,i,a,u;if(cn=ln=-(an=un=1/0),hn=[],d(e,ir),n=hn.length){for(hn.sort(R),t=1,r=hn[0],i=[r];t<n;++t)o=hn[t],A(r,o[0])||A(r,o[1])?(j(r[0],o[1])>j(r[0],r[1])&&(r[1]=o[1]),j(o[0],r[1])>j(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-(1/0),n=i.length-1,t=0,r=i[n];t<=n;r=o,++t)o=i[t],(u=j(r[1],o[0]))>a&&(a=u,an=o[0],ln=r[1])}return hn=gn=null,an===1/0||un===1/0?[[NaN,NaN],[NaN,NaN]]:[[an,un],[ln,cn]]}function U(e,t){e*=In,t*=In;var n=qn(t);F(n*qn(e),n*Gn(e),Gn(t))}function F(e,t,n){++mn,vn+=(e-vn)/mn,bn+=(t-bn)/mn,wn+=(n-wn)/mn}function D(){ar.point=z}function z(e,t){e*=In,t*=In;var n=qn(t);Tn=n*qn(e),Nn=n*Gn(e),Pn=Gn(t),ar.point=I,F(Tn,Nn,Pn)}function I(e,t){e*=In,t*=In;var n=qn(t),r=n*qn(e),o=n*Gn(e),i=Gn(t),a=Hn(Kn((a=Nn*i-Pn*o)*a+(a=Pn*r-Tn*i)*a+(a=Tn*o-Nn*r)*a),Tn*r+Nn*o+Pn*i);yn+=a,_n+=a*(Tn+(Tn=r)),Sn+=a*(Nn+(Nn=o)),xn+=a*(Pn+(Pn=i)),F(Tn,Nn,Pn)}function B(){ar.point=U}function W(){ar.point=q}function H(){V(On,Mn),ar.point=U}function q(e,t){On=e,Mn=t,e*=In,t*=In,ar.point=V;var n=qn(t);Tn=n*qn(e),Nn=n*Gn(e),Pn=Gn(t),F(Tn,Nn,Pn)}function V(e,t){e*=In,t*=In;var n=qn(t),r=n*qn(e),o=n*Gn(e),i=Gn(t),u=Nn*i-Pn*o,l=Pn*r-Tn*i,c=Tn*o-Nn*r,f=Kn(u*u+l*l+c*c),s=a(f),d=f&&-s/f;En+=d*u,Cn+=d*l,kn+=d*c,yn+=s,_n+=s*(Tn+(Tn=r)),Sn+=s*(Nn+(Nn=o)),xn+=s*(Pn+(Pn=i)),F(Tn,Nn,Pn)}function Y(e){mn=yn=vn=bn=wn=_n=Sn=xn=En=Cn=kn=0,d(e,ar);var t=En,n=Cn,r=kn,o=t*t+n*n+r*r;return o<An&&(t=_n,n=Sn,r=xn,yn<Rn&&(t=vn,n=bn,r=wn),o=t*t+n*n+r*r,o<An)?[NaN,NaN]:[Hn(n,t)*zn,a(r/Kn(o))*zn]}function J(e){return function(){return e}}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),n&&e.invert(n[0],n[1])}),n}function G(e,t){return[e>Ln?e-Dn:e<-Ln?e+Dn:e,t]}function X(e,t,n){return(e%=Dn)?t||n?$(Q(e),Z(t,n)):Q(e):t||n?Z(t,n):G}function K(e){return function(t,n){return t+=e,[t>Ln?t-Dn:t<-Ln?t+Dn:t,n]}}function Q(e){var t=K(e);return t.invert=K(-e),t}function Z(e,t){function n(e,t){var n=qn(t),l=qn(e)*n,c=Gn(e)*n,f=Gn(t),s=f*r+l*o;return[Hn(c*i-s*u,l*r-f*o),a(s*i+c*u)]}var r=qn(e),o=Gn(e),i=qn(t),u=Gn(t);return n.invert=function(e,t){var n=qn(t),l=qn(e)*n,c=Gn(e)*n,f=Gn(t),s=f*i-c*u;return[Hn(c*i+f*u,l*r+s*o),a(s*r-l*o)]},n}function ee(e){function t(t){return t=e(t[0]*In,t[1]*In),t[0]*=zn,t[1]*=zn,t}return e=X(e[0]*In,e[1]*In,e.length>2?e[2]*In:0),t.invert=function(t){return t=e.invert(t[0]*In,t[1]*In),t[0]*=zn,t[1]*=zn,t},t}function te(e,t,n,r,o,i){if(n){var a=qn(t),u=Gn(t),l=r*n;null==o?(o=t+r*Dn,i=t-l/2):(o=ne(a,o),i=ne(a,i),(r>0?o<i:o>i)&&(o+=r*Dn));for(var c,f=o;r>0?f>i:f<i;f-=l)c=v([a,-u*qn(f),-u*Gn(f)]),e.point(c[0],c[1])}}function ne(e,t){t=b(t),t[0]-=e,E(t);var n=i(-t[1]);return((-t[2]<0?-n:n)+Dn-Rn)%Dn}function re(){function e(e,t){n.push(e=r(e,t)),e[0]*=zn,e[1]*=zn}function t(){var e=o.apply(this,arguments),t=i.apply(this,arguments)*In,l=a.apply(this,arguments)*In;return n=[],r=X(-e[0]*In,-e[1]*In,0).invert,te(u,t,l,1),e={type:"Polygon",coordinates:[n]},n=r=null,e}var n,r,o=J([0,0]),i=J(90),a=J(6),u={point:e};return t.center=function(e){return arguments.length?(o="function"==typeof e?e:J([+e[0],+e[1]]),t):o},t.radius=function(e){return arguments.length?(i="function"==typeof e?e:J(+e),t):i},t.precision=function(e){return arguments.length?(a="function"==typeof e?e:J(+e),t):a},t}function oe(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:l,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function ie(e,t){return Bn(e[0]-t[0])<Rn&&Bn(e[1]-t[1])<Rn}function ae(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function ue(e,t,n,r,o){var i,a,u=[],l=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],a=e[t];if(ie(r,a)){for(o.lineStart(),i=0;i<t;++i)o.point((r=e[i])[0],r[1]);return void o.lineEnd()}u.push(n=new ae(r,e,null,!0)),l.push(n.o=new ae(r,null,n,!1)),u.push(n=new ae(a,e,null,!1)),l.push(n.o=new ae(a,null,n,!0))}}),u.length){for(l.sort(t),le(u),le(l),i=0,a=l.length;i<a;++i)l[i].e=n=!n;for(var c,f,s=u[0];;){for(var d=s,p=!0;d.v;)if((d=d.n)===s)return;c=d.z,o.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(i=0,a=c.length;i<a;++i)o.point((f=c[i])[0],f[1]);else r(d.x,d.n.x,1,o);d=d.n}else{if(p)for(c=d.p.z,i=c.length-1;i>=0;--i)o.point((f=c[i])[0],f[1]);else r(d.x,d.p.x,-1,o);d=d.p}d=d.o,c=d.z,p=!p}while(!d.v);o.lineEnd()}}}function le(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r<t;)o.n=n=e[r],n.p=o,o=n;o.n=n=e[0],n.p=o}}function ce(e,t){var n=t[0],r=t[1],o=Gn(r),i=[Gn(n),-qn(n),0],u=0,l=0;vr.reset(),1===o?r=Un+Rn:o===-1&&(r=-Un-Rn);for(var c=0,f=e.length;c<f;++c)if(d=(s=e[c]).length)for(var s,d,p=s[d-1],h=p[0],g=p[1]/2+Fn,m=Gn(g),y=qn(g),v=0;v<d;++v,h=S,m=C,y=k,p=w){var w=s[v],S=w[0],x=w[1]/2+Fn,C=Gn(x),k=qn(x),O=S-h,M=O>=0?1:-1,T=M*O,N=T>Ln,P=m*C;if(vr.add(Hn(P*M*Gn(T),y*k+P*qn(T))),u+=N?O+M*Dn:O,N^h>=n^S>=n){var j=_(b(p),b(w));E(j);var R=_(i,j);E(R);var A=(N^O>=0?-1:1)*a(R[2]);(r>A||r===A&&(j[0]||j[1]))&&(l+=N^O>=0?1:-1)}}return(u<-Rn||u<Rn&&vr<-Rn)^1&l}function fe(e,n,r,o){return function(i){function a(t,n){e(t,n)&&i.point(t,n)}function u(e,t){m.point(e,t)}function l(){w.point=u,m.lineStart()}function c(){w.point=a,m.lineEnd()}function f(e,t){g.push([e,t]),v.point(e,t)}function s(){v.lineStart(),g=[]}function d(){f(g[0][0],g[0][1]),v.lineEnd();var e,t,n,r,o=v.clean(),a=y.result(),u=a.length;if(g.pop(),p.push(g),g=null,u)if(1&o){if(n=a[0],(t=n.length-1)>0){for(b||(i.polygonStart(),b=!0),i.lineStart(),e=0;e<t;++e)i.point((r=n[e])[0],r[1]);i.lineEnd()}}else u>1&&2&o&&a.push(a.pop().concat(a.shift())),h.push(a.filter(se))}var p,h,g,m=n(i),y=oe(),v=n(y),b=!1,w={point:a,lineStart:l,lineEnd:c,polygonStart:function(){w.point=f,w.lineStart=s,w.lineEnd=d,h=[],p=[]},polygonEnd:function(){w.point=a,w.lineStart=l,w.lineEnd=c,h=t.merge(h);var e=ce(p,o);h.length?(b||(i.polygonStart(),b=!0),ue(h,de,e,r,i)):e&&(b||(i.polygonStart(),b=!0),i.lineStart(),r(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),h=p=null},sphere:function(){i.polygonStart(),i.lineStart(),r(null,null,1,i),i.lineEnd(),i.polygonEnd()}};return w}}function se(e){return e.length>1}function de(e,t){return((e=e.x)[0]<0?e[1]-Un-Rn:Un-e[1])-((t=t.x)[0]<0?t[1]-Un-Rn:Un-t[1])}function pe(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var u=i>0?Ln:-Ln,l=Bn(i-n);Bn(l-Ln)<Rn?(e.point(n,r=(r+a)/2>0?Un:-Un),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(u,r),e.point(i,r),t=0):o!==u&&l>=Ln&&(Bn(n-o)<Rn&&(n-=o*Rn),Bn(i-u)<Rn&&(i-=u*Rn),r=he(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(u,r),t=0),e.point(n=i,r=a),o=u},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function he(e,t,n,r){var o,i,a=Gn(e-n);return Bn(a)>Rn?Wn((Gn(t)*(i=qn(r))*Gn(n)-Gn(r)*(o=qn(t))*Gn(e))/(o*i*a)):(t+r)/2}function ge(e,t,n,r){var o;if(null==e)o=n*Un,r.point(-Ln,o),r.point(0,o),r.point(Ln,o),r.point(Ln,0),r.point(Ln,-o),r.point(0,-o),r.point(-Ln,-o),r.point(-Ln,0),r.point(-Ln,o);else if(Bn(e[0]-t[0])>Rn){var i=e[0]<t[0]?Ln:-Ln;o=n*i/2,r.point(-i,o),r.point(0,o),r.point(i,o)}else r.point(t[0],t[1])}function me(e){function t(t,n,r,o){te(o,e,u,r,t,n)}function n(e,t){return qn(e)*qn(t)>a}function r(e){var t,r,a,u,f;return{lineStart:function(){u=a=!1,f=1},point:function(s,d){var p,h=[s,d],g=n(s,d),m=l?g?0:i(s,d):g?i(s+(s<0?Ln:-Ln),d):0;if(!t&&(u=a=g)&&e.lineStart(),g!==a&&(p=o(t,h),(!p||ie(t,p)||ie(h,p))&&(h[0]+=Rn,h[1]+=Rn,g=n(h[0],h[1]))),g!==a)f=0,g?(e.lineStart(),p=o(h,t),e.point(p[0],p[1])):(p=o(t,h),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(c&&t&&l^g){var y;m&r||!(y=o(h,t,!0))||(f=0,l?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!g||t&&ie(t,h)||e.point(h[0],h[1]),t=h,a=g,r=m},lineEnd:function(){a&&e.lineEnd(),t=null},clean:function(){return f|(u&&a)<<1}}}function o(e,t,n){var r=b(e),o=b(t),i=[1,0,0],u=_(r,o),l=w(u,u),c=u[0],f=l-c*c;if(!f)return!n&&e;var s=a*l/f,d=-a*c/f,p=_(i,u),h=x(i,s),g=x(u,d);S(h,g);var m=p,y=w(h,m),E=w(m,m),C=y*y-E*(w(h,h)-1);if(!(C<0)){var k=Kn(C),O=x(m,(-y-k)/E);if(S(O,h),O=v(O),!n)return O;var M,T=e[0],N=t[0],P=e[1],j=t[1];N<T&&(M=T,T=N,N=M);var R=N-T,A=Bn(R-Ln)<Rn,L=A||R<Rn;if(!A&&j<P&&(M=P,P=j,j=M),L?A?P+j>0^O[1]<(Bn(O[0]-T)<Rn?P:j):P<=O[1]&&O[1]<=j:R>Ln^(T<=O[0]&&O[0]<=N)){var U=x(m,(-y+k)/E);return S(U,h),[O,v(U)]}}}function i(t,n){var r=l?e:Ln-e,o=0;return t<-r?o|=1:t>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}var a=qn(e),u=6*In,l=a>0,c=Bn(a)>Rn;return fe(n,r,t,l?[0,-e]:[-Ln,e-Ln])}function ye(e,t,n,r,o,i){var a,u=e[0],l=e[1],c=t[0],f=t[1],s=0,d=1,p=c-u,h=f-l;if(a=n-u,p||!(a>0)){if(a/=p,p<0){if(a<s)return;a<d&&(d=a)}else if(p>0){if(a>d)return;a>s&&(s=a)}if(a=o-u,p||!(a<0)){if(a/=p,p<0){if(a>d)return;a>s&&(s=a)}else if(p>0){if(a<s)return;a<d&&(d=a)}if(a=r-l,h||!(a>0)){if(a/=h,h<0){if(a<s)return;a<d&&(d=a)}else if(h>0){if(a>d)return;a>s&&(s=a)}if(a=i-l,h||!(a<0)){if(a/=h,h<0){if(a>d)return;a>s&&(s=a)}else if(h>0){if(a<s)return;a<d&&(d=a)}return s>0&&(e[0]=u+s*p,e[1]=l+s*h),d<1&&(t[0]=u+d*p,t[1]=l+d*h),!0}}}}}function ve(e,n,r,o){function i(t,i){return e<=t&&t<=r&&n<=i&&i<=o}function a(t,i,a,l){var f=0,s=0;if(null==t||(f=u(t,a))!==(s=u(i,a))||c(t,i)<0^a>0){do l.point(0===f||3===f?e:r,f>1?o:n);while((f=(f+a+4)%4)!==s)}else l.point(i[0],i[1])}function u(t,o){return Bn(t[0]-e)<Rn?o>0?0:3:Bn(t[0]-r)<Rn?o>0?2:1:Bn(t[1]-n)<Rn?o>0?1:0:o>0?3:2}function l(e,t){return c(e.x,t.x)}function c(e,t){var n=u(e,1),r=u(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(u){function c(e,t){i(e,t)&&O.point(e,t)}function f(){for(var t=0,n=0,r=y.length;n<r;++n)for(var i,a,u=y[n],l=1,c=u.length,f=u[0],s=f[0],d=f[1];l<c;++l)i=s,a=d,f=u[l],s=f[0],d=f[1],a<=o?d>o&&(s-i)*(o-a)>(d-a)*(e-i)&&++t:d<=o&&(s-i)*(o-a)<(d-a)*(e-i)&&--t;return t}function s(){O=M,m=[],y=[],k=!0}function d(){var e=f(),n=k&&e,r=(m=t.merge(m)).length;(n||r)&&(u.polygonStart(),n&&(u.lineStart(),a(null,null,1,u),u.lineEnd()),r&&ue(m,l,e,a,u),u.polygonEnd()),O=u,m=y=v=null}function p(){T.point=g,y&&y.push(v=[]),C=!0,E=!1,S=x=NaN}function h(){m&&(g(b,w),_&&E&&M.rejoin(),m.push(M.result())),T.point=c,E&&O.lineEnd()}function g(t,a){var u=i(t,a);if(y&&v.push([t,a]),C)b=t,w=a,_=u,C=!1,u&&(O.lineStart(),O.point(t,a));else if(u&&E)O.point(t,a);else{var l=[S=Math.max(_r,Math.min(wr,S)),x=Math.max(_r,Math.min(wr,x))],c=[t=Math.max(_r,Math.min(wr,t)),a=Math.max(_r,Math.min(wr,a))];ye(l,c,e,n,r,o)?(E||(O.lineStart(),O.point(l[0],l[1])),O.point(c[0],c[1]),u||O.lineEnd(),k=!1):u&&(O.lineStart(),O.point(t,a),k=!1)}S=t,x=a,E=u}var m,y,v,b,w,_,S,x,E,C,k,O=u,M=oe(),T={point:c,lineStart:p,lineEnd:h,polygonStart:s,polygonEnd:d};return T}}function be(){var e,t,n,r=0,o=0,i=960,a=500;return n={stream:function(n){return e&&t===n?e:e=ve(r,o,i,a)(t=n)},extent:function(u){return arguments.length?(r=+u[0][0],o=+u[0][1],i=+u[1][0],a=+u[1][1],e=t=null,n):[[r,o],[i,a]]}}}function we(){xr.point=Se,xr.lineEnd=_e}function _e(){xr.point=xr.lineEnd=l}function Se(e,t){e*=In,t*=In,ur=e,lr=Gn(t),cr=qn(t),xr.point=xe}function xe(e,t){e*=In,t*=In;var n=Gn(t),r=qn(t),o=Bn(e-ur),i=qn(o),a=Gn(o),u=r*a,l=cr*n-lr*r*i,c=lr*n+cr*r*i;Sr.add(Hn(Kn(u*u+l*l),c)),ur=e,lr=n,cr=r}function Ee(e){return Sr.reset(),d(e,xr),+Sr}function Ce(e,t){return Er[0]=e,Er[1]=t,Ee(Cr)}function ke(e,t){return!(!e||!Or.hasOwnProperty(e.type))&&Or[e.type](e,t)}function Oe(e,t){return 0===Ce(e,t)}function Me(e,t){var n=Ce(e[0],e[1]),r=Ce(e[0],t),o=Ce(t,e[1]);return r+o<=n+Rn}function Te(e,t){return!!ce(e.map(Ne),Pe(t))}function Ne(e){return e=e.map(Pe),e.pop(),e}function Pe(e){return[e[0]*In,e[1]*In]}function je(e,t){return(e&&kr.hasOwnProperty(e.type)?kr[e.type]:ke)(e,t)}function Re(e,n,r){var o=t.range(e,n-Rn,r).concat(n);return function(e){return o.map(function(t){return[e,t]})}}function Ae(e,n,r){var o=t.range(e,n-Rn,r).concat(n);return function(e){return o.map(function(t){return[t,e]})}}function Le(){function e(){return{type:"MultiLineString",coordinates:n()}}function n(){return t.range(Vn(a/y)*y,i,y).map(p).concat(t.range(Vn(f/v)*v,c,v).map(h)).concat(t.range(Vn(o/g)*g,r,g).filter(function(e){return Bn(e%y)>Rn}).map(s)).concat(t.range(Vn(l/m)*m,u,m).filter(function(e){return Bn(e%v)>Rn}).map(d))}var r,o,i,a,u,l,c,f,s,d,p,h,g=10,m=g,y=90,v=360,b=2.5;return e.lines=function(){return n().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[p(a).concat(h(c).slice(1),p(i).reverse().slice(1),h(f).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.extentMajor(t).extentMinor(t):e.extentMinor()},e.extentMajor=function(t){return arguments.length?(a=+t[0][0],i=+t[1][0],f=+t[0][1],c=+t[1][1],a>i&&(t=a,a=i,i=t),f>c&&(t=f,f=c,c=t),e.precision(b)):[[a,f],[i,c]]},e.extentMinor=function(t){return arguments.length?(o=+t[0][0],r=+t[1][0],l=+t[0][1],u=+t[1][1],o>r&&(t=o,o=r,r=t),l>u&&(t=l,l=u,u=t),e.precision(b)):[[o,l],[r,u]]},e.step=function(t){return arguments.length?e.stepMajor(t).stepMinor(t):e.stepMinor()},e.stepMajor=function(t){return arguments.length?(y=+t[0],v=+t[1],e):[y,v]},e.stepMinor=function(t){return arguments.length?(g=+t[0],m=+t[1],e):[g,m]},e.precision=function(t){return arguments.length?(b=+t,s=Re(l,u,90),d=Ae(o,r,b),p=Re(f,c,90),h=Ae(a,i,b),e):b},e.extentMajor([[-180,-90+Rn],[180,90-Rn]]).extentMinor([[-180,-80-Rn],[180,80+Rn]])}function Ue(){return Le()()}function Fe(e,t){var n=e[0]*In,r=e[1]*In,o=t[0]*In,i=t[1]*In,l=qn(r),c=Gn(r),f=qn(i),s=Gn(i),d=l*qn(n),p=l*Gn(n),h=f*qn(o),g=f*Gn(o),m=2*a(Kn(u(i-r)+l*f*u(o-n))),y=Gn(m),v=m?function(e){var t=Gn(e*=m)/y,n=Gn(m-e)/y,r=n*d+t*h,o=n*p+t*g,i=n*c+t*s;return[Hn(o,r)*zn,Hn(i,Kn(r*r+o*o))*zn]}:function(){return[n*zn,r*zn]};return v.distance=m,v}function De(e){return e}function ze(){Nr.point=Ie}function Ie(e,t){Nr.point=Be,fr=dr=e,sr=pr=t}function Be(e,t){Tr.add(pr*e-dr*t),dr=e,pr=t}function We(){Be(fr,sr)}function He(e,t){e<Pr&&(Pr=e),e>Rr&&(Rr=e),t<jr&&(jr=t),t>Ar&&(Ar=t)}function qe(e,t){Ur+=e,Fr+=t,++Dr}function Ve(){Vr.point=Ye}function Ye(e,t){Vr.point=Je,qe(mr=e,yr=t)}function Je(e,t){var n=e-mr,r=t-yr,o=Kn(n*n+r*r);zr+=o*(mr+e)/2,Ir+=o*(yr+t)/2,Br+=o,qe(mr=e,yr=t)}function $e(){Vr.point=qe}function Ge(){Vr.point=Ke}function Xe(){Qe(hr,gr)}function Ke(e,t){Vr.point=Qe,qe(hr=mr=e,gr=yr=t)}function Qe(e,t){var n=e-mr,r=t-yr,o=Kn(n*n+r*r);zr+=o*(mr+e)/2,Ir+=o*(yr+t)/2,Br+=o,o=yr*e-mr*t,Wr+=o*(mr+e),Hr+=o*(yr+t),qr+=3*o,qe(mr=e,yr=t)}function Ze(e){this._context=e}function et(e,t){Qr.point=tt,Jr=Gr=e,$r=Xr=t}function tt(e,t){Gr-=e,Xr-=t,Kr.add(Kn(Gr*Gr+Xr*Xr)),Gr=e,Xr=t}function nt(){this._string=[]}function rt(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function ot(e,t){function n(e){return e&&("function"==typeof i&&o.pointRadius(+i.apply(this,arguments)),d(e,r(o))),o.result()}var r,o,i=4.5;return n.area=function(e){return d(e,r(Nr)),Nr.result()},n.measure=function(e){
return d(e,r(Qr)),Qr.result()},n.bounds=function(e){return d(e,r(Lr)),Lr.result()},n.centroid=function(e){return d(e,r(Vr)),Vr.result()},n.projection=function(t){return arguments.length?(r=null==t?(e=null,De):(e=t).stream,n):e},n.context=function(e){return arguments.length?(o=null==e?(t=null,new nt):new Ze(t=e),"function"!=typeof i&&o.pointRadius(i),n):t},n.pointRadius=function(e){return arguments.length?(i="function"==typeof e?e:(o.pointRadius(+e),+e),n):i},n.projection(e).context(t)}function it(e){return{stream:at(e)}}function at(e){return function(t){var n=new ut;for(var r in e)n[r]=e[r];return n.stream=t,n}}function ut(){}function lt(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),d(n,e.stream(Lr)),t(Lr.result()),null!=r&&e.clipExtent(r),e}function ct(e,t,n){return lt(e,function(n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=Math.min(r/(n[1][0]-n[0][0]),o/(n[1][1]-n[0][1])),a=+t[0][0]+(r-i*(n[1][0]+n[0][0]))/2,u=+t[0][1]+(o-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,u])},n)}function ft(e,t,n){return ct(e,[[0,0],t],n)}function st(e,t,n){return lt(e,function(n){var r=+t,o=r/(n[1][0]-n[0][0]),i=(r-o*(n[1][0]+n[0][0]))/2,a=-o*n[0][1];e.scale(150*o).translate([i,a])},n)}function dt(e,t,n){return lt(e,function(n){var r=+t,o=r/(n[1][1]-n[0][1]),i=-o*n[0][0],a=(r-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([i,a])},n)}function pt(e,t){return+t?gt(e,t):ht(e)}function ht(e){return at({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function gt(e,t){function n(r,o,i,u,l,c,f,s,d,p,h,g,m,y){var v=f-r,b=s-o,w=v*v+b*b;if(w>4*t&&m--){var _=u+p,S=l+h,x=c+g,E=Kn(_*_+S*S+x*x),C=a(x/=E),k=Bn(Bn(x)-1)<Rn||Bn(i-d)<Rn?(i+d)/2:Hn(S,_),O=e(k,C),M=O[0],T=O[1],N=M-r,P=T-o,j=b*N-v*P;(j*j/w>t||Bn((v*N+b*P)/w-.5)>.3||u*p+l*h+c*g<eo)&&(n(r,o,i,u,l,c,M,T,k,_/=E,S/=E,x,m,y),y.point(M,T),n(M,T,k,_,S,x,f,s,d,p,h,g,m,y))}}return function(t){function r(n,r){n=e(n,r),t.point(n[0],n[1])}function o(){y=NaN,x.point=i,t.lineStart()}function i(r,o){var i=b([r,o]),a=e(r,o);n(y,v,m,w,_,S,y=a[0],v=a[1],m=r,w=i[0],_=i[1],S=i[2],Zr,t),t.point(y,v)}function a(){x.point=r,t.lineEnd()}function u(){o(),x.point=l,x.lineEnd=c}function l(e,t){i(f=e,t),s=y,d=v,p=w,h=_,g=S,x.point=i}function c(){n(y,v,m,w,_,S,s,d,f,p,h,g,Zr,t),x.lineEnd=a,a()}var f,s,d,p,h,g,m,y,v,w,_,S,x={point:r,lineStart:o,lineEnd:a,polygonStart:function(){t.polygonStart(),x.lineStart=u},polygonEnd:function(){t.polygonEnd(),x.lineStart=o}};return x}}function mt(e){return at({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function yt(e,t,n){function r(r,o){return[t+e*r,n-e*o]}return r.invert=function(r,o){return[(r-t)/e,(n-o)/e]},r}function vt(e,t,n,r){function o(e,r){return[u*e-l*r+t,n-l*e-u*r]}var i=qn(r),a=Gn(r),u=i*e,l=a*e,c=i/e,f=a/e,s=(a*n-i*t)/e,d=(a*t+i*n)/e;return o.invert=function(e,t){return[c*e-f*t+s,d-f*e-c*t]},o}function bt(e){return wt(function(){return e})()}function wt(e){function t(e){return d(e[0]*In,e[1]*In)}function n(e){return e=d.invert(e[0],e[1]),e&&[e[0]*zn,e[1]*zn]}function r(){var e=vt(g,0,0,x).apply(null,i(v,b)),t=(x?vt:yt)(g,m-e[0],y-e[1],x);return a=X(w,_,S),s=$(i,t),d=$(a,s),f=pt(s,M),o()}function o(){return p=h=null,t}var i,a,u,l,c,f,s,d,p,h,g=150,m=480,y=250,v=0,b=0,w=0,_=0,S=0,x=0,E=null,C=br,k=null,O=De,M=.5;return t.stream=function(e){return p&&h===e?p:p=to(mt(a)(C(f(O(h=e)))))},t.preclip=function(e){return arguments.length?(C=e,E=void 0,o()):C},t.postclip=function(e){return arguments.length?(O=e,k=u=l=c=null,o()):O},t.clipAngle=function(e){return arguments.length?(C=+e?me(E=e*In):(E=null,br),o()):E*zn},t.clipExtent=function(e){return arguments.length?(O=null==e?(k=u=l=c=null,De):ve(k=+e[0][0],u=+e[0][1],l=+e[1][0],c=+e[1][1]),o()):null==k?null:[[k,u],[l,c]]},t.scale=function(e){return arguments.length?(g=+e,r()):g},t.translate=function(e){return arguments.length?(m=+e[0],y=+e[1],r()):[m,y]},t.center=function(e){return arguments.length?(v=e[0]%360*In,b=e[1]%360*In,r()):[v*zn,b*zn]},t.rotate=function(e){return arguments.length?(w=e[0]%360*In,_=e[1]%360*In,S=e.length>2?e[2]%360*In:0,r()):[w*zn,_*zn,S*zn]},t.angle=function(e){return arguments.length?(x=e%360*In,r()):x*zn},t.precision=function(e){return arguments.length?(f=pt(s,M=e*e),o()):Kn(M)},t.fitExtent=function(e,n){return ct(t,e,n)},t.fitSize=function(e,n){return ft(t,e,n)},t.fitWidth=function(e,n){return st(t,e,n)},t.fitHeight=function(e,n){return dt(t,e,n)},function(){return i=e.apply(this,arguments),t.invert=i.invert&&n,r()}}function _t(e){var t=0,n=Ln/3,r=wt(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*In,n=e[1]*In):[t*zn,n*zn]},o}function St(e){function t(e,t){return[e*n,Gn(t)/n]}var n=qn(e);return t.invert=function(e,t){return[e/n,a(t*n)]},t}function xt(e,t){function n(e,t){var n=Kn(i-2*o*Gn(t))/o;return[n*Gn(e*=o),u-n*qn(e)]}var r=Gn(e),o=(r+Gn(t))/2;if(Bn(o)<Rn)return St(e);var i=1+r*(2*o-r),u=Kn(i)/o;return n.invert=function(e,t){var n=u-t;return[Hn(e,Bn(n))/o*Xn(n),a((i-(e*e+n*n)*o*o)/(2*o))]},n}function Et(){return _t(xt).scale(155.424).center([0,33.6442])}function Ct(){return Et().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function kt(e){var t=e.length;return{point:function(n,r){for(var o=-1;++o<t;)e[o].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function Ot(){function e(e){var t=e[0],n=e[1];return u=null,o.point(t,n),u||(i.point(t,n),u)||(a.point(t,n),u)}function t(){return n=r=null,e}var n,r,o,i,a,u,l=Ct(),c=Et().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=Et().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(e,t){u=[e,t]}};return e.invert=function(e){var t=l.scale(),n=l.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?c:o>=.166&&o<.234&&r>=-.214&&r<-.115?f:l).invert(e)},e.stream=function(e){return n&&r===e?n:n=kt([l.stream(r=e),c.stream(e),f.stream(e)])},e.precision=function(e){return arguments.length?(l.precision(e),c.precision(e),f.precision(e),t()):l.precision()},e.scale=function(t){return arguments.length?(l.scale(t),c.scale(.35*t),f.scale(t),e.translate(l.translate())):l.scale()},e.translate=function(e){if(!arguments.length)return l.translate();var n=l.scale(),r=+e[0],u=+e[1];return o=l.translate(e).clipExtent([[r-.455*n,u-.238*n],[r+.455*n,u+.238*n]]).stream(s),i=c.translate([r-.307*n,u+.201*n]).clipExtent([[r-.425*n+Rn,u+.12*n+Rn],[r-.214*n-Rn,u+.234*n-Rn]]).stream(s),a=f.translate([r-.205*n,u+.212*n]).clipExtent([[r-.214*n+Rn,u+.166*n+Rn],[r-.115*n-Rn,u+.234*n-Rn]]).stream(s),t()},e.fitExtent=function(t,n){return ct(e,t,n)},e.fitSize=function(t,n){return ft(e,t,n)},e.fitWidth=function(t,n){return st(e,t,n)},e.fitHeight=function(t,n){return dt(e,t,n)},e.scale(1070)}function Mt(e){return function(t,n){var r=qn(t),o=qn(n),i=e(r*o);return[i*o*Gn(t),i*Gn(n)]}}function Tt(e){return function(t,n){var r=Kn(t*t+n*n),o=e(r),i=Gn(o),u=qn(o);return[Hn(t*i,r*u),a(r&&n*i/r)]}}function Nt(){return bt(no).scale(124.75).clipAngle(179.999)}function Pt(){return bt(ro).scale(79.4188).clipAngle(179.999)}function jt(e,t){return[e,Jn(Qn((Un+t)/2))]}function Rt(){return At(jt).scale(961/Dn)}function At(e){function t(){var t=Ln*u(),a=i(ee(i.rotate()).invert([0,0]));return c(null==f?[[a[0]-t,a[1]-t],[a[0]+t,a[1]+t]]:e===jt?[[Math.max(a[0]-t,f),n],[Math.min(a[0]+t,r),o]]:[[f,Math.max(a[1]-t,n)],[r,Math.min(a[1]+t,o)]])}var n,r,o,i=bt(e),a=i.center,u=i.scale,l=i.translate,c=i.clipExtent,f=null;return i.scale=function(e){return arguments.length?(u(e),t()):u()},i.translate=function(e){return arguments.length?(l(e),t()):l()},i.center=function(e){return arguments.length?(a(e),t()):a()},i.clipExtent=function(e){return arguments.length?(null==e?f=n=r=o=null:(f=+e[0][0],n=+e[0][1],r=+e[1][0],o=+e[1][1]),t()):null==f?null:[[f,n],[r,o]]},t()}function Lt(e){return Qn((Un+e)/2)}function Ut(e,t){function n(e,t){i>0?t<-Un+Rn&&(t=-Un+Rn):t>Un-Rn&&(t=Un-Rn);var n=i/$n(Lt(t),o);return[n*Gn(o*e),i-n*qn(o*e)]}var r=qn(e),o=e===t?Gn(e):Jn(r/qn(t))/Jn(Lt(t)/Lt(e)),i=r*$n(Lt(e),o)/o;return o?(n.invert=function(e,t){var n=i-t,r=Xn(o)*Kn(e*e+n*n);return[Hn(e,Bn(n))/o*Xn(n),2*Wn($n(i/r,1/o))-Un]},n):jt}function Ft(){return _t(Ut).scale(109.5).parallels([30,30])}function Dt(e,t){return[e,t]}function zt(){return bt(Dt).scale(152.63)}function It(e,t){function n(e,t){var n=i-t,r=o*e;return[n*Gn(r),i-n*qn(r)]}var r=qn(e),o=e===t?Gn(e):(r-qn(t))/(t-e),i=r/o+e;return Bn(o)<Rn?Dt:(n.invert=function(e,t){var n=i-t;return[Hn(e,Bn(n))/o*Xn(n),i-Xn(o)*Kn(e*e+n*n)]},n)}function Bt(){return _t(It).scale(131.154).center([0,13.9389])}function Wt(e,t){var n=qn(t),r=qn(e)*n;return[n*Gn(e)/r,Gn(t)/r]}function Ht(){return bt(Wt).scale(144.049).clipAngle(60)}function qt(e,t,n,r){return 1===e&&1===t&&0===n&&0===r?De:at({point:function(o,i){this.stream.point(o*e+n,i*t+r)}})}function Vt(){function e(){return o=i=null,a}var t,n,r,o,i,a,u=1,l=0,c=0,f=1,s=1,d=De,p=null,h=De;return a={stream:function(e){return o&&i===e?o:o=d(h(i=e))},postclip:function(o){return arguments.length?(h=o,p=t=n=r=null,e()):h},clipExtent:function(o){return arguments.length?(h=null==o?(p=t=n=r=null,De):ve(p=+o[0][0],t=+o[0][1],n=+o[1][0],r=+o[1][1]),e()):null==p?null:[[p,t],[n,r]]},scale:function(t){return arguments.length?(d=qt((u=+t)*f,u*s,l,c),e()):u},translate:function(t){return arguments.length?(d=qt(u*f,u*s,l=+t[0],c=+t[1]),e()):[l,c]},reflectX:function(t){return arguments.length?(d=qt(u*(f=t?-1:1),u*s,l,c),e()):f<0},reflectY:function(t){return arguments.length?(d=qt(u*f,u*(s=t?-1:1),l,c),e()):s<0},fitExtent:function(e,t){return ct(a,e,t)},fitSize:function(e,t){return ft(a,e,t)},fitWidth:function(e,t){return st(a,e,t)},fitHeight:function(e,t){return dt(a,e,t)}}}function Yt(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}function Jt(){return bt(Yt).scale(175.295)}function $t(e,t){return[qn(t)*Gn(e),Gn(t)]}function Gt(){return bt($t).scale(249.5).clipAngle(90+Rn)}function Xt(e,t){var n=qn(t),r=1+qn(e)*n;return[n*Gn(e)/r,Gn(t)/r]}function Kt(){return bt(Xt).scale(250).clipAngle(142)}function Qt(e,t){return[Jn(Qn((Un+t)/2)),-e]}function Zt(){var e=At(Qt),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90]).scale(159.155)}r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(e){o(jn,e,this.t),o(this,jn.s,this.s),this.s?this.t+=jn.t:this.s=jn.t},valueOf:function(){return this.s}};var en,tn,nn,rn,on,an,un,ln,cn,fn,sn,dn,pn,hn,gn,mn,yn,vn,bn,wn,_n,Sn,xn,En,Cn,kn,On,Mn,Tn,Nn,Pn,jn=new r,Rn=1e-6,An=1e-12,Ln=Math.PI,Un=Ln/2,Fn=Ln/4,Dn=2*Ln,zn=180/Ln,In=Ln/180,Bn=Math.abs,Wn=Math.atan,Hn=Math.atan2,qn=Math.cos,Vn=Math.ceil,Yn=Math.exp,Jn=Math.log,$n=Math.pow,Gn=Math.sin,Xn=Math.sign||function(e){return e>0?1:e<0?-1:0},Kn=Math.sqrt,Qn=Math.tan,Zn={Feature:function(e,t){c(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r<o;)c(n[r].geometry,t)}},er={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,o=n.length;++r<o;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){f(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)f(n[r],t,0)},Polygon:function(e,t){s(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)s(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,o=n.length;++r<o;)c(n[r],t)}},tr=n(),nr=n(),rr={point:l,lineStart:l,lineEnd:l,polygonStart:function(){tr.reset(),rr.lineStart=p,rr.lineEnd=h},polygonEnd:function(){var e=+tr;nr.add(e<0?Dn+e:e),this.lineStart=this.lineEnd=this.point=l},sphere:function(){nr.add(Dn)}},or=n(),ir={point:C,lineStart:O,lineEnd:M,polygonStart:function(){ir.point=T,ir.lineStart=N,ir.lineEnd=P,or.reset(),rr.polygonStart()},polygonEnd:function(){rr.polygonEnd(),ir.point=C,ir.lineStart=O,ir.lineEnd=M,tr<0?(an=-(ln=180),un=-(cn=90)):or>Rn?cn=90:or<-Rn&&(un=-90),gn[0]=an,gn[1]=ln}},ar={sphere:l,point:U,lineStart:D,lineEnd:B,polygonStart:function(){ar.lineStart=W,ar.lineEnd=H},polygonEnd:function(){ar.lineStart=D,ar.lineEnd=B}};G.invert=G;var ur,lr,cr,fr,sr,dr,pr,hr,gr,mr,yr,vr=n(),br=fe(function(){return!0},pe,ge,[-Ln,-Un]),wr=1e9,_r=-wr,Sr=n(),xr={sphere:l,point:l,lineStart:we,lineEnd:l,polygonStart:l,polygonEnd:l},Er=[null,null],Cr={type:"LineString",coordinates:Er},kr={Feature:function(e,t){return ke(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r<o;)if(ke(n[r].geometry,t))return!0;return!1}},Or={Sphere:function(){return!0},Point:function(e,t){return Oe(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)if(Oe(n[r],t))return!0;return!1},LineString:function(e,t){return Me(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)if(Me(n[r],t))return!0;return!1},Polygon:function(e,t){return Te(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)if(Te(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,o=n.length;++r<o;)if(ke(n[r],t))return!0;return!1}},Mr=n(),Tr=n(),Nr={point:l,lineStart:l,lineEnd:l,polygonStart:function(){Nr.lineStart=ze,Nr.lineEnd=We},polygonEnd:function(){Nr.lineStart=Nr.lineEnd=Nr.point=l,Mr.add(Bn(Tr)),Tr.reset()},result:function(){var e=Mr/2;return Mr.reset(),e}},Pr=1/0,jr=Pr,Rr=-Pr,Ar=Rr,Lr={point:He,lineStart:l,lineEnd:l,polygonStart:l,polygonEnd:l,result:function(){var e=[[Pr,jr],[Rr,Ar]];return Rr=Ar=-(jr=Pr=1/0),e}},Ur=0,Fr=0,Dr=0,zr=0,Ir=0,Br=0,Wr=0,Hr=0,qr=0,Vr={point:qe,lineStart:Ve,lineEnd:$e,polygonStart:function(){Vr.lineStart=Ge,Vr.lineEnd=Xe},polygonEnd:function(){Vr.point=qe,Vr.lineStart=Ve,Vr.lineEnd=$e},result:function(){var e=qr?[Wr/qr,Hr/qr]:Br?[zr/Br,Ir/Br]:Dr?[Ur/Dr,Fr/Dr]:[NaN,NaN];return Ur=Fr=Dr=zr=Ir=Br=Wr=Hr=qr=0,e}};Ze.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,Dn)}},result:l};var Yr,Jr,$r,Gr,Xr,Kr=n(),Qr={point:l,lineStart:function(){Qr.point=et},lineEnd:function(){Yr&&tt(Jr,$r),Qr.point=l},polygonStart:function(){Yr=!0},polygonEnd:function(){Yr=null},result:function(){var e=+Kr;return Kr.reset(),e}};nt.prototype={_radius:4.5,_circle:rt(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=rt(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}},ut.prototype={constructor:ut,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 Zr=16,eo=qn(30*In),to=at({point:function(e,t){this.stream.point(e*In,t*In)}}),no=Mt(function(e){return Kn(2/(1+e))});no.invert=Tt(function(e){return 2*a(e/2)});var ro=Mt(function(e){return(e=i(e))&&e/Gn(e)});ro.invert=Tt(function(e){return e}),jt.invert=function(e,t){return[e,2*Wn(Yn(t))-Un]},Dt.invert=Dt,Wt.invert=Tt(Wn),Yt.invert=function(e,t){var n,r=t,o=25;do{var i=r*r,a=i*i;r-=n=(r*(1.007226+i*(.015085+a*(-.044475+.028874*i-.005916*a)))-t)/(1.007226+i*(.045255+a*(-.311325+.259866*i-.005916*11*a)))}while(Bn(n)>Rn&&--o>0);return[e/(.8707+(i=r*r)*(-.131979+i*(-.013791+i*i*i*(.003971-.001529*i)))),r]},$t.invert=Tt(a),Xt.invert=Tt(function(e){return 2*Wn(e)}),Qt.invert=function(e,t){return[-t,2*Wn(Yn(e))-Un]},e.geoArea=y,e.geoBounds=L,e.geoCentroid=Y,e.geoCircle=re,e.geoClipAntimeridian=br,e.geoClipCircle=me,e.geoClipExtent=be,e.geoClipRectangle=ve,e.geoContains=je,e.geoDistance=Ce,e.geoGraticule=Le,e.geoGraticule10=Ue,e.geoInterpolate=Fe,e.geoLength=Ee,e.geoPath=ot,e.geoAlbers=Ct,e.geoAlbersUsa=Ot,e.geoAzimuthalEqualArea=Nt,e.geoAzimuthalEqualAreaRaw=no,e.geoAzimuthalEquidistant=Pt,e.geoAzimuthalEquidistantRaw=ro,e.geoConicConformal=Ft,e.geoConicConformalRaw=Ut,e.geoConicEqualArea=Et,e.geoConicEqualAreaRaw=xt,e.geoConicEquidistant=Bt,e.geoConicEquidistantRaw=It,e.geoEquirectangular=zt,e.geoEquirectangularRaw=Dt,e.geoGnomonic=Ht,e.geoGnomonicRaw=Wt,e.geoIdentity=Vt,e.geoProjection=bt,e.geoProjectionMutator=wt,e.geoMercator=Rt,e.geoMercatorRaw=jt,e.geoNaturalEarth1=Jt,e.geoNaturalEarth1Raw=Yt,e.geoOrthographic=Gt,e.geoOrthographicRaw=$t,e.geoStereographic=Kt,e.geoStereographicRaw=Xt,e.geoTransverseMercator=Zt,e.geoTransverseMercatorRaw=Qt,e.geoRotation=ee,e.geoStream=d,e.geoTransform=it,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(97),s=(r(f),function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),u(t,[{key:"render",value:function(){var e=this;if(void 0===this.props.dataJSON)return c.default.createElement("div",null);var t=this.props.chartOptions,n=(t.colorCategory,t.defaultCircleColor),r=this.props.dataJSON.map(function(t,r){return c.default.createElement("circle",{id:"map_circles",className:"map-circles circle-"+t.district+"-"+t.state,key:r,cx:e.props.projection([t.longitude,t.latitude])[0],cy:e.props.projection([t.longitude,t.latitude])[1],r:4,fill:n})});return c.default.createElement("g",null,r)}}]),t}(c.default.Component));t.default=s},84,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var u=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}}(),l=n(2),c=r(l),f=n(8),s=(r(f),n(99)),d=n(97),p=r(d),h=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={tooltipData:n.props.onLoadTooltipData},n}return a(t,e),u(t,[{key:"handleMouseOver",value:function(e,t,n){this.props.circleHover=!0,this.props.circleClicked||p.default.highlightCircle(n,t)}},{key:"render",value:function(){var e=this,t=this.props.projection,n=(0,s.voronoi)().x(function(e){return t([e.longitude,e.latitude])[0]}).y(function(e){return t([e.longitude,e.latitude])[1]}).size([this.props.width,this.props.height])(this.props.data),r=n.polygons(this.props.data),o=r.clean(void 0),i={fill:"none",pointerEvents:"all"},a=o.map(function(t,n){var r=t.data.district+"-"+t.data.state;return c.default.createElement("path",{style:i,d:"M "+t.join("L")+" Z",className:"voronoi-map protograph-trigger-modal","data-iframe_url":t.data.iframe_url,"data-district_code":t.data.district,onClick:e.props.showModal,onMouseMove:function(n){return e.handleMouseOver(n,t.data,r)},onTouchStart:function(n){return e.handleMouseOver(n,t.data,r)}})});return c.default.createElement("g",{className:"voronoiWrapper"},a)}}]),t}(c.default.Component);Array.prototype.clean=function(e){for(var t=0;t<this.length;t++)this[t]==e&&(this.splice(t,1),t--);return this},t.default=h},function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e){return e[0]}function n(e){return e[1]}function r(){this._=null}function o(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function i(e,t){var n=t,r=t.R,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function a(e,t){var n=t,r=t.L,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function u(e){for(;e.L;)e=e.L;return e}function l(e,t,n,r){var o=[null,null],i=D.push(o)-1;return o.left=e,o.right=t,n&&f(o,e,t,n),r&&f(o,t,e,r),U[e.index].halfedges.push(i),U[t.index].halfedges.push(i),o}function c(e,t,n){var r=[t,n];return r.left=e,r}function f(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 s(e,t,n,r,o){var i,a=e[0],u=e[1],l=a[0],c=a[1],f=u[0],s=u[1],d=0,p=1,h=f-l,g=s-c;if(i=t-l,h||!(i>0)){if(i/=h,h<0){if(i<d)return;i<p&&(p=i)}else if(h>0){if(i>p)return;i>d&&(d=i)}if(i=r-l,h||!(i<0)){if(i/=h,h<0){if(i>p)return;i>d&&(d=i)}else if(h>0){if(i<d)return;i<p&&(p=i)}if(i=n-c,g||!(i>0)){if(i/=g,g<0){if(i<d)return;i<p&&(p=i)}else if(g>0){if(i>p)return;i>d&&(d=i)}if(i=o-c,g||!(i<0)){if(i/=g,g<0){if(i>p)return;i>d&&(d=i)}else if(g>0){if(i<d)return;i<p&&(p=i)}return!(d>0||p<1)||(d>0&&(e[0]=[l+d*h,c+d*g]),p<1&&(e[1]=[l+p*h,c+p*g]),!0)}}}}}function d(e,t,n,r,o){var i=e[1];if(i)return!0;var a,u,l=e[0],c=e.left,f=e.right,s=c[0],d=c[1],p=f[0],h=f[1],g=(s+p)/2,m=(d+h)/2;if(h===d){if(g<t||g>=r)return;if(s>p){if(l){if(l[1]>=o)return}else l=[g,n];i=[g,o]}else{if(l){if(l[1]<n)return}else l=[g,o];i=[g,n]}}else if(a=(s-p)/(h-d),u=m-a*g,a<-1||a>1)if(s>p){if(l){if(l[1]>=o)return}else l=[(n-u)/a,n];i=[(o-u)/a,o]}else{if(l){if(l[1]<n)return}else l=[(o-u)/a,o];i=[(n-u)/a,n]}else if(d<h){if(l){if(l[0]>=r)return}else l=[t,a*t+u];i=[r,a*r+u]}else{if(l){if(l[0]<t)return}else l=[r,a*r+u];i=[t,a*t+u]}return e[0]=l,e[1]=i,!0}function p(e,t,n,r){for(var o,i=D.length;i--;)d(o=D[i],e,t,n,r)&&s(o,e,t,n,r)&&(Math.abs(o[0][0]-o[1][0])>B||Math.abs(o[0][1]-o[1][1])>B)||delete D[i]}function h(e){return U[e.index]={site:e,halfedges:[]}}function g(e,t){var n=e.site,r=t.left,o=t.right;return n===o&&(o=r,r=n),o?Math.atan2(o[1]-r[1],o[0]-r[0]):(n===r?(r=t[1],o=t[0]):(r=t[0],o=t[1]),Math.atan2(r[0]-o[0],o[1]-r[1]))}function m(e,t){return t[+(t.left!==e.site)]}function y(e,t){return t[+(t.left===e.site)]}function v(){for(var e,t,n,r,o=0,i=U.length;o<i;++o)if((e=U[o])&&(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]=g(e,D[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]}}function b(e,t,n,r){var o,i,a,u,l,f,s,d,p,h,g,v,b=U.length,w=!0;for(o=0;o<b;++o)if(i=U[o]){for(a=i.site,l=i.halfedges,u=l.length;u--;)D[l[u]]||l.splice(u,1);for(u=0,f=l.length;u<f;)h=y(i,D[l[u]]),s=m(i,D[l[++u%f]]),d=s[0],p=s[1],null!==h?(g=h[0],v=h[1]):(g=d,v=p),(Math.abs(g-d)>B||Math.abs(v-p)>B)&&(l.splice(u,0,D.push(c(a,h,Math.abs(g-e)<B&&r-v>B?[e,Math.abs(d-e)<B?p:r]:Math.abs(v-r)<B&&n-g>B?[Math.abs(p-r)<B?d:n,r]:Math.abs(g-n)<B&&v-t>B?[n,Math.abs(d-n)<B?p:t]:Math.abs(v-t)<B&&g-e>B?[Math.abs(p-t)<B?d:e,t]:null))-1),++f);f&&(w=!1)}if(w){var _,S,x,E=1/0;for(o=0,w=null;o<b;++o)(i=U[o])&&(a=i.site,_=a[0]-e,S=a[1]-t,x=_*_+S*S,x<E&&(E=x,w=i));if(w){var C=[e,t],k=[e,r],O=[n,r],M=[n,t];w.halfedges.push(D.push(c(a=w.site,C,k))-1,D.push(c(a,k,O))-1,D.push(c(a,O,M))-1,D.push(c(a,M,C))-1)}}for(o=0;o<b;++o)(i=U[o])&&(i.halfedges.length||delete U[o])}function w(){o(this),this.x=this.y=this.arc=this.site=this.cy=null}function _(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,o=e.site,i=n.site;if(r!==i){var a=o[0],u=o[1],l=r[0]-a,c=r[1]-u,f=i[0]-a,s=i[1]-u,d=2*(l*s-c*f);if(!(d>=-W)){var p=l*l+c*c,h=f*f+s*s,g=(s*p-c*h)/d,m=(l*h-f*p)/d,y=z.pop()||new w;y.arc=e,y.site=o,y.x=g+a,y.y=(y.cy=m+u)+Math.sqrt(g*g+m*m),e.circle=y;for(var v=null,b=F._;b;)if(y.y<b.y||y.y===b.y&&y.x<=b.x){if(!b.L){v=b.P;break}b=b.L}else{if(!b.R){v=b;break}b=b.R}F.insert(v,y),v||(A=y)}}}}function S(e){var t=e.circle;t&&(t.P||(A=t.N),F.remove(t),z.push(t),o(t),e.circle=null)}function x(){o(this),this.edge=this.site=this.circle=null}function E(e){var t=I.pop()||new x;return t.site=e,t}function C(e){S(e),L.remove(e),I.push(e),o(e)}function k(e){var t=e.circle,n=t.x,r=t.cy,o=[n,r],i=e.P,a=e.N,u=[e];C(e);for(var c=i;c.circle&&Math.abs(n-c.circle.x)<B&&Math.abs(r-c.circle.cy)<B;)i=c.P,u.unshift(c),C(c),c=i;u.unshift(c),S(c);for(var s=a;s.circle&&Math.abs(n-s.circle.x)<B&&Math.abs(r-s.circle.cy)<B;)a=s.N,u.push(s),C(s),s=a;u.push(s),S(s);var d,p=u.length;for(d=1;d<p;++d)s=u[d],c=u[d-1],f(s.edge,c.site,s.site,o);c=u[0],s=u[p-1],s.edge=l(c.site,s.site,null,o),_(c),_(s)}function O(e){for(var t,n,r,o,i=e[0],a=e[1],u=L._;u;)if(r=M(u,a)-i,r>B)u=u.L;else{if(o=i-T(u,a),!(o>B)){r>-B?(t=u.P,n=u):o>-B?(t=u,n=u.N):t=n=u;break}if(!u.R){t=u;break}u=u.R}h(e);var c=E(e);if(L.insert(t,c),t||n){if(t===n)return S(t),n=E(t.site),L.insert(c,n),c.edge=n.edge=l(t.site,c.site),_(t),void _(n);if(!n)return void(c.edge=l(t.site,c.site));S(t),S(n);var s=t.site,d=s[0],p=s[1],g=e[0]-d,m=e[1]-p,y=n.site,v=y[0]-d,b=y[1]-p,w=2*(g*b-m*v),x=g*g+m*m,C=v*v+b*b,k=[(b*x-m*C)/w+d,(g*C-v*x)/w+p];f(n.edge,s,y,k),c.edge=l(s,e,null,k),n.edge=l(e,y,null,k),_(t),_(n)}}function M(e,t){var n=e.site,r=n[0],o=n[1],i=o-t;if(!i)return r;var a=e.P;if(!a)return-(1/0);n=a.site;var u=n[0],l=n[1],c=l-t;if(!c)return u;var f=u-r,s=1/i-1/c,d=f/c;return s?(-d+Math.sqrt(d*d-2*s*(f*f/(-2*c)-l+c/2+o-i/2)))/s+r:(r+u)/2}function T(e,t){var n=e.N;if(n)return M(n,t);var r=e.site;return r[1]===t?r[0]:1/0}function N(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function P(e,t){return t[1]-e[1]||t[0]-e[0]}function j(e,t){var n,o,i,a=e.sort(P).pop();for(D=[],U=new Array(e.length),L=new r,F=new r;;)if(i=A,a&&(!i||a[1]<i.y||a[1]===i.y&&a[0]<i.x))a[0]===n&&a[1]===o||(O(a),n=a[0],o=a[1]),a=e.pop();else{if(!i)break;k(i.arc)}if(v(),t){var u=+t[0][0],l=+t[0][1],c=+t[1][0],f=+t[1][1];p(u,l,c,f),b(u,l,c,f)}this.edges=D,this.cells=U,L=F=D=U=null}var R=function(e){return function(){return e}};r.prototype={constructor:r,insert:function(e,t){var n,r,o;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=u(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;)r=n.U,n===r.L?(o=r.R,o&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.R&&(i(this,n),e=n,n=e.U),n.C=!1,r.C=!0,a(this,r))):(o=r.L,o&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.L&&(a(this,n),e=n,n=e.U),n.C=!1,r.C=!0,i(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,o=e.U,l=e.L,c=e.R;if(n=l?c?u(c):l:c,o?o.L===e?o.L=n:o.R=n:this._=n,l&&c?(r=n.C,n.C=e.C,n.L=l,l.U=n,n!==c?(o=n.U,n.U=e.U,e=n.R,o.L=e,n.R=c,c.U=n):(n.U=o,o=n,e=n.R)):(r=e.C,e=n),e&&(e.U=o),!r){if(e&&e.C)return void(e.C=!1);do{if(e===this._)break;if(e===o.L){if(t=o.R,t.C&&(t.C=!1,o.C=!0,i(this,o),t=o.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,a(this,t),t=o.R),t.C=o.C,o.C=t.R.C=!1,i(this,o),e=this._;break}}else if(t=o.L,t.C&&(t.C=!1,o.C=!0,a(this,o),t=o.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,i(this,t),t=o.L),t.C=o.C,o.C=t.L.C=!1,a(this,o),e=this._;break}t.C=!0,e=o,o=o.U}while(!e.C);e&&(e.C=!1)}}};var A,L,U,F,D,z=[],I=[],B=1e-6,W=1e-12;j.prototype={constructor:j,polygons:function(){var e=this.edges;return this.cells.map(function(t){var n=t.halfedges.map(function(n){return m(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(i=(o=n.halfedges).length)for(var o,i,a,u=n.site,l=-1,c=t[o[i-1]],f=c.left===u?c.right:c.left;++l<i;)a=f,c=t[o[l]],f=c.left===u?c.right:c.left,a&&f&&r<a.index&&r<f.index&&N(u,a,f)<0&&e.push([u.data,a.data,f.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,o,i=this,a=i._found||0,u=i.cells.length;!(o=i.cells[a]);)if(++a>=u)return null;var l=e-o.site[0],c=t-o.site[1],f=l*l+c*c;do o=i.cells[r=a],a=null,o.halfedges.forEach(function(n){var r=i.edges[n],u=r.left;if(u!==o.site&&u||(u=r.right)){var l=e-u[0],c=t-u[1],s=l*l+c*c;s<f&&(f=s,a=u.index)}});while(null!==a);return i._found=r,null==n||f<=n*n?o.site:null}};var H=function(){function e(e){return new j(e.map(function(t,n){var i=[Math.round(r(t,n,e)/B)*B,Math.round(o(t,n,e)/B)*B];return i.index=n,i.data=t,i}),i)}var r=t,o=n,i=null;return e.polygons=function(t){return e(t).polygons()},e.links=function(t){return e(t).links()},e.triangles=function(t){return e(t).triangles()},e.x=function(t){return arguments.length?(r="function"==typeof t?t:R(+t),e):r},e.y=function(t){return arguments.length?(o="function"==typeof t?t:R(+t),e):o},e.extent=function(t){return arguments.length?(i=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],e):i&&[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},e.size=function(t){return arguments.length?(i=null==t?null:[[0,0],[+t[0],+t[1]]],e):i&&[i[1][0]-i[0][0],i[1][1]-i[0][1]]},e};e.voronoi=H,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 u(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)}Object.defineProperty(t,"__esModule",{value:!0});var l=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}}(),c=n(2),f=r(c),s=n(84),d=function(e){
function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=n.props.filterJSON.map(function(e,t){return e.id=n.uuidv4(),e.parent_ids=[t],e.filters=n.setIDs(e.parent_ids,e.filters),e});r[0].is_active=!0;var o={moveIn:void 0,activeTab:0,currentViewLevel:0,filterParams:[],filteredData:[],dataJSON:n.props.dataJSON,filterJSON:r,activeTabJSON:n.props.filterJSON.filter(function(e,t){return e.is_active===!0})[0]};return n.state=o,n.toggleFilter=n.toggleFilter.bind(n),n.registerFilter=n.registerFilter.bind(n),n.unRegisterFilter=n.unRegisterFilter.bind(n),n}return u(t,e),l(t,[{key:"setIDs",value:function(e,t,n){var r=this;return t.map(function(t,i){return t.id=r.uuidv4(),t.parent_id=n,t.parent_ids=[].concat(o(e),[i]),t.filters&&t.filters.length>0&&(t.filters=r.setIDs(t.parent_ids,t.filters,t.id)),t})}},{key:"onChange",value:function(){this.props.onChange(this.state.filteredData)}},{key:"arrayDifference",value:function(e,t){return t.filter(function(t,n){return!e.find(function(e,n){return e.name===t.name})})}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.state.activeTab,r=e.filterJSON,o=this.state.filterJSON,i=this.state.filterParams,a=void 0,u=void 0,l=void 0;r.map(function(e,n){return e.id=t.uuidv4(),e.parent_ids=[n],e.filters=t.setIDs(e.parent_ids,e.filters),e}),r.forEach(function(e,t){u=o[t],e.filters.forEach(function(e,t){l=u.filters[t],l.filters.forEach(function(t){var n=e.filters.find(function(e){return e.name===t.name});n?(t.count=n.count,t.is_hidden=void 0):t.is_hidden=!0})})}),a=o[n],i=i.map(function(e,n){var r=t.getItemJSON(e.parent_ids);return e.id=r.id,e}),this.setState({filterJSON:o,activeTabJSON:a,filterParams:i})}},{key:"componentDidMount",value:function(){this.setCSS()}},{key:"setCSS",value:function(){var e=document.querySelector(".protograph-filter-items-container"),t=document.querySelector(".protograph-filters-header"),n=document.querySelector(".protograph-filters-tabs-container"),r=0;t&&(r+=t.getBoundingClientRect().height),n&&(r+=n.getBoundingClientRect().height),e.style.top=r+"px"}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)})}},{key:"handleReset",value:function(e){var t=this.state.filterParams,n=this.state.filterJSON,r=void 0,o=void 0;t.length&&(t.forEach(function(e){o=e.parent_ids;for(var t=0;t<o.length;t++)0===t?r=n[o[t]]:(r=r.filters[o[t]],r.is_active=!1)}),this.resetFilterItems(),this.setState({filterParams:[],filterJSON:n},this.filterData))}},{key:"resetFilterItems",value:function(){for(var e=document.querySelectorAll(".protograph-filter-item-detail.protograph-show-more-filters"),t=0;t<e.length;t++){var n=e[t],r=n.querySelector("i.chevron");n.classList.remove("protograph-show-more-filters"),r.classList.remove("up"),r.classList.add("down")}}},{key:"handleTabClick",value:function(e){var t,n=+e.target.closest(".protograph-filters-tab").getAttribute("data-tab_id"),r=document.querySelector(".protograph-filters-tab.protograph-filters-tab-active"),o=r.getAttribute("data-tab_id"),i=this.state.filterJSON;i[o].is_active=!1,i[n].is_active=!0,t=this.props.filterJSON.filter(function(e,t){return e.is_active===!0})[0],this.setState({activeTab:n,filterJSON:i,activeTabJSON:t})}},{key:"toggleFilter",value:function(e){var t=e.target.closest(".protograph-filter-item-detail"),n=t.querySelector("i.chevron");t.classList.toggle("protograph-show-more-filters"),n.classList.contains("up")?(n.classList.remove("up"),n.classList.add("down")):(n.classList.add("up"),n.classList.remove("down"))}},{key:"getItemJSON",value:function(e,t){return e.reduce(function(e,t){var n=e[t];return n.filters&&(n=n.filters),n},t||this.state.filterJSON)}},{key:"registerFilter",value:function(e){var t,n=e.target.closest(".protograph-filter-item").getAttribute("data-item_parent_ids").split(",").map(function(e){return+e}),r=this.getItemJSON(n),o=this.state.filterJSON,i=o[n[0]],a=this.state.filterParams;a.push(r);for(var u=1;u<n.length;u++)i.filters[n[u]].is_active=!0,i=i.filters[n[u]];t=o[n[0]],this.setState({filterJSON:o,activeTabJSON:t,filterParams:a},this.filterData)}},{key:"unRegisterFilter",value:function(e){var t,n=e.target.closest(".protograph-filter-item").getAttribute("data-item_parent_ids").split(",").map(function(e){return+e}),r=this.getItemJSON(n),n=r.parent_ids,o=this.state.filterJSON,i=o[n[0]],a=this.state.filterParams;a=a.filter(function(e,t){return e.id!==r.id});for(var u=1;u<n.length;u++)i.filters[n[u]].is_active=void 0,i=i.filters[n[u]];t=o[n[0]],this.setState({filterJSON:o,activeTabJSON:t,filterParams:a},this.filterData)}},{key:"filterData",value:function(){var e=this,t=this.state.filterParams,n=this.state.dataJSON,r=[],o=void 0,i=void 0;o=(0,s.groupBy)(t,"parent_id"),i=Object.keys(o),i.forEach(function(t){var i=[];o[t].forEach(function(t,r){var o=n.filter(function(n,r){return Array.isArray(e.getDataValue(n,t))?e.getDataValue(n,t).indexOf(t.value)!==-1:e.getDataValue(n,t)===t.value});i=i.concat(o)}),r=r.length?r.filter(function(e,t){return i.find(function(t,n){return t.u_id===e.u_id})}):i}),0===t.length&&r.length<=0&&(r=this.state.dataJSON),this.setState({filteredData:r},this.onChange)}},{key:"getDataValue",value:function(e,t){for(var n=(this.state.filterJSON,t.parent_ids),r=this.state.filterJSON[n[0]],o=1;o<n.length-1;o++)e=e[r.filters[n[o]].key],r=r.filters[n[o]];return e}},{key:"getStyleString",value:function(){return"\n .protograph-house-color {\n color: "+this.props.configurationJSON.colors.house_color+";\n }\n .protograph-filter-item:hover, .protograph-active-item {\n color: "+this.props.configurationJSON.colors.active_text_color+" !important;\n }\n .protograph-house-bg-color, .protograph-filters-header, .protograph-filters-all-filters {\n background-color: "+this.props.configurationJSON.colors.house_color+";\n }\n .protograph-filters-tab.protograph-filters-tab-active {\n border-bottom: 2px solid "+this.props.configurationJSON.colors.house_color+";\n }\n .protograph-filters-header, .protograph-filters-all-filters-group-item-name, .protograph-filters-all-filters-group-item-cross, .protograph-filters-all-filters-group-item-number {\n color: "+this.props.configurationJSON.colors.filter_summary_text_color+";\n }\n "}},{key:"getOnClickCallback",value:function(e){return this.itemHasMoreFilters(e)?this.toggleFilter:e.is_active?void 0:this.registerFilter}},{key:"getName",value:function(e){return e.renderName?e.renderName&&e.renderName.constructor===Function?e.renderName(e):e.renderName&&e.renderName.constructor===String?e.renderName:void 0:e.name}},{key:"itemHasMoreFilters",value:function(e){return e.filters&&e.filters.length>0}},{key:"hasTabs",value:function(){return this.state.filterJSON.length>1}},{key:"renderFilterItems",value:function(e,t){var n=this;return f.default.createElement("div",{className:""+(t?"protograph-filter-sub-items-container":"protograph-filter-items-container")},f.default.createElement("div",{className:""+(t?"":"protograph-filter-list-area")},this.props.hintText&&!t&&f.default.createElement("div",{className:"protograph-filter-hint-text"},this.props.hintText),e.map(function(e,t){if(e.is_hidden)return f.default.createElement("div",{key:t});var r=n.getOnClickCallback(e),o=n.getName(e);return f.default.createElement("div",{key:t,className:"protograph-filter-item-detail"},f.default.createElement("div",{key:t,className:"protograph-filter-item "+(e.is_active&&!n.itemHasMoreFilters(e)?"protograph-active-item":""),onClick:r,"data-item_parent_ids":e.parent_ids.join(",")},f.default.createElement("div",{className:"protograph-filter-item-name"},o),n.itemHasMoreFilters(e)?f.default.createElement("div",{className:"protograph-filter-chevron-icon"},f.default.createElement("i",{className:"chevron down icon"})):f.default.createElement("div",{className:"protograph-filter-item-arrow"}," ",e.count," "),e.is_active&&f.default.createElement("div",{className:"protograph-filters-remove-filter",onClick:function(e){n.unRegisterFilter(e)}},"Remove")),n.itemHasMoreFilters(e)&&f.default.createElement("div",{className:"protograph-filter-body"},n.renderFilterItems(e.filters,!0)))})))}},{key:"render",value:function(){var e=this,t=this.getStyleString();return f.default.createElement("div",null,f.default.createElement("style",{dangerouslySetInnerHTML:{__html:t}}),f.default.createElement("div",{className:"protograph-filters-container"},f.default.createElement("div",{className:"protograph-filters-header"},f.default.createElement("span",{className:"protograph-filters-active-count"},this.state.filterParams.length),f.default.createElement("span",{className:"protograph-filters-selected-filter-toggle"},this.props.configurationJSON.selected_heading),f.default.createElement("span",{className:"protograph-filters-reset-filter",onClick:function(t){e.handleReset(t)}},this.props.configurationJSON.reset_filter_text)),this.state.filterJSON.length>1&&f.default.createElement("div",{className:"protograph-filters-tabs-container"},this.state.filterJSON.map(function(t,n){return f.default.createElement("div",{key:n,id:"protograph_filter_tab_"+n,"data-tab_id":n,className:"protograph-filters-tab "+(t.is_active?"protograph-filters-tab-active":""),onClick:function(t){e.handleTabClick(t)}},t.name)})),this.state.filterJSON.length>=1&&this.renderFilterItems(this.state.activeTabJSON.filters)))}}]),t}(f.default.Component);t.default=d},function(e,t){"use strict";ProtoGraph.initDataApp=function(){var e=new ProtoGraph.Card.toMaps,t=ProtoGraph.streams;ProtoGraph.page,e.init({selector:document.querySelector("#card-list-div"),dataURL:t.Grid.url,topoURL:"https://p.factchecker.in/data/india-topo.json",chartOptions:{height:700,defaultCircleColor:ProtoGraph.site.house_colour},filterConfigurationJSON:{colors:{house_color:ProtoGraph.site.house_colour,text_color:"#343434",active_text_color:ProtoGraph.site.house_colour,filter_summary_text_color:ProtoGraph.site.reverse_font_colour},selected_heading:"FILTERS",reset_filter_text:"Reset"},filters:[{alias:"Year",propName:"year"},{alias:"State",propName:"state"},{alias:"Context/bias indicator",propName:"pretext_to_incident"},{alias:"Party in power",propName:"party_in_power"},{alias:"Type of assault",propName:"type_of_assault"},{alias:"Source",propName:"type_of_source"},{alias:"Is FIR registered?",propName:"is_fir_registered"},{alias:"Is Cross FIR registered?",propName:"is_cross_fir_registered"}]}),e.renderLaptop()}}]));