(window.webpackJsonpdash_core_components=window.webpackJsonpdash_core_components||[]).push([[1],{260:function(t,e,n){t.exports=n(502)},261:function(t,e){function n(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,s,"next",t)}function s(t){n(a,o,i,c,s,"throw",t)}c(void 0)}))}}},502:function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new L(r||[]);return i._invoke=function(t,e,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var s=u(t,e,n);if("normal"===s.type){if(r=n.done?p:l,s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=p,n.method="throw",n.arg=s.arg)}}}(t,n,a),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",l="suspendedYield",h="executing",p="completed",d={};function v(){}function y(){}function b(){}var g={};g[i]=function(){return this};var m=Object.getPrototypeOf,_=m&&m(m(P([])));_&&_!==n&&r.call(_,i)&&(g=_);var O=b.prototype=v.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function E(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var c=u(t[n],t,o);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?Promise.resolve(f.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function j(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=u(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function P(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return y.prototype=O.constructor=b,b.constructor=y,b[c]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},w(E.prototype),E.prototype[a]=function(){return this},t.AsyncIterator=E,t.async=function(e,n,r,o){var i=new E(s(e,n,r,o));return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(O),O[c]="Generator",O[i]=function(){return this},O.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},503:function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return(function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}())}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},a=2;var c=20,s=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,f=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function c(){n&&(n=!1,t()),r&&u()}function s(){i(c)}function u(){var t=Date.now();if(n){if(t-o<a)return;r=!0}else n=!0,r=!1,setTimeout(s,e);o=t}return u}(this.refresh.bind(this),c)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;s.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},h=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},p=m(0,0,0,0);function d(t){return parseFloat(t)||0}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+d(t["border-"+n+"-width"])}),0)}function y(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=h(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=d(i)}return e}(r),i=o.left+o.right,a=o.top+o.bottom,c=d(r.width),s=d(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==e&&(c-=v(r,"left","right")+i),Math.round(s+a)!==n&&(s-=v(r,"top","bottom")+a)),!function(t){return t===h(t).document.documentElement}(t)){var u=Math.round(c+i)-e,f=Math.round(s+a)-n;1!==Math.abs(u)&&(c-=u),1!==Math.abs(f)&&(s-=f)}return m(o.left,o.top,c,s)}var b="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof h(t).SVGGraphicsElement}:function(t){return t instanceof h(t).SVGElement&&"function"==typeof t.getBBox};function g(t){return r?b(t)?function(t){var e=t.getBBox();return m(0,0,e.width,e.height)}(t):y(t):p}function m(t,e,n,r){return{x:t,y:e,width:n,height:r}}var _=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=g(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),O=function(t,e){var n,r,o,i,a,c,s,u=(r=(n=e).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(c.prototype),l(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);l(this,{target:t,contentRect:u})},w=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new _(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new O(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),E="undefined"!=typeof WeakMap?new WeakMap:new n,j=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new w(e,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){j.prototype[t]=function(){var e;return(e=E.get(this))[t].apply(e,arguments)}}));var x=void 0!==o.ResizeObserver?o.ResizeObserver:j;e.a=x}).call(this,n(211))},504:function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(211))},689:function(t,e,n){"use strict";n.r(e);var r=n(33),o=n.n(r),i=n(260),a=n.n(i),c=n(261),s=n.n(c),u=n(54),f=n.n(u),l=n(108),h=n.n(l),p=n(2),d=n.n(p),v=n(3),y=n.n(v),b=n(6),g=n.n(b),m=n(7),_=n.n(m),O=n(13),w=n.n(O),E=n(8),j=n.n(E),x=n(1),k=n.n(x),L=n(15),P=n(503),T=function(t){var e=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];e=o,n||(n=requestAnimationFrame((function(){n=null,t.apply(void 0,e)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r},R=n(0),M=n.n(R);var A=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},D=n(504),S="object"==typeof self&&self&&self.Object===Object&&self,z=D.a||S||Function("return this")(),C=function(){return z.Date.now()},N=z.Symbol,G=Object.prototype,H=G.hasOwnProperty,F=G.toString,W=N?N.toStringTag:void 0;var q=function(t){var e=H.call(t,W),n=t[W];try{t[W]=void 0;var r=!0}catch(t){}var o=F.call(t);return r&&(e?t[W]=n:delete t[W]),o},U=Object.prototype.toString;var B=function(t){return U.call(t)},I="[object Null]",V="[object Undefined]",J=N?N.toStringTag:void 0;var $=function(t){return null==t?void 0===t?V:I:J&&J in Object(t)?q(t):B(t)};var Y=function(t){return null!=t&&"object"==typeof t},K="[object Symbol]";var Q=function(t){return"symbol"==typeof t||Y(t)&&$(t)==K},X=NaN,Z=/^\s+|\s+$/g,tt=/^[-+]0x[0-9a-f]+$/i,et=/^0b[01]+$/i,nt=/^0o[0-7]+$/i,rt=parseInt;var ot=function(t){if("number"==typeof t)return t;if(Q(t))return X;if(A(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=A(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Z,"");var n=et.test(t);return n||nt.test(t)?rt(t.slice(2),n?2:8):tt.test(t)?X:+t},it="Expected a function",at=Math.max,ct=Math.min;var st=function(t,e,n){var r,o,i,a,c,s,u=0,f=!1,l=!1,h=!0;if("function"!=typeof t)throw new TypeError(it);function p(e){var n=r,i=o;return r=o=void 0,u=e,a=t.apply(i,n)}function d(t){var n=t-s;return void 0===s||n>=e||n<0||l&&t-u>=i}function v(){var t=C();if(d(t))return y(t);c=setTimeout(v,function(t){var n=e-(t-s);return l?ct(n,i-(t-u)):n}(t))}function y(t){return c=void 0,h&&r?p(t):(r=o=void 0,a)}function b(){var t=C(),n=d(t);if(r=arguments,o=this,s=t,n){if(void 0===c)return function(t){return u=t,c=setTimeout(v,e),f?p(t):a}(s);if(l)return clearTimeout(c),c=setTimeout(v,e),p(s)}return void 0===c&&(c=setTimeout(v,e)),a}return e=ot(e)||0,A(n)&&(f=!!n.leading,i=(l="maxWait"in n)?at(ot(n.maxWait)||0,e):i,h="trailing"in n?!!n.trailing:h),b.cancel=function(){void 0!==c&&clearTimeout(c),u=0,r=s=o=c=void 0},b.flush=function(){return void 0===c?a:y(C())},b},ut="Expected a function";var ft=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError(ut);return A(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),st(t,e,{leading:r,maxWait:e,trailing:o})},lt={debounce:st,throttle:ft},ht=function(t){return lt[t]},pt=function(t){return"function"==typeof t},dt=function(){return"undefined"==typeof window},vt=function(t){return t instanceof Element||t instanceof HTMLDocument};function yt(t){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gt(t,e){return!e||"object"!==yt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function mt(t){return(mt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _t(t,e){return(_t=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ot=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),gt(this,mt(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_t(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return this.props.children}}])&&bt(n.prototype,r),o&&bt(n,o),e}(x.PureComponent);function wt(t){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Et(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jt(t){return(jt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kt(t,e){return(kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Lt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pt=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e){return!e||"object"!==wt(e)&&"function"!=typeof e?xt(t):e}(this,jt(e).call(this,t)),Lt(xt(n),"cancelHandler",(function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)})),Lt(xt(n),"rafClean",(function(){n.raf&&n.raf.cancel&&(n.raf.cancel(),n.raf=null)})),Lt(xt(n),"toggleObserver",(function(t){var e=n.getElement();e&&n.resizeObserver[t]&&n.resizeObserver[t](e)})),Lt(xt(n),"getElement",(function(){var t=n.props,e=t.querySelector,r=t.targetDomEl;if(!dt()){if(e)return document.querySelector(e);if(r&&vt(r))return r;var o=n.element&&Object(L.findDOMNode)(n.element);if(o)return o.parentElement}})),Lt(xt(n),"createUpdater",(function(){return n.rafClean(),n.raf=T((function(t){var e=t.width,r=t.height,o=n.props.onResize;pt(o)&&o(e,r),n.setState({width:e,height:r})})),n.raf})),Lt(xt(n),"createResizeHandler",(function(t){var e=n.state,r=e.width,o=e.height,i=n.props,a=i.handleWidth,c=i.handleHeight;if(a||c){var s=n.createUpdater();t.forEach((function(t){var e=t&&t.contentRect||{},i=e.width,u=e.height,f=a&&r!==i||c&&o!==u;!n.skipOnMount&&f&&!dt()&&s({width:i,height:u}),n.skipOnMount=!1}))}})),Lt(xt(n),"onRef",(function(t){n.element=t})),Lt(xt(n),"getRenderType",(function(){var t=n.props,e=t.render,r=t.children;return pt(e)?"renderProp":pt(r)?"childFunction":Object(x.isValidElement)(r)?"child":Array.isArray(r)?"childArray":"parent"})),Lt(xt(n),"getTargetComponent",(function(){var t=n.props,e=t.render,r=t.children,o=t.nodeType,i=n.state,a={width:i.width,height:i.height};switch(n.getRenderType()){case"renderProp":return Object(x.cloneElement)(e(a),{key:"resize-detector"});case"childFunction":return Object(x.cloneElement)(r(a));case"child":return Object(x.cloneElement)(r,a);case"childArray":return r.map((function(t){return!!t&&Object(x.cloneElement)(t,a)}));default:return Object(x.createElement)(o)}}));var r=t.skipOnMount,o=t.refreshMode,i=t.refreshRate,a=t.refreshOptions;n.state={width:void 0,height:void 0},n.skipOnMount=r,n.raf=null,n.element=null,n.unmounted=!1;var c=ht(o);return n.resizeHandler=c?c(n.createResizeHandler,i,a):n.createResizeHandler,n.resizeObserver=new P.a(n.resizeHandler),n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kt(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.toggleObserver("observe")}},{key:"componentWillUnmount",value:function(){this.toggleObserver("unobserve"),this.rafClean(),this.cancelHandler(),this.unmounted=!0}},{key:"render",value:function(){return k.a.createElement(Ot,{ref:this.onRef},this.getTargetComponent())}}])&&Et(n.prototype,r),o&&Et(n,o),e}(x.PureComponent);Pt.propTypes={handleWidth:R.bool,handleHeight:R.bool,skipOnMount:R.bool,refreshRate:R.number,refreshMode:R.string,refreshOptions:Object(R.shape)({leading:R.bool,trailing:R.bool}),querySelector:R.string,targetDomEl:R.any,onResize:R.func,render:R.func,children:R.any,nodeType:R.node},Pt.defaultProps={handleWidth:!1,handleHeight:!1,skipOnMount:!1,refreshRate:1e3,refreshMode:void 0,refreshOptions:void 0,querySelector:null,targetDomEl:null,onResize:null,render:void 0,children:null,nodeType:"div"};var Tt=Pt,Rt=n(193),Mt=n(191),At=n(105),Dt=n(49),St=n(194),zt=n(4),Ct=n(75),Nt=n(94),Gt=n(22),Ht=Object(Ct.a)((function(t,e,n){var r,o={};for(r in e)Object(Gt.a)(r,e)&&(o[r]=Object(Gt.a)(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)Object(Gt.a)(r,n)&&!Object(Gt.a)(r,o)&&(o[r]=n[r]);return o})),Ft=Object(Ct.a)((function t(e,n,r){return Ht((function(n,r,o){return Object(Nt.a)(r)&&Object(Nt.a)(o)?t(e,r,o):e(n,r,o)}),n,r)})),Wt=Object(zt.a)((function(t,e){return Ft((function(t,e,n){return n}),t,e)})),qt=n(192),Ut=n(104),Bt=n(76),It={autosize:!0,height:void 0,width:void 0},Vt={},Jt={autosize:!1},$t={responsive:!0},Yt={},Kt={responsive:!1},Qt=function(t,e,n){var r;if(Object(Rt.a)(n,["click","hover","selected"])){var o=[];if(Object(Mt.a)(e))return null;for(var i=t.data,a=0;a<e.points.length;a++){var c=e.points[a],s=Object(At.a)((function(t){return!Object(Rt.a)(Object(Dt.a)(t),["Object","Array"])}),c);Object(St.a)("curveNumber",c)&&Object(St.a)("pointNumber",c)&&Object(St.a)("customdata",i[s.curveNumber])&&(s.customdata=i[s.curveNumber].customdata[c.pointNumber]),Object(St.a)("pointNumbers",c)&&(s.pointNumbers=c.pointNumbers),o[a]=s}r={points:o}}else"relayout"!==n&&"restyle"!==n||(r=e);return Object(St.a)("range",e)&&(r.range=e.range),Object(St.a)("lassoPoints",e)&&(r.lassoPoints=e.lassoPoints),r},Xt=function(t){function e(t){var n;return d()(this,e),(n=g()(this,_()(e).call(this,t))).gd=k.a.createRef(),n._hasPlotted=!1,n._prevGd=null,n.bindEvents=n.bindEvents.bind(w()(n)),n.getConfig=n.getConfig.bind(w()(n)),n.getConfigOverride=n.getConfigOverride.bind(w()(n)),n.getLayout=n.getLayout.bind(w()(n)),n.getLayoutOverride=n.getLayoutOverride.bind(w()(n)),n.graphResize=n.graphResize.bind(w()(n)),n.isResponsive=n.isResponsive.bind(w()(n)),n}var n;return j()(e,t),y()(e,[{key:"plot",value:function(t){var e=this,n=t.figure,r=t.config,o=t.animate,i=t.animation_options,a=t.responsive,c=this.gd.current;if(n=t._dashprivate_transformFigure(n,c),r=t._dashprivate_transformConfig(r,c),o&&this._hasPlotted&&n.data.length===c.data.length)return Plotly.animate(c,n,i);var s=this.getConfig(r,a),u=this.getLayout(n.layout,a);return c.classList.add("dash-graph--pending"),Plotly.react(c,{data:n.data,layout:u,frames:n.frames,config:s}).then((function(){var t=e.gd.current;t&&(t.classList.remove("dash-graph--pending"),e._hasPlotted&&t!==e._prevGd&&(e._prevGd&&e._prevGd.removeAllListeners&&(e._prevGd.removeAllListeners(),Plotly.purge(e._prevGd)),e._hasPlotted=!1),e._hasPlotted||(e.bindEvents(),e.graphResize(!0),e._hasPlotted=!0,e._prevGd=t))}))}},{key:"extend",value:function(t){var e=this,n=t.clearExtendData;t.extendData.forEach((function(t){var n,r,o,i;if(Array.isArray(t)&&"object"===h()(t[0])){var a=f()(t,3);n=a[0],r=a[1],o=a[2]}else n=t;if(!r){i=n,r=Array.from(Array(function(t){return t[Object.keys(t)[0]]}(i).length).keys())}var c=e.gd.current;return Plotly.extendTraces(c,n,r,o)})),n()}},{key:"getConfig",value:function(t,e){return Wt(t,this.getConfigOverride(e))}},{key:"getLayout",value:function(t,e){return t?Wt(t,this.getLayoutOverride(e)):t}},{key:"getConfigOverride",value:function(t){switch(t){case!1:return Kt;case!0:return $t;default:return Yt}}},{key:"getLayoutOverride",value:function(t){switch(t){case!1:return Jt;case!0:return It;default:return Vt}}},{key:"isResponsive",value:function(t){var e=t.config,n=t.figure,r=t.responsive;return"Boolean"===Object(Dt.a)(r)?r:Boolean(e.responsive&&(!n.layout||(n.layout.autosize||Object(Mt.a)(n.layout.autosize))&&(Object(Mt.a)(n.layout.height)||Object(Mt.a)(n.layout.width))))}},{key:"graphResize",value:(n=s()(a.a.mark((function t(){var e,n=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.length>0&&void 0!==n[0]&&n[0]||this.isResponsive(this.props)){t.next=3;break}return t.abrupt("return");case 3:if(e=this.gd.current){t.next=6;break}return t.abrupt("return");case 6:e.classList.add("dash-graph--pending"),Plotly.Plots.resize(e).catch((function(){})).finally((function(){return e.classList.remove("dash-graph--pending")}));case 8:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"bindEvents",value:function(){var t=this.props,e=t.setProps,n=t.clear_on_unhover,r=t.relayoutData,o=t.restyleData,i=t.hoverData,a=t.selectedData,c=this.gd.current;c.on("plotly_click",(function(t){var n=Qt(c,t,"click");Object(Mt.a)(n)||e({clickData:n})})),c.on("plotly_clickannotation",(function(t){var n=Object(qt.a)(["event","fullAnnotation"],t);e({clickAnnotationData:n})})),c.on("plotly_hover",(function(t){var n=Qt(c,t,"hover");Object(Mt.a)(n)||Object(Ut.a)(n,i)||e({hoverData:n})})),c.on("plotly_selected",(function(t){var n=Qt(c,t,"selected");Object(Mt.a)(n)||Object(Ut.a)(n,a)||e({selectedData:n})})),c.on("plotly_deselect",(function(){e({selectedData:null})})),c.on("plotly_relayout",(function(t){var n=Qt(c,t,"relayout");Object(Mt.a)(n)||Object(Ut.a)(n,r)||e({relayoutData:n})})),c.on("plotly_restyle",(function(t){var n=Qt(c,t,"restyle");Object(Mt.a)(n)||Object(Ut.a)(n,o)||e({restyleData:n})})),c.on("plotly_unhover",(function(){n&&e({hoverData:null})}))}},{key:"componentDidMount",value:function(){this.plot(this.props),this.props.extendData&&this.extend(this.props)}},{key:"componentWillUnmount",value:function(){var t=this.gd.current;t&&t.removeAllListeners&&(t.removeAllListeners(),this._hasPlotted&&Plotly.purge(t))}},{key:"shouldComponentUpdate",value:function(t){return this.props.id!==t.id||JSON.stringify(this.props.style)!==JSON.stringify(t.style)}},{key:"componentWillReceiveProps",value:function(t){this.props.id!==t.id||(this.props.figure===t.figure&&this.props._dashprivate_transformConfig===t._dashprivate_transformConfig&&this.props._dashprivate_transformFigure===t._dashprivate_transformFigure||this.plot(t),this.props.extendData!==t.extendData&&this.extend(t))}},{key:"componentDidUpdate",value:function(t){t.id!==this.props.id&&this.plot(this.props)}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.id,r=t.style,o=t.loading_state;return k.a.createElement("div",{id:n,key:n,"data-dash-is-loading":o&&o.is_loading||void 0,className:e,style:r},k.a.createElement(Tt,{handleHeight:!0,handleWidth:!0,refreshMode:"debounce",refreshOptions:{trailing:!0},refreshRate:50,onResize:this.graphResize}),k.a.createElement("div",{ref:this.gd,style:{height:"100%",width:"100%"}}))}}]),e}(x.Component);Xt.propTypes=o()({},Bt.c,{extendData:M.a.arrayOf(M.a.oneOfType([M.a.array,M.a.object])),clearExtendData:M.a.func.isRequired}),Xt.defaultProps=o()({},Bt.b,{extendData:[]});e.default=Xt}}]);
//# sourceMappingURL=async~graph.js.map