-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinteractive.js
2 lines (2 loc) · 850 KB
/
interactive.js
1
2
/*! For license information please see interactive.js.LICENSE.txt */
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./",n(n.s=157)}([function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},function(t,e,n){t.exports=n(181)()},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(0),i=n(40),o=n(81),a=n(8),u=n(64),c=n(23),s=n(55),l=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!n){a.destination=o.a;break}if("object"==typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,n,r,i)}return a}return r.a(e,t),e.prototype[u.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a.a),f=function(t){function e(e,n,r,a){var u,c=t.call(this)||this;c._parentSubscriber=e;var s=c;return Object(i.a)(n)?u=n:n&&(u=n.next,r=n.error,a=n.complete,n!==o.a&&(s=Object.create(n),Object(i.a)(s.unsubscribe)&&c.add(s.unsubscribe.bind(s)),s.unsubscribe=c.unsubscribe.bind(c))),c._context=s,c._next=u,c._error=r,c._complete=a,c}return r.a(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(s.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(s.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return c.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(s.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return s}));var r=n(0),i=n(2),o=n(5),a=n(54),u=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.a(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.a),c=(i.a,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.a));function s(t,e){if(!e.closed){if(t instanceof o.a)return t.subscribe(e);var n;try{n=Object(a.a)(t)(e)}catch(t){e.error(t)}return n}}i.a},function(t,e,n){"use strict";e.a=function(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(79),i=n(2),o=n(64),a=n(81),u=n(36),c=n(62),s=n(23),l=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,u=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new i.a(t,e,n):new i.a(a.a)}(t,e,n);if(r?u.add(r.call(u,this.source)):u.add(this.source||s.a.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),s.a.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){s.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),Object(r.a)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=f(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[u.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:Object(c.b)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=f(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function f(t){if(t||(t=s.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return r})),n.d(e,"e",(function(){return i})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return b})),n.d(e,"i",(function(){return g})),n.d(e,"j",(function(){return j})),n.d(e,"w",(function(){return P})),n.d(e,"x",(function(){return z})),n.d(e,"y",(function(){return O})),n.d(e,"k",(function(){return N})),n.d(e,"l",(function(){return I})),n.d(e,"m",(function(){return R})),n.d(e,"n",(function(){return D})),n.d(e,"o",(function(){return L})),n.d(e,"p",(function(){return s})),n.d(e,"q",(function(){return q})),n.d(e,"r",(function(){return A})),n.d(e,"s",(function(){return x})),n.d(e,"t",(function(){return F})),n.d(e,"u",(function(){return U})),n.d(e,"v",(function(){return B})),n.d(e,"B",(function(){return E})),n.d(e,"z",(function(){return T})),n.d(e,"A",(function(){return C})),n.d(e,"C",(function(){return V})),n.d(e,"D",(function(){return p})),n.d(e,"E",(function(){return W}));var r=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},i=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return r(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}},o=i(r),a=o.right,u=o.left,c=a,s=function(t,e){null==e&&(e=l);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return o};function l(t,e){return[t,e]}var f=function(t,e,n){var r,i,o,a,u=t.length,c=e.length,s=new Array(u*c);for(null==n&&(n=l),r=o=0;r<u;++r)for(a=t[r],i=0;i<c;++i,++o)s[o]=n(a,e[i]);return s},h=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,e){var n,r,i=t.length,o=0,a=-1,u=0,c=0;if(null==e)for(;++a<i;)isNaN(n=d(t[a]))||(c+=(r=n-u)*(n-(u+=r/++o)));else for(;++a<i;)isNaN(n=d(e(t[a],a,t)))||(c+=(r=n-u)*(n-(u+=r/++o)));if(o>1)return c/(o-1)},b=function(t,e){var n=p(t,e);return n?Math.sqrt(n):n},g=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=i=n;++a<o;)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},v=Array.prototype,m=v.slice,y=v.map,_=function(t){return function(){return t}},w=function(t){return t},x=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o},k=Math.sqrt(50),S=Math.sqrt(10),M=Math.sqrt(2),E=function(t,e,n){var r,i,o,a,u=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=T(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++u<i;)o[u]=(t+u)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++u<i;)o[u]=(t-u)/a;return r&&o.reverse(),o};function T(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=k?10:o>=S?5:o>=M?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=k?10:o>=S?5:o>=M?2:1)}function C(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=k?i*=10:o>=S?i*=5:o>=M&&(i*=2),e<t?-i:i}var O=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},j=function(){var t=w,e=g,n=O;function r(r){var i,o,a=r.length,u=new Array(a);for(i=0;i<a;++i)u[i]=t(r[i],i,r);var s=e(u),l=s[0],f=s[1],h=n(u,l,f);Array.isArray(h)||(h=C(l,f,h),h=x(Math.ceil(l/h)*h,f,h));for(var d=h.length;h[0]<=l;)h.shift(),--d;for(;h[d-1]>f;)h.pop(),--d;var p,b=new Array(d+1);for(i=0;i<=d;++i)(p=b[i]=[]).x0=i>0?h[i-1]:l,p.x1=i<d?h[i]:f;for(i=0;i<a;++i)l<=(o=u[i])&&o<=f&&b[c(h,o,0,d)].push(r[i]);return b}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:_(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:_([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?_(m.call(t)):_(t),r):n},r},A=function(t,e,n){if(null==n&&(n=d),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}},P=function(t,e,n){return t=y.call(t,d).sort(r),Math.ceil((n-e)/(2*(A(t,.75)-A(t,.25))*Math.pow(t.length,-1/3)))},z=function(t,e,n){return Math.ceil((n-e)/(3.5*b(t)*Math.pow(t.length,-1/3)))},N=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&n>r&&(r=n);return r},I=function(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o<r;)isNaN(n=d(t[o]))?--i:a+=n;else for(;++o<r;)isNaN(n=d(e(t[o],o,t)))?--i:a+=n;if(i)return a/i},R=function(t,e){var n,i=t.length,o=-1,a=[];if(null==e)for(;++o<i;)isNaN(n=d(t[o]))||a.push(n);else for(;++o<i;)isNaN(n=d(e(t[o],o,t)))||a.push(n);return A(a.sort(r),.5)},D=function(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n},L=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&r>n&&(r=n);return r},q=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},F=function(t,e){if(n=t.length){var n,i,o=0,a=0,u=t[a];for(null==e&&(e=r);++o<n;)(e(i=t[o],u)<0||0!==e(u,u))&&(u=i,a=o);return 0===e(u,u)?a:void 0}},U=function(t,e,n){for(var r,i,o=(null==n?t.length:n)-(e=null==e?0:+e);o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},B=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)for(;++i<r;)(n=+t[i])&&(o+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(o+=n);return o},V=function(t){if(!(i=t.length))return[];for(var e=-1,n=L(t,H),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r};function H(t){return t.length}var W=function(){return V(arguments)}},function(t,e,n){"use strict";t.exports=n(158)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(12),i=n(78),o=n(40),a=n(65),u=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,u=this._ctorUnsubscribe,s=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var f=0;f<n.length;++f)n[f].remove(this);if(Object(o.a)(s)){u&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=t instanceof a.a?c(t.errors):[t]}}if(Object(r.a)(l)){f=-1;for(var h=l.length;++f<h;){var d=l[f];if(Object(i.a)(d))try{d.unsubscribe()}catch(t){e=e||[],t instanceof a.a?e=e.concat(c(t.errors)):e.push(t)}}}if(e)throw new a.a(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function c(t){return t.reduce((function(t,e){return t.concat(e instanceof a.a?e.errors:e)}),[])}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return f}));var r=n(0),i=n(5),o=n(2),a=n(8),u=n(37),c=n(119),s=n(64),l=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.a(e,t),e}(o.a),f=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.a(e,t),e.prototype[s.a]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new u.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new u.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new u.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new u.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new u.a;return this.hasError?(t.error(this.thrownError),a.a.EMPTY):this.isStopped?(t.complete(),a.a.EMPTY):(this.observers.push(t),new c.a(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.a),h=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.a(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):a.a.EMPTY},e}(f)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=new Date,i=new Date;function o(t,e,n,a){function u(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return u.floor=function(e){return t(e=new Date(+e)),e},u.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},u.round=function(t){var e=u(t),n=u.ceil(t);return t-e<n-t?e:n},u.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},u.range=function(n,r,i){var o,a=[];if(n=u.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o<n&&n<r);return a},u.filter=function(n){return o((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(u.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(a?function(e){return a(e)%t==0}:function(e){return u.count(0,e)%t==0}):u:null}),u}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n(47),i=new(n(45).a)(r.a),o=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"e",(function(){return u}));var r=1e3,i=6e4,o=36e5,a=864e5,u=6048e5},function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return u}));var r=n(82);function i(t,e){return function(n){return t+n*e}}function o(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?u:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(r.a)(isNaN(e)?n:e)}}function u(t,e){var n=e-t;return n?i(t,n):Object(r.a)(isNaN(t)?e:t)}},function(t,e,n){"use strict";n.d(e,"g",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"k",(function(){return c})),n.d(e,"m",(function(){return s})),n.d(e,"i",(function(){return l})),n.d(e,"a",(function(){return f})),n.d(e,"e",(function(){return h})),n.d(e,"h",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"l",(function(){return b})),n.d(e,"n",(function(){return g})),n.d(e,"j",(function(){return v})),n.d(e,"b",(function(){return m})),n.d(e,"f",(function(){return y}));var r=n(10),i=n(13);function o(t){return Object(r.a)((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.e}))}var a=o(0),u=o(1),c=o(2),s=o(3),l=o(4),f=o(5),h=o(6),d=a.range,p=u.range,b=c.range,g=s.range,v=l.range,m=f.range,y=h.range},function(t,e,n){"use strict";n.d(e,"g",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"k",(function(){return c})),n.d(e,"m",(function(){return s})),n.d(e,"i",(function(){return l})),n.d(e,"a",(function(){return f})),n.d(e,"e",(function(){return h})),n.d(e,"h",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"l",(function(){return b})),n.d(e,"n",(function(){return g})),n.d(e,"j",(function(){return v})),n.d(e,"b",(function(){return m})),n.d(e,"f",(function(){return y}));var r=n(10),i=n(13);function o(t){return Object(r.a)((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/i.e}))}var a=o(0),u=o(1),c=o(2),s=o(3),l=o(4),f=o(5),h=o(6),d=a.range,p=u.range,b=c.range,g=s.range,v=l.range,m=f.range,y=h.range},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(2);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.thisArg))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"e",(function(){return _})),n.d(e,"h",(function(){return k})),n.d(e,"g",(function(){return S})),n.d(e,"b",(function(){return M})),n.d(e,"f",(function(){return A}));var r=n(30);function i(){}var o=.7,a=1/o,u="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),p=new RegExp("^rgba\\("+[s,s,s,c]+"\\)$"),b=new RegExp("^hsl\\("+[c,s,s]+"\\)$"),g=new RegExp("^hsla\\("+[c,s,s,c]+"\\)$"),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function m(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function _(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?w(e):3===n?new M(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=f.exec(t))?new M(e[1],e[2],e[3],1):(e=h.exec(t))?new M(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=b.exec(t))?O(e[1],e[2]/100,e[3]/100,1):(e=g.exec(t))?O(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?w(v[t]):"transparent"===t?new M(NaN,NaN,NaN,0):null}function w(t){return new M(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new M(t,e,n,r)}function k(t){return t instanceof i||(t=_(t)),t?new M((t=t.rgb()).r,t.g,t.b,t.opacity):new M}function S(t,e,n,r){return 1===arguments.length?k(t):new M(t,e,n,null==r?1:r)}function M(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E(){return"#"+C(this.r)+C(this.g)+C(this.b)}function T(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function C(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function O(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new P(t,e,n,r)}function j(t){if(t instanceof P)return new P(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=_(t)),!t)return new P;if(t instanceof P)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),u=NaN,c=a-o,s=(a+o)/2;return c?(u=e===a?(n-r)/c+6*(n<r):n===a?(r-e)/c+2:(e-n)/c+4,c/=s<.5?a+o:2-a-o,u*=60):c=s>0&&s<1?0:u,new P(u,c,s,t.opacity)}function A(t,e,n,r){return 1===arguments.length?j(t):new P(t,e,n,null==r?1:r)}function P(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function z(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.a)(i,_,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:m,formatHex:m,formatHsl:function(){return j(this).formatHsl()},formatRgb:y,toString:y}),Object(r.a)(M,S,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:T,toString:T})),Object(r.a)(P,A,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new P(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new P(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new M(z(t>=240?t-240:t+120,i,r),z(t,i,r),z(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(5),i=new r.a((function(t){return t.complete()}));function o(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(5),i=n(54),o=n(118);function a(t,e){return e?Object(o.a)(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(2).a),o=n(54),a=n(5);function u(t,e,n,r,u){if(void 0===u&&(u=new i(t,n,r)),!u.closed)return e instanceof a.a?e.subscribe(u):Object(o.a)(e)(u)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r.a})),n.d(e,"b",(function(){return i.a})),n.d(e,"c",(function(){return o.b})),n.d(e,"d",(function(){return a.a})),n.d(e,"g",(function(){return u.a})),n.d(e,"h",(function(){return c})),n.d(e,"m",(function(){return l})),n.d(e,"o",(function(){return f.a})),n.d(e,"p",(function(){return h.a})),n.d(e,"q",(function(){return d.a})),n.d(e,"u",(function(){return p.a})),n.d(e,"v",(function(){return b.a})),n.d(e,"w",(function(){return g.a})),n.d(e,"x",(function(){return g.b})),n.d(e,"y",(function(){return v.a})),n.d(e,"r",(function(){return m.a})),n.d(e,"s",(function(){return m.b})),n.d(e,"t",(function(){return m.c})),n.d(e,"k",(function(){return w})),n.d(e,"l",(function(){return x})),n.d(e,"n",(function(){return S})),n.d(e,"i",(function(){return E})),n.d(e,"j",(function(){return T})),n.d(e,"e",(function(){return C.b})),n.d(e,"f",(function(){return C.a})),n.d(e,"z",(function(){return O})),n.d(e,"A",(function(){return j}));var r=n(76),i=n(113),o=n(75),a=n(110),u=n(112),c=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}},s=n(14),l=function(t,e){var n=Object(s.c)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}},f=n(29),h=n(58),d=n(114),p=n(146),b=n(111),g=n(138),v=n(145),m=n(61),y=n(18);function _(t){return function(e,n){var r=t((e=Object(y.f)(e)).h,(n=Object(y.f)(n)).h),i=Object(s.a)(e.s,n.s),o=Object(s.a)(e.l,n.l),a=Object(s.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var w=_(s.c),x=_(s.a),k=n(89);function S(t,e){var n=Object(s.a)((t=Object(k.a)(t)).l,(e=Object(k.a)(e)).l),r=Object(s.a)(t.a,e.a),i=Object(s.a)(t.b,e.b),o=Object(s.a)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=o(e),t+""}}function M(t){return function(e,n){var r=t((e=Object(k.c)(e)).h,(n=Object(k.c)(n)).h),i=Object(s.a)(e.c,n.c),o=Object(s.a)(e.l,n.l),a=Object(s.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var E=M(s.c),T=M(s.a),C=n(133);function O(t,e){for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[e](t-e)}}var j=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(2).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(2);function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.thisArg))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return u}));var r,i=n(20),o=n(57),a=n(70);r||(r={});var u=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,"b",(function(){return r})),e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";var r=n(18);n.d(e,"a",(function(){return r.e})),n.d(e,"h",(function(){return r.g})),n.d(e,"e",(function(){return r.f}));var i=n(89);n.d(e,"f",(function(){return i.a})),n.d(e,"d",(function(){return i.c})),n.d(e,"g",(function(){return i.d})),n.d(e,"c",(function(){return i.b}));var o=n(124);n.d(e,"b",(function(){return o.a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},,function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";var r=n(143);n.d(e,"a",(function(){return r.a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return u})),n.d(e,"a",(function(){return s}));var r,i,o,a,u,c=n(115);function s(t){return r=Object(c.a)(t),i=r.format,o=r.parse,a=r.utcFormat,u=r.utcParse,r}s({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return l}));var r=n(0),i=n(17),o=n(21),a=n(3);function u(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(u((function(n,r){return Object(o.a)(t(n,r)).pipe(Object(i.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new c(t,n))})}var c=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.concurrent))},t}(),s=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new a.a(this),n=this.destination;n.add(e);var r=Object(a.c)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(a.b),l=u},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(5),i=n(120),o=n(80);function a(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(93),o=function(t){function e(n,r){void 0===r&&(r=i.a.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.a(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),i=n(9),o=n(8),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r.a(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.a.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.a(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.a(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(8).a))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(12);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},function(t,e,n){"use strict";var r=n(53);e.a=function(t){return(t=Object(r.b)(Math.abs(t)))?t[1]:NaN}},function(t,e,n){"use strict";n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return g})),n.d(e,"d",(function(){return v}));var r,i,o=0,a=0,u=0,c=0,s=0,l=0,f="object"==typeof performance&&performance.now?performance:Date,h="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return s||(h(p),s=f.now()+l)}function p(){s=0}function b(){this._call=this._time=this._next=null}function g(t,e,n){var r=new b;return r.restart(t,e,n),r}function v(){d(),++o;for(var t,e=r;e;)(t=s-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function m(){s=(c=f.now())+l,o=a=0;try{v()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,_(o)}(),s=0}}function y(){var t=f.now(),e=t-c;e>1e3&&(l-=e,c=t)}function _(t){o||(a&&(a=clearTimeout(a)),t-s>24?(t<1/0&&(a=setTimeout(m,t-f.now()-l)),u&&(u=clearInterval(u))):(u||(c=f.now(),u=setInterval(y,1e3)),o=1,h(m)))}b.prototype=g.prototype={constructor:b,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(57),i=n(106);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(i.a)()(r.a.apply(void 0,t))}},function(t,e,n){"use strict";function r(){}function i(t,e){var n=new r;if(t instanceof r)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,o=-1,a=t.length;if(null==e)for(;++o<a;)n.set(o,t[o]);else for(;++o<a;)n.set(e(i=t[o],o,t),i)}else if(t)for(var u in t)n.set(u,t[u]);return n}n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return p})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return b})),n.d(e,"f",(function(){return g})),n.d(e,"a",(function(){return v})),r.prototype=i.prototype={constructor:r,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,e){return this["$"+t]=e,this},remove:function(t){var e="$"+t;return e in this&&delete this[e]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)"$"===e[0]&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)"$"===e[0]&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)"$"===e[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var e in this)"$"===e[0]&&t(this[e],e.slice(1),this)}};var o=i,a=function(){var t,e,n,r=[],i=[];function a(n,i,u,c){if(i>=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var s,l,f,h=-1,d=n.length,p=r[i++],b=o(),g=u();++h<d;)(f=b.get(s=p(l=n[h])+""))?f.push(l):b.set(s,[l]);return b.each((function(t,e){c(g,e,a(t,i,u,c))})),g}return n={object:function(t){return a(t,0,u,c)},map:function(t){return a(t,0,s,l)},entries:function(t){return function t(n,o){if(++o>r.length)return n;var a,u=i[o-1];return null!=e&&o>=r.length?a=n.entries():(a=[],n.each((function(e,n){a.push({key:n,values:t(e,o)})}))),null!=u?a.sort((function(t,e){return u(t.key,e.key)})):a}(a(t,0,s,l),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}};function u(){return{}}function c(t,e,n){t[e]=n}function s(){return o()}function l(t,e,n){t.set(e,n)}function f(){}var h=o.prototype;function d(t,e){var n=new f;if(t instanceof f)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}f.prototype=d.prototype={constructor:f,has:h.has,add:function(t){return this["$"+(t+="")]=t,this},remove:h.remove,clear:h.clear,values:h.keys,size:h.size,empty:h.empty,each:h.each};var p=d,b=function(t){var e=[];for(var n in t)e.push(n);return e},g=function(t){var e=[];for(var n in t)e.push(t[n]);return e},v=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e}},function(t,e,n){"use strict";function r(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,"b",(function(){return r})),e.a=function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(120),i=n(55),o=n(32),a=n(36),u=n(121),c=n(122),s=n(78),l=function(t){if(t&&"function"==typeof t[a.a])return l=t,function(t){var e=l[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(u.a)(t))return Object(r.a)(t);if(Object(c.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,l,f=Object(s.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+f+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r.b})),n.d(e,"d",(function(){return r.c})),n.d(e,"e",(function(){return r.d})),n.d(e,"c",(function(){return i.a})),n.d(e,"a",(function(){return o}));var r=n(50),i=n(144),o=function(t,e,n){var i=new r.a,o=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?Object(r.b)():+n,i.restart((function r(a){a+=o,i.restart(r,o+=e,n),t(a)}),e,n),i)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(19),i=n(44),o=n(80);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(o.a)(t,n)):Object(i.a)(t)}},function(t,e,n){"use strict";function r(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,"b",(function(){return r})),e.a=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(10),i=Object(r.a)((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null},e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(10),i=Object(r.a)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null},e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return s}));var r=n(18),i=n(75),o=n(110),a=n(14);function u(t){return function(e){var n,i,o=e.length,a=new Array(o),u=new Array(o),c=new Array(o);for(n=0;n<o;++n)i=Object(r.g)(e[n]),a[n]=i.r||0,u[n]=i.g||0,c[n]=i.b||0;return a=t(a),u=t(u),c=t(c),i.opacity=1,function(t){return i.r=a(t),i.g=u(t),i.b=c(t),i+""}}}e.a=function t(e){var n=Object(a.b)(e);function i(t,e){var i=n((t=Object(r.g)(t)).r,(e=Object(r.g)(e)).r),o=n(t.g,e.g),u=n(t.b,e.b),c=Object(a.a)(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=o(e),t.b=u(e),t.opacity=c(e),t+""}}return i.gamma=t,i}(1);var c=u(i.b),s=u(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(25);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return 0===t.length?r.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l}));var r=n(0),i=1,o=Promise.resolve(),a={};function u(t){return t in a&&(delete a[t],!0)}var c=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.a(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=function(t){var e=i++;return a[e]=!0,o.then((function(){return u(e)&&t()})),e}(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(function(t){u(t)}(n),e.scheduled=void 0)},e}(n(47).a),s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(n(45).a))(c),l=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(2);function o(){return function(t){return t.lift(new a(t))}}var a=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new u(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.a(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(0),i=n(9),o=n(92),a=n(8),u=n(104),c=n(37),s=n(119),l=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.a(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new f(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new c.a;if(this.isStopped||this.hasError?e=a.a.EMPTY:(this.observers.push(t),e=new s.a(this,t)),i&&t.add(t=new u.a(t,i)),n)for(var l=0;l<o&&!t.closed;l++)t.next(r[l]);else for(l=0;l<o&&!t.closed;l++)t.next(r[l].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.a).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.a),f=function(t,e){this.time=t,this.value=e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5);function i(t,e){return e?new r.a((function(n){return e.schedule(o,0,{error:t,subscriber:n})})):new r.a((function(e){return e.error(t)}))}function o(t){var e=t.error;t.subscriber.error(e)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return f}));var r=n(0),i=n(19),o=n(12),a=n(26),u=n(22),c=n(44),s={};function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(c.a)(t,r).lift(new f(n))}var f=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.a(e,t),e.prototype._next=function(t){this.values.push(s),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(u.a)(this,r,void 0,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var r=this.values,i=r[n],o=this.toRespond?i===s?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(43),i=n(25);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.b)(i.a,t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(5),i=n(21),o=n(20);function a(t){return new r.a((function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(e)}))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l}));var r=n(0),i=n(44),o=n(12),a=n(2),u=n(32),c=n(3);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),Object(i.a)(t,void 0).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.resultSelector))},t}(),f=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:void 0,i}return r.a(e,t),e.prototype._next=function(t){var e=this.iterators;Object(o.a)(t)?e.push(new d(t)):"function"==typeof t[u.a]?e.push(new h(t[u.a]())):e.push(new p(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++)if("function"==typeof(a=t[r]).hasValue&&!a.hasValue())return;var i=!1,o=[];for(r=0;r<e;r++){var a,u=(a=t[r]).next();if(a.hasCompleted()&&(i=!0),u.done)return void n.complete();o.push(u.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.a),h=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),d=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[u.a]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),p=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.a(e,t),e.prototype[u.a]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return Object(c.c)(this.observable,new c.a(this))},e}(c.b)},function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}n.d(e,"a",(function(){return r})),e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],u=i>0?t[i-1]:2*o-a,c=i<e-1?t[i+2]:2*a-o;return r((n-i/e)*e,u,o,a,c)}}},function(t,e,n){"use strict";var r=n(18),i=n(61),o=n(113),a=n(112),u=n(29),c=n(114),s=n(111),l=n(82),f=n(58);e.a=function(t,e){var n,h=typeof e;return null==e||"boolean"===h?Object(l.a)(e):("number"===h?u.a:"string"===h?(n=Object(r.e)(e))?(e=n,i.a):s.a:e instanceof r.e?i.a:e instanceof Date?a.a:Object(f.b)(e)?f.a:Array.isArray(e)?o.b:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.a:u.a)(t,e)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(5),i=n(8);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(23),i=n(55),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";(function(t){var n,r={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.cos(t*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return.5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1}},Back:{In:function(t){var e=1.70158;return t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-r.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*r.Bounce.In(2*t):.5*r.Bounce.Out(2*t-1)+.5}}},i="undefined"==typeof self&&void 0!==t&&t.hrtime?function(){var e=t.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof self&&void 0!==self.performance&&void 0!==self.performance.now?self.performance.now.bind(self.performance):void 0!==Date.now?Date.now:function(){return(new Date).getTime()},o=function(){function t(){this._tweens={},this._tweensAddedDuringUpdate={}}return t.prototype.getAll=function(){var t=this;return Object.keys(this._tweens).map((function(e){return t._tweens[e]}))},t.prototype.removeAll=function(){this._tweens={}},t.prototype.add=function(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t},t.prototype.remove=function(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]},t.prototype.update=function(t,e){void 0===t&&(t=i()),void 0===e&&(e=!1);var n=Object.keys(this._tweens);if(0===n.length)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r<n.length;r++){var o=this._tweens[n[r]],a=!e;o&&!1===o.update(t,a)&&!e&&delete this._tweens[n[r]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},t}(),a={Linear:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),o=a.Utils.Linear;return e<0?o(t[0],t[1],r):e>1?o(t[n],t[n-1],n-r):o(t[i],t[i+1>n?n:i+1],r-i)},Bezier:function(t,e){for(var n=0,r=t.length-1,i=Math.pow,o=a.Utils.Bernstein,u=0;u<=r;u++)n+=i(1-e,r-u)*i(e,u)*t[u]*o(r,u);return n},CatmullRom:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),o=a.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(i=Math.floor(r=n*(1+e))),o(t[(i-1+n)%n],t[i],t[(i+1)%n],t[(i+2)%n],r-i)):e<0?t[0]-(o(t[0],t[0],t[1],t[1],-r)-t[0]):e>1?t[n]-(o(t[n],t[n],t[n-1],t[n-1],r-n)-t[n]):o(t[i?i-1:0],t[i],t[n<i+1?n:i+1],t[n<i+2?n:i+2],r-i)},Utils:{Linear:function(t,e,n){return(e-t)*n+t},Bernstein:function(t,e){var n=a.Utils.Factorial;return n(t)/n(e)/n(t-e)},Factorial:(n=[1],function(t){var e=1;if(n[t])return n[t];for(var r=t;r>1;r--)e*=r;return n[t]=e,e}),CatmullRom:function(t,e,n,r,i){var o=.5*(n-t),a=.5*(r-e),u=i*i;return(2*e-2*n+o+a)*(i*u)+(-3*e+3*n-2*o-a)*u+o*i+e}}},u=function(){function t(){}return t.nextId=function(){return t._nextId++},t._nextId=0,t}(),c=new o,s=function(){function t(t,e){void 0===e&&(e=c),this._object=t,this._group=e,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=r.Linear.None,this._interpolationFunction=a.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=u.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return t.prototype.getId=function(){return this._id},t.prototype.isPlaying=function(){return this._isPlaying},t.prototype.isPaused=function(){return this._isPaused},t.prototype.to=function(t,e){return this._valuesEnd=Object.create(t),void 0!==e&&(this._duration=e),this},t.prototype.duration=function(t){return this._duration=t,this},t.prototype.start=function(t){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var e in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e];return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=void 0!==t?"string"==typeof t?i()+parseFloat(t):t:i(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},t.prototype._setupProperties=function(t,e,n,r){for(var i in n){var o=t[i],a=Array.isArray(o),u=a?"array":typeof o,c=!a&&Array.isArray(n[i]);if("undefined"!==u&&"function"!==u){if(c){var s=n[i];if(0===s.length)continue;s=s.map(this._handleRelativeValue.bind(this,o)),n[i]=[o].concat(s)}if("object"!==u&&!a||!o||c)void 0===e[i]&&(e[i]=o),a||(e[i]*=1),r[i]=c?n[i].slice().reverse():e[i]||0;else{for(var l in e[i]=a?[]:{},o)e[i][l]=o[l];r[i]=a?[]:{},this._setupProperties(o,e[i],n[i],r[i])}}}},t.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},t.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},t.prototype.pause=function(t){return void 0===t&&(t=i()),this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=t,this._group&&this._group.remove(this)),this},t.prototype.resume=function(t){return void 0===t&&(t=i()),this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this):this},t.prototype.stopChainedTweens=function(){for(var t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this},t.prototype.group=function(t){return this._group=t,this},t.prototype.delay=function(t){return this._delayTime=t,this},t.prototype.repeat=function(t){return this._initialRepeat=t,this._repeat=t,this},t.prototype.repeatDelay=function(t){return this._repeatDelayTime=t,this},t.prototype.yoyo=function(t){return this._yoyo=t,this},t.prototype.easing=function(t){return this._easingFunction=t,this},t.prototype.interpolation=function(t){return this._interpolationFunction=t,this},t.prototype.chain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._chainedTweens=t,this},t.prototype.onStart=function(t){return this._onStartCallback=t,this},t.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},t.prototype.onRepeat=function(t){return this._onRepeatCallback=t,this},t.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},t.prototype.onStop=function(t){return this._onStopCallback=t,this},t.prototype.update=function(t,e){if(void 0===t&&(t=i()),void 0===e&&(e=!0),this._isPaused)return!0;var n,r,o=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(t>o)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;!1===this._onStartCallbackFired&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),r=(t-this._startTime)/this._duration,r=0===this._duration||r>1?1:r;var a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),1===r){if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!=typeof this._valuesEnd[n]||(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var u=0,c=this._chainedTweens.length;u<c;u++)this._chainedTweens[u].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},t.prototype._updateProperties=function(t,e,n,r){for(var i in n)if(void 0!==e[i]){var o=e[i]||0,a=n[i],u=Array.isArray(t[i]),c=Array.isArray(a);!u&&c?t[i]=this._interpolationFunction(a,r):"object"==typeof a&&a?this._updateProperties(t[i],o,a,r):"number"==typeof(a=this._handleRelativeValue(o,a))&&(t[i]=o+(a-o)*r)}},t.prototype._handleRelativeValue=function(t,e){return"string"!=typeof e?e:"+"===e.charAt(0)||"-"===e.charAt(0)?t+parseFloat(e):parseFloat(e)},t.prototype._swapEndStartRepeatValues=function(t){var e=this._valuesStartRepeat[t],n=this._valuesEnd[t];this._valuesStartRepeat[t]="string"==typeof n?this._valuesStartRepeat[t]+parseFloat(n):this._valuesEnd[t],this._valuesEnd[t]=e},t}(),l=u.nextId,f=c,h=f.getAll.bind(f),d=f.removeAll.bind(f),p=f.add.bind(f),b=f.remove.bind(f),g=f.update.bind(f),v={Easing:r,Group:o,Interpolation:a,now:i,Sequence:u,nextId:l,Tween:s,VERSION:"18.6.4",getAll:h,removeAll:d,add:p,remove:b,update:g};e.a=v}).call(this,n(184))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValidNumber=function(t){return"number"==typeof t&&t==t},e.noop=function(){},e.omit=function(t,e){var n=e.reduce((function(t,e){return t[e]=!0,t}),{});return Object.keys(t).reduce((function(e,r){return n[r]||(e[r]=t[r]),e}),{})}},function(t,e,n){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(10),i=n(13),o=Object(r.a)((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*i.d)}),(function(t,e){return(e-t)/i.d}),(function(t){return t.getUTCSeconds()}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(10),i=Object(r.a)((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Object(r.a)((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):i:null},e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return v})),n.d(e,"c",(function(){return m}));var r=n(30),i=n(18),o=n(83),a=6/29,u=3*a*a;function c(t){if(t instanceof f)return new f(t.l,t.a,t.b,t.opacity);if(t instanceof y)return _(t);t instanceof i.b||(t=Object(i.h)(t));var e,n,r=b(t.r),o=b(t.g),a=b(t.b),u=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?e=n=u:(e=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.82521)),new f(116*u-16,500*(e-u),200*(u-n),t.opacity)}function s(t,e){return new f(t,0,0,null==e?1:e)}function l(t,e,n,r){return 1===arguments.length?c(t):new f(t,e,n,null==r?1:r)}function f(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function h(t){return t>.008856451679035631?Math.pow(t,1/3):t/u+4/29}function d(t){return t>a?t*t*t:u*(t-4/29)}function p(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function b(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function g(t){if(t instanceof y)return new y(t.h,t.c,t.l,t.opacity);if(t instanceof f||(t=c(t)),0===t.a&&0===t.b)return new y(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*o.b;return new y(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function v(t,e,n,r){return 1===arguments.length?g(t):new y(n,e,t,null==r?1:r)}function m(t,e,n,r){return 1===arguments.length?g(t):new y(t,e,n,null==r?1:r)}function y(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function _(t){if(isNaN(t.h))return new f(t.l,0,0,t.opacity);var e=t.h*o.a;return new f(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Object(r.a)(f,l,Object(r.b)(i.a,{brighter:function(t){return new f(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new f(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=.96422*d(e),t=1*d(t),n=.82521*d(n),new i.b(p(3.1338561*e-1.6168667*t-.4906146*n),p(-.9787684*e+1.9161415*t+.033454*n),p(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Object(r.a)(y,m,Object(r.b)(i.a,{brighter:function(t){return new y(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new y(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return _(this).rgb()}}))},function(t,e,n){"use strict";var r=n(151);n.d(e,"a",(function(){return r.a}))},function(t,e,n){"use strict";var r=n(10);n.d(e,"g",(function(){return r.a}));var i=n(88);n.d(e,"h",(function(){return i.a})),n.d(e,"i",(function(){return i.b})),n.d(e,"L",(function(){return i.a})),n.d(e,"M",(function(){return i.b}));var o=n(87);n.d(e,"r",(function(){return o.a})),n.d(e,"s",(function(){return o.b})),n.d(e,"V",(function(){return o.a})),n.d(e,"W",(function(){return o.b}));var a=n(129);n.d(e,"j",(function(){return a.a})),n.d(e,"k",(function(){return a.b}));var u=n(128);n.d(e,"e",(function(){return u.a})),n.d(e,"f",(function(){return u.b}));var c=n(94);n.d(e,"a",(function(){return c.b})),n.d(e,"b",(function(){return c.a}));var s=n(15);n.d(e,"B",(function(){return s.g})),n.d(e,"C",(function(){return s.h})),n.d(e,"t",(function(){return s.g})),n.d(e,"u",(function(){return s.h})),n.d(e,"l",(function(){return s.c})),n.d(e,"m",(function(){return s.d})),n.d(e,"x",(function(){return s.k})),n.d(e,"y",(function(){return s.l})),n.d(e,"z",(function(){return s.m})),n.d(e,"A",(function(){return s.n})),n.d(e,"v",(function(){return s.i})),n.d(e,"w",(function(){return s.j})),n.d(e,"c",(function(){return s.a})),n.d(e,"d",(function(){return s.b})),n.d(e,"p",(function(){return s.e})),n.d(e,"q",(function(){return s.f}));var l=n(127);n.d(e,"n",(function(){return l.a})),n.d(e,"o",(function(){return l.b}));var f=n(59);n.d(e,"D",(function(){return f.a})),n.d(e,"E",(function(){return f.b}));var h=n(132);n.d(e,"N",(function(){return h.a})),n.d(e,"O",(function(){return h.b}));var d=n(131);n.d(e,"J",(function(){return d.a})),n.d(e,"K",(function(){return d.b}));var p=n(95);n.d(e,"F",(function(){return p.a})),n.d(e,"G",(function(){return p.b}));var b=n(16);n.d(e,"fb",(function(){return b.g})),n.d(e,"gb",(function(){return b.h})),n.d(e,"X",(function(){return b.g})),n.d(e,"Y",(function(){return b.h})),n.d(e,"P",(function(){return b.c})),n.d(e,"Q",(function(){return b.d})),n.d(e,"bb",(function(){return b.k})),n.d(e,"cb",(function(){return b.l})),n.d(e,"db",(function(){return b.m})),n.d(e,"eb",(function(){return b.n})),n.d(e,"Z",(function(){return b.i})),n.d(e,"ab",(function(){return b.j})),n.d(e,"H",(function(){return b.a})),n.d(e,"I",(function(){return b.b})),n.d(e,"T",(function(){return b.e})),n.d(e,"U",(function(){return b.f}));var g=n(130);n.d(e,"R",(function(){return g.a})),n.d(e,"S",(function(){return g.b}));var v=n(60);n.d(e,"hb",(function(){return v.a})),n.d(e,"ib",(function(){return v.b}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.a(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(47).a),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e}(n(45).a))(i),a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(10),i=n(13),o=Object(r.a)((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.a}),(function(t){return t.getDate()-1}));e.b=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(10),i=n(13),o=Object(r.a)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/i.a}),(function(t){return t.getUTCDate()-1}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return h}));var r=n(0),i=n(2),o=n(8),a=n(5),u=n(9);function c(t,e,n,r){return function(i){return i.lift(new s(t,e,n,r))}}var s=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),l=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.keySelector=n,a.elementSelector=r,a.durationSelector=i,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new u.a,n.set(e,i);var o=new h(e,i,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new h(e,i))}catch(t){return void this.error(t)}this.add(a.subscribe(new f(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.a),f=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.a(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.a),h=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.a(e,t),e.prototype._subscribe=function(t){var e=new o.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new d(n)),e.add(r.subscribe(t)),e},e}(a.a),d=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.a(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.ACTIVATE="activate",t.MOVE="move",t.DEACTIVATE="deactivate"}(e.BarActionType||(e.BarActionType={}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return u}));var r,i,o,a=n(117);function u(t){return r=Object(a.a)(t),i=r.format,o=r.formatPrefix,r}u({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(t,e,n){"use strict";var r=n(98);n.d(e,"c",(function(){return r.a})),n.d(e,"b",(function(){return r.b})),n.d(e,"e",(function(){return r.c}));var i=n(117);n.d(e,"d",(function(){return i.a}));var o=n(77);n.d(e,"f",(function(){return o.b})),n.d(e,"a",(function(){return o.a}));var a=n(149);n.d(e,"g",(function(){return a.a}));var u=n(147);n.d(e,"h",(function(){return u.a}));var c=n(148);n.d(e,"i",(function(){return c.a}))},function(t,e,n){"use strict";function r(t){return+t}function i(t){return t*t}function o(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}n.d(e,"y",(function(){return r})),n.d(e,"D",(function(){return a})),n.d(e,"E",(function(){return i})),n.d(e,"G",(function(){return o})),n.d(e,"F",(function(){return a})),n.d(e,"m",(function(){return u.b})),n.d(e,"n",(function(){return u.a})),n.d(e,"p",(function(){return u.c})),n.d(e,"o",(function(){return u.b})),n.d(e,"z",(function(){return l})),n.d(e,"A",(function(){return c})),n.d(e,"C",(function(){return s})),n.d(e,"B",(function(){return l})),n.d(e,"H",(function(){return b})),n.d(e,"I",(function(){return d})),n.d(e,"K",(function(){return p})),n.d(e,"J",(function(){return b})),n.d(e,"u",(function(){return y})),n.d(e,"v",(function(){return v})),n.d(e,"x",(function(){return m})),n.d(e,"w",(function(){return y})),n.d(e,"i",(function(){return x})),n.d(e,"j",(function(){return _})),n.d(e,"l",(function(){return w})),n.d(e,"k",(function(){return x})),n.d(e,"e",(function(){return M})),n.d(e,"f",(function(){return S})),n.d(e,"h",(function(){return M})),n.d(e,"g",(function(){return E})),n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return T})),n.d(e,"d",(function(){return C})),n.d(e,"c",(function(){return O})),n.d(e,"q",(function(){return P})),n.d(e,"r",(function(){return A})),n.d(e,"t",(function(){return P})),n.d(e,"s",(function(){return z}));var u=n(86),c=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),s=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),l=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),f=Math.PI,h=f/2;function d(t){return 1==+t?1:1-Math.cos(t*h)}function p(t){return Math.sin(t*h)}function b(t){return(1-Math.cos(f*t))/2}function g(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function v(t){return g(1-+t)}function m(t){return 1-g(t)}function y(t){return((t*=2)<=1?g(1-t):2-g(t-1))/2}function _(t){return 1-Math.sqrt(1-t*t)}function w(t){return Math.sqrt(1- --t*t)}function x(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var k=7.5625;function S(t){return 1-M(1-t)}function M(t){return(t=+t)<4/11?k*t*t:t<8/11?k*(t-=6/11)*t+3/4:t<10/11?k*(t-=9/11)*t+15/16:k*(t-=21/22)*t+63/64}function E(t){return((t*=2)<=1?1-M(1-t):M(t-1)+1)/2}var T=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),C=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),O=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),j=2*Math.PI,A=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=j);function i(t){return e*g(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*j)},i.period=function(n){return t(e,n)},i}(1,.3),P=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=j);function i(t){return 1-e*g(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*j)},i.period=function(n){return t(e,n)},i}(1,.3),z=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=j);function i(t){return((t=2*t-1)<0?e*g(-t)*Math.sin((r-t)/n):2-e*g(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*j)},i.period=function(n){return t(e,n)},i}(1,.3)},function(t,e,n){"use strict";n.d(e,"d",(function(){return r.a})),n.d(e,"c",(function(){return r.b})),n.d(e,"f",(function(){return r.c})),n.d(e,"g",(function(){return r.d})),n.d(e,"h",(function(){return r.e})),n.d(e,"e",(function(){return i.a})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n(41),i=n(115),o=Date.prototype.toISOString?function(t){return t.toISOString()}:Object(r.d)("%Y-%m-%dT%H:%M:%S.%LZ"),a=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:Object(r.e)("%Y-%m-%dT%H:%M:%S.%LZ")},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l}));var r=n(0),i=n(9),o=n(5),a=n(2),u=n(8),c=n(68),s=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.a(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new u.a).add(this.source.subscribe(new f(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.a.EMPTY)),t},e.prototype.refCount=function(){return Object(c.a)()(this)},e}(o.a),l=function(){var t=s.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.a(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);a.a},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),i=n(9),o=n(37),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.a(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));var r=n(0),i=n(2),o=n(28);function a(t,e){return void 0===e&&(e=0),function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler,this.delay))},t}(),c=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.a(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new s(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},e}(i.a),s=function(t,e){this.notification=t,this.destination=e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(72);function i(){return Object(r.a)(1)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(5),i=n(19),o=n(72),a=n(44);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,u=null,c=t[t.length-1];return Object(i.a)(c)?(u=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===u&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(a.a)(t,u))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(0),i=n(12),o=n(44),a=n(26),u=n(22);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!Object(i.a)(t[0]))return t[0];t=t[0]}return Object(o.a)(t,void 0).lift(new s)}var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.a(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=Object(u.a)(this,r,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(a.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(5),i=n(11),o=n(48),a=n(19);function u(t,e,n){void 0===t&&(t=0);var u=-1;return Object(o.a)(e)?u=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=i.a),new r.a((function(e){var r=Object(o.a)(t)?t:+t-n.now();return n.schedule(c,r,{index:0,period:u,subscriber:e})}))}function c(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},function(t,e,n){"use strict";var r=n(75);e.a=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),o=t[(i+e-1)%e],a=t[i%e],u=t[(i+1)%e],c=t[(i+2)%e];return Object(r.a)((n-i/e)*e,o,a,u,c)}}},function(t,e,n){"use strict";var r=n(29),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");e.a=function(t,e){var n,a,u,c=i.lastIndex=o.lastIndex=0,s=-1,l=[],f=[];for(t+="",e+="";(n=i.exec(t))&&(a=o.exec(e));)(u=a.index)>c&&(u=e.slice(c,u),l[s]?l[s]+=u:l[++s]=u),(n=n[0])===(a=a[0])?l[s]?l[s]+=a:l[++s]=a:(l[++s]=null,f.push({i:s,x:Object(r.a)(n,a)})),c=o.lastIndex;return c<e.length&&(u=e.slice(c),l[s]?l[s]+=u:l[++s]=u),l.length<2?f[0]?function(t){return function(e){return t(e)+""}}(f[0].x):function(t){return function(){return t}}(e):(e=f.length,function(t){for(var n,r=0;r<e;++r)l[(n=f[r]).i]=n.x(t);return l.join("")})}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(76),i=n(58);function o(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),u=new Array(i);for(n=0;n<o;++n)a[n]=Object(r.a)(t[n],e[n]);for(;n<i;++n)u[n]=e[n];return function(t){for(n=0;n<o;++n)u[n]=a[n](t);return u}}e.a=function(t,e){return(Object(i.b)(e)?i.a:o)(t,e)}},function(t,e,n){"use strict";var r=n(76);e.a=function(t,e){var n,i={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Object(r.a)(t[n],e[n]):o[n]=e[n];return function(t){for(n in i)o[n]=i[n](t);return o}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(16),i=n(95),o=n(15),a=n(94),u=n(59),c=n(60);function s(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function l(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function f(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function h(t){var e=t.dateTime,n=t.date,u=t.time,c=t.periods,h=t.days,p=t.shortDays,b=t.months,g=t.shortMonths,v=y(c),m=_(c),Z=y(h),mt=_(h),jt=y(p),At=_(p),Pt=y(b),zt=_(b),Nt=y(g),It=_(g),Rt={a:function(t){return p[t.getDay()]},A:function(t){return h[t.getDay()]},b:function(t){return g[t.getMonth()]},B:function(t){return b[t.getMonth()]},c:null,d:U,e:U,f:G,g:rt,G:ot,H:B,I:V,j:H,L:W,m:$,M:Y,p:function(t){return c[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ct,s:Ot,S:X,u:K,U:Q,V:J,w:tt,W:et,x:null,X:null,y:nt,Y:it,Z:at,"%":Tt},Dt={a:function(t){return p[t.getUTCDay()]},A:function(t){return h[t.getUTCDay()]},b:function(t){return g[t.getUTCMonth()]},B:function(t){return b[t.getUTCMonth()]},c:null,d:ut,e:ut,f:ht,g:kt,G:Mt,H:ct,I:st,j:lt,L:ft,m:dt,M:pt,p:function(t){return c[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ct,s:Ot,S:bt,u:gt,U:vt,V:yt,w:_t,W:wt,x:null,X:null,y:xt,Y:St,Z:Et,"%":Tt},Lt={a:function(t,e,n){var r=jt.exec(e.slice(n));return r?(t.w=At[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=Z.exec(e.slice(n));return r?(t.w=mt[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=Nt.exec(e.slice(n));return r?(t.m=It[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=Pt.exec(e.slice(n));return r?(t.m=zt[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return Ut(t,e,n,r)},d:A,e:A,f:D,g:T,G:E,H:z,I:z,j:P,L:R,m:j,M:N,p:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.p=m[r[0].toLowerCase()],n+r[0].length):-1},q:O,Q:q,s:F,S:I,u:x,U:k,V:S,w:w,W:M,x:function(t,e,r){return Ut(t,n,e,r)},X:function(t,e,n){return Ut(t,u,e,n)},y:T,Y:E,Z:C,"%":L};function qt(t,e){return function(n){var r,i,o,a=[],u=-1,c=0,s=t.length;for(n instanceof Date||(n=new Date(+n));++u<s;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(i=d[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function Ft(t,e){return function(n){var u,c,h=f(1900,void 0,1);if(Ut(h,t,n+="",0)!=n.length)return null;if("Q"in h)return new Date(h.Q);if("s"in h)return new Date(1e3*h.s+("L"in h?h.L:0));if(e&&!("Z"in h)&&(h.Z=0),"p"in h&&(h.H=h.H%12+12*h.p),void 0===h.m&&(h.m="q"in h?h.q:0),"V"in h){if(h.V<1||h.V>53)return null;"w"in h||(h.w=1),"Z"in h?(c=(u=l(f(h.y,0,1))).getUTCDay(),u=c>4||0===c?r.c.ceil(u):Object(r.c)(u),u=i.a.offset(u,7*(h.V-1)),h.y=u.getUTCFullYear(),h.m=u.getUTCMonth(),h.d=u.getUTCDate()+(h.w+6)%7):(c=(u=s(f(h.y,0,1))).getDay(),u=c>4||0===c?o.c.ceil(u):Object(o.c)(u),u=a.b.offset(u,7*(h.V-1)),h.y=u.getFullYear(),h.m=u.getMonth(),h.d=u.getDate()+(h.w+6)%7)}else("W"in h||"U"in h)&&("w"in h||(h.w="u"in h?h.u%7:"W"in h?1:0),c="Z"in h?l(f(h.y,0,1)).getUTCDay():s(f(h.y,0,1)).getDay(),h.m=0,h.d="W"in h?(h.w+6)%7+7*h.W-(c+5)%7:h.w+7*h.U-(c+6)%7);return"Z"in h?(h.H+=h.Z/100|0,h.M+=h.Z%100,l(h)):s(h)}}function Ut(t,e,n,r){for(var i,o,a=0,u=e.length,c=n.length;a<u;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=Lt[i in d?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Rt.x=qt(n,Rt),Rt.X=qt(u,Rt),Rt.c=qt(e,Rt),Dt.x=qt(n,Dt),Dt.X=qt(u,Dt),Dt.c=qt(e,Dt),{format:function(t){var e=qt(t+="",Rt);return e.toString=function(){return t},e},parse:function(t){var e=Ft(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=qt(t+="",Dt);return e.toString=function(){return t},e},utcParse:function(t){var e=Ft(t+="",!0);return e.toString=function(){return t},e}}}var d={"-":"",_:" ",0:"0"},p=/^\s*\d+/,b=/^%/,g=/[\\^$*+?|[\]().{}]/g;function v(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function m(t){return t.replace(g,"\\$&")}function y(t){return new RegExp("^(?:"+t.map(m).join("|")+")","i")}function _(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function w(t,e,n){var r=p.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function x(t,e,n){var r=p.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function k(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function S(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function M(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function E(t,e,n){var r=p.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function T(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function C(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function O(t,e,n){var r=p.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function j(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function A(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function P(t,e,n){var r=p.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function z(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function N(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function I(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function R(t,e,n){var r=p.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function D(t,e,n){var r=p.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function L(t,e,n){var r=b.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function q(t,e,n){var r=p.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function F(t,e,n){var r=p.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function U(t,e){return v(t.getDate(),e,2)}function B(t,e){return v(t.getHours(),e,2)}function V(t,e){return v(t.getHours()%12||12,e,2)}function H(t,e){return v(1+a.b.count(Object(u.a)(t),t),e,3)}function W(t,e){return v(t.getMilliseconds(),e,3)}function G(t,e){return W(t,e)+"000"}function $(t,e){return v(t.getMonth()+1,e,2)}function Y(t,e){return v(t.getMinutes(),e,2)}function X(t,e){return v(t.getSeconds(),e,2)}function K(t){var e=t.getDay();return 0===e?7:e}function Q(t,e){return v(o.g.count(Object(u.a)(t)-1,t),e,2)}function Z(t){var e=t.getDay();return e>=4||0===e?Object(o.i)(t):o.i.ceil(t)}function J(t,e){return t=Z(t),v(o.i.count(Object(u.a)(t),t)+(4===Object(u.a)(t).getDay()),e,2)}function tt(t){return t.getDay()}function et(t,e){return v(o.c.count(Object(u.a)(t)-1,t),e,2)}function nt(t,e){return v(t.getFullYear()%100,e,2)}function rt(t,e){return v((t=Z(t)).getFullYear()%100,e,2)}function it(t,e){return v(t.getFullYear()%1e4,e,4)}function ot(t,e){var n=t.getDay();return v((t=n>=4||0===n?Object(o.i)(t):o.i.ceil(t)).getFullYear()%1e4,e,4)}function at(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+v(e/60|0,"0",2)+v(e%60,"0",2)}function ut(t,e){return v(t.getUTCDate(),e,2)}function ct(t,e){return v(t.getUTCHours(),e,2)}function st(t,e){return v(t.getUTCHours()%12||12,e,2)}function lt(t,e){return v(1+i.a.count(Object(c.a)(t),t),e,3)}function ft(t,e){return v(t.getUTCMilliseconds(),e,3)}function ht(t,e){return ft(t,e)+"000"}function dt(t,e){return v(t.getUTCMonth()+1,e,2)}function pt(t,e){return v(t.getUTCMinutes(),e,2)}function bt(t,e){return v(t.getUTCSeconds(),e,2)}function gt(t){var e=t.getUTCDay();return 0===e?7:e}function vt(t,e){return v(r.g.count(Object(c.a)(t)-1,t),e,2)}function mt(t){var e=t.getUTCDay();return e>=4||0===e?Object(r.i)(t):r.i.ceil(t)}function yt(t,e){return t=mt(t),v(r.i.count(Object(c.a)(t),t)+(4===Object(c.a)(t).getUTCDay()),e,2)}function _t(t){return t.getUTCDay()}function wt(t,e){return v(r.c.count(Object(c.a)(t)-1,t),e,2)}function xt(t,e){return v(t.getUTCFullYear()%100,e,2)}function kt(t,e){return v((t=mt(t)).getUTCFullYear()%100,e,2)}function St(t,e){return v(t.getUTCFullYear()%1e4,e,4)}function Mt(t,e){var n=t.getUTCDay();return v((t=n>=4||0===n?Object(r.i)(t):r.i.ceil(t)).getUTCFullYear()%1e4,e,4)}function Et(){return"+0000"}function Tt(){return"%"}function Ct(t){return+t}function Ot(t){return Math.floor(+t/1e3)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"l",(function(){return p})),n.d(e,"g",(function(){return R})),n.d(e,"i",(function(){return I})),n.d(e,"j",(function(){return W})),n.d(e,"w",(function(){return X})),n.d(e,"k",(function(){return f})),n.d(e,"h",(function(){return l})),n.d(e,"m",(function(){return tt})),n.d(e,"v",(function(){return et})),n.d(e,"n",(function(){return nt})),n.d(e,"o",(function(){return rt})),n.d(e,"x",(function(){return it})),n.d(e,"y",(function(){return vt})),n.d(e,"z",(function(){return St})),n.d(e,"p",(function(){return Tt})),n.d(e,"q",(function(){return Ct})),n.d(e,"r",(function(){return jt})),n.d(e,"t",(function(){return At})),n.d(e,"u",(function(){return Ot})),n.d(e,"s",(function(){return Pt})),n.d(e,"b",(function(){return Nt})),n.d(e,"c",(function(){return It})),n.d(e,"d",(function(){return Dt})),n.d(e,"e",(function(){return Lt})),n.d(e,"f",(function(){return Rt})),n.d(e,"A",(function(){return z}));var r=n(6);function i(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function o(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}var a=n(52),u=Array.prototype,c=u.map,s=u.slice,l={name:"implicit"};function f(){var t=Object(a.c)(),e=[],n=[],r=l;function o(i){var o=i+"",a=t.get(o);if(!a){if(r!==l)return r;t.set(o,a=e.push(i))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=Object(a.c)();for(var r,i,u=-1,c=n.length;++u<c;)t.has(i=(r=n[u])+"")||t.set(i,e.push(r));return o},o.range=function(t){return arguments.length?(n=s.call(t),o):n.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return f(e,n).unknown(r)},i.apply(o,arguments),o}function h(){var t,e,n=f().unknown(void 0),o=n.domain,a=n.range,u=[0,1],c=!1,s=0,l=0,d=.5;function p(){var n=o().length,i=u[1]<u[0],f=u[i-0],h=u[1-i];t=(h-f)/Math.max(1,n-s+2*l),c&&(t=Math.floor(t)),f+=(h-f-t*(n-s))*d,e=t*(1-s),c&&(f=Math.round(f),e=Math.round(e));var p=Object(r.s)(n).map((function(e){return f+t*e}));return a(i?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(o(t),p()):o()},n.range=function(t){return arguments.length?(u=[+t[0],+t[1]],p()):u.slice()},n.rangeRound=function(t){return u=[+t[0],+t[1]],c=!0,p()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(c=!!t,p()):c},n.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),p()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),p()):s},n.paddingOuter=function(t){return arguments.length?(l=+t,p()):l},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),p()):d},n.copy=function(){return h(o(),u).round(c).paddingInner(s).paddingOuter(l).align(d)},i.apply(p(),arguments)}function d(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return d(e())},t}function p(){return d(h.apply(null,arguments).paddingInner(1))}var b=n(76),g=n(29),v=n(146),m=function(t){return+t},y=[0,1];function _(t){return t}function w(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function x(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function k(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=w(i,r),o=n(a,o)):(r=w(r,i),o=n(o,a)),function(t){return o(r(t))}}function S(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),a=new Array(i),u=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++u<i;)o[u]=w(t[u],t[u+1]),a[u]=n(e[u],e[u+1]);return function(e){var n=Object(r.b)(t,e,1,i)-1;return a[n](o[n](e))}}function M(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function E(){var t,e,n,r,i,o,a=y,u=y,l=b.a,f=_;function h(){return r=Math.min(a.length,u.length)>2?S:k,i=o=null,d}function d(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),u,l)))(t(f(e)))}return d.invert=function(n){return f(e((o||(o=r(u,a.map(t),g.a)))(n)))},d.domain=function(t){return arguments.length?(a=c.call(t,m),f===_||(f=x(a)),h()):a.slice()},d.range=function(t){return arguments.length?(u=s.call(t),h()):u.slice()},d.rangeRound=function(t){return u=s.call(t),l=v.a,h()},d.clamp=function(t){return arguments.length?(f=t?x(a):_,d):f!==_},d.interpolate=function(t){return arguments.length?(l=t,h()):l},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,h()}}function T(t,e){return E()(t,e)}var C=n(77),O=n(147),j=n(98),A=n(148),P=n(149),z=function(t,e,n,i){var o,a=Object(r.A)(t,e,n);switch((i=Object(C.b)(null==i?",f":i)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(o=Object(O.a)(a,u))||(i.precision=o),Object(j.c)(i,u);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Object(A.a)(a,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Object(P.a)(a))||(i.precision=o-2*("%"===i.type))}return Object(j.b)(i)};function N(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(r.B)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return z(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,o=e(),a=0,u=o.length-1,c=o[a],s=o[u];return s<c&&(i=c,c=s,s=i,i=a,a=u,u=i),(i=Object(r.z)(c,s,n))>0?(c=Math.floor(c/i)*i,s=Math.ceil(s/i)*i,i=Object(r.z)(c,s,n)):i<0&&(c=Math.ceil(c*i)/i,s=Math.floor(s*i)/i,i=Object(r.z)(c,s,n)),i>0?(o[a]=Math.floor(c/i)*i,o[u]=Math.ceil(s/i)*i,e(o)):i<0&&(o[a]=Math.ceil(c*i)/i,o[u]=Math.floor(s*i)/i,e(o)),t},t}function I(){var t=T(_,_);return t.copy=function(){return M(t,I())},i.apply(t,arguments),N(t)}function R(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=c.call(e,m),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return R(t).unknown(e)},t=arguments.length?c.call(t,m):[0,1],N(n)}var D=function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t};function L(t){return Math.log(t)}function q(t){return Math.exp(t)}function F(t){return-Math.log(-t)}function U(t){return-Math.exp(-t)}function B(t){return isFinite(t)?+("1e"+t):t<0?0:t}function V(t){return function(e){return-t(-e)}}function H(t){var e,n,i=t(L,q),o=i.domain,a=10;function u(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(a),n=function(t){return 10===t?B:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(a),o()[0]<0?(e=V(e),n=V(n),t(F,U)):t(L,q),i}return i.base=function(t){return arguments.length?(a=+t,u()):a},i.domain=function(t){return arguments.length?(o(t),u()):o()},i.ticks=function(t){var i,u=o(),c=u[0],s=u[u.length-1];(i=s<c)&&(d=c,c=s,s=d);var l,f,h,d=e(c),p=e(s),b=null==t?10:+t,g=[];if(!(a%1)&&p-d<b){if(d=Math.round(d)-1,p=Math.round(p)+1,c>0){for(;d<p;++d)for(f=1,l=n(d);f<a;++f)if(!((h=l*f)<c)){if(h>s)break;g.push(h)}}else for(;d<p;++d)for(f=a-1,l=n(d);f>=1;--f)if(!((h=l*f)<c)){if(h>s)break;g.push(h)}}else g=Object(r.B)(d,p,Math.min(p-d,b)).map(n);return i?g.reverse():g},i.tickFormat=function(t,r){if(null==r&&(r=10===a?".0e":","),"function"!=typeof r&&(r=Object(j.b)(r)),t===1/0)return r;null==t&&(t=10);var o=Math.max(1,a*t/i.ticks().length);return function(t){var i=t/n(Math.round(e(t)));return i*a<a-.5&&(i*=a),i<=o?r(t):""}},i.nice=function(){return o(D(o(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},i}function W(){var t=H(E()).domain([1,10]);return t.copy=function(){return M(t,W()).base(t.base())},i.apply(t,arguments),t}function G(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function $(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Y(t){var e=1,n=t(G(e),$(e));return n.constant=function(n){return arguments.length?t(G(e=+n),$(e)):e},N(n)}function X(){var t=Y(E());return t.copy=function(){return M(t,X()).constant(t.constant())},i.apply(t,arguments)}function K(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Q(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Z(t){return t<0?-t*t:t*t}function J(t){var e=t(_,_),n=1;function r(){return 1===n?t(_,_):.5===n?t(Q,Z):t(K(n),K(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},N(e)}function tt(){var t=J(E());return t.copy=function(){return M(t,tt()).exponent(t.exponent())},i.apply(t,arguments),t}function et(){return tt.apply(null,arguments).exponent(.5)}function nt(){var t,e=[],n=[],o=[];function a(){var t=0,i=Math.max(1,n.length);for(o=new Array(i-1);++t<i;)o[t-1]=Object(r.r)(e,t/i);return u}function u(e){return isNaN(e=+e)?t:n[Object(r.b)(o,e)]}return u.invertExtent=function(t){var r=n.indexOf(t);return r<0?[NaN,NaN]:[r>0?o[r-1]:e[0],r<o.length?o[r]:e[e.length-1]]},u.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,i=0,o=t.length;i<o;++i)null==(n=t[i])||isNaN(n=+n)||e.push(n);return e.sort(r.a),a()},u.range=function(t){return arguments.length?(n=s.call(t),a()):n.slice()},u.unknown=function(e){return arguments.length?(t=e,u):t},u.quantiles=function(){return o.slice()},u.copy=function(){return nt().domain(e).range(n).unknown(t)},i.apply(u,arguments)}function rt(){var t,e=0,n=1,o=1,a=[.5],u=[0,1];function c(e){return e<=e?u[Object(r.b)(a,e,0,o)]:t}function l(){var t=-1;for(a=new Array(o);++t<o;)a[t]=((t+1)*n-(t-o)*e)/(o+1);return c}return c.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],l()):[e,n]},c.range=function(t){return arguments.length?(o=(u=s.call(t)).length-1,l()):u.slice()},c.invertExtent=function(t){var r=u.indexOf(t);return r<0?[NaN,NaN]:r<1?[e,a[0]]:r>=o?[a[o-1],n]:[a[r-1],a[r]]},c.unknown=function(e){return arguments.length?(t=e,c):c},c.thresholds=function(){return a.slice()},c.copy=function(){return rt().domain([e,n]).range(u).unknown(t)},i.apply(N(c),arguments)}function it(){var t,e=[.5],n=[0,1],o=1;function a(i){return i<=i?n[Object(r.b)(e,i,0,o)]:t}return a.domain=function(t){return arguments.length?(e=s.call(t),o=Math.min(e.length,n.length-1),a):e.slice()},a.range=function(t){return arguments.length?(n=s.call(t),o=Math.min(e.length,n.length-1),a):n.slice()},a.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return it().domain(e).range(n).unknown(t)},i.apply(a,arguments)}var ot=n(59),at=n(127),ut=n(15),ct=n(94),st=n(128),lt=n(129),ft=n(87),ht=n(88),dt=n(41);function pt(t){return new Date(t)}function bt(t){return t instanceof Date?+t:+new Date(+t)}function gt(t,e,n,i,o,a,u,s,l){var f=T(_,_),h=f.invert,d=f.domain,p=l(".%L"),b=l(":%S"),g=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),y=l("%b %d"),w=l("%B"),x=l("%Y"),k=[[u,1,1e3],[u,5,5e3],[u,15,15e3],[u,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,864e5],[i,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function S(r){return(u(r)<r?p:a(r)<r?b:o(r)<r?g:i(r)<r?v:e(r)<r?n(r)<r?m:y:t(r)<r?w:x)(r)}function E(e,n,i,o){if(null==e&&(e=10),"number"==typeof e){var a=Math.abs(i-n)/e,u=Object(r.e)((function(t){return t[2]})).right(k,a);u===k.length?(o=Object(r.A)(n/31536e6,i/31536e6,e),e=t):u?(o=(u=k[a/k[u-1][2]<k[u][2]/a?u-1:u])[1],e=u[0]):(o=Math.max(Object(r.A)(n,i,e),1),e=s)}return null==o?e:e.every(o)}return f.invert=function(t){return new Date(h(t))},f.domain=function(t){return arguments.length?d(c.call(t,bt)):d().map(pt)},f.ticks=function(t,e){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=E(t,i,o,e))?n.range(i,o+1):[],a?n.reverse():n},f.tickFormat=function(t,e){return null==e?S:l(e)},f.nice=function(t,e){var n=d();return(t=E(t,n[0],n[n.length-1],e))?d(D(n,t)):f},f.copy=function(){return M(f,gt(t,e,n,i,o,a,u,s,l))},f}var vt=function(){return i.apply(gt(ot.a,at.a,ut.g,ct.b,st.a,lt.a,ft.a,ht.a,dt.b).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},mt=n(60),yt=n(130),_t=n(16),wt=n(95),xt=n(131),kt=n(132),St=function(){return i.apply(gt(mt.a,yt.a,_t.g,wt.a,xt.a,kt.a,ft.a,ht.a,dt.d).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};function Mt(){var t,e,n,r,i,o=0,a=1,u=_,c=!1;function s(e){return isNaN(e=+e)?i:u(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}return s.domain=function(i){return arguments.length?(t=r(o=+i[0]),e=r(a=+i[1]),n=t===e?0:1/(e-t),s):[o,a]},s.clamp=function(t){return arguments.length?(c=!!t,s):c},s.interpolator=function(t){return arguments.length?(u=t,s):u},s.unknown=function(t){return arguments.length?(i=t,s):i},function(i){return r=i,t=i(o),e=i(a),n=t===e?0:1/(e-t),s}}function Et(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Tt(){var t=N(Mt()(_));return t.copy=function(){return Et(t,Tt())},o.apply(t,arguments)}function Ct(){var t=H(Mt()).domain([1,10]);return t.copy=function(){return Et(t,Ct()).base(t.base())},o.apply(t,arguments)}function Ot(){var t=Y(Mt());return t.copy=function(){return Et(t,Ot()).constant(t.constant())},o.apply(t,arguments)}function jt(){var t=J(Mt());return t.copy=function(){return Et(t,jt()).exponent(t.exponent())},o.apply(t,arguments)}function At(){return jt.apply(null,arguments).exponent(.5)}function Pt(){var t=[],e=_;function n(n){if(!isNaN(n=+n))return e((Object(r.b)(t,n)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var i,o=0,a=e.length;o<a;++o)null==(i=e[o])||isNaN(i=+i)||t.push(i);return t.sort(r.a),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Pt(e).domain(t)},o.apply(n,arguments)}function zt(){var t,e,n,r,i,o,a,u=0,c=.5,s=1,l=_,f=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(t<e?r:i),l(f?Math.max(0,Math.min(1,t)):t))}return h.domain=function(a){return arguments.length?(t=o(u=+a[0]),e=o(c=+a[1]),n=o(s=+a[2]),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),h):[u,c,s]},h.clamp=function(t){return arguments.length?(f=!!t,h):f},h.interpolator=function(t){return arguments.length?(l=t,h):l},h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return o=a,t=a(u),e=a(c),n=a(s),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),h}}function Nt(){var t=N(zt()(_));return t.copy=function(){return Et(t,Nt())},o.apply(t,arguments)}function It(){var t=H(zt()).domain([.1,1,10]);return t.copy=function(){return Et(t,It()).base(t.base())},o.apply(t,arguments)}function Rt(){var t=Y(zt());return t.copy=function(){return Et(t,Rt()).constant(t.constant())},o.apply(t,arguments)}function Dt(){var t=J(zt());return t.copy=function(){return Et(t,Dt()).exponent(t.exponent())},o.apply(t,arguments)}function Lt(){return Dt.apply(null,arguments).exponent(.5)}},function(t,e,n){"use strict";var r,i=n(49),o=n(77),a=n(53),u=function(t,e){var n=Object(a.b)(t,e);if(!n)return t+"";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")},c={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:a.a,e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return u(100*t,e)},r:u,s:function(t,e){var n=Object(a.b)(t,e);if(!n)return t+"";var i=n[0],o=n[1],u=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,c=i.length;return u===c?i:u>c?i+new Array(u-c+1).join("0"):u>0?i.slice(0,u)+"."+i.slice(u):"0."+new Array(1-u).join("0")+Object(a.b)(t,Math.max(0,e+u-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},s=function(t){return t},l=Array.prototype.map,f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?s:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}),u=void 0===t.currency?"":t.currency[0]+"",h=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?s:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(l.call(t.numerals,String)),b=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function m(t){var e=(t=Object(o.b)(t)).fill,n=t.align,i=t.sign,s=t.symbol,l=t.zero,m=t.width,y=t.comma,_=t.precision,w=t.trim,x=t.type;"n"===x?(y=!0,x="g"):c[x]||(void 0===_&&(_=12),w=!0,x="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var k="$"===s?u:"#"===s&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",S="$"===s?h:/[%p]/.test(x)?b:"",M=c[x],E=/[defgprs%]/.test(x);function T(t){var o,u,c,s=k,h=S;if("c"===x)h=M(t)+h,t="";else{var b=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:M(Math.abs(t),_),w&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),b&&0==+t&&"+"!==i&&(b=!1),s=(b?"("===i?i:g:"-"===i||"("===i?"":i)+s,h=("s"===x?f[8+r/3]:"")+h+(b&&"("===i?")":""),E)for(o=-1,u=t.length;++o<u;)if(48>(c=t.charCodeAt(o))||c>57){h=(46===c?d+t.slice(o+1):t.slice(o))+h,t=t.slice(0,o);break}}y&&!l&&(t=a(t,1/0));var T=s.length+t.length+h.length,C=T<m?new Array(m-T+1).join(e):"";switch(y&&l&&(t=a(C+t,C.length?m-h.length:1/0),C=""),n){case"<":t=s+t+h+C;break;case"=":t=s+C+t+h;break;case"^":t=C.slice(0,T=C.length>>1)+s+t+h+C.slice(T);break;default:t=C+s+t+h}return p(t)}return _=void 0===_?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),T.toString=function(){return t+""},T}return{format:m,formatPrefix:function(t,e){var n=m(((t=Object(o.b)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(i.a)(e)/3))),a=Math.pow(10,-r),u=f[8+r/3];return function(t){return n(a*t)+u}}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(5),i=n(8),o=n(36),a=n(80),u=n(32),c=n(122),s=n(121);function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){var i=t[o.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(s.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[u.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,o=new i.a;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[u.a](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.a(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n(8).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(30),i=n(18),o=n(83),a=-.14861,u=1.78277,c=-.29227,s=-.90649,l=1.97294,f=l*s,h=l*u,d=u*c-s*a;function p(t){if(t instanceof g)return new g(t.h,t.s,t.l,t.opacity);t instanceof i.b||(t=Object(i.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,a=(d*r+f*e-h*n)/(d+f-h),u=r-a,p=(l*(n-a)-c*u)/s,b=Math.sqrt(p*p+u*u)/(l*a*(1-a)),v=b?Math.atan2(p,u)*o.b-120:NaN;return new g(v<0?v+360:v,b,a,t.opacity)}function b(t,e,n,r){return 1===arguments.length?p(t):new g(t,e,n,null==r?1:r)}function g(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Object(r.a)(g,b,Object(r.b)(i.a,{brighter:function(t){return t=null==t?i.c:Math.pow(i.c,t),new g(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i.d:Math.pow(i.d,t),new g(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*o.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),f=Math.sin(t);return new i.b(255*(e+n*(a*r+u*f)),255*(e+n*(c*r+s*f)),255*(e+n*(l*r)),this.opacity)}}))},function(t,e,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),a=n(137),u=n(85);e.ResizerProvider=(r=o.createContext({createID:function(){return-1},populateInstance:u.noop,triggerBarAction:u.noop,vertical:!1,sizeRelatedInfo$:a.EMPTY})).Provider,e.ResizerConsumer=r.Consumer,e.withResizerContext=function(t){return function(n){return o.createElement(e.ResizerConsumer,null,(function(e){var r=i(i({},n),{context:e});return o.createElement(t,i({},r))}))}}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(85);function o(t){var e=t.size;return i.isValidNumber(e)}function a(){var t=[],e=0,n=0;return{collect:function(r){t.push(r),r.disableResponsive||(e+=1,n+=r.currentSize)},getResult:function(){return{sizeInfoArray:t,flexGrowRatio:e/n}}}}function u(t,e){if(e.isSolid)return{remainingOffset:t,sizeInfo:e};var n=function(t,e){var n=e.maxSize,r=e.minSize,o=void 0===r?0:r;return t<o?{nextSize:o,remainingOffset:t-o}:i.isValidNumber(n)&&t>n?{nextSize:n,remainingOffset:t-n}:{nextSize:t,remainingOffset:0}}(e.currentSize+t,e),o=n.nextSize,a=n.remainingOffset;return{sizeInfo:r(r({},e),{currentSize:o}),remainingOffset:a}}function c(t,e,n,r){for(var i=[],o=e,a=t+n;f(a);a+=n)if(o){var c=u(o,r[a]),s=c.sizeInfo;o=c.remainingOffset,l(s)}else l(r[a]);function l(t){-1===n?i.unshift(t):i.push(t)}function f(t){return-1===n?t>=0:t<=r.length-1}return{sizeInfoArray:i,remainingOffset:o}}e.DEFAULT_COORDINATE_OFFSET={x:0,y:0},e.isSolid=o,e.isDisabledResponsive=function(t){var e=t.disableResponsive;return!(!o(t)||void 0!==e)||!!e},e.calculateCoordinateOffset=function(t,n){return n?{x:t.x-n.x,y:t.y-n.y}:e.DEFAULT_COORDINATE_OFFSET},e.collectSizeRelatedInfo=a,e.getNextSizeRelatedInfo=function(t,e,n){var r=a(),i=r.collect,o=r.getResult,u=c(t,e,-1,n),s=c(t,-e,1,n),l=e-u.remainingOffset,f=-e-s.remainingOffset;function h(e,r){e.forEach(i),i(n[t]),r.forEach(i)}if(l===-f)h(u.sizeInfoArray,s.sizeInfoArray);else if(Math.abs(l)<Math.abs(f)){var d=c(t,-l,1,n);h(u.sizeInfoArray,d.sizeInfoArray)}else h(c(t,-f,-1,n).sizeInfoArray,s.sizeInfoArray);return o()}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(10),i=Object(r.a)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(10),i=n(13),o=Object(r.a)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.d-t.getMinutes()*i.c)}),(function(t,e){t.setTime(+t+e*i.b)}),(function(t,e){return(e-t)/i.b}),(function(t){return t.getHours()}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(10),i=n(13),o=Object(r.a)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.d)}),(function(t,e){t.setTime(+t+e*i.c)}),(function(t,e){return(e-t)/i.c}),(function(t){return t.getMinutes()}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(10),i=Object(r.a)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(10),i=n(13),o=Object(r.a)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*i.b)}),(function(t,e){return(e-t)/i.b}),(function(t){return t.getUTCHours()}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(10),i=n(13),o=Object(r.a)((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*i.c)}),(function(t,e){return(e-t)/i.c}),(function(t){return t.getUTCMinutes()}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(124),i=n(14);function o(t){return function e(n){function o(e,o){var a=t((e=Object(r.a)(e)).h,(o=Object(r.a)(o)).h),u=Object(i.a)(e.s,o.s),c=Object(i.a)(e.l,o.l),s=Object(i.a)(e.opacity,o.opacity);return function(t){return e.h=a(t),e.s=u(t),e.l=c(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,o.gamma=e,o}(1)}e.b=o(i.c);var a=o(i.a)},function(t,e){t.exports=MathJax},function(t,e,n){"use strict";n.r(e),n.d(e,"audit",(function(){return o})),n.d(e,"auditTime",(function(){return l})),n.d(e,"buffer",(function(){return f})),n.d(e,"bufferCount",(function(){return b})),n.d(e,"bufferTime",(function(){return _})),n.d(e,"bufferToggle",(function(){return j})),n.d(e,"bufferWhen",(function(){return z})),n.d(e,"catchError",(function(){return R})),n.d(e,"combineAll",(function(){return F})),n.d(e,"combineLatest",(function(){return V})),n.d(e,"concat",(function(){return W})),n.d(e,"concatAll",(function(){return G.a})),n.d(e,"concatMap",(function(){return Y})),n.d(e,"concatMapTo",(function(){return X})),n.d(e,"count",(function(){return K})),n.d(e,"debounce",(function(){return J})),n.d(e,"debounceTime",(function(){return nt})),n.d(e,"defaultIfEmpty",(function(){return at})),n.d(e,"delay",(function(){return ft})),n.d(e,"delayWhen",(function(){return gt})),n.d(e,"dematerialize",(function(){return wt})),n.d(e,"distinct",(function(){return St})),n.d(e,"distinctUntilChanged",(function(){return Tt})),n.d(e,"distinctUntilKeyChanged",(function(){return jt})),n.d(e,"elementAt",(function(){return Bt})),n.d(e,"endWith",(function(){return Ht})),n.d(e,"every",(function(){return Wt})),n.d(e,"exhaust",(function(){return Yt})),n.d(e,"exhaustMap",(function(){return Zt})),n.d(e,"expand",(function(){return ee})),n.d(e,"filter",(function(){return Pt.a})),n.d(e,"finalize",(function(){return ie})),n.d(e,"find",(function(){return ue})),n.d(e,"findIndex",(function(){return le})),n.d(e,"first",(function(){return he})),n.d(e,"groupBy",(function(){return de.b})),n.d(e,"ignoreElements",(function(){return pe})),n.d(e,"isEmpty",(function(){return ve})),n.d(e,"last",(function(){return ke})),n.d(e,"map",(function(){return Qt.a})),n.d(e,"mapTo",(function(){return Se})),n.d(e,"materialize",(function(){return Te})),n.d(e,"max",(function(){return Ie})),n.d(e,"merge",(function(){return De})),n.d(e,"mergeAll",(function(){return Le.a})),n.d(e,"mergeMap",(function(){return $.b})),n.d(e,"flatMap",(function(){return $.a})),n.d(e,"mergeMapTo",(function(){return qe})),n.d(e,"mergeScan",(function(){return Fe})),n.d(e,"min",(function(){return Ve})),n.d(e,"multicast",(function(){return We})),n.d(e,"observeOn",(function(){return $e.b})),n.d(e,"onErrorResumeNext",(function(){return Ye})),n.d(e,"pairwise",(function(){return Qe})),n.d(e,"partition",(function(){return en})),n.d(e,"pluck",(function(){return nn})),n.d(e,"publish",(function(){return an})),n.d(e,"publishBehavior",(function(){return cn})),n.d(e,"publishLast",(function(){return ln})),n.d(e,"publishReplay",(function(){return hn})),n.d(e,"race",(function(){return pn})),n.d(e,"reduce",(function(){return Ne})),n.d(e,"repeat",(function(){return bn})),n.d(e,"repeatWhen",(function(){return mn})),n.d(e,"retry",(function(){return wn})),n.d(e,"retryWhen",(function(){return Sn})),n.d(e,"refCount",(function(){return Tn.a})),n.d(e,"sample",(function(){return Cn})),n.d(e,"sampleTime",(function(){return An})),n.d(e,"scan",(function(){return je})),n.d(e,"sequenceEqual",(function(){return In})),n.d(e,"share",(function(){return Fn})),n.d(e,"shareReplay",(function(){return Un})),n.d(e,"single",(function(){return Bn})),n.d(e,"skip",(function(){return Wn})),n.d(e,"skipLast",(function(){return Yn})),n.d(e,"skipUntil",(function(){return Qn})),n.d(e,"skipWhile",(function(){return tr})),n.d(e,"startWith",(function(){return rr})),n.d(e,"subscribeOn",(function(){return ur})),n.d(e,"switchAll",(function(){return hr})),n.d(e,"switchMap",(function(){return sr})),n.d(e,"switchMapTo",(function(){return dr})),n.d(e,"take",(function(){return qt})),n.d(e,"takeLast",(function(){return _e})),n.d(e,"takeUntil",(function(){return pr})),n.d(e,"takeWhile",(function(){return vr})),n.d(e,"tap",(function(){return xr})),n.d(e,"throttle",(function(){return Er})),n.d(e,"throttleTime",(function(){return Or})),n.d(e,"throwIfEmpty",(function(){return Nt})),n.d(e,"timeInterval",(function(){return Nr})),n.d(e,"timeout",(function(){return Ur})),n.d(e,"timeoutWith",(function(){return Dr})),n.d(e,"timestamp",(function(){return Br})),n.d(e,"toArray",(function(){return Wr})),n.d(e,"window",(function(){return Gr})),n.d(e,"windowCount",(function(){return Xr})),n.d(e,"windowTime",(function(){return Zr})),n.d(e,"windowToggle",(function(){return oi})),n.d(e,"windowWhen",(function(){return ci})),n.d(e,"withLatestFrom",(function(){return fi})),n.d(e,"zip",(function(){return bi})),n.d(e,"zipAll",(function(){return gi}));var r=n(0),i=n(3);function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=Object(i.c)(e,new i.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.b),c=n(11),s=n(109);function l(t,e){return void 0===e&&(e=c.a),o((function(){return Object(s.a)(t,e)}))}function f(t){return function(e){return e.lift(new h(t))}}var h=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.closingNotifier))},t}(),d=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(i.c)(n,new i.a(r))),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.b),p=n(2);function b(t,e){return void 0===e&&(e=null),function(n){return n.lift(new g(t,e))}}var g=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?m:v}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),v=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.a(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(p.a),m=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.a(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(t),a.length===e&&(r.splice(o,1),this.destination.next(a))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(p.a),y=n(19);function _(t){var e=arguments.length,n=c.a;Object(y.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new w(t,r,i,n))}}var w=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new k(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),x=function(){this.buffer=[]},k=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=r,a.maxBufferSize=i,a.scheduler=o,a.contexts=[];var u=a.openContext();if(a.timespanOnly=null==r||r<0,a.timespanOnly){var c={subscriber:a,context:u,bufferTimeSpan:n};a.add(u.closeAction=o.schedule(S,n,c))}else{var s={subscriber:a,context:u},l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:a,scheduler:o};a.add(u.closeAction=o.schedule(E,n,s)),a.add(o.schedule(M,r,l))}return a}return r.a(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],a=o.buffer;a.push(t),a.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(S,n,r))}},e.prototype.openContext=function(){var t=new x;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(p.a);function S(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function M(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(E,n,{subscriber:r,context:o})),this.schedule(t,e))}function E(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var T=n(8),C=n(22),O=n(26);function j(t,e){return function(n){return n.lift(new A(t,e))}}var A=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new P(t,this.openings,this.closingSelector))},t}(),P=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add(Object(C.a)(i,n)),i}return r.a(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new T.a,r={buffer:[],subscription:n};e.push(r);var i=Object(C.a)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(O.a);function z(t){return function(e){return e.lift(new N(t))}}var N=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new I(t,this.closingSelector))},t}(),I=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new T.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(i.c)(e,new i.a(this))),this.subscribing=!1},e}(i.b);function R(t){return function(e){var n=new D(t),r=e.lift(n);return n.caught=r}}var D=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new L(t,this.selector,this.caught))},t}(),L=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new i.a(this);this.add(r);var o=Object(i.c)(n,r);o!==r&&this.add(o)}},e}(i.b),q=n(71);function F(t){return function(e){return e.lift(new q.a(t))}}var U=n(12),B=n(21);function V(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(U.a)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(Object(B.a)([e].concat(t)),new q.a(n))}}var H=n(51);function W(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(H.a.apply(void 0,[e].concat(t)))}}var G=n(106),$=n(43);function Y(t,e){return Object($.b)(t,e,1)}function X(t,e){return Y((function(){return t}),e)}function K(t){return function(e){return e.lift(new Q(t,e))}}var Q=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Z(t,this.predicate,this.source))},t}(),Z=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(p.a);function J(t){return function(e){return e.lift(new tt(t))}}var tt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new et(t,this.durationSelector))},t}(),et=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(i.c)(e,new i.a(this)))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.b);function nt(t,e){return void 0===e&&(e=c.a),function(n){return n.lift(new rt(t,e))}}var rt=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new it(t,this.dueTime,this.scheduler))},t}(),it=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.a(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ot,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(p.a);function ot(t){t.debouncedNext()}function at(t){return void 0===t&&(t=null),function(e){return e.lift(new ut(t))}}var ut=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new ct(t,this.defaultValue))},t}(),ct=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.a(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(p.a);function st(t){return t instanceof Date&&!isNaN(+t)}var lt=n(28);function ft(t,e){void 0===e&&(e=c.a);var n=st(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new ht(n,e))}}var ht=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new dt(t,this.delay,this.scheduler))},t}(),dt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.a(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new pt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(lt.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(lt.a.createComplete()),this.unsubscribe()},e}(p.a),pt=function(t,e){this.time=t,this.notification=e},bt=n(5);function gt(t,e){return e?function(n){return new yt(n,e).lift(new vt(t))}:function(e){return e.lift(new vt(t))}}var vt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new mt(t,this.delayDurationSelector))},t}(),mt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=Object(C.a)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(O.a),yt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.a(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new _t(t,this.source))},e}(bt.a),_t=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.a(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(p.a);function wt(){return function(t){return t.lift(new xt)}}var xt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new kt(t))},t}(),kt=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(p.a);function St(t,e){return function(n){return n.lift(new Mt(t,e))}}var Mt=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new Et(t,this.keySelector,this.flushes))},t}(),Et=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add(Object(i.c)(r,new i.a(o))),o}return r.a(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.b);function Tt(t,e){return function(n){return n.lift(new Ct(t,e))}}var Ct=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Ot(t,this.compare,this.keySelector))},t}(),Ot=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.a(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(p.a);function jt(t,e){return Tt((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}var At=n(39),Pt=n(27),zt=n(42);function Nt(t){return void 0===t&&(t=Dt),function(e){return e.lift(new It(t))}}var It=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new Rt(t,this.errorFactory))},t}(),Rt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(p.a);function Dt(){return new zt.a}var Lt=n(20);function qt(t){return function(e){return 0===t?Object(Lt.b)():e.lift(new Ft(t))}}var Ft=function(){function t(t){if(this.total=t,this.total<0)throw new At.a}return t.prototype.call=function(t,e){return e.subscribe(new Ut(t,this.total))},t}(),Ut=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(p.a);function Bt(t,e){if(t<0)throw new At.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(Pt.a)((function(e,n){return n===t})),qt(1),n?at(e):Nt((function(){return new At.a})))}}var Vt=n(57);function Ht(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return Object(H.a)(e,Vt.a.apply(void 0,t))}}function Wt(t,e){return function(n){return n.lift(new Gt(t,e,n))}}var Gt=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new $t(t,this.predicate,this.thisArg,this.source))},t}(),$t=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.a(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(p.a);function Yt(){return function(t){return t.lift(new Xt)}}var Xt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Kt(t))},t}(),Kt=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r.a(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(i.c)(t,new i.a(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.b),Qt=n(17);function Zt(t,e){return e?function(n){return n.pipe(Zt((function(n,r){return Object(B.a)(t(n,r)).pipe(Object(Qt.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Jt(t))}}var Jt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new te(t,this.project))},t}(),te=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.b);function ee(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new ne(t,e,n))}}var ne=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new re(t,this.project,this.concurrent,this.scheduler))},t}(),re=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return r.a(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,r=t.value,i=t.index;e.subscribeToProjection(n,r,i)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);try{var i=(0,this.project)(t,r);if(this.scheduler){var o={subscriber:this,result:i,value:t,index:r};this.destination.add(this.scheduler.schedule(e.dispatch,0,o))}else this.subscribeToProjection(i,t,r)}catch(t){n.error(t)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(Object(i.c)(t,new i.a(this)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this._next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.b);function ie(t){return function(e){return e.lift(new oe(t))}}var oe=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new ae(t,this.callback))},t}(),ae=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new T.a(n)),r}return r.a(e,t),e}(p.a);function ue(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new ce(t,n,!1,e))}}var ce=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new se(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),se=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.predicate=n,a.source=r,a.yieldIndex=i,a.thisArg=o,a.index=0,a}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(p.a);function le(t,e){return function(n){return n.lift(new ce(t,n,!0,e))}}var fe=n(25);function he(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(Pt.a)((function(e,n){return t(e,n,r)})):fe.a,qt(1),n?at(e):Nt((function(){return new zt.a})))}}var de=n(96);function pe(){return function(t){return t.lift(new be)}}var be=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ge(t))},t}(),ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype._next=function(t){},e}(p.a);function ve(){return function(t){return t.lift(new me)}}var me=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ye(t))},t}(),ye=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(p.a);function _e(t){return function(e){return 0===t?Object(Lt.b)():e.lift(new we(t))}}var we=function(){function t(t){if(this.total=t,this.total<0)throw new At.a}return t.prototype.call=function(t,e){return e.subscribe(new xe(t,this.total))},t}(),xe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(p.a);function ke(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(Pt.a)((function(e,n){return t(e,n,r)})):fe.a,_e(1),n?at(e):Nt((function(){return new zt.a})))}}function Se(t){return function(e){return e.lift(new Me(t))}}var Me=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Ee(t,this.value))},t}(),Ee=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.a(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(p.a);function Te(){return function(t){return t.lift(new Ce)}}var Ce=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Oe(t))},t}(),Oe=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){this.destination.next(lt.a.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(lt.a.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(lt.a.createComplete()),t.complete()},e}(p.a);function je(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Ae(t,e,n))}}var Ae=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Pe(t,this.accumulator,this.seed,this.hasSeed))},t}(),Pe=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.a(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(p.a),ze=n(62);function Ne(t,e){return arguments.length>=2?function(n){return Object(ze.a)(je(t,e),_e(1),at(e))(n)}:function(e){return Object(ze.a)(je((function(e,n,r){return t(e,n,r+1)})),_e(1))(e)}}function Ie(t){return Ne("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var Re=n(107);function De(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Re.a.apply(void 0,[e].concat(t)))}}var Le=n(72);function qe(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?Object($.b)((function(){return t}),e,n):("number"==typeof e&&(n=e),Object($.b)((function(){return t}),n))}function Fe(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new Ue(t,e,n))}}var Ue=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Be(t,this.accumulator,this.seed,this.concurrent))},t}(),Be=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.a(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(r)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.b);function Ve(t){return Ne("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}var He=n(102);function We(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new Ge(r,e));var i=Object.create(n,He.b);return i.source=n,i.subjectFactory=r,i}}var Ge=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}(),$e=n(104);function Ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Object(U.a)(t[0])&&(t=t[0]),function(e){return e.lift(new Xe(t))}}var Xe=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new Ke(t,this.nextSources))},t}(),Ke=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}return r.a(e,t),e.prototype.notifyError=function(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)}else this.destination.complete()},e}(i.b);function Qe(){return function(t){return t.lift(new Ze)}}var Ze=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Je(t))},t}(),Je=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.a(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(p.a),tn=n(123);function en(t,e){return function(n){return[Object(Pt.a)(t,e)(n),Object(Pt.a)(Object(tn.a)(t,e))(n)]}}function nn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(Qt.a)(rn(t,n))(e)}}function rn(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}var on=n(9);function an(t){return t?We((function(){return new on.a}),t):We(new on.a)}var un=n(103);function cn(t){return function(e){return We(new un.a(t))(e)}}var sn=n(46);function ln(){return function(t){return We(new sn.a)(t)}}var fn=n(69);function hn(t,e,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new fn.a(t,e,r);return function(t){return We((function(){return o}),i)(t)}}var dn=n(108);function pn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&Object(U.a)(t[0])&&(t=t[0]),e.lift.call(dn.a.apply(void 0,[e].concat(t)))}}function bn(t){return void 0===t&&(t=-1),function(e){return 0===t?Object(Lt.b)():t<0?e.lift(new gn(-1,e)):e.lift(new gn(t-1,e))}}var gn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new vn(t,this.count,this.source))},t}(),vn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.a(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(p.a);function mn(t){return function(e){return e.lift(new yn(t))}}var yn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new _n(t,this.notifier,e))},t}(),_n=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.a(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new on.a;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=Object(i.c)(e,new i.a(this))},e}(i.b);function wn(t){return void 0===t&&(t=-1),function(e){return e.lift(new xn(t,e))}}var xn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new kn(t,this.count,this.source))},t}(),kn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(p.a);function Sn(t){return function(e){return e.lift(new Mn(t,e))}}var Mn=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new En(t,this.notifier,this.source))},t}(),En=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new on.a;try{r=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}o=Object(i.c)(r,new i.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.b),Tn=n(68);function Cn(t){return function(e){return e.lift(new On(t))}}var On=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new jn(t),r=e.subscribe(n);return r.add(Object(i.c)(this.notifier,new i.a(n))),r},t}(),jn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.a(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.b);function An(t,e){return void 0===e&&(e=c.a),function(n){return n.lift(new Pn(t,e))}}var Pn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new zn(t,this.period,this.scheduler))},t}(),zn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Nn,n,{subscriber:i,period:n})),i}return r.a(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(p.a);function Nn(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function In(t,e){return function(n){return n.lift(new Rn(t,e))}}var Rn=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new Dn(t,this.compareTo,this.comparator))},t}(),Dn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Ln(e,i))),i}return r.a(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;try{o=n?n(r,i):r===i}catch(t){this.destination.error(t)}o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(p.a),Ln=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.a(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(p.a);function qn(){return new on.a}function Fn(){return function(t){return Object(Tn.a)()(We(qn)(t))}}function Un(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,u=t.refCount,c=t.scheduler,s=0,l=!1,f=!1;return function(t){var r;s++,!e||l?(l=!1,e=new fn.a(i,a,c),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){f=!0,n=void 0,e.complete()}}),f&&(n=void 0)):r=e.subscribe(this),this.add((function(){s--,r.unsubscribe(),r=void 0,n&&!f&&u&&0===s&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function Bn(t){return function(e){return e.lift(new Vn(t,e))}}var Vn=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Hn(t,this.predicate,this.source))},t}(),Hn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.a(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new zt.a)},e}(p.a);function Wn(t){return function(e){return e.lift(new Gn(t))}}var Gn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new $n(t,this.total))},t}(),$n=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(p.a);function Yn(t){return function(e){return e.lift(new Xn(t))}}var Xn=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new At.a}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new p.a(t)):e.subscribe(new Kn(t,this._skipCount))},t}(),Kn=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.a(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}},e}(p.a);function Qn(t){return function(e){return e.lift(new Zn(t))}}var Zn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Jn(t,this.notifier))},t}(),Jn=function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var o=new i.a(r);r.add(o),r.innerSubscription=o;var a=Object(i.c)(n,o);return a!==o&&(r.add(a),r.innerSubscription=a),r}return r.a(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(i.b);function tr(t){return function(e){return e.lift(new er(t))}}var er=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new nr(t,this.predicate))},t}(),nr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(p.a);function rr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(y.a)(n)?(t.pop(),function(e){return Object(H.a)(t,e,n)}):function(e){return Object(H.a)(t,e)}}var ir=n(63),or=n(48),ar=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=ir.a);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!Object(or.a)(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=ir.a),i}return r.a(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=ir.a),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(bt.a);function ur(t,e){return void 0===e&&(e=0),function(n){return n.lift(new cr(t,e))}}var cr=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new ar(e,this.delay,this.scheduler).subscribe(t)},t}();function sr(t,e){return"function"==typeof e?function(n){return n.pipe(sr((function(n,r){return Object(B.a)(t(n,r)).pipe(Object(Qt.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new lr(t))}}var lr=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new fr(t,this.project))},t}(),fr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new i.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(i.c)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(i.b);function hr(){return sr(fe.a)}function dr(t,e){return e?sr((function(){return t}),e):sr((function(){return t}))}function pr(t){return function(e){return e.lift(new br(t))}}var br=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new gr(t),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),gr=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.a(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.b);function vr(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new mr(t,e))}}var mr=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new yr(t,this.predicate,this.inclusive))},t}(),yr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.inclusive=r,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(p.a),_r=n(33),wr=n(40);function xr(t,e,n){return function(r){return r.lift(new kr(t,e,n))}}var kr=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Sr(t,this.nextOrObserver,this.error,this.complete))},t}(),Sr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=_r.a,o._tapError=_r.a,o._tapComplete=_r.a,o._tapError=r||_r.a,o._tapComplete=i||_r.a,Object(wr.a)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||_r.a,o._tapError=n.error||_r.a,o._tapComplete=n.complete||_r.a),o}return r.a(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(p.a),Mr={leading:!0,trailing:!1};function Er(t,e){return void 0===e&&(e=Mr),function(n){return n.lift(new Tr(t,!!e.leading,!!e.trailing))}}var Tr=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new Cr(t,this.durationSelector,this.leading,this.trailing))},t}(),Cr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.a(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(i.c)(e,new i.a(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.b);function Or(t,e,n){return void 0===e&&(e=c.a),void 0===n&&(n=Mr),function(r){return r.lift(new jr(t,e,n.leading,n.trailing))}}var jr=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new Ar(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Ar=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.duration=n,a.scheduler=r,a.leading=i,a.trailing=o,a._hasTrailingValue=!1,a._trailingValue=null,a}return r.a(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Pr,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(p.a);function Pr(t){t.subscriber.clearThrottle()}var zr=n(73);function Nr(t){return void 0===t&&(t=c.a),function(e){return Object(zr.a)((function(){return e.pipe(je((function(e,n){var r=e.current;return{value:n,current:t.now(),last:r}}),{current:t.now(),value:void 0,last:void 0}),Object(Qt.a)((function(t){var e=t.current,n=t.last,r=t.value;return new Ir(r,e-n)})))}))}}var Ir=function(t,e){this.value=t,this.interval=e},Rr=n(105);function Dr(t,e,n){return void 0===n&&(n=c.a),function(r){var i=st(t),o=i?+t-n.now():Math.abs(t);return r.lift(new Lr(o,i,e,n))}}var Lr=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new qr(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),qr=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.absoluteTimeout=n,a.waitFor=r,a.withObservable=i,a.scheduler=o,a.scheduleTimeout(),a}return r.a(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(Object(i.c)(e,new i.a(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(i.b),Fr=n(70);function Ur(t,e){return void 0===e&&(e=c.a),Dr(t,Object(Fr.a)(new Rr.a),e)}function Br(t){return void 0===t&&(t=c.a),Object(Qt.a)((function(e){return new Vr(e,t.now())}))}var Vr=function(t,e){this.value=t,this.timestamp=e};function Hr(t,e,n){return 0===n?[e]:(t.push(e),t)}function Wr(){return Ne(Hr,[])}function Gr(t){return function(e){return e.lift(new $r(t))}}var $r=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new Yr(t),r=e.subscribe(n);return r.closed||n.add(Object(i.c)(this.windowBoundaries,new i.a(n))),r},t}(),Yr=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new on.a,e.next(n.window),n}return r.a(e,t),e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new on.a;e.next(n)},e}(i.b);function Xr(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Kr(t,e))}}var Kr=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new Qr(t,this.windowSize,this.startWindowEvery))},t}(),Qr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new on.a],i.count=0,e.next(i.windows[0]),i}return r.a(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a<o&&!this.closed;a++)i[a].next(t);var u=this.count-r+1;if(u>=0&&u%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var c=new on.a;i.push(c),n.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(p.a);function Zr(t){var e=c.a,n=null,r=Number.POSITIVE_INFINITY;return Object(y.a)(arguments[3])&&(e=arguments[3]),Object(y.a)(arguments[2])?e=arguments[2]:Object(or.a)(arguments[2])&&(r=Number(arguments[2])),Object(y.a)(arguments[1])?e=arguments[1]:Object(or.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Jr(t,n,r,e))}}var Jr=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new ei(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.a(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(on.a),ei=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;a.destination=e,a.windowTimeSpan=n,a.windowCreationInterval=r,a.maxWindowSize=i,a.scheduler=o,a.windows=[];var u=a.openWindow();if(null!==r&&r>=0){var c={subscriber:a,window:u,context:null},s={windowTimeSpan:n,windowCreationInterval:r,subscriber:a,scheduler:o};a.add(o.schedule(ii,n,c)),a.add(o.schedule(ri,r,s))}else{var l={subscriber:a,window:u,windowTimeSpan:n};a.add(o.schedule(ni,n,l))}return a}return r.a(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new ti;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(p.a);function ni(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function ri(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null},u={subscriber:n,window:o,context:a};a.subscription=r.schedule(ii,e,u),this.add(a.subscription),this.schedule(t,i)}function ii(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function oi(t,e){return function(n){return n.lift(new ai(t,e))}}var ai=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new ui(t,this.openings,this.closingSelector))},t}(),ui=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Object(C.a)(i,n,n)),i}return r.a(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var o=void 0;try{o=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var a=new on.a,u=new T.a,c={window:a,subscription:u};this.contexts.push(c);var s=Object(C.a)(this,o,c);s.closed?this.closeWindow(this.contexts.length-1):(s.context=c,u.add(s)),this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}},e}(O.a);function ci(t){return function(e){return e.lift(new si(t))}}var si=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new li(t,this.closingSelector))},t}(),li=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,r=this.window=new on.a;this.destination.next(r);try{n=(0,this.closingSelector)()}catch(t){return this.destination.error(t),void this.window.error(t)}this.add(this.closingNotification=Object(C.a)(this,n))},e}(O.a);function fi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new hi(r,n))}}var hi=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new di(t,this.observables,this.project))},t}(),di=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var a=0;a<o;a++)i.toRespond.push(a);for(a=0;a<o;a++){var u=n[a];i.add(Object(C.a)(i,u,void 0,a))}return i}return r.a(e,t),e.prototype.notifyNext=function(t,e,n){this.values[n]=e;var r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(O.a),pi=n(74);function bi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(pi.b.apply(void 0,[e].concat(t)))}}function gi(t){return function(e){return e.lift(new pi.a(t))}}},function(t,e,n){"use strict";n.d(e,"R",(function(){return i})),n.d(e,"M",(function(){return o})),n.d(e,"S",(function(){return a})),n.d(e,"Z",(function(){return u.a})),n.d(e,"ab",(function(){return c})),n.d(e,"bb",(function(){return s})),n.d(e,"ob",(function(){return l})),n.d(e,"pb",(function(){return f})),n.d(e,"qb",(function(){return h})),n.d(e,"sb",(function(){return d})),n.d(e,"b",(function(){return v})),n.d(e,"O",(function(){return g})),n.d(e,"o",(function(){return y})),n.d(e,"Y",(function(){return m})),n.d(e,"p",(function(){return w})),n.d(e,"cb",(function(){return _})),n.d(e,"t",(function(){return k})),n.d(e,"fb",(function(){return x})),n.d(e,"x",(function(){return M})),n.d(e,"ib",(function(){return S})),n.d(e,"y",(function(){return T})),n.d(e,"jb",(function(){return E})),n.d(e,"A",(function(){return O})),n.d(e,"lb",(function(){return C})),n.d(e,"B",(function(){return A})),n.d(e,"mb",(function(){return j})),n.d(e,"E",(function(){return z})),n.d(e,"rb",(function(){return P})),n.d(e,"c",(function(){return I})),n.d(e,"P",(function(){return N})),n.d(e,"d",(function(){return D})),n.d(e,"Q",(function(){return R})),n.d(e,"h",(function(){return q})),n.d(e,"T",(function(){return L})),n.d(e,"m",(function(){return U})),n.d(e,"W",(function(){return F})),n.d(e,"s",(function(){return V})),n.d(e,"eb",(function(){return B})),n.d(e,"r",(function(){return W})),n.d(e,"db",(function(){return H})),n.d(e,"u",(function(){return $})),n.d(e,"gb",(function(){return G})),n.d(e,"z",(function(){return X})),n.d(e,"kb",(function(){return Y})),n.d(e,"J",(function(){return Q})),n.d(e,"ub",(function(){return K})),n.d(e,"I",(function(){return J})),n.d(e,"tb",(function(){return Z})),n.d(e,"K",(function(){return et})),n.d(e,"vb",(function(){return tt})),n.d(e,"L",(function(){return rt})),n.d(e,"wb",(function(){return nt})),n.d(e,"a",(function(){return ot})),n.d(e,"N",(function(){return it})),n.d(e,"i",(function(){return ut})),n.d(e,"U",(function(){return at})),n.d(e,"j",(function(){return st})),n.d(e,"V",(function(){return ct})),n.d(e,"v",(function(){return ft})),n.d(e,"hb",(function(){return lt})),n.d(e,"C",(function(){return dt})),n.d(e,"nb",(function(){return ht})),n.d(e,"n",(function(){return bt})),n.d(e,"X",(function(){return pt})),n.d(e,"e",(function(){return gt})),n.d(e,"g",(function(){return yt})),n.d(e,"w",(function(){return kt})),n.d(e,"H",(function(){return _t})),n.d(e,"f",(function(){return wt})),n.d(e,"D",(function(){return Ct})),n.d(e,"F",(function(){return Ot})),n.d(e,"G",(function(){return At})),n.d(e,"l",(function(){return Pt})),n.d(e,"k",(function(){return zt})),n.d(e,"q",(function(){return Nt}));var r=n(4),i=Object(r.a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),o=Object(r.a)("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),a=Object(r.a)("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),u=n(150),c=Object(r.a)("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),s=Object(r.a)("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),l=Object(r.a)("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),f=Object(r.a)("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),h=Object(r.a)("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),d=Object(r.a)("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),p=n(61),b=function(t){return Object(p.b)(t[t.length-1])},g=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(r.a),v=b(g),m=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(r.a),y=b(m),_=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(r.a),w=b(_),x=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(r.a),k=b(x),S=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(r.a),M=b(S),E=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(r.a),T=b(E),C=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(r.a),O=b(C),j=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(r.a),A=b(j),P=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(r.a),z=b(P),N=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(r.a),I=b(N),R=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(r.a),D=b(R),L=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(r.a),q=b(L),F=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(r.a),U=b(F),B=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(r.a),V=b(B),H=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(r.a),W=b(H),G=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(r.a),$=b(G),Y=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(r.a),X=b(Y),K=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(r.a),Q=b(K),Z=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(r.a),J=b(Z),tt=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(r.a),et=b(tt),nt=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(r.a),rt=b(nt),it=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(r.a),ot=b(it),at=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(r.a),ut=b(at),ct=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(r.a),st=b(ct),lt=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(r.a),ft=b(lt),ht=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(r.a),dt=b(ht),pt=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(r.a),bt=b(pt),gt=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"},vt=n(124),mt=n(133),yt=Object(mt.a)(Object(vt.a)(300,.5,0),Object(vt.a)(-240,.5,1)),_t=Object(mt.a)(Object(vt.a)(-100,.75,.35),Object(vt.a)(80,1.5,.8)),wt=Object(mt.a)(Object(vt.a)(260,.75,.35),Object(vt.a)(80,1.5,.8)),xt=Object(vt.a)(),kt=function(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return xt.h=360*t-100,xt.s=1.5-1.5*e,xt.l=.8-.9*e,xt+""},St=n(18),Mt=Object(St.g)(),Et=Math.PI/3,Tt=2*Math.PI/3,Ct=function(t){var e;return t=(.5-t)*Math.PI,Mt.r=255*(e=Math.sin(t))*e,Mt.g=255*(e=Math.sin(t+Et))*e,Mt.b=255*(e=Math.sin(t+Tt))*e,Mt+""},Ot=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"};function jt(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var At=jt(Object(r.a)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Pt=jt(Object(r.a)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),zt=jt(Object(r.a)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Nt=jt(Object(r.a)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},function(t,e,n){"use strict";n.r(e),n.d(e,"Observable",(function(){return r.a})),n.d(e,"ConnectableObservable",(function(){return i.a})),n.d(e,"GroupedObservable",(function(){return o.a})),n.d(e,"observable",(function(){return a.a})),n.d(e,"Subject",(function(){return u.a})),n.d(e,"BehaviorSubject",(function(){return c.a})),n.d(e,"ReplaySubject",(function(){return s.a})),n.d(e,"AsyncSubject",(function(){return l.a})),n.d(e,"asap",(function(){return f.a})),n.d(e,"asapScheduler",(function(){return f.b})),n.d(e,"async",(function(){return h.a})),n.d(e,"asyncScheduler",(function(){return h.b})),n.d(e,"queue",(function(){return d.a})),n.d(e,"queueScheduler",(function(){return d.b})),n.d(e,"animationFrame",(function(){return y})),n.d(e,"animationFrameScheduler",(function(){return m})),n.d(e,"VirtualTimeScheduler",(function(){return _})),n.d(e,"VirtualAction",(function(){return w})),n.d(e,"Scheduler",(function(){return x.a})),n.d(e,"Subscription",(function(){return k.a})),n.d(e,"Subscriber",(function(){return S.a})),n.d(e,"Notification",(function(){return M.a})),n.d(e,"NotificationKind",(function(){return M.b})),n.d(e,"pipe",(function(){return E.a})),n.d(e,"noop",(function(){return T.a})),n.d(e,"identity",(function(){return C.a})),n.d(e,"isObservable",(function(){return O})),n.d(e,"ArgumentOutOfRangeError",(function(){return j.a})),n.d(e,"EmptyError",(function(){return A.a})),n.d(e,"ObjectUnsubscribedError",(function(){return P.a})),n.d(e,"UnsubscriptionError",(function(){return z.a})),n.d(e,"TimeoutError",(function(){return N.a})),n.d(e,"bindCallback",(function(){return q})),n.d(e,"bindNodeCallback",(function(){return B})),n.d(e,"combineLatest",(function(){return G.b})),n.d(e,"concat",(function(){return $.a})),n.d(e,"defer",(function(){return Y.a})),n.d(e,"empty",(function(){return X.b})),n.d(e,"forkJoin",(function(){return Z})),n.d(e,"from",(function(){return Q.a})),n.d(e,"fromEvent",(function(){return et})),n.d(e,"fromEventPattern",(function(){return nt})),n.d(e,"generate",(function(){return rt})),n.d(e,"iif",(function(){return ot})),n.d(e,"interval",(function(){return ut})),n.d(e,"merge",(function(){return st.a})),n.d(e,"never",(function(){return ft})),n.d(e,"of",(function(){return ht.a})),n.d(e,"onErrorResumeNext",(function(){return dt})),n.d(e,"pairs",(function(){return pt})),n.d(e,"partition",(function(){return yt})),n.d(e,"race",(function(){return _t.a})),n.d(e,"range",(function(){return wt})),n.d(e,"throwError",(function(){return kt.a})),n.d(e,"timer",(function(){return St.a})),n.d(e,"using",(function(){return Mt})),n.d(e,"zip",(function(){return Et.b})),n.d(e,"scheduled",(function(){return Tt.a})),n.d(e,"EMPTY",(function(){return X.a})),n.d(e,"NEVER",(function(){return lt})),n.d(e,"config",(function(){return Ct.a}));var r=n(5),i=n(102),o=n(96),a=n(36),u=n(9),c=n(103),s=n(69),l=n(46),f=n(63),h=n(11),d=n(92),p=n(0),b=n(47),g=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return p.a(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(b.a),v=n(45),m=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(v.a))(g),y=m,_=function(t){function e(e,n){void 0===e&&(e=w),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return p.a(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(v.a),w=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return p.a(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(b.a),x=n(93),k=n(8),S=n(2),M=n(28),E=n(62),T=n(33),C=n(25);function O(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var j=n(39),A=n(42),P=n(37),z=n(65),N=n(105),I=n(17),R=n(79),D=n(12),L=n(19);function q(t,e,n){if(e){if(!Object(L.a)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return q(t,n).apply(void 0,r).pipe(Object(I.a)((function(t){return Object(D.a)(t)?e.apply(void 0,t):e(t)})))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o,a=this,u={context:a,subject:o,callbackFunc:t,scheduler:n};return new r.a((function(r){if(n){var i={args:e,subscriber:r,params:u};return n.schedule(F,0,i)}if(!o){o=new l.a;try{t.apply(a,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.next(t.length<=1?t[0]:t),o.complete()}]))}catch(t){Object(R.a)(o)?o.error(t):console.warn(t)}}return o.subscribe(r)}))}}function F(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,a=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new l.a;try{o.apply(a,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length<=1?t[0]:t;e.add(u.schedule(U,0,{value:r,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(r))}function U(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function B(t,e,n){if(e){if(!Object(L.a)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return B(t,n).apply(void 0,r).pipe(Object(I.a)((function(t){return Object(D.a)(t)?e.apply(void 0,t):e(t)})))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o={subject:void 0,args:e,callbackFunc:t,scheduler:n,context:this};return new r.a((function(r){var i=o.context,a=o.subject;if(n)return n.schedule(V,0,{params:o,subscriber:r,context:i});if(!a){a=o.subject=new l.a;try{t.apply(i,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();n?a.error(n):(a.next(t.length<=1?t[0]:t),a.complete())}]))}catch(t){Object(R.a)(a)?a.error(t):console.warn(t)}}return a.subscribe(r)}))}}function V(t){var e=this,n=t.params,r=t.subscriber,i=t.context,o=n.callbackFunc,a=n.args,u=n.scheduler,c=n.subject;if(!c){c=n.subject=new l.a;try{o.apply(i,a.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.shift();if(r)e.add(u.schedule(W,0,{err:r,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(H,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(W,0,{err:t,subject:c}))}}this.add(c.subscribe(r))}function H(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function W(t){var e=t.err;t.subject.error(e)}var G=n(71),$=n(51),Y=n(73),X=n(20),K=n(78),Q=n(21);function Z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if(Object(D.a)(n))return J(n,null);if(Object(K.a)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return J(r.map((function(t){return n[t]})),r)}}if("function"==typeof t[t.length-1]){var i=t.pop();return J(t=1===t.length&&Object(D.a)(t[0])?t[0]:t,null).pipe(Object(I.a)((function(t){return i.apply(void 0,t)})))}return J(t,null)}function J(t,e){return new r.a((function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,a=0,u=function(u){var c=Object(Q.a)(t[u]),s=!1;n.add(c.subscribe({next:function(t){s||(s=!0,a++),i[u]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&s||(a===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=i[n],t}),{}):i),n.complete())}}))},c=0;c<r;c++)u(c);else n.complete()}))}var tt=n(40);function et(t,e,n,i){return Object(tt.a)(n)&&(i=n,n=void 0),i?et(t,e,n).pipe(Object(I.a)((function(t){return Object(D.a)(t)?i.apply(void 0,t):i(t)}))):new r.a((function(r){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var u=e;e.addEventListener(n,r,o),a=function(){return u.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(n,r),a=function(){return c.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var s=e;e.addListener(n,r),a=function(){return s.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l<f;l++)t(e[l],n,r,i,o)}i.add(a)}(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function nt(t,e,n){return n?nt(t,e).pipe(Object(I.a)((function(t){return Object(D.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if(Object(tt.a)(e))return function(){return e(i,r)}}))}function rt(t,e,n,i,o){var a,u;if(1==arguments.length){var c=t;u=c.initialState,e=c.condition,n=c.iterate,a=c.resultSelector||C.a,o=c.scheduler}else void 0===i||Object(L.a)(i)?(u=t,a=C.a,o=i):(u=t,a=i);return new r.a((function(t){var r=u;if(o)return o.schedule(it,0,{subscriber:t,iterate:n,condition:e,resultSelector:a,state:r});for(;;){if(e){var i=void 0;try{i=e(r)}catch(e){return void t.error(e)}if(!i){t.complete();break}}var c=void 0;try{c=a(r)}catch(e){return void t.error(e)}if(t.next(c),t.closed)break;try{r=n(r)}catch(e){return void t.error(e)}}}))}function it(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(t){return void e.error(t)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function ot(t,e,n){return void 0===e&&(e=X.a),void 0===n&&(n=X.a),Object(Y.a)((function(){return t()?e:n}))}var at=n(48);function ut(t,e){return void 0===t&&(t=0),void 0===e&&(e=h.a),(!Object(at.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=h.a),new r.a((function(n){return n.add(e.schedule(ct,t,{subscriber:n,counter:0,period:t})),n}))}function ct(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}var st=n(107),lt=new r.a(T.a);function ft(){return lt}var ht=n(57);function dt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return X.a;var n=t[0],i=t.slice(1);return 1===t.length&&Object(D.a)(n)?dt.apply(void 0,n):new r.a((function(t){var e=function(){return t.add(dt.apply(void 0,i).subscribe(t))};return Object(Q.a)(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})}))}function pt(t,e){return e?new r.a((function(n){var r=Object.keys(t),i=new k.a;return i.add(e.schedule(bt,0,{keys:r,index:0,subscriber:n,subscription:i,obj:t})),i})):new r.a((function(e){for(var n=Object.keys(t),r=0;r<n.length&&!e.closed;r++){var i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()}))}function bt(t){var e=t.keys,n=t.index,r=t.subscriber,i=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var a=e[n];r.next([a,o[a]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}var gt=n(123),vt=n(54),mt=n(27);function yt(t,e,n){return[Object(mt.a)(e,n)(new r.a(Object(vt.a)(t))),Object(mt.a)(Object(gt.a)(e,n))(new r.a(Object(vt.a)(t)))]}var _t=n(108);function wt(t,e,n){return void 0===t&&(t=0),new r.a((function(r){void 0===e&&(e=t,t=0);var i=0,o=t;if(n)return n.schedule(xt,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(o++),r.closed)break}}))}function xt(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var kt=n(70),St=n(109);function Mt(t,e){return new r.a((function(n){var r,i;try{r=t()}catch(t){return void n.error(t)}try{i=e(r)}catch(t){return void n.error(t)}var o=(i?Object(Q.a)(i):X.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var Et=n(74),Tt=n(118),Ct=n(23)},function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var r,i,o,a,u=n(29),c=180/Math.PI,s={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},l=function(t,e,n,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),t*r<e*n&&(t=-t,e=-e,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*c,skewX:Math.atan(s)*c,scaleX:a,scaleY:u}};function f(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var c=[],s=[];return o=t(o),a=t(a),function(t,r,i,o,a,c){if(t!==i||r!==o){var s=a.push("translate(",null,e,null,n);c.push({i:s-4,x:Object(u.a)(t,i)},{i:s-2,x:Object(u.a)(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,c,s),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(u.a)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,c,s),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(u.a)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,c,s),function(t,e,n,r,o,a){if(t!==n||e!==r){var c=o.push(i(o)+"scale(",null,",",null,")");a.push({i:c-4,x:Object(u.a)(t,n)},{i:c-2,x:Object(u.a)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,c,s),o=a=null,function(t){for(var e,n=-1,r=s.length;++n<r;)c[(e=s[n]).i]=e.x(t);return c.join("")}}}var h=f((function(t){return"none"===t?s:(r||(r=document.createElement("DIV"),i=document.documentElement,o=document.defaultView),r.style.transform=t,t=o.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),l(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),d=f((function(t){return null==t?s:(a||(a=document.createElementNS("http://www.w3.org/2000/svg","g")),a.setAttribute("transform",t),(t=a.transform.baseVal.consolidate())?(t=t.matrix,l(t.a,t.b,t.c,t.d,t.e,t.f)):s)}),", ",")",")")},function(t,e){t.exports=function(t){return[...t].reduce((t,[e,n])=>(t[e]=n,t),{})}},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,u,c=a(t),s=1;s<arguments.length;s++){for(var l in n=Object(arguments[s]))i.call(n,l)&&(c[l]=n[l]);if(r){u=r(n);for(var f=0;f<u.length;f++)o.call(n,u[f])&&(c[u[f]]=n[u[f]])}}return c}},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(142)),r(n(165))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=class{constructor(){this.handlers=[]}on(t){return this.handlers.push(t),{dispose:()=>{this.handlers=this.handlers.filter(e=>e!==t)}}}fire(t){for(const e of this.handlers)e(t)}dispose(){this.handlers=[]}}},function(t,e,n){"use strict";var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function u(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function c(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=a(t+"",r),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=i[o]).type)r[n]=c(r[n],t.name,e);else if(null==e)for(n in r)r[n]=c(r[n],t.name,null);return this}for(;++o<s;)if((n=(t=i[o]).type)&&(n=u(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}},e.a=i},function(t,e,n){"use strict";var r=n(50);e.a=function(t,e,n){var i=new r.a;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i}},function(t,e,n){"use strict";var r=Math.SQRT2;function i(t){return((t=Math.exp(t))+1/t)/2}e.a=function(t,e){var n,o,a=t[0],u=t[1],c=t[2],s=e[0],l=e[1],f=e[2],h=s-a,d=l-u,p=h*h+d*d;if(p<1e-12)o=Math.log(f/c)/r,n=function(t){return[a+t*h,u+t*d,c*Math.exp(r*t*o)]};else{var b=Math.sqrt(p),g=(f*f-c*c+4*p)/(2*c*2*b),v=(f*f-c*c-4*p)/(2*f*2*b),m=Math.log(Math.sqrt(g*g+1)-g),y=Math.log(Math.sqrt(v*v+1)-v);o=(y-m)/r,n=function(t){var e,n=t*o,s=i(m),l=c/(2*b)*(s*(e=r*n+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[a+l*h,u+l*d,c*s/i(r*n+m)]}}return n.duration=1e3*o,n}},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}},function(t,e,n){"use strict";var r=n(49);e.a=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(e)/3)))-Object(r.a)(Math.abs(t)))}},function(t,e,n){"use strict";var r=n(49);e.a=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Object(r.a)(e)-Object(r.a)(t))+1}},function(t,e,n){"use strict";var r=n(49);e.a=function(t){return Math.max(0,-Object(r.a)(Math.abs(t)))}},function(t,e,n){"use strict";var r=n(4);e.a=Object(r.a)("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928")},function(t,e,n){"use strict";function r(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,u,c,s,l,f,h,d=t._root,p={data:r},b=t._x0,g=t._y0,v=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((s=e>=(o=(b+v)/2))?b=o:v=o,(l=n>=(a=(g+m)/2))?g=a:m=a,i=d,!(d=d[f=l<<1|s]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===u&&n===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(s=e>=(o=(b+v)/2))?b=o:v=o,(l=n>=(a=(g+m)/2))?g=a:m=a}while((f=l<<1|s)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[f]=p,t}n.d(e,"a",(function(){return u}));var i=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function o(t){return t[0]}function a(t){return t[1]}function u(t,e,n){var r=new c(null==e?o:e,null==n?a:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function c(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function s(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var l=u.prototype=c.prototype;l.copy=function(){var t,e,n=new c(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=s(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=s(e));return n},l.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return r(this.cover(e,n),e,n,t)},l.addAll=function(t){var e,n,i,o,a=t.length,u=new Array(a),c=new Array(a),s=1/0,l=1/0,f=-1/0,h=-1/0;for(n=0;n<a;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(u[n]=i,c[n]=o,i<s&&(s=i),i>f&&(f=i),o<l&&(l=o),o>h&&(h=o));if(s>f||l>h)return this;for(this.cover(s,l).cover(f,h),n=0;n<a;++n)r(this,u[n],c[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var a,u,c=i-n,s=this._root;n>t||t>=i||r>e||e>=o;)switch(u=(e<r)<<1|t<n,(a=new Array(4))[u]=s,s=a,c*=2,u){case 0:i=n+c,o=r+c;break;case 1:n=i-c,o=r+c;break;case 2:i=n+c,r=o-c;break;case 3:n=i-c,r=o-c}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},l.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var r,o,a,u,c,s,l,f=this._x0,h=this._y0,d=this._x1,p=this._y1,b=[],g=this._root;for(g&&b.push(new i(g,f,h,d,p)),null==n?n=1/0:(f=t-n,h=e-n,d=t+n,p=e+n,n*=n);s=b.pop();)if(!(!(g=s.node)||(o=s.x0)>d||(a=s.y0)>p||(u=s.x1)<f||(c=s.y1)<h))if(g.length){var v=(o+u)/2,m=(a+c)/2;b.push(new i(g[3],v,m,u,c),new i(g[2],o,m,v,c),new i(g[1],v,a,u,m),new i(g[0],o,a,v,m)),(l=(e>=m)<<1|t>=v)&&(s=b[b.length-1],b[b.length-1]=b[b.length-1-l],b[b.length-1-l]=s)}else{var y=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=y*y+_*_;if(w<n){var x=Math.sqrt(n=w);f=t-x,h=e-x,d=t+x,p=e+x,r=g.data}}return r},l.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,u,c,s,l,f,h,d=this._root,p=this._x0,b=this._y0,g=this._x1,v=this._y1;if(!d)return this;if(d.length)for(;;){if((s=o>=(u=(p+g)/2))?p=u:g=u,(l=a>=(c=(b+v)/2))?b=c:v=c,e=d,!(d=d[f=l<<1|s]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},l.visit=function(t){var e,n,r,o,a,u,c=[],s=this._root;for(s&&c.push(new i(s,this._x0,this._y0,this._x1,this._y1));e=c.pop();)if(!t(s=e.node,r=e.x0,o=e.y0,a=e.x1,u=e.y1)&&s.length){var l=(r+a)/2,f=(o+u)/2;(n=s[3])&&c.push(new i(n,l,f,a,u)),(n=s[2])&&c.push(new i(n,r,f,l,u)),(n=s[1])&&c.push(new i(n,l,o,a,f)),(n=s[0])&&c.push(new i(n,r,o,l,f))}return this},l.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var o=e.node;if(o.length){var a,u=e.x0,c=e.y0,s=e.x1,l=e.y1,f=(u+s)/2,h=(c+l)/2;(a=o[0])&&n.push(new i(a,u,c,f,h)),(a=o[1])&&n.push(new i(a,f,c,s,h)),(a=o[2])&&n.push(new i(a,u,h,f,l)),(a=o[3])&&n.push(new i(a,f,h,s,l))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y}},function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,u="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,s=u||c||Function("return this")(),l=Object.prototype.toString,f=Math.max,h=Math.min,d=function(){return s.Date.now()};function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function b(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(p(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=p(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var u=i.test(t);return u||o.test(t)?a(t.slice(2),u?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return p(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),function(t,e,n){var r,i,o,a,u,c,s=0,l=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=r,o=i;return r=i=void 0,s=e,a=t.apply(o,n)}function y(t){return s=t,u=setTimeout(w,e),l?m(t):a}function _(t){var n=t-c;return void 0===c||n>=e||n<0||g&&t-s>=o}function w(){var t=d();if(_(t))return x(t);u=setTimeout(w,function(t){var n=e-(t-c);return g?h(n,o-(t-s)):n}(t))}function x(t){return u=void 0,v&&r?m(t):(r=i=void 0,a)}function k(){var t=d(),n=_(t);if(r=arguments,i=this,c=t,n){if(void 0===u)return y(c);if(g)return u=setTimeout(w,e),m(c)}return void 0===u&&(u=setTimeout(w,e)),a}return e=b(e)||0,p(n)&&(l=!!n.leading,o=(g="maxWait"in n)?f(b(n.maxWait)||0,e):o,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=i=u=void 0},k.flush=function(){return void 0===u?a:x(d())},k}(t,e,{leading:r,maxWait:e,trailing:i})}}).call(this,n(183))},function(t,e){function n(t,e,n){var r,i,o,a,u;function c(){var s=Date.now()-a;s<e&&s>=0?r=setTimeout(c,e-s):(r=null,n||(u=t.apply(o,i),o=i=null))}null==e&&(e=100);var s=function(){o=this,i=arguments,a=Date.now();var s=n&&!r;return r||(r=setTimeout(c,e)),s&&(u=t.apply(o,i),o=i=null),u};return s.clear=function(){r&&(clearTimeout(r),r=null)},s.flush=function(){r&&(u=t.apply(o,i),o=i=null,clearTimeout(r),r=null)},s}n.debounce=n,t.exports=n},function(t,e,n){t.exports=function(){"use strict";const t=/^\s+/,e=/\s+$/;function n(r,i){if(i=i||{},(r=r||"")instanceof n)return r;if(!(this instanceof n))return new n(r,i);var o=function(n){var r,i,o,a={r:0,g:0,b:0},u=1,c=null,s=null,l=null,f=!1,h=!1;return"string"==typeof n&&(n=function(n){n=n.replace(t,"").replace(e,"").toLowerCase();var r,i=!1;if(y[n])n=y[n],i=!0;else if("transparent"==n)return{r:0,g:0,b:0,a:0,format:"name"};return(r=P.rgb.exec(n))?{r:r[1],g:r[2],b:r[3]}:(r=P.rgba.exec(n))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=P.hsl.exec(n))?{h:r[1],s:r[2],l:r[3]}:(r=P.hsla.exec(n))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=P.hsv.exec(n))?{h:r[1],s:r[2],v:r[3]}:(r=P.hsva.exec(n))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=P.hex8.exec(n))?{r:S(r[1]),g:S(r[2]),b:S(r[3]),a:C(r[4]),format:i?"name":"hex8"}:(r=P.hex6.exec(n))?{r:S(r[1]),g:S(r[2]),b:S(r[3]),format:i?"name":"hex"}:(r=P.hex4.exec(n))?{r:S(r[1]+""+r[1]),g:S(r[2]+""+r[2]),b:S(r[3]+""+r[3]),a:C(r[4]+""+r[4]),format:i?"name":"hex8"}:!!(r=P.hex3.exec(n))&&{r:S(r[1]+""+r[1]),g:S(r[2]+""+r[2]),b:S(r[3]+""+r[3]),format:i?"name":"hex"}}(n)),"object"==typeof n&&(z(n.r)&&z(n.g)&&z(n.b)?(r=n.r,i=n.g,o=n.b,a={r:255*x(r,255),g:255*x(i,255),b:255*x(o,255)},f=!0,h="%"===String(n.r).substr(-1)?"prgb":"rgb"):z(n.h)&&z(n.s)&&z(n.v)?(c=E(n.s),s=E(n.v),a=function(t,e,n){t=6*x(t,360),e=x(e,100),n=x(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),u=n*(1-(1-i)*e),c=r%6;return{r:255*[n,a,o,o,u,n][c],g:255*[u,n,n,a,o,o][c],b:255*[o,o,u,n,n,a][c]}}(n.h,c,s),f=!0,h="hsv"):z(n.h)&&z(n.s)&&z(n.l)&&(c=E(n.s),l=E(n.l),a=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=x(t,360),e=x(e,100),n=x(n,100),0===e)r=i=o=n;else{var u=n<.5?n*(1+e):n+e-n*e,c=2*n-u;r=a(c,u,t+1/3),i=a(c,u,t),o=a(c,u,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,c,l),f=!0,h="hsl"),n.hasOwnProperty("a")&&(u=n.a)),u=w(u),{ok:f,format:n.format||h,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:u}}(r);this._originalInput=r,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||o.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function r(t,e,n){t=x(t,255),e=x(e,255),n=x(n,255);var r,i,o=Math.max(t,e,n),a=Math.min(t,e,n),u=(o+a)/2;if(o==a)r=i=0;else{var c=o-a;switch(i=u>.5?c/(2-o-a):c/(o+a),o){case t:r=(e-n)/c+(e<n?6:0);break;case e:r=(n-t)/c+2;break;case n:r=(t-e)/c+4}r/=6}return{h:r,s:i,l:u}}function i(t,e,n){t=x(t,255),e=x(e,255),n=x(n,255);var r,i,o=Math.max(t,e,n),a=Math.min(t,e,n),u=o,c=o-a;if(i=0===o?0:c/o,o==a)r=0;else{switch(o){case t:r=(e-n)/c+(e<n?6:0);break;case e:r=(n-t)/c+2;break;case n:r=(t-e)/c+4}r/=6}return{h:r,s:i,v:u}}function o(t,e,n,r){var i=[M(Math.round(t).toString(16)),M(Math.round(e).toString(16)),M(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function a(t,e,n,r){return[M(T(r)),M(Math.round(t).toString(16)),M(Math.round(e).toString(16)),M(Math.round(n).toString(16))].join("")}function u(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s-=e/100,r.s=k(r.s),n(r)}function c(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.s+=e/100,r.s=k(r.s),n(r)}function s(t){return n(t).desaturate(100)}function l(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l+=e/100,r.l=k(r.l),n(r)}function f(t,e){e=0===e?0:e||10;var r=n(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),n(r)}function h(t,e){e=0===e?0:e||10;var r=n(t).toHsl();return r.l-=e/100,r.l=k(r.l),n(r)}function d(t,e){var r=n(t).toHsl(),i=(r.h+e)%360;return r.h=i<0?360+i:i,n(r)}function p(t){var e=n(t).toHsl();return e.h=(e.h+180)%360,n(e)}function b(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=n(t).toHsl(),i=[n(t)],o=360/e,a=1;a<e;a++)i.push(n({h:(r.h+a*o)%360,s:r.s,l:r.l}));return i}function g(t){var e=n(t).toHsl(),r=e.h;return[n(t),n({h:(r+72)%360,s:e.s,l:e.l}),n({h:(r+216)%360,s:e.s,l:e.l})]}function v(t,e,r){e=e||6,r=r||30;var i=n(t).toHsl(),o=360/r,a=[n(t)];for(i.h=(i.h-(o*e>>1)+720)%360;--e;)i.h=(i.h+o)%360,a.push(n(i));return a}function m(t,e){e=e||6;for(var r=n(t).toHsv(),i=r.h,o=r.s,a=r.v,u=[],c=1/e;e--;)u.push(n({h:i,s:o,v:a})),a=(a+c)%1;return u}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=w(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=i(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=r(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=r(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),i=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+i+"%)":"hsla("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return o(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[M(Math.round(t).toString(16)),M(Math.round(e).toString(16)),M(Math.round(n).toString(16)),M(T(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*x(this._r,255))+"%",g:Math.round(100*x(this._g,255))+"%",b:Math.round(100*x(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*x(this._r,255))+"%, "+Math.round(100*x(this._g,255))+"%, "+Math.round(100*x(this._b,255))+"%)":"rgba("+Math.round(100*x(this._r,255))+"%, "+Math.round(100*x(this._g,255))+"%, "+Math.round(100*x(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(_[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+a(this._r,this._g,this._b,this._a),r=e,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=n(t);r="#"+a(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(f,arguments)},darken:function(){return this._applyModification(h,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(s,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(p,arguments)},monochromatic:function(){return this._applyCombination(m,arguments)},splitcomplement:function(){return this._applyCombination(g,arguments)},triad:function(){return this._applyCombination(b,[3])},tetrad:function(){return this._applyCombination(b,[4])}},n.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]="a"===i?t[i]:E(t[i]));t=r}return n(t,e)},n.equals=function(t,e){return!(!t||!e)&&n(t).toRgbString()==n(e).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(t,e,r){r=0===r?0:r||50;var i=n(t).toRgb(),o=n(e).toRgb(),a=r/100;return n({r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a})},n.readability=function(t,e){var r=n(t),i=n(e);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(t,e,r){var i,o,a,u,c,s=n.readability(t,e);switch(o=!1,(a=r,u=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase(),c=(a.size||"small").toLowerCase(),"AA"!==u&&"AAA"!==u&&(u="AA"),"small"!==c&&"large"!==c&&(c="small"),i={level:u,size:c}).level+i.size){case"AAsmall":case"AAAlarge":o=s>=4.5;break;case"AAlarge":o=s>=3;break;case"AAAsmall":o=s>=7}return o},n.mostReadable=function(t,e,r){var i,o,a,u,c=null,s=0;o=(r=r||{}).includeFallbackColors,a=r.level,u=r.size;for(var l=0;l<e.length;l++)(i=n.readability(t,e[l]))>s&&(s=i,c=n(e[l]));return n.isReadable(t,c,{level:a,size:u})||!o?c:(r.includeFallbackColors=!1,n.mostReadable(t,["#fff","#000"],r))};var y=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},_=n.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(y);function w(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function x(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function k(t){return Math.min(1,Math.max(0,t))}function S(t){return parseInt(t,16)}function M(t){return 1==t.length?"0"+t:""+t}function E(t){return t<=1&&(t=100*t+"%"),t}function T(t){return Math.round(255*parseFloat(t)).toString(16)}function C(t){return S(t)/255}var O,j,A,P=(j="[\\s|\\(]+("+(O="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",A="[\\s|\\(]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")[,|\\s]+("+O+")\\s*\\)?",{CSS_UNIT:new RegExp(O),rgb:new RegExp("rgb"+j),rgba:new RegExp("rgba"+A),hsl:new RegExp("hsl"+j),hsla:new RegExp("hsla"+A),hsv:new RegExp("hsv"+j),hsva:new RegExp("hsva"+A),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function z(t){return!!P.CSS_UNIT.exec(t)}return n}()},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(7),i=n(159),o=n(163),a=n(170),u=n(180),c=n(196),s=n(195),l=n(185);let f,h=new(n(194).Converter)({openLinksInNewWindow:!0,literalMidWordUnderscores:!0});const d=r.createContext(0);function p(){let t=n(134);t||(delete n.c[134],t=n(134)),t&&t.Hub.Queue(["Typeset",t.Hub])}class b extends r.Component{constructor(t){super(t),this.subscriptions=[],this.state={currentlyRunning:!0}}componentWillMount(){this.updateRunning(this.props),this.subscriptions.push(o.currentlyRunning.updated.on(t=>this.updateRunning(this.props)))}componentWillUnmount(){for(const t of this.subscriptions)t.dispose();this.subscriptions=[]}componentWillReceiveProps(t){this.updateRunning(t)}updateRunning(t){let e=-1!==o.currentlyRunning.value.indexOf(t.file);this.props.isReady(!e),this.setState({currentlyRunning:e})}render(){return this.state.currentlyRunning?r.createElement("div",null,r.createElement("p",null,"Lean is busy ...")):r.createElement("div",null)}}function g(t){return monaco.editor.colorize(t,"lean",{})._value.replace(/ /g," ")}class v extends r.Component{constructor(t){super(t),this.state={colorized:this.props.text}}componentDidMount(){monaco.editor.colorize(this.props.text,"lean",{}).then(t=>{this.setState({colorized:t.replace(/ /g," ")})})}render(){return r.createElement("div",{className:"code-block no-mathjax",dangerouslySetInnerHTML:{__html:this.state.colorized}})}}class m extends r.Component{constructor(t){super(t),this.state={showDoc:this.props.doc.length<80},this.onClick=this.onClick.bind(this)}onClick(){this.setState({showDoc:!this.state.showDoc})}render(){return r.createElement("div",{onClick:this.onClick,className:"toggleDoc"},this.state.showDoc?this.props.doc:r.createElement("span",null,this.props.doc.slice(0,75)," ",r.createElement("span",{style:{color:"#246"}},"[...]")),r.createElement("br",null),r.createElement("br",null))}}class y extends r.Component{constructor(t){super(t),this.subscriptions=[],this.scheduleCheckIfSolved=!1,this.messageUpdateCounter=0,this.state={messages:[],solved:!1}}componentWillMount(){this.updateMessages(this.props);let t=null;this.subscriptions.push(o.server.allMessages.on(e=>{t&&clearTimeout(t),t=setTimeout(()=>{this.updateMessages(this.props),this.refreshGoal(this.props)},100)}))}componentWillUnmount(){for(const t of this.subscriptions)t.dispose();this.subscriptions=[]}componentWillReceiveProps(t){this.props.world==t.world&&this.props.level==t.level&&t.cursor===this.props.cursor||(this.updateMessages(t),this.refreshGoal(t))}updateMessages(t){let e=o.allMessages.filter(t=>t.file_name===this.props.file),n=e.findIndex(this.props.isInfoMessage);-1==n?(this.messageUpdateCounter=0,this.setState({messages:[]})):(this.messageUpdateCounter+=1,this.setState({messages:e.filter((t,e)=>e!=n)}))}checkIfSolved(t){this.scheduleCheckIfSolved&&t==this.messageUpdateCounter&&t>0&&(0==this.state.messages.filter(t=>"error"==t.severity||"warning"==t.severity).length?(this.props.isSolved(),this.setState({solved:!0})):this.setState({solved:!1})),this.scheduleCheckIfSolved=!1}refreshGoal(t){if(t||(t=this.props),!t.cursor)return;const e=this.messageUpdateCounter,n=t.cursor;o.server.info(t.file,n.line,n.column).then(t=>{this.setState({goal:t.record&&{goal:t.record,position:n}}),setTimeout(this.checkIfSolved.bind(this,e),500)})}render(){const t=this.state.goal&&r.createElement("div",{key:Date.now()+"goal"},function({goal:t,position:e},n){const i=t.text&&r.createElement("div",{className:"info-header"},e.line,":",e.column,": tactic ",r.createElement("span",{className:"code-block",style:{fontWeight:"normal",display:"inline"}},t.text)),o=t.doc&&r.createElement(m,{doc:t.doc}),a=t.type&&r.createElement("div",{className:"info-header"},e.line,":",e.column,": type ",t["full-id"]&&r.createElement("span",null," of ",r.createElement("span",{className:"code-block",style:{fontWeight:"normal",display:"inline"}},t["full-id"]))),u=t.type&&!t.text&&r.createElement("div",{className:"code-block",dangerouslySetInnerHTML:{__html:g(t.type)+(!t.doc&&"<br />")}}),c=n&&"no goals"==t.state?"Proof complete!":t.state,s=c&&r.createElement("div",{className:"info-header"},e.line,":",e.column,": goal"),l=c&&r.createElement("div",{className:"code-block",dangerouslySetInnerHTML:{__html:g(c)+"<br/>"}});return r.createElement("div",null,s,l,i||a,u,o)}(this.state.goal,this.state.solved)),e=r.createElement("div",{style:{overflowY:"auto",width:"100%",height:"100%"}},r.createElement("div",{style:{marginRight:"1ex",float:"right"}},r.createElement("img",{src:"./display-goal-light.svg",title:"Goals"})),t),n=this.state.messages.map((t,e)=>r.createElement("div",{key:""+Date.now()+e},function({msg:t}){return r.createElement("div",{style:{paddingBottom:"1em"}},r.createElement("div",{className:"info-header",style:{color:{information:"green",warning:"orange",error:"red"}[t.severity]}},t.pos_line,":",t.pos_col,": ",t.severity,": ",t.caption),r.createElement(v,{text:t.text}))}({msg:t}))),i=r.createElement("div",{style:{overflowY:"auto",width:"100%",height:"100%",boxSizing:"border-box",paddingTop:"1em"}},r.createElement("div",{style:{marginRight:"1ex",float:"right"}},r.createElement("img",{src:"./display-list-light.svg",title:"Messages"})),n);return r.createElement("div",{className:"no-mathjax info-view"},r.createElement(b,{file:this.props.file,isReady:t=>{this.scheduleCheckIfSolved=t}}),r.createElement(a.Container,{vertical:!0,style:{height:"100%"}},r.createElement(a.Section,{minSize:200},e),r.createElement(a.Bar,{size:10,className:"Resizer horizontal"}),r.createElement(a.Section,{minSize:200},i)))}}class _ extends r.Component{constructor(t){super(t),this.state={status:null},this.props.updateEditorData({lineOffset:this.props.lineOffset}),this.model=monaco.editor.getModel(monaco.Uri.file(this.props.fileName)),this.model||(this.model=monaco.editor.createModel("","lean",monaco.Uri.file(this.props.fileName)),this.model.updateOptions({tabSize:2})),this.model.onDidChangeContent(t=>{this.props.updateEditorData({fileContent:this.props.textBefore+this.model.getValue()+this.props.textAfter,text:this.model.getValue()}),o.checkInputCompletionChange(t,this.editor,this.model)}),this.model.setValue(this.props.editorText)}componentDidMount(){const t=i.findDOMNode(this.refs.monaco),e={selectOnLineNumbers:!0,roundedSelection:!1,readOnly:this.props.readonly,cursorStyle:"line",automaticLayout:!0,cursorBlinking:"solid",model:this.model,minimap:{enabled:!1},wordWrap:"on",scrollBeyondLastLine:!1,lineNumbers:t=>(t+this.props.lineOffset).toString()};this.editor=monaco.editor.create(t,e);const n=this.editor.createContextKey("canTranslate",!1);this.editor.onDidChangeCursorPosition(t=>{n.set(o.checkInputCompletionPosition(t,this.editor,this.model)),this.props.onDidCursorMove({line:t.position.lineNumber+this.props.lineOffset,column:t.position.column-1})}),this.editor.addCommand(monaco.KeyCode.Tab,()=>{o.tabHandler(this.editor,this.model)},"canTranslate"),t.focus()}componentWillUnmount(){this.editor.dispose(),this.editor=void 0,this.model.onDidChangeContent(t=>{})}render(){const t=r.createElement("div",{id:"editor_div",style:{height:1.25*this.props.height+"em",display:"flex",flexDirection:"row",marginTop:"1ex",marginBottom:"1ex"}},r.createElement("div",{ref:"monaco",style:{height:"100%",width:"calc(100% - 2em)",marginRight:"1ex",overflow:"hidden"}}));return r.createElement("div",{className:"no-mathjax"}," ",t," ")}}class w extends r.Component{constructor(t){super(t)}render(){return r.createElement("div",{dangerouslySetInnerHTML:{__html:h.makeHtml(this.props.content)}})}}class x extends r.Component{constructor(t){super(t)}render(){let t=document.createElement("div");t.innerHTML=h.makeHtml(this.props.title);let e=t.children[0].innerHTML;return r.createElement("div",{style:{fontSize:"small",width:"100%"}},r.createElement(u.Accordion,{allowZeroExpanded:!0},r.createElement(u.AccordionItem,null,r.createElement(u.AccordionItemHeading,null,r.createElement(u.AccordionItemButton,null,r.createElement("div",{style:{display:"inline-block"},dangerouslySetInnerHTML:{__html:e}}))),r.createElement(u.AccordionItemPanel,null,r.createElement("div",{dangerouslySetInnerHTML:{__html:h.makeHtml(this.props.content)}})))))}}class k extends r.Component{constructor(t){super(t)}render(){const t=t=>f[this.context][t];let e,n;this.props.isActive?(e=r.createElement(_,Object.assign({},this.props,{readonly:"example"==this.props.type})),n=r.createElement("button",{style:{border:"none",background:"transparent"},onClick:()=>{navigator.clipboard.writeText(this.props.lean+"begin\n"+this.props.getCurrentEditorText()+"\nend")},title:"Copy to clipboard"},"📋")):e=r.createElement(v,{text:t(this.props.editorText)});const i="lemma"==this.props.type?"Lemma":"theorem"==this.props.type?"Theorem":"definition"==this.props.type?"Definition":"Example";return r.createElement("div",{className:"problem_wrapper"},r.createElement("span",{className:"problem_label"},i),r.createElement("div",{className:"problem_content"},r.createElement("div",{className:"problem_text"},r.createElement(w,{content:t(this.props.text)})),r.createElement("div",{className:"problem_lean"},r.createElement(v,{text:this.props.lean}))),"definition"==this.props.type?null:r.createElement("div",{style:{marginTop:"0.5em"}},r.createElement("span",{style:{fontStyle:"italic"}},"Proof :")),r.createElement("div",{className:"problem_proof"},r.createElement("div",{style:{display:"flex",justifyContent:"space-between",width:"calc(100% - 2em)"}},r.createElement(v,{text:"begin"}),n),e,r.createElement(v,{text:"end"})))}}k.contextType=d;class S extends r.Component{constructor(t){super(t)}componentDidMount(){p()}render(){const t=t=>f[this.context][t],e=this.props.levelData.objects.map((e,n)=>"text"==e.type?r.createElement(w,{key:n,content:t(e.content)}):"hint"==e.type?r.createElement(x,{key:n,title:t(e.title),content:t(e.content)}):"lean"!=e.type||e.hidden?"lemma"==e.type||"theorem"==e.type||"definition"==e.type||"example"==e.type?r.createElement(k,Object.assign({key:n,fileName:this.props.fileName,isActive:this.props.levelData.problemIndex==n,onDidCursorMove:this.props.onDidCursorMove,updateEditorData:this.props.updateEditorData,getCurrentEditorText:this.props.getCurrentEditorText},e)):void 0:r.createElement(v,{key:n,text:t(e.content)}));return r.createElement("div",{className:"level_content"},e)}}S.contextType=d;class M extends r.Component{constructor(t){super(t);let e=(t,e)=>{let n=this.props.worlds[t].levels[e].objects,r=[],i=[],o=[],a=[];for(let t=0;t<n.length;t++)1==n[t].sideBar&&("tactic"==n[t].type?r.push(n[t]):"example"==n[t].type?o.push(n[t]):"lemma"==n[t].type||"theorem"==n[t].type?i.push(n[t]):"axiom"==n[t].type&&a.push(n[t]));return{tactics:r,nonAxiomStatements:i,examples:o,axioms:a}},n=t=>{let n={tactics:[],statements:[],examples:[]};for(let r=0;r<this.props.worlds[t].levels.length;r++){let i=e(t,r);n.tactics.push(...i.tactics),n.examples.push(...i.examples),n.statements.push(...i.axioms),n.statements.push(...i.nonAxiomStatements)}return n},r=(t,e)=>{let n=this.props.worlds[e];if(!n.parents)return!1;for(let e=0;e<n.parents.length;e++)if(t==n.parents[e]||r(t,n.parents[e]))return!0;return!1};this.sideBarData=new Array(this.props.worlds.length).fill([]);let i=this.props.worlds.map((t,e)=>n(e));for(let t=0;t<this.props.worlds.length;t++){let n=this.props.worlds[t];this.sideBarData[t]=new Array(n.levels.length).fill([]);let o=[],a=new Array(this.props.worlds.length).fill([]),u=[];for(let e=0;e<this.props.worlds.length;e++)r(e,t)&&(o.push(...i[e].tactics),u.push(...i[e].examples),a[e]=i[e].statements);let c,s=e(t,0);o.push(...s.tactics),a[t]=s.axioms,this.sideBarData[t][0]={tactics:o,sortedStatements:a,examples:u};for(let r=1;r<n.levels.length;r++){c=s,s=e(t,r);let n=new Array(this.props.worlds.length).fill([]);for(let e=0;e<this.props.worlds.length;e++)e!=t?n[e]=this.sideBarData[t][r-1].sortedStatements[e]:n[t]=this.sideBarData[t][r-1].sortedStatements[t].concat(c.nonAxiomStatements,s.axioms);this.sideBarData[t][r]={tactics:this.sideBarData[t][r-1].tactics.concat(s.tactics),sortedStatements:n,examples:this.sideBarData[t][r-1].examples.concat(c.examples)}}}}render(){const t=t=>f[this.context][t],e=(t,e)=>{if(0==e.length)return;let n=document.createElement("div");n.innerHTML=h.makeHtml(t);let i=n.children[0].innerHTML;return r.createElement(u.AccordionItem,{key:t},r.createElement(u.AccordionItemHeading,null,r.createElement(u.AccordionItemButton,null,r.createElement("div",{style:{display:"inline-block"},dangerouslySetInnerHTML:{__html:i}}))),r.createElement(u.AccordionItemPanel,null,e))};let n={tactics:[],sortedStatements:[],examples:[]};n=this.sideBarData[this.props.world][this.props.level];const i=e("Tactics",n.tactics.map((n,i)=>e(n.name,[r.createElement(w,{key:"tactic,text,"+i,content:t(n.content)})]))),o=e("Examples",n.examples.map((e,n)=>r.createElement("div",null,r.createElement(v,{key:"example,statement,"+n,text:e.lean}),r.createElement(v,{key:"example,proof,"+n,text:"begin\n"+t(e.proof)+"\nend"}),r.createElement("hr",null)))),a=n.sortedStatements.some(t=>t.length)?e("Theorem statements",n.sortedStatements.map((n,i)=>{if(!n)return[];let o=t(this.props.worlds[i].name);return e(o,n.map((e,n)=>{let i=" "+("axiom"==e.type?t(e.content):e.statement);return r.createElement("div",null,r.createElement(v,{key:e.type+",name,"+n,text:e.name}),r.createElement(v,{key:e.type+",statement,"+n,text:i}),r.createElement("hr",null))}))})):null;return i||a||o?r.createElement("div",{style:{fontSize:"small",overflowY:"auto",height:"100%",overflowX:"hidden"}},r.createElement(u.Accordion,{allowMultipleExpanded:!0,allowZeroExpanded:!0},i,a,o)):null}}M.contextType=d;class E extends r.Component{constructor(t){super(t),this.scale=1,this.state={highlightWorld:-1},this.graphRef=r.createRef()}handleNodeHover(t){t&&this.state.highlightWorld!=t.id&&this.setState({highlightWorld:t.id})}paintNode(t,e,n,r,i){if(t.id==this.state.highlightWorld&&(e.beginPath(),e.arc(t.x,t.y,1.4*r,0,2*Math.PI,!1),e.fillStyle="red",e.fill()),e.beginPath(),e.arc(t.x,t.y,r,0,2*Math.PI,!1),-1!=this.props.solvedWorlds.indexOf(t.id))e.fillStyle="green";else{let n=[];for(let t=0;t<this.props.worlds.length;t++)this.props.worlds[t].parents?this.props.worlds[t].parents.every(t=>-1!=this.props.solvedWorlds.indexOf(t))&&this.props.worlds[t].parents.every(t=>-1!=n.indexOf(t))&&n.push(t):n.push(t);e.fillStyle=-1!=n.indexOf(t.id)?"blue":"gray"}e.fill();const o=f[this.context][t.worldData.name],a=i/n;e.font=a+"px Sans-Serif";const u=[e.measureText(o).width,a].map(t=>t+.2*a);e.fillStyle=getComputedStyle(document.body).backgroundColor,e.fillRect(t.x-u[0]/2,t.y-u[1]-1.5*r,...u),e.textAlign="center",e.textBaseline="middle",e.fillStyle=getComputedStyle(document.body).color,e.fillText(o,t.x,t.y-u[1]/2-1.5*r)}componentDidMount(){let t=30*this.scale,e=50*this.scale;const n=this.graphRef.current;-1!=this.props.world?(n.d3Force("collide",null),n.d3Force("link",null),n.d3Force("charge",null)):(n.d3Force("collide",s.forceCollide(t)),n.d3Force("link",s.forceLink().id((function(t){return t.id})).distance(e).strength(1)),n.d3Force("charge",null))}render(){this.scale=.5*Math.min(this.props.width/this.props.graphData.deltaX,this.props.height/this.props.graphData.deltaY);let t=10*this.scale,e=80*this.scale,n=12*this.scale;return r.createElement(c.default,{ref:this.graphRef,width:this.props.width,height:this.props.height,graphData:this.props.graphData,nodeRelSize:t,linkWidth:5,linkColor:this.props.darkMode?()=>"rgb(100, 100, 100)":"color",linkDirectionalParticles:0,linkDirectionalArrowLength:10,linkDirectionalArrowColor:this.props.darkMode?()=>getComputedStyle(document.body).color:"color",nodeCanvasObject:(e,r,i)=>{this.paintNode.call(this,e,r,i,t,n)},onNodeHover:this.handleNodeHover.bind(this),onNodeClick:t=>{this.props.gotoWorld(t.id)},nodeLabel:t=>h.makeHtml(f[this.context][this.props.worlds[t.id].name]),enableNodeDrag:!0,enableZoomInteraction:!0,dagMode:"td",dagLevelDistance:e})}}E.contextType=d;class T extends r.Component{constructor(t){super(t),this.state={value:this.props.currentLanguageIndex},this.handleChange=this.handleChange.bind(this)}handleChange(t){this.props.updateLanguageIndex(Number(t.target.value)),this.setState({value:t.target.value})}render(){return 1==this.props.languages.length?null:r.createElement("select",{value:this.state.value,onChange:this.handleChange,style:{float:"right",width:"8%",height:"100%"},className:"language-menu"},this.props.languages.map((t,e)=>r.createElement("option",{value:e},t.toUpperCase())))}}class C extends r.Component{constructor(t){super(t);let e=[];this.props.worlds.forEach((t,n)=>{t.isSolved&&(e=e.concat([n]))}),this.state={currentLanguageIndex:this.props.currentLanguageIndex,world:this.props.world,level:this.props.level,solvedWorlds:e,darkMode:this.props.darkMode},this.graphData||(this.graphData=function(t){let e=new Array(t.length).fill(0),n=new Array(t.length).fill(0),r=0,i=[];for(let o=0;o<t.length;o++){let a=t[o].parents;if(a)for(let t=0;t<a.length;t++)n[o]=n[o]>n[a[t]]+1?n[o]:n[a[t]]+1;else r+=1,i=[];i.length<=n[o]&&i.push([]),e[o]=i[n[o]].length,i[n[o]].push(o)}let o=(t,e)=>{let n=(t,e,n)=>{let r=t[e];t[e]=t[n],t[n]=r},r=(t,i)=>{if(1==i)return[[t[0]],e(t[0],0)];let o=[null,null];for(let a=0;a<i;a++){n(t,a,i-1);let u=r(t,i-1);u[1]+=e(t[i-1],i-1),(!o[1]||o[1]>u[1])&&(o=[u[0].push(t[i-1]),u[1]]),n(t,a,i-1)}return o};return r(t,t.length)[0]};for(let n=0;n<t.length+1&&i[n];n++){let r=(n,r)=>{if(!t[n].parents)return 0;let i=0;for(let o=0;o<t[n].parents.length;o++)i+=Math.abs(r-e[t[n].parents[o]]);return i},a=o(i[n],r);for(let t=0;t<a.length;t++)e[a[t]]=t}let a=-(r-1)/2;t.length>0&&(e[0]=a);for(let n=1;n<t.length;n++)t[n].parents||(a+=1),e[n]=e[n]+a;return e=e.map(t=>60*t),n=n.map(t=>80*t),{nodes:t.map((t,r)=>({id:r,x:e[r],y:n[r],worldData:t})),links:[].concat(...t.map((t,e)=>t.parents?t.parents.map(t=>({source:t,target:e})):[])),deltaX:Math.max(...e)+120,deltaY:Math.max(...n)+160}}(this.props.worlds))}goto(t,e){this.props.saveGame(),this.setState({world:t,level:e}),-1!=t&&(this.props.worlds[t].lastVisitedLevel=e),this.props.updateURL(t,e)}gotoWorld(t){let e=0;-1!=t&&this.props.worlds[t].lastVisitedLevel&&(e=this.props.worlds[t].lastVisitedLevel),this.goto(t,e)}gotoLevel(t){this.goto(this.state.world,t)}windowResize(){this.forceUpdate()}componentDidMount(){window.addEventListener("resize",this.windowResize.bind(this))}componentWillUnmount(){window.removeEventListener("resize",this.windowResize.bind(this))}render(){const t=r.createElement("button",{className:"ridge-button",style:{float:"right",height:"100%",fontSize:"large",width:this.props.languages.length>1?"6%":"15%"},onClick:this.props.resetGame,title:"Reset game",dangerouslySetInnerHTML:{__html:"↺"}}),e=r.createElement("button",{className:"ridge-button",style:{float:"right",height:"100%",fontSize:"large",width:this.props.languages.length>1?"6%":"15%"},onClick:()=>{this.props.updateDarkMode(!this.state.darkMode),this.setState({darkMode:!this.state.darkMode})},title:this.state.darkMode?"Day mode":"Night mode",dangerouslySetInnerHTML:{__html:this.state.darkMode?"🔆":"🔅"}}),n=r.createElement(T,{languages:this.props.languages,currentLanguageIndex:this.state.currentLanguageIndex,updateLanguageIndex:t=>{this.props.updateLanguageIndex(t),this.setState({currentLanguageIndex:t})}});if(-1==this.state.world){const i=r.createElement("button",{className:"ridge-button",style:{float:"right",height:"100%",fontSize:"large",width:this.props.languages.length>1?"6%":"15%"},onClick:this.props.saveGameToFile,title:"Save game to file",dangerouslySetInnerHTML:{__html:"🖫"}}),o=r.createElement("div",{className:"first-button-panel"},e,n,t,i,r.createElement((function(t){const e=r.useRef(null),n=r.createElement("input",{ref:e,type:"file",style:{display:"none"},onChange:e=>{t.loadGameFromFile(e.target.files)}}),i=r.createElement("button",{className:"ridge-button",style:{float:"right",height:"100%",fontSize:"large",width:t.languages.length>1?"6%":"15%"},onClick:()=>{e.current.click()},title:"Load game from file",dangerouslySetInnerHTML:{__html:"🗎"}});return r.createElement(r.Fragment,null,n,i)}),{loadGameFromFile:this.props.loadGameFromFile,languages:this.props.languages})),u=r.createElement(S,{fileName:this.props.fileName,key:"intro",levelData:this.props.introData,onDidCursorMove:t=>{},updateEditorData:this.props.updateEditorData,getCurrentEditorText:this.props.getCurrentEditorText}),c=r.createElement(E,{graphData:this.graphData,worlds:this.props.worlds,world:this.state.world,solvedWorlds:this.state.solvedWorlds,gotoWorld:this.gotoWorld.bind(this),width:.6*window.innerWidth,height:window.innerHeight,darkMode:this.state.darkMode});return r.createElement(d.Provider,{value:this.state.currentLanguageIndex},r.createElement("div",{style:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0"}},r.createElement(a.Container,{style:{height:"100%"}},r.createElement(a.Section,{defaultSize:.4*window.innerWidth},u),r.createElement(a.Bar,{size:5,hidden:!0}),r.createElement(a.Section,{defaultSize:.6*window.innerWidth},r.createElement("div",{style:{width:"100%",height:"100%",boxSizing:"border-box",borderStyle:"double"}},c))),o))}const i=this.props.worlds[this.state.world],o=i.levels[this.state.level],u=this.state.world+1+","+(this.state.level+1),c=t=>f[this.state.currentLanguageIndex][t],s=r.createElement("div",{style:{textAlign:"center"}},r.createElement("h3",null,r.createElement(w,{content:(i.isSolved?"✔ ":"")+c(i.name)}))),l=r.createElement("div",{key:this.state.world,className:"first-button-panel"},r.createElement("button",{className:"ridge-button",style:{float:"left",width:"20%",height:"100%"},onClick:()=>{this.gotoWorld.call(this,-1)}}," Main Menu "),e,n,t,s),h=r.createElement("div",{style:{textAlign:"center"}},r.createElement("h4",null,r.createElement(w,{content:(o.isSolved?"✔ ":"")+"Level "+(this.state.level+1)+"/"+i.levels.length+(o.name?" -- "+c(o.name):"")}))),p=r.createElement("div",{key:u,className:"second-button-panel"},r.createElement("button",{className:"ridge-button",disabled:0==this.state.level,style:{float:"left",width:"20%",height:"100%"},onClick:()=>{this.gotoLevel.call(this,this.state.level-1)}}," Previous Level "),r.createElement("button",{className:"ridge-button",disabled:this.state.level==i.levels.length-1,style:{float:"right",width:"20%",height:"100%"},onClick:()=>{this.gotoLevel.call(this,this.state.level+1)}}," Next Level "),h),b=r.createElement(M,{worlds:this.props.worlds,world:this.state.world,level:this.state.level}),g=r.createElement(S,{fileName:this.props.fileName,key:u,levelData:o,onDidCursorMove:t=>{this.setState({cursor:t})},updateEditorData:this.props.updateEditorData,getCurrentEditorText:this.props.getCurrentEditorText}),v=r.createElement(y,{file:this.props.fileName,cursor:this.state.cursor,world:this.state.world,level:this.state.level,isSolved:()=>{if(o.isSolved)return;o.isSolved=!0,i.isSolved=this.props.worlds[this.state.world].levels.every(t=>t.isSolved);let t=i.isSolved?this.state.solvedWorlds.concat([this.state.world]):this.state.solvedWorlds;this.setState({solvedWorlds:t})},isInfoMessage:this.props.isInfoMessage}),m=r.createElement(a.Container,{style:{height:"100%"}},r.createElement(a.Section,{defaultSize:b?.15*window.innerWidth:0},b),r.createElement(a.Bar,{size:10,className:"Resizer vertical"}),r.createElement(a.Section,{minSize:200,defaultSize:b?.5*window.innerWidth:.65*window.innerWidth},g),r.createElement(a.Bar,{size:10,className:"Resizer vertical"}),r.createElement(a.Section,{minSize:200},v));return r.createElement(d.Provider,{value:this.state.currentLanguageIndex},r.createElement("div",null,l,p,r.createElement("div",{className:"main-wrapper"},m)))}}C.contextType=d;class O{static updateEditorData(t){t.lineOffset&&(this.activeEditorData.lineOffset=t.lineOffset),t.fileContent&&(this.activeEditorData.fileContent=t.fileContent,this.activeEditorData.text=t.text,this.isSaved=!1)}static updateURL(t,e){let n=new URL(window.location.href);-1==t?n.search="":(n.searchParams.set("world",String(t+1)),n.searchParams.set("level",String(e+1))),this.world=t,this.level=e,history.replaceState(null,null,n.href)}static readURL(){let t=-1,e=0,n=new URL(window.location.href);if(n.searchParams.has("world")){let r=Number(n.searchParams.get("world"));if(!isNaN(r)&&r>=1&&r<=this.gameData.worlds.length&&(t=r-1,n.searchParams.has("level"))){let t=Number(n.searchParams.get("level"));!isNaN(t)&&t>=1&&t<=this.gameData.worlds[r-1].levels.length&&(e=t-1)}}this.updateURL(t,e)}static resetGame(){window.confirm("The game will reset and the progress will be lost.")&&(localStorage.removeItem(this.savedGameLocalStorageKey),this.isSaved=!0,this.updateURL(-1,0),location.reload())}static updateDarkMode(t){this.darkMode=t;let e=document.documentElement;this.darkMode?(e.style.setProperty("--bg-color","var(--dark-mode-bg-color)"),e.style.setProperty("--color","var(--dark-mode-color)"),e.style.setProperty("--resizer-bg-color","var(--dark-mode-resizer-bg-color)"),e.style.setProperty("--a-color","var(--dark-mode-a-color)"),monaco.editor.setTheme("vs-dark")):(e.style.removeProperty("--bg-color"),e.style.removeProperty("--color"),e.style.removeProperty("--resizer-bg-color"),e.style.removeProperty("--a-color"),monaco.editor.setTheme("vs")),localStorage.setItem("darkMode",JSON.stringify(this.darkMode))}static saveGame(){if(this.isSaved)return;if(-1!=this.world){let t=this.gameData.worlds[this.world].levels[this.level];-1!=t.problemIndex&&(t.objects[t.problemIndex].editorText=this.activeEditorData.text)}let t={name:this.gameData.name,version:this.gameData.version,language:this.gameData.languages[this.currentLanguageIndex],data:[]};for(let e=0;e<this.gameData.worlds.length;e++){let n=this.gameData.worlds[e];for(let e=0;e<n.levels.length;e++){let r=n.levels[e];if(-1!=r.problemIndex){let e=r.objects[r.problemIndex];t.data.push({lean:e.lean,isSolved:r.isSolved,editorText:e.editorText})}}}localStorage.setItem(this.savedGameLocalStorageKey,JSON.stringify(t)),this.isSaved=!0}static loadGame(t){this.savedGameLocalStorageKey=t.name+"-"+t.version.split(".")[0]+"-savedGameData";let e=JSON.parse(localStorage.getItem(this.savedGameLocalStorageKey)),n=JSON.parse(localStorage.getItem("game_data"));if(n&&n.name==t.name&&t.version.split(".")[0]==n.version.split(".")[0]){e={name:n.name,version:n.version,data:[]};for(let t=0;t<n.worlds.length;t++){let r=n.worlds[t];for(let t=0;t<r.levels.length;t++){let n=r.levels[t];if(!isNaN(n.activeIndex)&&-1!=n.activeIndex){let t=n.objects[n.activeIndex],r=" sorry"==t.editorText?"sorry":t.editorText;e.data.push({lean:t.lean,isSolved:n.isSolved,editorText:r})}}}localStorage.removeItem("game_data")}if(this.currentLanguageIndex=0,this.isSaved=!0,e){for(let n=0;n<t.worlds.length;n++){let r=t.worlds[n];for(let t=0;t<r.levels.length;t++){let n=r.levels[t];if(-1!=n.problemIndex){let t=n.objects[n.problemIndex],r=e.data.find(e=>e.lean==t.lean);r&&(n.isSolved=r.isSolved,t.editorText=r.editorText)}}r.isSolved=r.levels.every(t=>t.isSolved)}this.currentLanguageIndex=t.languages.findIndex(t=>t==e.language),-1==this.currentLanguageIndex&&(this.currentLanguageIndex=0)}return this.gameData=t,f=this.gameData.texts,document.title=f[this.currentLanguageIndex][this.gameData.translated_name],this.readURL(),this.updateDarkMode(Boolean(JSON.parse(localStorage.getItem("darkMode")))),this.gameData.worlds.forEach((t,e)=>{t.levels.forEach((t,n)=>{-1!=t.problemIndex&&(t.objects[t.problemIndex].textAfter+='\n\n#eval "'+(e+1)+","+(n+1)+'"')})}),{isInfoMessage:t=>"information"==t.severity&&"eval result"==t.caption&&t.pos_line==this.activeEditorData.fileContent.split(/\r\n|\r|\n/).length&&t.text=='"'+(this.world+1)+","+(this.level+1)+'"'}}static saveGameToFile(){this.saveGame();let t=localStorage.getItem(this.savedGameLocalStorageKey),e=new Blob([t]),n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download=this.gameData.name+" saved data.json",document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(r)}),0)}static loadGameFromFile(t){if(t.length){const e=new FileReader;e.addEventListener("load",()=>{let t=e.result;t&&(localStorage.setItem(this.savedGameLocalStorageKey,t),location.reload())}),e.readAsText(t[0])}}static updateLanguageIndex(t){this.currentLanguageIndex!=t&&(this.isSaved=!1,document.title=f[t][this.gameData.translated_name],this.currentLanguageIndex=t,setTimeout(p,500))}static run(){l("0",{global:!0}),window.addEventListener("beforeunload",this.saveGame.bind(this)),fetch("game_data.json",{cache:"no-store"}).then(t=>t.json()).then(t=>{const e=this.loadGame(t).isInfoMessage;let n=this.gameData.library_zip_fn.slice(0,-4),a=()=>{window.require(["vs/editor/editor.main"],()=>{const t={javascript:"./lean_js_js.js",libraryZip:"./"+this.gameData.library_zip_fn,webassemblyJs:"./lean_js_wasm.js",webassemblyWasm:"./lean_js_wasm.wasm",dbName:n};o.registerLeanLanguage(t,this.activeEditorData,e);const a=monaco.Uri.file(this.gameData.library_zip_fn.slice(0,-3)+"lean").fsPath;i.render(r.createElement(C,{fileName:a,worlds:this.gameData.worlds,introData:this.gameData.introData,world:this.world,level:this.level,languages:this.gameData.languages,currentLanguageIndex:this.currentLanguageIndex,updateLanguageIndex:this.updateLanguageIndex.bind(this),saveGame:this.saveGame.bind(this),resetGame:this.resetGame.bind(this),saveGameToFile:this.saveGameToFile.bind(this),loadGameFromFile:this.loadGameFromFile.bind(this),updateURL:this.updateURL.bind(this),updateEditorData:this.updateEditorData.bind(this),isInfoMessage:e,getCurrentEditorText:()=>this.activeEditorData.text,darkMode:this.darkMode,updateDarkMode:this.updateDarkMode.bind(this)}),document.getElementById("root"))})};this.gameData.devmode?(console.log("Game is running in development mode."),indexedDB.deleteDatabase(n).onsuccess=a):a()})}}O.activeEditorData={lineOffset:0,fileContent:"",text:""},O.run()},function(t,e,n){"use strict";var r=n(140),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,b=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function _(t,e,n){this.props=t,this.context=e,this.refs=y,this.updater=n||m}function w(){}function x(t,e,n){this.props=t,this.context=e,this.refs=y,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(v(85));this.updater.enqueueSetState(this,t,e,"setState")},_.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},w.prototype=_.prototype;var k=x.prototype=new w;k.constructor=x,r(k,_.prototype),k.isPureReactComponent=!0;var S={current:null},M=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function T(t,e,n){var r,i={},a=null,u=null;if(null!=e)for(r in void 0!==e.ref&&(u=e.ref),void 0!==e.key&&(a=""+e.key),e)M.call(e,r)&&!E.hasOwnProperty(r)&&(i[r]=e[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];i.children=s}if(t&&t.defaultProps)for(r in c=t.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:t,key:a,ref:u,props:i,_owner:S.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var O=/\/+/g,j=[];function A(t,e,n,r){if(j.length){var i=j.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function P(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>j.length&&j.push(t)}function z(t,e,n){return null==t?0:function t(e,n,r,i){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c=!1;if(null===e)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case o:case a:c=!0}}if(c)return r(i,e,""===n?"."+N(e,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(e))for(var s=0;s<e.length;s++){var l=n+N(u=e[s],s);c+=t(u,l,r,i)}else if("function"==typeof(l=null===e||"object"!=typeof e?null:"function"==typeof(l=g&&e[g]||e["@@iterator"])?l:null))for(e=l.call(e),s=0;!(u=e.next()).done;)c+=t(u=u.value,l=n+N(u,s++),r,i);else if("object"===u)throw r=""+e,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return c}(t,"",e,n)}function N(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function I(t,e){t.func.call(t.context,e,t.count++)}function R(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?D(t,r,n,(function(t){return t})):null!=t&&(C(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(O,"$&/")+"/")+n)),r.push(t))}function D(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(O,"$&/")+"/"),z(t,R,e=A(e,o,r,i)),P(e)}var L={current:null};function q(){var t=L.current;if(null===t)throw Error(v(321));return t}var F={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return D(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;z(t,I,e=A(null,null,e,n)),P(e)},count:function(t){return z(t,(function(){return null}),null)},toArray:function(t){var e=[];return D(t,e,null,(function(t){return t})),e},only:function(t){if(!C(t))throw Error(v(143));return t}},e.Component=_,e.Fragment=u,e.Profiler=s,e.PureComponent=x,e.StrictMode=c,e.Suspense=d,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,e.cloneElement=function(t,e,n){if(null==t)throw Error(v(267,t));var i=r({},t.props),a=t.key,u=t.ref,c=t._owner;if(null!=e){if(void 0!==e.ref&&(u=e.ref,c=S.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(l in e)M.call(e,l)&&!E.hasOwnProperty(l)&&(i[l]=void 0===e[l]&&void 0!==s?s[l]:e[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){s=Array(l);for(var f=0;f<l;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,type:t.type,key:a,ref:u,props:i,_owner:c}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:t},t.Consumer=t},e.createElement=T,e.createFactory=function(t){var e=T.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:h,render:t}},e.isValidElement=C,e.lazy=function(t){return{$$typeof:b,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:p,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return q().useCallback(t,e)},e.useContext=function(t,e){return q().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return q().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return q().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return q().useLayoutEffect(t,e)},e.useMemo=function(t,e){return q().useMemo(t,e)},e.useReducer=function(t,e,n){return q().useReducer(t,e,n)},e.useRef=function(t){return q().useRef(t)},e.useState=function(t){return q().useState(t)},e.version="16.14.0"},function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(160)},function(t,e,n){"use strict";var r=n(7),i=n(140),o=n(161);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function u(t,e,n,r,i,o,a,u,c){var s=Array.prototype.slice.call(arguments,3);try{e.apply(n,s)}catch(t){this.onError(t)}}var c=!1,s=null,l=!1,f=null,h={onError:function(t){c=!0,s=t}};function d(t,e,n,r,i,o,a,l,f){c=!1,s=null,u.apply(h,arguments)}var p=null,b=null,g=null;function v(t,e,n){var r=t.type||"unknown-event";t.currentTarget=g(n),function(t,e,n,r,i,o,u,h,p){if(d.apply(this,arguments),c){if(!c)throw Error(a(198));var b=s;c=!1,s=null,l||(l=!0,f=b)}}(r,e,void 0,t),t.currentTarget=null}var m=null,y={};function _(){if(m)for(var t in y){var e=y[t],n=m.indexOf(t);if(!(-1<n))throw Error(a(96,t));if(!x[n]){if(!e.extractEvents)throw Error(a(97,t));for(var r in x[n]=e,n=e.eventTypes){var i=void 0,o=n[r],u=e,c=r;if(k.hasOwnProperty(c))throw Error(a(99,c));k[c]=o;var s=o.phasedRegistrationNames;if(s){for(i in s)s.hasOwnProperty(i)&&w(s[i],u,c);i=!0}else o.registrationName?(w(o.registrationName,u,c),i=!0):i=!1;if(!i)throw Error(a(98,r,t))}}}}function w(t,e,n){if(S[t])throw Error(a(100,t));S[t]=e,M[t]=e.eventTypes[n].dependencies}var x=[],k={},S={},M={};function E(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];if(!y.hasOwnProperty(e)||y[e]!==r){if(y[e])throw Error(a(102,e));y[e]=r,n=!0}}n&&_()}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),C=null,O=null,j=null;function A(t){if(t=b(t)){if("function"!=typeof C)throw Error(a(280));var e=t.stateNode;e&&(e=p(e),C(t.stateNode,t.type,e))}}function P(t){O?j?j.push(t):j=[t]:O=t}function z(){if(O){var t=O,e=j;if(j=O=null,A(t),e)for(t=0;t<e.length;t++)A(e[t])}}function N(t,e){return t(e)}function I(t,e,n,r,i){return t(e,n,r,i)}function R(){}var D=N,L=!1,q=!1;function F(){null===O&&null===j||(R(),z())}function U(t,e,n){if(q)return t(e,n);q=!0;try{return D(t,e,n)}finally{q=!1,F()}}var B=/^[: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]*$/,V=Object.prototype.hasOwnProperty,H={},W={};function G(t,e,n,r,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){$[t]=new G(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];$[e]=new G(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){$[t]=new G(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){$[t]=new G(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){$[t]=new G(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){$[t]=new G(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){$[t]=new G(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){$[t]=new G(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){$[t]=new G(t,5,!1,t.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function X(t){return t[1].toUpperCase()}"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(t){var e=t.replace(Y,X);$[e]=new G(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(Y,X);$[e]=new G(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(Y,X);$[e]=new G(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){$[t]=new G(t,1,!1,t.toLowerCase(),null,!1)})),$.xlinkHref=new G("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){$[t]=new G(t,1,!1,t.toLowerCase(),null,!0)}));var K=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Q(t,e,n,r){var i=$.hasOwnProperty(e)?$[e]:null;(null!==i?0===i.type:!r&&2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))||(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!V.call(W,t)||!V.call(H,t)&&(B.test(t)?W[t]=!0:(H[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}K.hasOwnProperty("ReactCurrentDispatcher")||(K.ReactCurrentDispatcher={current:null}),K.hasOwnProperty("ReactCurrentBatchConfig")||(K.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,tt=J?Symbol.for("react.element"):60103,et=J?Symbol.for("react.portal"):60106,nt=J?Symbol.for("react.fragment"):60107,rt=J?Symbol.for("react.strict_mode"):60108,it=J?Symbol.for("react.profiler"):60114,ot=J?Symbol.for("react.provider"):60109,at=J?Symbol.for("react.context"):60110,ut=J?Symbol.for("react.concurrent_mode"):60111,ct=J?Symbol.for("react.forward_ref"):60112,st=J?Symbol.for("react.suspense"):60113,lt=J?Symbol.for("react.suspense_list"):60120,ft=J?Symbol.for("react.memo"):60115,ht=J?Symbol.for("react.lazy"):60116,dt=J?Symbol.for("react.block"):60121,pt="function"==typeof Symbol&&Symbol.iterator;function bt(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=pt&&t[pt]||t["@@iterator"])?t:null}function gt(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case nt:return"Fragment";case et:return"Portal";case it:return"Profiler";case rt:return"StrictMode";case st:return"Suspense";case lt:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case at:return"Context.Consumer";case ot:return"Context.Provider";case ct:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case ft:return gt(t.type);case dt:return gt(t.render);case ht:if(t=1===t._status?t._result:null)return gt(t)}return null}function vt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=gt(t.type);n=null,r&&(n=gt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function mt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function yt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function _t(t){t._valueTracker||(t._valueTracker=function(t){var e=yt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function wt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=yt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function xt(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function kt(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=mt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function St(t,e){null!=(e=e.checked)&&Q(t,"checked",e,!1)}function Mt(t,e){St(t,e);var n=mt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Tt(t,e.type,n):e.hasOwnProperty("defaultValue")&&Tt(t,e.type,mt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Et(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Tt(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Ct(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function Ot(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+mt(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function jt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function At(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:mt(n)}}function Pt(t,e){var n=mt(e.value),r=mt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function zt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}function Nt(t){switch(t){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 It(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Nt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Rt,Dt=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction((function(){return t(e,n)}))}:t}((function(t,e){if("http://www.w3.org/2000/svg"!==t.namespaceURI||"innerHTML"in t)t.innerHTML=e;else{for((Rt=Rt||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Rt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function Lt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function qt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ft={animationend:qt("Animation","AnimationEnd"),animationiteration:qt("Animation","AnimationIteration"),animationstart:qt("Animation","AnimationStart"),transitionend:qt("Transition","TransitionEnd")},Ut={},Bt={};function Vt(t){if(Ut[t])return Ut[t];if(!Ft[t])return t;var e,n=Ft[t];for(e in n)if(n.hasOwnProperty(e)&&e in Bt)return Ut[t]=n[e];return t}T&&(Bt=document.createElement("div").style,"AnimationEvent"in window||(delete Ft.animationend.animation,delete Ft.animationiteration.animation,delete Ft.animationstart.animation),"TransitionEvent"in window||delete Ft.transitionend.transition);var Ht=Vt("animationend"),Wt=Vt("animationiteration"),Gt=Vt("animationstart"),$t=Vt("transitionend"),Yt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xt=new("function"==typeof WeakMap?WeakMap:Map);function Kt(t){var e=Xt.get(t);return void 0===e&&(e=new Map,Xt.set(t,e)),e}function Qt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!=(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function Zt(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&null!==(t=t.alternate)&&(e=t.memoizedState),null!==e)return e.dehydrated}return null}function Jt(t){if(Qt(t)!==t)throw Error(a(188))}function te(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Qt(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Jt(i),t;if(o===r)return Jt(i),e;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,c=i.child;c;){if(c===n){u=!0,n=i,r=o;break}if(c===r){u=!0,r=i,n=o;break}c=c.sibling}if(!u){for(c=o.child;c;){if(c===n){u=!0,n=o,r=i;break}if(c===r){u=!0,r=o,n=i;break}c=c.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function ee(t,e){if(null==e)throw Error(a(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function ne(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var re=null;function ie(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)v(t,e[r],n[r]);else e&&v(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function oe(t){if(null!==t&&(re=ee(re,t)),t=re,re=null,t){if(ne(t,ie),re)throw Error(a(95));if(l)throw t=f,l=!1,f=null,t}}function ae(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function ue(t){if(!T)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e}var ce=[];function se(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>ce.length&&ce.push(t)}function le(t,e,n,r){if(ce.length){var i=ce.pop();return i.topLevelType=t,i.eventSystemFlags=r,i.nativeEvent=e,i.targetInst=n,i}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function fe(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=Mn(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var i=ae(t.nativeEvent);r=t.topLevelType;var o=t.nativeEvent,a=t.eventSystemFlags;0===n&&(a|=64);for(var u=null,c=0;c<x.length;c++){var s=x[c];s&&(s=s.extractEvents(r,e,o,i,a))&&(u=ee(u,s))}oe(u)}}function he(t,e,n){if(!n.has(t)){switch(t){case"scroll":Ge(e,"scroll",!0);break;case"focus":case"blur":Ge(e,"focus",!0),Ge(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ue(t)&&Ge(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Yt.indexOf(t)&&We(t,e)}n.set(t,null)}}var de,pe,be,ge=!1,ve=[],me=null,ye=null,_e=null,we=new Map,xe=new Map,ke=[],Se="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Me="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ee(t,e,n,r,i){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Te(t,e){switch(t){case"focus":case"blur":me=null;break;case"dragenter":case"dragleave":ye=null;break;case"mouseover":case"mouseout":_e=null;break;case"pointerover":case"pointerout":we.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":xe.delete(e.pointerId)}}function Ce(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t=Ee(e,n,r,i,o),null!==e&&null!==(e=En(e))&&pe(e),t):(t.eventSystemFlags|=r,t)}function Oe(t){var e=Mn(t.target);if(null!==e){var n=Qt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=Zt(n)))return t.blockedOn=e,void o.unstable_runWithPriority(t.priority,(function(){be(n)}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function je(t){if(null!==t.blockedOn)return!1;var e=Ke(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=En(e);return null!==n&&pe(n),t.blockedOn=e,!1}return!0}function Ae(t,e,n){je(t)&&n.delete(e)}function Pe(){for(ge=!1;0<ve.length;){var t=ve[0];if(null!==t.blockedOn){null!==(t=En(t.blockedOn))&&de(t);break}var e=Ke(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:ve.shift()}null!==me&&je(me)&&(me=null),null!==ye&&je(ye)&&(ye=null),null!==_e&&je(_e)&&(_e=null),we.forEach(Ae),xe.forEach(Ae)}function ze(t,e){t.blockedOn===e&&(t.blockedOn=null,ge||(ge=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Pe)))}function Ne(t){function e(e){return ze(e,t)}if(0<ve.length){ze(ve[0],t);for(var n=1;n<ve.length;n++){var r=ve[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==me&&ze(me,t),null!==ye&&ze(ye,t),null!==_e&&ze(_e,t),we.forEach(e),xe.forEach(e),n=0;n<ke.length;n++)(r=ke[n]).blockedOn===t&&(r.blockedOn=null);for(;0<ke.length&&null===(n=ke[0]).blockedOn;)Oe(n),null===n.blockedOn&&ke.shift()}var Ie={},Re=new Map,De=new Map,Le=["abort","abort",Ht,"animationEnd",Wt,"animationIteration",Gt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$t,"transitionEnd","waiting","waiting"];function qe(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:e},De.set(r,e),Re.set(r,o),Ie[i]=o}}qe("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),qe("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),qe(Le,2);for(var Fe="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ue=0;Ue<Fe.length;Ue++)De.set(Fe[Ue],0);var Be=o.unstable_UserBlockingPriority,Ve=o.unstable_runWithPriority,He=!0;function We(t,e){Ge(e,t,!1)}function Ge(t,e,n){var r=De.get(e);switch(void 0===r?2:r){case 0:r=$e.bind(null,e,1,t);break;case 1:r=Ye.bind(null,e,1,t);break;default:r=Xe.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function $e(t,e,n,r){L||R();var i=Xe,o=L;L=!0;try{I(i,t,e,n,r)}finally{(L=o)||F()}}function Ye(t,e,n,r){Ve(Be,Xe.bind(null,t,e,n,r))}function Xe(t,e,n,r){if(He)if(0<ve.length&&-1<Se.indexOf(t))t=Ee(null,t,e,n,r),ve.push(t);else{var i=Ke(t,e,n,r);if(null===i)Te(t,r);else if(-1<Se.indexOf(t))t=Ee(i,t,e,n,r),ve.push(t);else if(!function(t,e,n,r,i){switch(e){case"focus":return me=Ce(me,t,e,n,r,i),!0;case"dragenter":return ye=Ce(ye,t,e,n,r,i),!0;case"mouseover":return _e=Ce(_e,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return we.set(o,Ce(we.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,xe.set(o,Ce(xe.get(o)||null,t,e,n,r,i)),!0}return!1}(i,t,e,n,r)){Te(t,r),t=le(t,r,null,e);try{U(fe,t)}finally{se(t)}}}}function Ke(t,e,n,r){if(null!==(n=Mn(n=ae(r)))){var i=Qt(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=Zt(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}t=le(t,r,n,e);try{U(fe,t)}finally{se(t)}return null}var Qe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ze=["Webkit","ms","Moz","O"];function Je(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||Qe.hasOwnProperty(t)&&Qe[t]?(""+e).trim():e+"px"}function tn(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Je(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(Qe).forEach((function(t){Ze.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Qe[e]=Qe[t]}))}));var en=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nn(t,e){if(e){if(en[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(a(62,""))}}function rn(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){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}}var on="http://www.w3.org/1999/xhtml";function an(t,e){var n=Kt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=M[e];for(var r=0;r<e.length;r++)he(e[r],t,n)}function un(){}function cn(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function sn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ln(t,e){var n,r=sn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=sn(r)}}function fn(){for(var t=window,e=cn();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=cn((t=e.contentWindow).document)}return e}function hn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var dn=null,pn=null;function bn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function gn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var vn="function"==typeof setTimeout?setTimeout:void 0,mn="function"==typeof clearTimeout?clearTimeout:void 0;function yn(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function _n(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var wn=Math.random().toString(36).slice(2),xn="__reactInternalInstance$"+wn,kn="__reactEventHandlers$"+wn,Sn="__reactContainere$"+wn;function Mn(t){var e=t[xn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Sn]||n[xn]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=_n(t);null!==t;){if(n=t[xn])return n;t=_n(t)}return e}n=(t=n).parentNode}return null}function En(t){return!(t=t[xn]||t[Sn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function Tn(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function Cn(t){return t[kn]||null}function On(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function jn(t,e){var n=t.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(a(231,e,typeof n));return n}function An(t,e,n){(e=jn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=ee(n._dispatchListeners,e),n._dispatchInstances=ee(n._dispatchInstances,t))}function Pn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=On(e);for(e=n.length;0<e--;)An(n[e],"captured",t);for(e=0;e<n.length;e++)An(n[e],"bubbled",t)}}function zn(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=jn(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ee(n._dispatchListeners,e),n._dispatchInstances=ee(n._dispatchInstances,t))}function Nn(t){t&&t.dispatchConfig.registrationName&&zn(t._targetInst,null,t)}function In(t){ne(t,Pn)}var Rn=null,Dn=null,Ln=null;function qn(){if(Ln)return Ln;var t,e,n=Dn,r=n.length,i="value"in Rn?Rn.value:Rn.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return Ln=i.slice(t,1<e?1-e:void 0)}function Fn(){return!0}function Un(){return!1}function Bn(t,e,n,r){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Fn:Un,this.isPropagationStopped=Un,this}function Vn(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function Hn(t){if(!(t instanceof this))throw Error(a(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function Wn(t){t.eventPool=[],t.getPooled=Vn,t.release=Hn}i(Bn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Fn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Fn)},persist:function(){this.isPersistent=Fn},isPersistent:Un,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Un,this._dispatchInstances=this._dispatchListeners=null}}),Bn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Bn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,Wn(n),n},Wn(Bn);var Gn=Bn.extend({data:null}),$n=Bn.extend({data:null}),Yn=[9,13,27,32],Xn=T&&"CompositionEvent"in window,Kn=null;T&&"documentMode"in document&&(Kn=document.documentMode);var Qn=T&&"TextEvent"in window&&!Kn,Zn=T&&(!Xn||Kn&&8<Kn&&11>=Kn),Jn=String.fromCharCode(32),tr={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(" ")}},er=!1;function nr(t,e){switch(t){case"keyup":return-1!==Yn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function rr(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var ir=!1,or={eventTypes:tr,extractEvents:function(t,e,n,r){var i;if(Xn)t:{switch(t){case"compositionstart":var o=tr.compositionStart;break t;case"compositionend":o=tr.compositionEnd;break t;case"compositionupdate":o=tr.compositionUpdate;break t}o=void 0}else ir?nr(t,n)&&(o=tr.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=tr.compositionStart);return o?(Zn&&"ko"!==n.locale&&(ir||o!==tr.compositionStart?o===tr.compositionEnd&&ir&&(i=qn()):(Dn="value"in(Rn=r)?Rn.value:Rn.textContent,ir=!0)),o=Gn.getPooled(o,e,n,r),(i||null!==(i=rr(n)))&&(o.data=i),In(o),i=o):i=null,(t=Qn?function(t,e){switch(t){case"compositionend":return rr(e);case"keypress":return 32!==e.which?null:(er=!0,Jn);case"textInput":return(t=e.data)===Jn&&er?null:t;default:return null}}(t,n):function(t,e){if(ir)return"compositionend"===t||!Xn&&nr(t,e)?(t=qn(),Ln=Dn=Rn=null,ir=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Zn&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=$n.getPooled(tr.beforeInput,e,n,r)).data=t,In(e)):e=null,null===i?e:null===e?i:[i,e]}},ar={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ur(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!ar[t.type]:"textarea"===e}var cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function sr(t,e,n){return(t=Bn.getPooled(cr.change,t,e,n)).type="change",P(n),In(t),t}var lr=null,fr=null;function hr(t){oe(t)}function dr(t){if(wt(Tn(t)))return t}function pr(t,e){if("change"===t)return e}var br=!1;function gr(){lr&&(lr.detachEvent("onpropertychange",vr),fr=lr=null)}function vr(t){if("value"===t.propertyName&&dr(fr))if(t=sr(fr,t,ae(t)),L)oe(t);else{L=!0;try{N(hr,t)}finally{L=!1,F()}}}function mr(t,e,n){"focus"===t?(gr(),fr=n,(lr=e).attachEvent("onpropertychange",vr)):"blur"===t&&gr()}function yr(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return dr(fr)}function _r(t,e){if("click"===t)return dr(e)}function wr(t,e){if("input"===t||"change"===t)return dr(e)}T&&(br=ue("input")&&(!document.documentMode||9<document.documentMode));var xr={eventTypes:cr,_isInputEventSupported:br,extractEvents:function(t,e,n,r){var i=e?Tn(e):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=pr;else if(ur(i))if(br)a=wr;else{a=yr;var u=mr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=_r);if(a&&(a=a(t,e)))return sr(a,n,r);u&&u(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Tt(i,"number",i.value)}},kr=Bn.extend({view:null,detail:null}),Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mr(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Sr[t])&&!!e[t]}function Er(){return Mr}var Tr=0,Cr=0,Or=!1,jr=!1,Ar=kr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Er,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Tr;return Tr=t.screenX,Or?"mousemove"===t.type?t.screenX-e:0:(Or=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Cr;return Cr=t.screenY,jr?"mousemove"===t.type?t.screenY-e:0:(jr=!0,0)}}),Pr=Ar.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),zr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Nr={eventTypes:zr,extractEvents:function(t,e,n,r,i){var o="mouseover"===t||"pointerover"===t,a="mouseout"===t||"pointerout"===t;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a?(a=e,null!==(e=(e=n.relatedTarget||n.toElement)?Mn(e):null)&&(e!==Qt(e)||5!==e.tag&&6!==e.tag)&&(e=null)):a=null,a===e)return null;if("mouseout"===t||"mouseover"===t)var u=Ar,c=zr.mouseLeave,s=zr.mouseEnter,l="mouse";else"pointerout"!==t&&"pointerover"!==t||(u=Pr,c=zr.pointerLeave,s=zr.pointerEnter,l="pointer");if(t=null==a?o:Tn(a),o=null==e?o:Tn(e),(c=u.getPooled(c,a,n,r)).type=l+"leave",c.target=t,c.relatedTarget=o,(n=u.getPooled(s,e,n,r)).type=l+"enter",n.target=o,n.relatedTarget=t,l=e,(r=a)&&l)t:{for(s=l,a=0,t=u=r;t;t=On(t))a++;for(t=0,e=s;e;e=On(e))t++;for(;0<a-t;)u=On(u),a--;for(;0<t-a;)s=On(s),t--;for(;a--;){if(u===s||u===s.alternate)break t;u=On(u),s=On(s)}u=null}else u=null;for(s=u,u=[];r&&r!==s&&(null===(a=r.alternate)||a!==s);)u.push(r),r=On(r);for(r=[];l&&l!==s&&(null===(a=l.alternate)||a!==s);)r.push(l),l=On(l);for(l=0;l<u.length;l++)zn(u[l],"bubbled",c);for(l=r.length;0<l--;)zn(r[l],"captured",n);return 0==(64&i)?[c]:[c,n]}},Ir="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},Rr=Object.prototype.hasOwnProperty;function Dr(t,e){if(Ir(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Rr.call(e,n[r])||!Ir(t[n[r]],e[n[r]]))return!1;return!0}var Lr=T&&"documentMode"in document&&11>=document.documentMode,qr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Fr=null,Ur=null,Br=null,Vr=!1;function Hr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Vr||null==Fr||Fr!==cn(n)?null:(n="selectionStart"in(n=Fr)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Br&&Dr(Br,n)?null:(Br=n,(t=Bn.getPooled(qr.select,Ur,t,e)).type="select",t.target=Fr,In(t),t))}var Wr={eventTypes:qr,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Kt(i),o=M.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break t}i=!0}o=!i}if(o)return null;switch(i=e?Tn(e):window,t){case"focus":(ur(i)||"true"===i.contentEditable)&&(Fr=i,Ur=e,Br=null);break;case"blur":Br=Ur=Fr=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vr=!1,Hr(n,r);case"selectionchange":if(Lr)break;case"keydown":case"keyup":return Hr(n,r)}return null}},Gr=Bn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),$r=Bn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Yr=kr.extend({relatedTarget:null});function Xr(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var Kr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qr={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"},Zr=kr.extend({key:function(t){if(t.key){var e=Kr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Xr(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?Qr[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Er,charCode:function(t){return"keypress"===t.type?Xr(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Xr(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),Jr=Ar.extend({dataTransfer:null}),ti=kr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Er}),ei=Bn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ni=Ar.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),ri={eventTypes:Ie,extractEvents:function(t,e,n,r){var i=Re.get(t);if(!i)return null;switch(t){case"keypress":if(0===Xr(n))return null;case"keydown":case"keyup":t=Zr;break;case"blur":case"focus":t=Yr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Ar;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=Jr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=ti;break;case Ht:case Wt:case Gt:t=Gr;break;case $t:t=ei;break;case"scroll":t=kr;break;case"wheel":t=ni;break;case"copy":case"cut":case"paste":t=$r;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Pr;break;default:t=Bn}return In(e=t.getPooled(i,e,n,r)),e}};if(m)throw Error(a(101));m=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_(),p=Cn,b=En,g=Tn,E({SimpleEventPlugin:ri,EnterLeaveEventPlugin:Nr,ChangeEventPlugin:xr,SelectEventPlugin:Wr,BeforeInputEventPlugin:or});var ii=[],oi=-1;function ai(t){0>oi||(t.current=ii[oi],ii[oi]=null,oi--)}function ui(t,e){oi++,ii[oi]=t.current,t.current=e}var ci={},si={current:ci},li={current:!1},fi=ci;function hi(t,e){var n=t.type.contextTypes;if(!n)return ci;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function di(t){return null!=t.childContextTypes}function pi(){ai(li),ai(si)}function bi(t,e,n){if(si.current!==ci)throw Error(a(168));ui(si,e),ui(li,n)}function gi(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,gt(e)||"Unknown",o));return i({},n,{},r)}function vi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ci,fi=si.current,ui(si,t),ui(li,li.current),!0}function mi(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=gi(t,e,fi),r.__reactInternalMemoizedMergedChildContext=t,ai(li),ai(si),ui(si,t)):ai(li),ui(li,n)}var yi=o.unstable_runWithPriority,_i=o.unstable_scheduleCallback,wi=o.unstable_cancelCallback,xi=o.unstable_requestPaint,ki=o.unstable_now,Si=o.unstable_getCurrentPriorityLevel,Mi=o.unstable_ImmediatePriority,Ei=o.unstable_UserBlockingPriority,Ti=o.unstable_NormalPriority,Ci=o.unstable_LowPriority,Oi=o.unstable_IdlePriority,ji={},Ai=o.unstable_shouldYield,Pi=void 0!==xi?xi:function(){},zi=null,Ni=null,Ii=!1,Ri=ki(),Di=1e4>Ri?ki:function(){return ki()-Ri};function Li(){switch(Si()){case Mi:return 99;case Ei:return 98;case Ti:return 97;case Ci:return 96;case Oi:return 95;default:throw Error(a(332))}}function qi(t){switch(t){case 99:return Mi;case 98:return Ei;case 97:return Ti;case 96:return Ci;case 95:return Oi;default:throw Error(a(332))}}function Fi(t,e){return t=qi(t),yi(t,e)}function Ui(t,e,n){return t=qi(t),_i(t,e,n)}function Bi(t){return null===zi?(zi=[t],Ni=_i(Mi,Hi)):zi.push(t),ji}function Vi(){if(null!==Ni){var t=Ni;Ni=null,wi(t)}Hi()}function Hi(){if(!Ii&&null!==zi){Ii=!0;var t=0;try{var e=zi;Fi(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),zi=null}catch(e){throw null!==zi&&(zi=zi.slice(t+1)),_i(Mi,Vi),e}finally{Ii=!1}}}function Wi(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function Gi(t,e){if(t&&t.defaultProps)for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var $i={current:null},Yi=null,Xi=null,Ki=null;function Qi(){Ki=Xi=Yi=null}function Zi(t){var e=$i.current;ai($i),t.type._context._currentValue=e}function Ji(t,e){for(;null!==t;){var n=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e);else{if(!(null!==n&&n.childExpirationTime<e))break;n.childExpirationTime=e}t=t.return}}function to(t,e){Yi=t,Ki=Xi=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Ca=!0),t.firstContext=null)}function eo(t,e){if(Ki!==t&&!1!==e&&0!==e)if("number"==typeof e&&1073741823!==e||(Ki=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Xi){if(null===Yi)throw Error(a(308));Xi=e,Yi.dependencies={expirationTime:0,firstContext:e,responders:null}}else Xi=Xi.next=e;return t._currentValue}var no=!1;function ro(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function io(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function oo(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function ao(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function uo(t,e){var n=t.alternate;null!==n&&io(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function co(t,e,n,r){var o=t.updateQueue;no=!1;var a=o.baseQueue,u=o.shared.pending;if(null!==u){if(null!==a){var c=a.next;a.next=u.next,u.next=c}a=u,o.shared.pending=null,null!==(c=t.alternate)&&null!==(c=c.updateQueue)&&(c.baseQueue=u)}if(null!==a){c=a.next;var s=o.baseState,l=0,f=null,h=null,d=null;if(null!==c)for(var p=c;;){if((u=p.expirationTime)<r){var b={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===d?(h=d=b,f=s):d=d.next=b,u>l&&(l=u)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),rc(u,p.suspenseConfig);t:{var g=t,v=p;switch(u=e,b=n,v.tag){case 1:if("function"==typeof(g=v.payload)){s=g.call(b,s,u);break t}s=g;break t;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(u="function"==typeof(g=v.payload)?g.call(b,s,u):g))break t;s=i({},s,u);break t;case 2:no=!0}}null!==p.callback&&(t.effectTag|=32,null===(u=o.effects)?o.effects=[p]:u.push(p))}if(null===(p=p.next)||p===c){if(null===(u=o.shared.pending))break;p=a.next=u.next,u.next=c,o.baseQueue=a=u,o.shared.pending=null}}null===d?f=s:d.next=h,o.baseState=f,o.baseQueue=d,ic(l),t.expirationTime=l,t.memoizedState=s}}function so(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var lo=K.ReactCurrentBatchConfig,fo=(new r.Component).refs;function ho(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:i({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var po={isMounted:function(t){return!!(t=t._reactInternalFiber)&&Qt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=Hu(),i=lo.suspense;(i=oo(r=Wu(r,t,i),i)).payload=e,null!=n&&(i.callback=n),ao(t,i),Gu(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=Hu(),i=lo.suspense;(i=oo(r=Wu(r,t,i),i)).tag=1,i.payload=e,null!=n&&(i.callback=n),ao(t,i),Gu(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=Hu(),r=lo.suspense;(r=oo(n=Wu(n,t,r),r)).tag=2,null!=e&&(r.callback=e),ao(t,r),Gu(t,n)}};function bo(t,e,n,r,i,o,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!(e.prototype&&e.prototype.isPureReactComponent&&Dr(n,r)&&Dr(i,o))}function go(t,e,n){var r=!1,i=ci,o=e.contextType;return"object"==typeof o&&null!==o?o=eo(o):(i=di(e)?fi:si.current,o=(r=null!=(r=e.contextTypes))?hi(t,i):ci),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=po,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function vo(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&po.enqueueReplaceState(e,e.state,null)}function mo(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=fo,ro(t);var o=e.contextType;"object"==typeof o&&null!==o?i.context=eo(o):(o=di(e)?fi:si.current,i.context=hi(t,o)),co(t,n,i,r),i.state=t.memoizedState,"function"==typeof(o=e.getDerivedStateFromProps)&&(ho(t,e,o,n),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&po.enqueueReplaceState(i,i.state,null),co(t,n,i,r),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.effectTag|=4)}var yo=Array.isArray;function _o(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,t));var i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:((e=function(t){var e=r.refs;e===fo&&(e=r.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}if("string"!=typeof t)throw Error(a(284));if(!n._owner)throw Error(a(290,t))}return t}function wo(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function xo(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=Sc(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function u(e){return t&&null===e.alternate&&(e.effectTag=2),e}function c(t,e,n,r){return null===e||6!==e.tag?((e=Tc(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function s(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=_o(t,e,n),r.return=t,r):((r=Mc(n.type,n.key,n.props,null,t.mode,r)).ref=_o(t,e,n),r.return=t,r)}function l(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Cc(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function f(t,e,n,r,o){return null===e||7!==e.tag?((e=Ec(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function h(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=Tc(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case tt:return(n=Mc(e.type,e.key,e.props,null,t.mode,n)).ref=_o(t,null,e),n.return=t,n;case et:return(e=Cc(e,t.mode,n)).return=t,e}if(yo(e)||bt(e))return(e=Ec(e,t.mode,n,null)).return=t,e;wo(t,e)}return null}function d(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:c(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case tt:return n.key===i?n.type===nt?f(t,e,n.props.children,r,i):s(t,e,n,r):null;case et:return n.key===i?l(t,e,n,r):null}if(yo(n)||bt(n))return null!==i?null:f(t,e,n,r,null);wo(t,n)}return null}function p(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return c(e,t=t.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case tt:return t=t.get(null===r.key?n:r.key)||null,r.type===nt?f(e,t,r.props.children,i,r.key):s(e,t,r,i);case et:return l(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(yo(r)||bt(r))return f(e,t=t.get(n)||null,r,i,null);wo(e,r)}return null}function b(i,a,u,c){for(var s=null,l=null,f=a,b=a=0,g=null;null!==f&&b<u.length;b++){f.index>b?(g=f,f=null):g=f.sibling;var v=d(i,f,u[b],c);if(null===v){null===f&&(f=g);break}t&&f&&null===v.alternate&&e(i,f),a=o(v,a,b),null===l?s=v:l.sibling=v,l=v,f=g}if(b===u.length)return n(i,f),s;if(null===f){for(;b<u.length;b++)null!==(f=h(i,u[b],c))&&(a=o(f,a,b),null===l?s=f:l.sibling=f,l=f);return s}for(f=r(i,f);b<u.length;b++)null!==(g=p(f,i,b,u[b],c))&&(t&&null!==g.alternate&&f.delete(null===g.key?b:g.key),a=o(g,a,b),null===l?s=g:l.sibling=g,l=g);return t&&f.forEach((function(t){return e(i,t)})),s}function g(i,u,c,s){var l=bt(c);if("function"!=typeof l)throw Error(a(150));if(null==(c=l.call(c)))throw Error(a(151));for(var f=l=null,b=u,g=u=0,v=null,m=c.next();null!==b&&!m.done;g++,m=c.next()){b.index>g?(v=b,b=null):v=b.sibling;var y=d(i,b,m.value,s);if(null===y){null===b&&(b=v);break}t&&b&&null===y.alternate&&e(i,b),u=o(y,u,g),null===f?l=y:f.sibling=y,f=y,b=v}if(m.done)return n(i,b),l;if(null===b){for(;!m.done;g++,m=c.next())null!==(m=h(i,m.value,s))&&(u=o(m,u,g),null===f?l=m:f.sibling=m,f=m);return l}for(b=r(i,b);!m.done;g++,m=c.next())null!==(m=p(b,i,g,m.value,s))&&(t&&null!==m.alternate&&b.delete(null===m.key?g:m.key),u=o(m,u,g),null===f?l=m:f.sibling=m,f=m);return t&&b.forEach((function(t){return e(i,t)})),l}return function(t,r,o,c){var s="object"==typeof o&&null!==o&&o.type===nt&&null===o.key;s&&(o=o.props.children);var l="object"==typeof o&&null!==o;if(l)switch(o.$$typeof){case tt:t:{for(l=o.key,s=r;null!==s;){if(s.key===l){switch(s.tag){case 7:if(o.type===nt){n(t,s.sibling),(r=i(s,o.props.children)).return=t,t=r;break t}break;default:if(s.elementType===o.type){n(t,s.sibling),(r=i(s,o.props)).ref=_o(t,s,o),r.return=t,t=r;break t}}n(t,s);break}e(t,s),s=s.sibling}o.type===nt?((r=Ec(o.props.children,t.mode,c,o.key)).return=t,t=r):((c=Mc(o.type,o.key,o.props,null,t.mode,c)).ref=_o(t,r,o),c.return=t,t=c)}return u(t);case et:t:{for(s=o.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Cc(o,t.mode,c)).return=t,t=r}return u(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Tc(o,t.mode,c)).return=t,t=r),u(t);if(yo(o))return b(t,r,o,c);if(bt(o))return g(t,r,o,c);if(l&&wo(t,o),void 0===o&&!s)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return n(t,r)}}var ko=xo(!0),So=xo(!1),Mo={},Eo={current:Mo},To={current:Mo},Co={current:Mo};function Oo(t){if(t===Mo)throw Error(a(174));return t}function jo(t,e){switch(ui(Co,e),ui(To,t),ui(Eo,Mo),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:It(null,"");break;default:e=It(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}ai(Eo),ui(Eo,e)}function Ao(){ai(Eo),ai(To),ai(Co)}function Po(t){Oo(Co.current);var e=Oo(Eo.current),n=It(e,t.type);e!==n&&(ui(To,t),ui(Eo,n))}function zo(t){To.current===t&&(ai(Eo),ai(To))}var No={current:0};function Io(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Ro(t,e){return{responder:t,props:e}}var Do=K.ReactCurrentDispatcher,Lo=K.ReactCurrentBatchConfig,qo=0,Fo=null,Uo=null,Bo=null,Vo=!1;function Ho(){throw Error(a(321))}function Wo(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ir(t[n],e[n]))return!1;return!0}function Go(t,e,n,r,i,o){if(qo=o,Fo=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Do.current=null===t||null===t.memoizedState?ba:ga,t=n(r,i),e.expirationTime===qo){o=0;do{if(e.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Bo=Uo=null,e.updateQueue=null,Do.current=va,t=n(r,i)}while(e.expirationTime===qo)}if(Do.current=pa,e=null!==Uo&&null!==Uo.next,qo=0,Bo=Uo=Fo=null,Vo=!1,e)throw Error(a(300));return t}function $o(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Bo?Fo.memoizedState=Bo=t:Bo=Bo.next=t,Bo}function Yo(){if(null===Uo){var t=Fo.alternate;t=null!==t?t.memoizedState:null}else t=Uo.next;var e=null===Bo?Fo.memoizedState:Bo.next;if(null!==e)Bo=e,Uo=t;else{if(null===t)throw Error(a(310));t={memoizedState:(Uo=t).memoizedState,baseState:Uo.baseState,baseQueue:Uo.baseQueue,queue:Uo.queue,next:null},null===Bo?Fo.memoizedState=Bo=t:Bo=Bo.next=t}return Bo}function Xo(t,e){return"function"==typeof e?e(t):e}function Ko(t){var e=Yo(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=Uo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var u=i.next;i.next=o.next,o.next=u}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var c=u=o=null,s=i;do{var l=s.expirationTime;if(l<qo){var f={expirationTime:s.expirationTime,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===c?(u=c=f,o=r):c=c.next=f,l>Fo.expirationTime&&(Fo.expirationTime=l,ic(l))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),rc(l,s.suspenseConfig),r=s.eagerReducer===t?s.eagerState:t(r,s.action);s=s.next}while(null!==s&&s!==i);null===c?o=r:c.next=u,Ir(r,e.memoizedState)||(Ca=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=c,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function Qo(t){var e=Yo(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{o=t(o,u.action),u=u.next}while(u!==i);Ir(o,e.memoizedState)||(Ca=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function Zo(t){var e=$o();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:t}).dispatch=da.bind(null,Fo,t),[e.memoizedState,t]}function Jo(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Fo.updateQueue)?(e={lastEffect:null},Fo.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function ta(){return Yo().memoizedState}function ea(t,e,n,r){var i=$o();Fo.effectTag|=t,i.memoizedState=Jo(1|e,n,void 0,void 0===r?null:r)}function na(t,e,n,r){var i=Yo();r=void 0===r?null:r;var o=void 0;if(null!==Uo){var a=Uo.memoizedState;if(o=a.destroy,null!==r&&Wo(r,a.deps))return void Jo(e,n,o,r)}Fo.effectTag|=t,i.memoizedState=Jo(1|e,n,o,r)}function ra(t,e){return ea(516,4,t,e)}function ia(t,e){return na(516,4,t,e)}function oa(t,e){return na(4,2,t,e)}function aa(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function ua(t,e,n){return n=null!=n?n.concat([t]):null,na(4,2,aa.bind(null,e,t),n)}function ca(){}function sa(t,e){return $o().memoizedState=[t,void 0===e?null:e],t}function la(t,e){var n=Yo();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Wo(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function fa(t,e){var n=Yo();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Wo(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function ha(t,e,n){var r=Li();Fi(98>r?98:r,(function(){t(!0)})),Fi(97<r?97:r,(function(){var r=Lo.suspense;Lo.suspense=void 0===e?null:e;try{t(!1),n()}finally{Lo.suspense=r}}))}function da(t,e,n){var r=Hu(),i=lo.suspense;i={expirationTime:r=Wu(r,t,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=e.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),e.pending=i,o=t.alternate,t===Fo||null!==o&&o===Fo)Vo=!0,i.expirationTime=qo,Fo.expirationTime=qo;else{if(0===t.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=e.lastRenderedReducer))try{var a=e.lastRenderedState,u=o(a,n);if(i.eagerReducer=o,i.eagerState=u,Ir(u,a))return}catch(t){}Gu(t,r)}}var pa={readContext:eo,useCallback:Ho,useContext:Ho,useEffect:Ho,useImperativeHandle:Ho,useLayoutEffect:Ho,useMemo:Ho,useReducer:Ho,useRef:Ho,useState:Ho,useDebugValue:Ho,useResponder:Ho,useDeferredValue:Ho,useTransition:Ho},ba={readContext:eo,useCallback:sa,useContext:eo,useEffect:ra,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,ea(4,2,aa.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ea(4,2,t,e)},useMemo:function(t,e){var n=$o();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=$o();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=da.bind(null,Fo,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},$o().memoizedState=t},useState:Zo,useDebugValue:ca,useResponder:Ro,useDeferredValue:function(t,e){var n=Zo(t),r=n[0],i=n[1];return ra((function(){var n=Lo.suspense;Lo.suspense=void 0===e?null:e;try{i(t)}finally{Lo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Zo(!1),n=e[0];return e=e[1],[sa(ha.bind(null,e,t),[e,t]),n]}},ga={readContext:eo,useCallback:la,useContext:eo,useEffect:ia,useImperativeHandle:ua,useLayoutEffect:oa,useMemo:fa,useReducer:Ko,useRef:ta,useState:function(){return Ko(Xo)},useDebugValue:ca,useResponder:Ro,useDeferredValue:function(t,e){var n=Ko(Xo),r=n[0],i=n[1];return ia((function(){var n=Lo.suspense;Lo.suspense=void 0===e?null:e;try{i(t)}finally{Lo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Ko(Xo),n=e[0];return e=e[1],[la(ha.bind(null,e,t),[e,t]),n]}},va={readContext:eo,useCallback:la,useContext:eo,useEffect:ia,useImperativeHandle:ua,useLayoutEffect:oa,useMemo:fa,useReducer:Qo,useRef:ta,useState:function(){return Qo(Xo)},useDebugValue:ca,useResponder:Ro,useDeferredValue:function(t,e){var n=Qo(Xo),r=n[0],i=n[1];return ia((function(){var n=Lo.suspense;Lo.suspense=void 0===e?null:e;try{i(t)}finally{Lo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Qo(Xo),n=e[0];return e=e[1],[la(ha.bind(null,e,t),[e,t]),n]}},ma=null,ya=null,_a=!1;function wa(t,e){var n=xc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function xa(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);case 13:default:return!1}}function ka(t){if(_a){var e=ya;if(e){var n=e;if(!xa(t,e)){if(!(e=yn(n.nextSibling))||!xa(t,e))return t.effectTag=-1025&t.effectTag|2,_a=!1,void(ma=t);wa(ma,n)}ma=t,ya=yn(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,_a=!1,ma=t}}function Sa(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;ma=t}function Ma(t){if(t!==ma)return!1;if(!_a)return Sa(t),_a=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!gn(e,t.memoizedProps))for(e=ya;e;)wa(t,e),e=yn(e.nextSibling);if(Sa(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){ya=yn(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}ya=null}}else ya=ma?yn(t.stateNode.nextSibling):null;return!0}function Ea(){ya=ma=null,_a=!1}var Ta=K.ReactCurrentOwner,Ca=!1;function Oa(t,e,n,r){e.child=null===t?So(e,null,n,r):ko(e,t.child,n,r)}function ja(t,e,n,r,i){n=n.render;var o=e.ref;return to(e,i),r=Go(t,e,n,r,o,i),null===t||Ca?(e.effectTag|=1,Oa(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Ga(t,e,i))}function Aa(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!=typeof a||kc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Mc(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Pa(t,e,a,r,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Dr)(i,r)&&t.ref===e.ref)?Ga(t,e,o):(e.effectTag|=1,(t=Sc(a,r)).ref=e.ref,t.return=e,e.child=t)}function Pa(t,e,n,r,i,o){return null!==t&&Dr(t.memoizedProps,r)&&t.ref===e.ref&&(Ca=!1,i<o)?(e.expirationTime=t.expirationTime,Ga(t,e,o)):Na(t,e,n,r,o)}function za(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function Na(t,e,n,r,i){var o=di(n)?fi:si.current;return o=hi(e,o),to(e,i),n=Go(t,e,n,r,o,i),null===t||Ca?(e.effectTag|=1,Oa(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Ga(t,e,i))}function Ia(t,e,n,r,i){if(di(n)){var o=!0;vi(e)}else o=!1;if(to(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),go(e,n,r),mo(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,u=e.memoizedProps;a.props=u;var c=a.context,s=n.contextType;s="object"==typeof s&&null!==s?eo(s):hi(e,s=di(n)?fi:si.current);var l=n.getDerivedStateFromProps,f="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||c!==s)&&vo(e,a,r,s),no=!1;var h=e.memoizedState;a.state=h,co(e,r,a,i),c=e.memoizedState,u!==r||h!==c||li.current||no?("function"==typeof l&&(ho(e,n,l,r),c=e.memoizedState),(u=no||bo(e,n,u,r,h,c,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.effectTag|=4)):("function"==typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=c),a.props=r,a.state=c,a.context=s,r=u):("function"==typeof a.componentDidMount&&(e.effectTag|=4),r=!1)}else a=e.stateNode,io(t,e),u=e.memoizedProps,a.props=e.type===e.elementType?u:Gi(e.type,u),c=a.context,s="object"==typeof(s=n.contextType)&&null!==s?eo(s):hi(e,s=di(n)?fi:si.current),(f="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||c!==s)&&vo(e,a,r,s),no=!1,c=e.memoizedState,a.state=c,co(e,r,a,i),h=e.memoizedState,u!==r||c!==h||li.current||no?("function"==typeof l&&(ho(e,n,l,r),h=e.memoizedState),(l=no||bo(e,n,u,r,c,h,s))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(e.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof a.componentDidUpdate||u===t.memoizedProps&&c===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===t.memoizedProps&&c===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=h),a.props=r,a.state=h,a.context=s,r=l):("function"!=typeof a.componentDidUpdate||u===t.memoizedProps&&c===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===t.memoizedProps&&c===t.memoizedState||(e.effectTag|=256),r=!1);return Ra(t,e,n,r,o,i)}function Ra(t,e,n,r,i,o){za(t,e);var a=0!=(64&e.effectTag);if(!r&&!a)return i&&mi(e,n,!1),Ga(t,e,o);r=e.stateNode,Ta.current=e;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=ko(e,t.child,null,o),e.child=ko(e,null,u,o)):Oa(t,e,u,o),e.memoizedState=r.state,i&&mi(e,n,!0),e.child}function Da(t){var e=t.stateNode;e.pendingContext?bi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&bi(0,e.context,!1),jo(t,e.containerInfo)}var La,qa,Fa,Ua={dehydrated:null,retryTime:0};function Ba(t,e,n){var r,i=e.mode,o=e.pendingProps,a=No.current,u=!1;if((r=0!=(64&e.effectTag))||(r=0!=(2&a)&&(null===t||null!==t.memoizedState)),r?(u=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),ui(No,1&a),null===t){if(void 0!==o.fallback&&ka(e),u){if(u=o.fallback,(o=Ec(null,i,0,null)).return=e,0==(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Ec(u,i,n,null)).return=e,o.sibling=n,e.memoizedState=Ua,e.child=o,n}return i=o.children,e.memoizedState=null,e.child=So(e,null,i,n)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,u){if(o=o.fallback,(n=Sc(t,t.pendingProps)).return=e,0==(2&e.mode)&&(u=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=u;null!==u;)u.return=n,u=u.sibling;return(i=Sc(i,o)).return=e,n.sibling=i,n.childExpirationTime=0,e.memoizedState=Ua,e.child=n,i}return n=ko(e,t.child,o.children,n),e.memoizedState=null,e.child=n}if(t=t.child,u){if(u=o.fallback,(o=Ec(null,i,0,null)).return=e,o.child=t,null!==t&&(t.return=o),0==(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Ec(u,i,n,null)).return=e,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,e.memoizedState=Ua,e.child=o,n}return e.memoizedState=null,e.child=ko(e,t,o.children,n)}function Va(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),Ji(t.return,e)}function Ha(t,e,n,r,i,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Wa(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Oa(t,e,r.children,n),0!=(2&(r=No.current)))r=1&r|2,e.effectTag|=64;else{if(null!==t&&0!=(64&t.effectTag))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Va(t,n);else if(19===t.tag)Va(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ui(No,r),0==(2&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===Io(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Ha(e,!1,i,n,o,e.lastEffect);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Io(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Ha(e,!0,n,null,o,e.lastEffect);break;case"together":Ha(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Ga(t,e,n){null!==t&&(e.dependencies=t.dependencies);var r=e.expirationTime;if(0!==r&&ic(r),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(n=Sc(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Sc(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function $a(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Ya(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return di(e.type)&&pi(),null;case 3:return Ao(),ai(li),ai(si),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!Ma(e)||(e.effectTag|=4),null;case 5:zo(e),n=Oo(Co.current);var o=e.type;if(null!==t&&null!=e.stateNode)qa(t,e,o,r,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!r){if(null===e.stateNode)throw Error(a(166));return null}if(t=Oo(Eo.current),Ma(e)){r=e.stateNode,o=e.type;var u=e.memoizedProps;switch(r[xn]=e,r[kn]=u,o){case"iframe":case"object":case"embed":We("load",r);break;case"video":case"audio":for(t=0;t<Yt.length;t++)We(Yt[t],r);break;case"source":We("error",r);break;case"img":case"image":case"link":We("error",r),We("load",r);break;case"form":We("reset",r),We("submit",r);break;case"details":We("toggle",r);break;case"input":kt(r,u),We("invalid",r),an(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!u.multiple},We("invalid",r),an(n,"onChange");break;case"textarea":At(r,u),We("invalid",r),an(n,"onChange")}for(var c in nn(o,u),t=null,u)if(u.hasOwnProperty(c)){var s=u[c];"children"===c?"string"==typeof s?r.textContent!==s&&(t=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(t=["children",""+s]):S.hasOwnProperty(c)&&null!=s&&an(n,c)}switch(o){case"input":_t(r),Et(r,u,!0);break;case"textarea":_t(r),zt(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=un)}n=t,e.updateQueue=n,null!==n&&(e.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,t===on&&(t=Nt(o)),t===on?"script"===o?((t=c.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=c.createElement(o,{is:r.is}):(t=c.createElement(o),"select"===o&&(c=t,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):t=c.createElementNS(t,o),t[xn]=e,t[kn]=r,La(t,e),e.stateNode=t,c=rn(o,r),o){case"iframe":case"object":case"embed":We("load",t),s=r;break;case"video":case"audio":for(s=0;s<Yt.length;s++)We(Yt[s],t);s=r;break;case"source":We("error",t),s=r;break;case"img":case"image":case"link":We("error",t),We("load",t),s=r;break;case"form":We("reset",t),We("submit",t),s=r;break;case"details":We("toggle",t),s=r;break;case"input":kt(t,r),s=xt(t,r),We("invalid",t),an(n,"onChange");break;case"option":s=Ct(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},s=i({},r,{value:void 0}),We("invalid",t),an(n,"onChange");break;case"textarea":At(t,r),s=jt(t,r),We("invalid",t),an(n,"onChange");break;default:s=r}nn(o,s);var l=s;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];"style"===u?tn(t,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&Dt(t,f):"children"===u?"string"==typeof f?("textarea"!==o||""!==f)&&Lt(t,f):"number"==typeof f&&Lt(t,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(S.hasOwnProperty(u)?null!=f&&an(n,u):null!=f&&Q(t,u,f,c))}switch(o){case"input":_t(t),Et(t,r,!1);break;case"textarea":_t(t),zt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+mt(r.value));break;case"select":t.multiple=!!r.multiple,null!=(n=r.value)?Ot(t,!!r.multiple,n,!1):null!=r.defaultValue&&Ot(t,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof s.onClick&&(t.onclick=un)}bn(o,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Fa(0,e,t.memoizedProps,r);else{if("string"!=typeof r&&null===e.stateNode)throw Error(a(166));n=Oo(Co.current),Oo(Eo.current),Ma(e)?(n=e.stateNode,r=e.memoizedProps,n[xn]=e,n.nodeValue!==r&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[xn]=e,e.stateNode=n)}return null;case 13:return ai(No),r=e.memoizedState,0!=(64&e.effectTag)?(e.expirationTime=n,e):(n=null!==r,r=!1,null===t?void 0!==e.memoizedProps.fallback&&Ma(e):(r=null!==(o=t.memoizedState),n||null===o||null!==(o=t.child.sibling)&&(null!==(u=e.firstEffect)?(e.firstEffect=o,o.nextEffect=u):(e.firstEffect=e.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!=(1&No.current)?Mu===mu&&(Mu=yu):(Mu!==mu&&Mu!==yu||(Mu=_u),0!==ju&&null!==xu&&(Ac(xu,Su),Pc(xu,ju)))),(n||r)&&(e.effectTag|=4),null);case 4:return Ao(),null;case 10:return Zi(e),null;case 17:return di(e.type)&&pi(),null;case 19:if(ai(No),null===(r=e.memoizedState))return null;if(o=0!=(64&e.effectTag),null===(u=r.rendering)){if(o)$a(r,!1);else if(Mu!==mu||null!==t&&0!=(64&t.effectTag))for(u=e.child;null!==u;){if(null!==(t=Io(u))){for(e.effectTag|=64,$a(r,!1),null!==(o=t.updateQueue)&&(e.updateQueue=o,e.effectTag|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=e.child;null!==r;)u=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(t=o.alternate)?(o.childExpirationTime=0,o.expirationTime=u,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=t.childExpirationTime,o.expirationTime=t.expirationTime,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,u=t.dependencies,o.dependencies=null===u?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),r=r.sibling;return ui(No,1&No.current|2),e.child}u=u.sibling}}else{if(!o)if(null!==(t=Io(u))){if(e.effectTag|=64,o=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),$a(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*Di()-r.renderingStartTime>r.tailExpiration&&1<n&&(e.effectTag|=64,o=!0,$a(r,!1),e.expirationTime=e.childExpirationTime=n-1);r.isBackwards?(u.sibling=e.child,e.child=u):(null!==(n=r.last)?n.sibling=u:e.child=u,r.last=u)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Di()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Di(),n.sibling=null,e=No.current,ui(No,o?1&e|2:1&e),n):null}throw Error(a(156,e.tag))}function Xa(t){switch(t.tag){case 1:di(t.type)&&pi();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Ao(),ai(li),ai(si),0!=(64&(e=t.effectTag)))throw Error(a(285));return t.effectTag=-4097&e|64,t;case 5:return zo(t),null;case 13:return ai(No),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return ai(No),null;case 4:return Ao(),null;case 10:return Zi(t),null;default:return null}}function Ka(t,e){return{value:t,source:e,stack:vt(e)}}La=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qa=function(t,e,n,r,o){var a=t.memoizedProps;if(a!==r){var u,c,s=e.stateNode;switch(Oo(Eo.current),t=null,n){case"input":a=xt(s,a),r=xt(s,r),t=[];break;case"option":a=Ct(s,a),r=Ct(s,r),t=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":a=jt(s,a),r=jt(s,r),t=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=un)}for(u in nn(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u)for(c in s=a[u])s.hasOwnProperty(c)&&(n||(n={}),n[c]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(S.hasOwnProperty(u)?t||(t=[]):(t=t||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(c in s)!s.hasOwnProperty(c)||l&&l.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in l)l.hasOwnProperty(c)&&s[c]!==l[c]&&(n||(n={}),n[c]=l[c])}else n||(t||(t=[]),t.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(t=t||[]).push(u,l)):"children"===u?s===l||"string"!=typeof l&&"number"!=typeof l||(t=t||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(S.hasOwnProperty(u)?(null!=l&&an(o,u),t||s===l||(t=[])):(t=t||[]).push(u,l))}n&&(t=t||[]).push("style",n),o=t,(e.updateQueue=o)&&(e.effectTag|=4)}},Fa=function(t,e,n,r){n!==r&&(e.effectTag|=4)};var Qa="function"==typeof WeakSet?WeakSet:Set;function Za(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=vt(n)),null!==n&>(n.type),e=e.value,null!==t&&1===t.tag&>(t.type);try{console.error(e)}catch(t){setTimeout((function(){throw t}))}}function Ja(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){gc(t,e)}else e.current=null}function tu(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:Gi(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function eu(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==e)}}function nu(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function ru(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:return void nu(3,n);case 1:if(t=n.stateNode,4&n.effectTag)if(null===e)t.componentDidMount();else{var r=n.elementType===n.type?e.memoizedProps:Gi(n.type,e.memoizedProps);t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&so(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}so(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ne(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function iu(t,e,n){switch("function"==typeof _c&&_c(e),e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var r=t.next;Fi(97<n?97:n,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var i=e;try{n()}catch(t){gc(i,t)}}t=t.next}while(t!==r)}))}break;case 1:Ja(e),"function"==typeof(n=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){gc(t,e)}}(e,n);break;case 5:Ja(e);break;case 4:cu(t,e,n)}}function ou(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,t.stateNode=null,null!==e&&ou(e)}function au(t){return 5===t.tag||3===t.tag||4===t.tag}function uu(t){t:{for(var e=t.return;null!==e;){if(au(e)){var n=e;break t}e=e.return}throw Error(a(160))}switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:e=e.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Lt(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||au(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}r?function t(e,n,r){var i=e.tag,o=5===i||6===i;if(o)e=o?e.stateNode:e.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(e,n):r.insertBefore(e,n):(8===r.nodeType?(n=r.parentNode).insertBefore(e,r):(n=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=un));else if(4!==i&&null!==(e=e.child))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e):function t(e,n,r){var i=e.tag,o=5===i||6===i;if(o)e=o?e.stateNode:e.stateNode.instance,n?r.insertBefore(e,n):r.appendChild(e);else if(4!==i&&null!==(e=e.child))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e)}function cu(t,e,n){for(var r,i,o=e,u=!1;;){if(!u){u=o.return;t:for(;;){if(null===u)throw Error(a(160));switch(r=u.stateNode,u.tag){case 5:i=!1;break t;case 3:case 4:r=r.containerInfo,i=!0;break t}u=u.return}u=!0}if(5===o.tag||6===o.tag){t:for(var c=t,s=o,l=n,f=s;;)if(iu(c,f,l),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===s)break t;for(;null===f.sibling;){if(null===f.return||f.return===s)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(c=r,s=o.stateNode,8===c.nodeType?c.parentNode.removeChild(s):c.removeChild(s)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(iu(t,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;4===(o=o.return).tag&&(u=!1)}o.sibling.return=o.return,o=o.sibling}}function su(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:return void eu(3,e);case 1:return;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[kn]=r,"input"===t&&"radio"===r.type&&null!=r.name&&St(n,r),rn(t,i),e=rn(t,r),i=0;i<o.length;i+=2){var u=o[i],c=o[i+1];"style"===u?tn(n,c):"dangerouslySetInnerHTML"===u?Dt(n,c):"children"===u?Lt(n,c):Q(n,u,c,e)}switch(t){case"input":Mt(n,r);break;case"textarea":Pt(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?Ot(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?Ot(n,!!r.multiple,r.defaultValue,!0):Ot(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(a(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,Ne(e.containerInfo)));case 12:return;case 13:if(n=e,null===e.memoizedState?r=!1:(r=!0,n=e.child,Pu=Di()),null!==n)t:for(t=n;;){if(5===t.tag)o=t.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=t.stateNode,i=null!=(i=t.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=Je("display",i));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(o=t.child.sibling).return=t,t=o;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}return void lu(e);case 19:return void lu(e);case 17:return}throw Error(a(163))}function lu(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Qa),e.forEach((function(e){var r=mc.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}var fu="function"==typeof WeakMap?WeakMap:Map;function hu(t,e,n){(n=oo(n,null)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Nu||(Nu=!0,Iu=r),Za(t,e)},n}function du(t,e,n){(n=oo(n,null)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var i=e.value;n.payload=function(){return Za(t,e),r(i)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ru?Ru=new Set([this]):Ru.add(this),Za(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var pu,bu=Math.ceil,gu=K.ReactCurrentDispatcher,vu=K.ReactCurrentOwner,mu=0,yu=3,_u=4,wu=0,xu=null,ku=null,Su=0,Mu=mu,Eu=null,Tu=1073741823,Cu=1073741823,Ou=null,ju=0,Au=!1,Pu=0,zu=null,Nu=!1,Iu=null,Ru=null,Du=!1,Lu=null,qu=90,Fu=null,Uu=0,Bu=null,Vu=0;function Hu(){return 0!=(48&wu)?1073741821-(Di()/10|0):0!==Vu?Vu:Vu=1073741821-(Di()/10|0)}function Wu(t,e,n){if(0==(2&(e=e.mode)))return 1073741823;var r=Li();if(0==(4&e))return 99===r?1073741823:1073741822;if(0!=(16&wu))return Su;if(null!==n)t=Wi(t,0|n.timeoutMs||5e3,250);else switch(r){case 99:t=1073741823;break;case 98:t=Wi(t,150,100);break;case 97:case 96:t=Wi(t,5e3,250);break;case 95:t=2;break;default:throw Error(a(326))}return null!==xu&&t===Su&&--t,t}function Gu(t,e){if(50<Uu)throw Uu=0,Bu=null,Error(a(185));if(null!==(t=$u(t,e))){var n=Li();1073741823===e?0!=(8&wu)&&0==(48&wu)?Qu(t):(Xu(t),0===wu&&Vi()):Xu(t),0==(4&wu)||98!==n&&99!==n||(null===Fu?Fu=new Map([[t,e]]):(void 0===(n=Fu.get(t))||n>e)&&Fu.set(t,e))}}function $u(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,i=null;if(null===r&&3===t.tag)i=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(xu===i&&(ic(e),Mu===_u&&Ac(i,Su)),Pc(i,e)),i}function Yu(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!jc(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function Xu(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Bi(Qu.bind(null,t));else{var e=Yu(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=Hu();if(r=1073741823===e?99:1===e||2===e?95:0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==ji&&wi(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Bi(Qu.bind(null,t)):Ui(r,Ku.bind(null,t),{timeout:10*(1073741821-e)-Di()}),t.callbackNode=e}}}function Ku(t,e){if(Vu=0,e)return zc(t,e=Hu()),Xu(t),null;var n=Yu(t);if(0!==n){if(e=t.callbackNode,0!=(48&wu))throw Error(a(327));if(dc(),t===xu&&n===Su||tc(t,n),null!==ku){var r=wu;wu|=16;for(var i=nc();;)try{ac();break}catch(e){ec(t,e)}if(Qi(),wu=r,gu.current=i,1===Mu)throw e=Eu,tc(t,n),Ac(t,n),Xu(t),e;if(null===ku)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Mu,xu=null,r){case mu:case 1:throw Error(a(345));case 2:zc(t,2<n?2:n);break;case yu:if(Ac(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=sc(i)),1073741823===Tu&&10<(i=Pu+500-Di())){if(Au){var o=t.lastPingedTime;if(0===o||o>=n){t.lastPingedTime=n,tc(t,n);break}}if(0!==(o=Yu(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=vn(lc.bind(null,t),i);break}lc(t);break;case _u:if(Ac(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=sc(i)),Au&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,tc(t,n);break}if(0!==(i=Yu(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Cu?r=10*(1073741821-Cu)-Di():1073741823===Tu?r=0:(r=10*(1073741821-Tu)-5e3,0>(r=(i=Di())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bu(r/1960))-r)&&(r=n)),10<r){t.timeoutHandle=vn(lc.bind(null,t),r);break}lc(t);break;case 5:if(1073741823!==Tu&&null!==Ou){o=Tu;var u=Ou;if(0>=(r=0|u.busyMinDurationMs)?r=0:(i=0|u.busyDelayMs,r=(o=Di()-(10*(1073741821-o)-(0|u.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Ac(t,n),t.timeoutHandle=vn(lc.bind(null,t),r);break}}lc(t);break;default:throw Error(a(329))}if(Xu(t),t.callbackNode===e)return Ku.bind(null,t)}}return null}function Qu(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,0!=(48&wu))throw Error(a(327));if(dc(),t===xu&&e===Su||tc(t,e),null!==ku){var n=wu;wu|=16;for(var r=nc();;)try{oc();break}catch(e){ec(t,e)}if(Qi(),wu=n,gu.current=r,1===Mu)throw n=Eu,tc(t,e),Ac(t,e),Xu(t),n;if(null!==ku)throw Error(a(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,xu=null,lc(t),Xu(t)}return null}function Zu(t,e){var n=wu;wu|=1;try{return t(e)}finally{0===(wu=n)&&Vi()}}function Ju(t,e){var n=wu;wu&=-2,wu|=8;try{return t(e)}finally{0===(wu=n)&&Vi()}}function tc(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,mn(n)),null!==ku)for(n=ku.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:Ao(),ai(li),ai(si);break;case 5:zo(r);break;case 4:Ao();break;case 13:case 19:ai(No);break;case 10:Zi(r)}n=n.return}xu=t,ku=Sc(t.current,null),Su=e,Mu=mu,Eu=null,Cu=Tu=1073741823,Ou=null,ju=0,Au=!1}function ec(t,e){for(;;){try{if(Qi(),Do.current=pa,Vo)for(var n=Fo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(qo=0,Bo=Uo=Fo=null,Vo=!1,null===ku||null===ku.return)return Mu=1,Eu=e,ku=null;t:{var i=t,o=ku.return,a=ku,u=e;if(e=Su,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u;if(0==(2&a.mode)){var s=a.alternate;s?(a.updateQueue=s.updateQueue,a.memoizedState=s.memoizedState,a.expirationTime=s.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var l=0!=(1&No.current),f=o;do{var h;if(h=13===f.tag){var d=f.memoizedState;if(null!==d)h=null!==d.dehydrated;else{var p=f.memoizedProps;h=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!l)}}if(h){var b=f.updateQueue;if(null===b){var g=new Set;g.add(c),f.updateQueue=g}else b.add(c);if(0==(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=oo(1073741823,null);v.tag=2,ao(a,v)}a.expirationTime=1073741823;break t}u=void 0,a=e;var m=i.pingCache;if(null===m?(m=i.pingCache=new fu,u=new Set,m.set(c,u)):void 0===(u=m.get(c))&&(u=new Set,m.set(c,u)),!u.has(a)){u.add(a);var y=vc.bind(null,i,c,a);c.then(y,y)}f.effectTag|=4096,f.expirationTime=e;break t}f=f.return}while(null!==f);u=Error((gt(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+vt(a))}5!==Mu&&(Mu=2),u=Ka(u,a),f=o;do{switch(f.tag){case 3:c=u,f.effectTag|=4096,f.expirationTime=e,uo(f,hu(f,c,e));break t;case 1:c=u;var _=f.type,w=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===Ru||!Ru.has(w)))){f.effectTag|=4096,f.expirationTime=e,uo(f,du(f,c,e));break t}}f=f.return}while(null!==f)}ku=cc(ku)}catch(t){e=t;continue}break}}function nc(){var t=gu.current;return gu.current=pa,null===t?pa:t}function rc(t,e){t<Tu&&2<t&&(Tu=t),null!==e&&t<Cu&&2<t&&(Cu=t,Ou=e)}function ic(t){t>ju&&(ju=t)}function oc(){for(;null!==ku;)ku=uc(ku)}function ac(){for(;null!==ku&&!Ai();)ku=uc(ku)}function uc(t){var e=pu(t.alternate,t,Su);return t.memoizedProps=t.pendingProps,null===e&&(e=cc(t)),vu.current=null,e}function cc(t){ku=t;do{var e=ku.alternate;if(t=ku.return,0==(2048&ku.effectTag)){if(e=Ya(e,ku,Su),1===Su||1!==ku.childExpirationTime){for(var n=0,r=ku.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}ku.childExpirationTime=n}if(null!==e)return e;null!==t&&0==(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=ku.firstEffect),null!==ku.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=ku.firstEffect),t.lastEffect=ku.lastEffect),1<ku.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=ku:t.firstEffect=ku,t.lastEffect=ku))}else{if(null!==(e=Xa(ku)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=ku.sibling))return e;ku=t}while(null!==ku);return Mu===mu&&(Mu=5),null}function sc(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function lc(t){var e=Li();return Fi(99,fc.bind(null,t,e)),null}function fc(t,e){do{dc()}while(null!==Lu);if(0!=(48&wu))throw Error(a(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=sc(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===xu&&(ku=xu=null,Su=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=wu;wu|=32,vu.current=null,dn=He;var u=fn();if(hn(u)){if("selectionStart"in u)var c={start:u.selectionStart,end:u.selectionEnd};else t:{var s=(c=(c=u.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(s&&0!==s.rangeCount){c=s.anchorNode;var l=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{c.nodeType,f.nodeType}catch(t){c=null;break t}var h=0,d=-1,p=-1,b=0,g=0,v=u,m=null;e:for(;;){for(var y;v!==c||0!==l&&3!==v.nodeType||(d=h+l),v!==f||0!==s&&3!==v.nodeType||(p=h+s),3===v.nodeType&&(h+=v.nodeValue.length),null!==(y=v.firstChild);)m=v,v=y;for(;;){if(v===u)break e;if(m===c&&++b===l&&(d=h),m===f&&++g===s&&(p=h),null!==(y=v.nextSibling))break;m=(v=m).parentNode}v=y}c=-1===d||-1===p?null:{start:d,end:p}}else c=null}c=c||{start:0,end:0}}else c=null;pn={activeElementDetached:null,focusedElem:u,selectionRange:c},He=!1,zu=i;do{try{hc()}catch(t){if(null===zu)throw Error(a(330));gc(zu,t),zu=zu.nextEffect}}while(null!==zu);zu=i;do{try{for(u=t,c=e;null!==zu;){var _=zu.effectTag;if(16&_&&Lt(zu.stateNode,""),128&_){var w=zu.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&_){case 2:uu(zu),zu.effectTag&=-3;break;case 6:uu(zu),zu.effectTag&=-3,su(zu.alternate,zu);break;case 1024:zu.effectTag&=-1025;break;case 1028:zu.effectTag&=-1025,su(zu.alternate,zu);break;case 4:su(zu.alternate,zu);break;case 8:cu(u,l=zu,c),ou(l)}zu=zu.nextEffect}}catch(t){if(null===zu)throw Error(a(330));gc(zu,t),zu=zu.nextEffect}}while(null!==zu);if(x=pn,w=fn(),_=x.focusedElem,c=x.selectionRange,w!==_&&_&&_.ownerDocument&&function t(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}(_.ownerDocument.documentElement,_)){null!==c&&hn(_)&&(w=c.start,void 0===(x=c.end)&&(x=w),"selectionStart"in _?(_.selectionStart=w,_.selectionEnd=Math.min(x,_.value.length)):(x=(w=_.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=_.textContent.length,u=Math.min(c.start,l),c=void 0===c.end?u:Math.min(c.end,l),!x.extend&&u>c&&(l=c,c=u,u=l),l=ln(_,u),f=ln(_,c),l&&f&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),u>c?(x.addRange(w),x.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),x.addRange(w))))),w=[];for(x=_;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<w.length;_++)(x=w[_]).element.scrollLeft=x.left,x.element.scrollTop=x.top}He=!!dn,pn=dn=null,t.current=n,zu=i;do{try{for(_=t;null!==zu;){var k=zu.effectTag;if(36&k&&ru(_,zu.alternate,zu),128&k){w=void 0;var S=zu.ref;if(null!==S){var M=zu.stateNode;switch(zu.tag){case 5:w=M;break;default:w=M}"function"==typeof S?S(w):S.current=w}}zu=zu.nextEffect}}catch(t){if(null===zu)throw Error(a(330));gc(zu,t),zu=zu.nextEffect}}while(null!==zu);zu=null,Pi(),wu=o}else t.current=n;if(Du)Du=!1,Lu=t,qu=e;else for(zu=i;null!==zu;)e=zu.nextEffect,zu.nextEffect=null,zu=e;if(0===(e=t.firstPendingTime)&&(Ru=null),1073741823===e?t===Bu?Uu++:(Uu=0,Bu=t):Uu=0,"function"==typeof yc&&yc(n.stateNode,r),Xu(t),Nu)throw Nu=!1,t=Iu,Iu=null,t;return 0!=(8&wu)||Vi(),null}function hc(){for(;null!==zu;){var t=zu.effectTag;0!=(256&t)&&tu(zu.alternate,zu),0==(512&t)||Du||(Du=!0,Ui(97,(function(){return dc(),null}))),zu=zu.nextEffect}}function dc(){if(90!==qu){var t=97<qu?97:qu;return qu=90,Fi(t,pc)}}function pc(){if(null===Lu)return!1;var t=Lu;if(Lu=null,0!=(48&wu))throw Error(a(331));var e=wu;for(wu|=32,t=t.current.firstEffect;null!==t;){try{var n=t;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:eu(5,n),nu(5,n)}}catch(e){if(null===t)throw Error(a(330));gc(t,e)}n=t.nextEffect,t.nextEffect=null,t=n}return wu=e,Vi(),!0}function bc(t,e,n){ao(t,e=hu(t,e=Ka(n,e),1073741823)),null!==(t=$u(t,1073741823))&&Xu(t)}function gc(t,e){if(3===t.tag)bc(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){bc(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ru||!Ru.has(r))){ao(n,t=du(n,t=Ka(e,t),1073741823)),null!==(n=$u(n,1073741823))&&Xu(n);break}}n=n.return}}function vc(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),xu===t&&Su===n?Mu===_u||Mu===yu&&1073741823===Tu&&Di()-Pu<500?tc(t,Su):Au=!0:jc(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,Xu(t)))}function mc(t,e){var n=t.stateNode;null!==n&&n.delete(e),0==(e=0)&&(e=Wu(e=Hu(),t,null)),null!==(t=$u(t,e))&&Xu(t)}pu=function(t,e,n){var r=e.expirationTime;if(null!==t){var i=e.pendingProps;if(t.memoizedProps!==i||li.current)Ca=!0;else{if(r<n){switch(Ca=!1,e.tag){case 3:Da(e),Ea();break;case 5:if(Po(e),4&e.mode&&1!==n&&i.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:di(e.type)&&vi(e);break;case 4:jo(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value,i=e.type._context,ui($i,i._currentValue),i._currentValue=r;break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?Ba(t,e,n):(ui(No,1&No.current),null!==(e=Ga(t,e,n))?e.sibling:null);ui(No,1&No.current);break;case 19:if(r=e.childExpirationTime>=n,0!=(64&t.effectTag)){if(r)return Wa(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),ui(No,No.current),!r)return null}return Ga(t,e,n)}Ca=!1}}else Ca=!1;switch(e.expirationTime=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,i=hi(e,si.current),to(e,n),i=Go(null,e,r,t,i,n),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,di(r)){var o=!0;vi(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ro(e);var u=r.getDerivedStateFromProps;"function"==typeof u&&ho(e,r,u,t),i.updater=po,e.stateNode=i,i._reactInternalFiber=e,mo(e,r,t,n),e=Ra(null,e,r,!0,o,n)}else e.tag=0,Oa(null,e,i,n),e=e.child;return e;case 16:t:{if(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,e.type=i,o=e.tag=function(t){if("function"==typeof t)return kc(t)?1:0;if(null!=t){if((t=t.$$typeof)===ct)return 11;if(t===ft)return 14}return 2}(i),t=Gi(i,t),o){case 0:e=Na(null,e,i,t,n);break t;case 1:e=Ia(null,e,i,t,n);break t;case 11:e=ja(null,e,i,t,n);break t;case 14:e=Aa(null,e,i,Gi(i.type,t),r,n);break t}throw Error(a(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,Na(t,e,r,i=e.elementType===r?i:Gi(r,i),n);case 1:return r=e.type,i=e.pendingProps,Ia(t,e,r,i=e.elementType===r?i:Gi(r,i),n);case 3:if(Da(e),r=e.updateQueue,null===t||null===r)throw Error(a(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,io(t,e),co(e,r,null,n),(r=e.memoizedState.element)===i)Ea(),e=Ga(t,e,n);else{if((i=e.stateNode.hydrate)&&(ya=yn(e.stateNode.containerInfo.firstChild),ma=e,i=_a=!0),i)for(n=So(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Oa(t,e,r,n),Ea();e=e.child}return e;case 5:return Po(e),null===t&&ka(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,u=i.children,gn(r,i)?u=null:null!==o&&gn(r,o)&&(e.effectTag|=16),za(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Oa(t,e,u,n),e=e.child),e;case 6:return null===t&&ka(e),null;case 13:return Ba(t,e,n);case 4:return jo(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=ko(e,null,r,n):Oa(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,ja(t,e,r,i=e.elementType===r?i:Gi(r,i),n);case 7:return Oa(t,e,e.pendingProps,n),e.child;case 8:case 12:return Oa(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,u=e.memoizedProps,o=i.value;var c=e.type._context;if(ui($i,c._currentValue),c._currentValue=o,null!==u)if(c=u.value,0==(o=Ir(c,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(u.children===i.children&&!li.current){e=Ga(t,e,n);break t}}else for(null!==(c=e.child)&&(c.return=e);null!==c;){var s=c.dependencies;if(null!==s){u=c.child;for(var l=s.firstContext;null!==l;){if(l.context===r&&0!=(l.observedBits&o)){1===c.tag&&((l=oo(n,null)).tag=2,ao(c,l)),c.expirationTime<n&&(c.expirationTime=n),null!==(l=c.alternate)&&l.expirationTime<n&&(l.expirationTime=n),Ji(c.return,n),s.expirationTime<n&&(s.expirationTime=n);break}l=l.next}}else u=10===c.tag&&c.type===e.type?null:c.child;if(null!==u)u.return=c;else for(u=c;null!==u;){if(u===e){u=null;break}if(null!==(c=u.sibling)){c.return=u.return,u=c;break}u=u.return}c=u}Oa(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,to(e,n),r=r(i=eo(i,o.unstable_observedBits)),e.effectTag|=1,Oa(t,e,r,n),e.child;case 14:return o=Gi(i=e.type,e.pendingProps),Aa(t,e,i,o=Gi(i.type,o),r,n);case 15:return Pa(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Gi(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,di(r)?(t=!0,vi(e)):t=!1,to(e,n),go(e,r,i),mo(e,r,i,n),Ra(null,e,r,!0,t,n);case 19:return Wa(t,e,n)}throw Error(a(156,e.tag))};var yc=null,_c=null;function wc(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function xc(t,e,n,r){return new wc(t,e,n,r)}function kc(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Sc(t,e){var n=t.alternate;return null===n?((n=xc(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Mc(t,e,n,r,i,o){var u=2;if(r=t,"function"==typeof t)kc(t)&&(u=1);else if("string"==typeof t)u=5;else t:switch(t){case nt:return Ec(n.children,i,o,e);case ut:u=8,i|=7;break;case rt:u=8,i|=1;break;case it:return(t=xc(12,n,e,8|i)).elementType=it,t.type=it,t.expirationTime=o,t;case st:return(t=xc(13,n,e,i)).type=st,t.elementType=st,t.expirationTime=o,t;case lt:return(t=xc(19,n,e,i)).elementType=lt,t.expirationTime=o,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case ot:u=10;break t;case at:u=9;break t;case ct:u=11;break t;case ft:u=14;break t;case ht:u=16,r=null;break t;case dt:u=22;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=xc(u,n,e,i)).elementType=t,e.type=r,e.expirationTime=o,e}function Ec(t,e,n,r){return(t=xc(7,t,r,e)).expirationTime=n,t}function Tc(t,e,n){return(t=xc(6,t,null,e)).expirationTime=n,t}function Cc(t,e,n){return(e=xc(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Oc(t,e,n){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function jc(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function Ac(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;n<e&&(t.firstSuspendedTime=e),(r>e||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Pc(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function zc(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Nc(t,e,n,r){var i=e.current,o=Hu(),u=lo.suspense;o=Wu(o,i,u);t:if(n){e:{if(Qt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(di(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var s=n.type;if(di(s)){n=gi(n,s,c);break t}}n=c}else n=ci;return null===e.context?e.context=n:e.pendingContext=n,(e=oo(o,u)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),ao(i,e),Gu(i,o),o}function Ic(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Rc(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function Dc(t,e){Rc(t,e),(t=t.alternate)&&Rc(t,e)}function Lc(t,e,n){var r=new Oc(t,e,n=null!=n&&!0===n.hydrate),i=xc(3,null,null,2===e?7:1===e?3:0);r.current=i,i.stateNode=r,ro(i),t[Sn]=r.current,n&&0!==e&&function(t,e){var n=Kt(e);Se.forEach((function(t){he(t,e,n)})),Me.forEach((function(t){he(t,e,n)}))}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=r}function qc(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Fc(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var u=i;i=function(){var t=Ic(a);u.call(t)}}Nc(e,a,t,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Lc(t,0,e?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var c=i;i=function(){var t=Ic(a);c.call(t)}}Ju((function(){Nc(e,a,t,i)}))}return Ic(a)}function Uc(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:et,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function Bc(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qc(e))throw Error(a(200));return Uc(t,e,null,n)}Lc.prototype.render=function(t){Nc(t,this._internalRoot,null,null)},Lc.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Nc(null,t,null,(function(){e[Sn]=null}))},de=function(t){if(13===t.tag){var e=Wi(Hu(),150,100);Gu(t,e),Dc(t,e)}},pe=function(t){13===t.tag&&(Gu(t,3),Dc(t,3))},be=function(t){if(13===t.tag){var e=Hu();Gu(t,e=Wu(e,t,null)),Dc(t,e)}},C=function(t,e,n){switch(e){case"input":if(Mt(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Cn(r);if(!i)throw Error(a(90));wt(r),Mt(r,i)}}}break;case"textarea":Pt(t,n);break;case"select":null!=(e=n.value)&&Ot(t,!!n.multiple,e,!1)}},N=Zu,I=function(t,e,n,r,i){var o=wu;wu|=4;try{return Fi(98,t.bind(null,e,n,r,i))}finally{0===(wu=o)&&Vi()}},R=function(){0==(49&wu)&&(function(){if(null!==Fu){var t=Fu;Fu=null,t.forEach((function(t,e){zc(e,t),Xu(e)})),Vi()}}(),dc())},D=function(t,e){var n=wu;wu|=2;try{return t(e)}finally{0===(wu=n)&&Vi()}};var Vc,Hc,Wc={Events:[En,Tn,Cn,E,k,In,function(t){ne(t,Nn)},P,z,Xe,oe,dc,{current:!1}]};Hc=(Vc={findFiberByHostInstance:Mn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);yc=function(t){try{e.onCommitFiberRoot(n,t,void 0,64==(64&t.current.effectTag))}catch(t){}},_c=function(t){try{e.onCommitFiberUnmount(n,t)}catch(t){}}}catch(t){}}(i({},Vc,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=te(t))?null:t.stateNode},findFiberByHostInstance:function(t){return Hc?Hc(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wc,e.createPortal=Bc,e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"==typeof t.render)throw Error(a(188));throw Error(a(268,Object.keys(t)))}return null===(t=te(e))?null:t.stateNode},e.flushSync=function(t,e){if(0!=(48&wu))throw Error(a(187));var n=wu;wu|=1;try{return Fi(99,t.bind(null,e))}finally{wu=n,Vi()}},e.hydrate=function(t,e,n){if(!qc(e))throw Error(a(200));return Fc(null,t,e,!0,n)},e.render=function(t,e,n){if(!qc(e))throw Error(a(200));return Fc(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!qc(t))throw Error(a(40));return!!t._reactRootContainer&&(Ju((function(){Fc(null,null,t,!1,(function(){t._reactRootContainer=null,t[Sn]=null}))})),!0)},e.unstable_batchedUpdates=Zu,e.unstable_createPortal=function(t,e){return Bc(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!qc(n))throw Error(a(200));if(null==t||void 0===t._reactInternalFiber)throw Error(a(38));return Fc(t,e,n,!1,r)},e.version="16.14.0"},function(t,e,n){"use strict";t.exports=n(162)},function(t,e,n){"use strict";var r,i,o,a,u;if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,s=null,l=function(){if(null!==c)try{var t=e.unstable_now();c(!0,t),c=null}catch(t){throw setTimeout(l,0),t}},f=Date.now();e.unstable_now=function(){return Date.now()-f},r=function(t){null!==c?setTimeout(r,0,t):(c=t,setTimeout(l,0))},i=function(t,e){s=setTimeout(t,e)},o=function(){clearTimeout(s)},a=function(){return!1},u=e.unstable_forceFrameRate=function(){}}else{var h=window.performance,d=window.Date,p=window.setTimeout,b=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof h&&"function"==typeof h.now)e.unstable_now=function(){return h.now()};else{var v=d.now();e.unstable_now=function(){return d.now()-v}}var m=!1,y=null,_=-1,w=5,x=0;a=function(){return e.unstable_now()>=x},u=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<t?Math.floor(1e3/t):5};var k=new MessageChannel,S=k.port2;k.port1.onmessage=function(){if(null!==y){var t=e.unstable_now();x=t+w;try{y(!0,t)?S.postMessage(null):(m=!1,y=null)}catch(t){throw S.postMessage(null),t}}else m=!1},r=function(t){y=t,m||(m=!0,S.postMessage(null))},i=function(t,n){_=p((function(){t(e.unstable_now())}),n)},o=function(){b(_),_=-1}}function M(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<C(i,e)))break t;t[r]=e,t[n]=i,n=r}}function E(t){return void 0===(t=t[0])?null:t}function T(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,a=t[o],u=o+1,c=t[u];if(void 0!==a&&0>C(a,n))void 0!==c&&0>C(c,a)?(t[r]=c,t[u]=n,r=u):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==c&&0>C(c,n)))break t;t[r]=c,t[u]=n,r=u}}}return e}return null}function C(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var O=[],j=[],A=1,P=null,z=3,N=!1,I=!1,R=!1;function D(t){for(var e=E(j);null!==e;){if(null===e.callback)T(j);else{if(!(e.startTime<=t))break;T(j),e.sortIndex=e.expirationTime,M(O,e)}e=E(j)}}function L(t){if(R=!1,D(t),!I)if(null!==E(O))I=!0,r(q);else{var e=E(j);null!==e&&i(L,e.startTime-t)}}function q(t,n){I=!1,R&&(R=!1,o()),N=!0;var r=z;try{for(D(n),P=E(O);null!==P&&(!(P.expirationTime>n)||t&&!a());){var u=P.callback;if(null!==u){P.callback=null,z=P.priorityLevel;var c=u(P.expirationTime<=n);n=e.unstable_now(),"function"==typeof c?P.callback=c:P===E(O)&&T(O),D(n)}else T(O);P=E(O)}if(null!==P)var s=!0;else{var l=E(j);null!==l&&i(L,l.startTime-n),s=!1}return s}finally{P=null,z=r,N=!1}}function F(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=u;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){I||N||(I=!0,r(q))},e.unstable_getCurrentPriorityLevel=function(){return z},e.unstable_getFirstCallbackNode=function(){return E(O)},e.unstable_next=function(t){switch(z){case 1:case 2:case 3:var e=3;break;default:e=z}var n=z;z=e;try{return t()}finally{z=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=U,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=z;z=t;try{return e()}finally{z=n}},e.unstable_scheduleCallback=function(t,n,a){var u=e.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?u+c:u,a="number"==typeof a.timeout?a.timeout:F(t)}else a=F(t),c=u;return t={id:A++,callback:n,priorityLevel:t,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>u?(t.sortIndex=c,M(j,t),null===E(O)&&t===E(j)&&(R?o():R=!0,i(L,c-u))):(t.sortIndex=a,M(O,t),I||N||(I=!0,r(q))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();D(t);var n=E(O);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<P.expirationTime||a()},e.unstable_wrapCallback=function(t){var e=z;return function(){var n=z;z=e;try{return t.apply(this,arguments)}finally{z=n}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerLeanLanguage=e.tabHandler=e.checkInputCompletionPosition=e.checkInputCompletionChange=e.delayMs=e.currentlyRunning=e.allMessages=e.server=e.ReactiveValue=e.CoalescedTimer=void 0;const r=n(164),i=n(168),o=n(169);class a{constructor(){this.timer=void 0}do(t,e){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.timer=void 0,e()},t)}}e.CoalescedTimer=a;class u{constructor(t){this.updated=new r.Event,this.lastValue=t,this.updated.on(t=>this.lastValue=t)}get value(){return this.lastValue}}e.ReactiveValue=u,e.allMessages=[],e.currentlyRunning=new u([]);const c=new Map;e.delayMs=1e3;class s{constructor(t,n){this.model=t,this.syncTimer=new a,this.version=0,this.changeSubscription=t.onDidChangeContent(t=>{f.cancel(),this.syncIn(e.delayMs)}),this.editorData=n,this.syncNow()}dispose(){this.changeSubscription.dispose()}syncIn(t){var n;n=this.model.uri.fsPath,-1===e.currentlyRunning.value.indexOf(n)&&e.currentlyRunning.updated.fire([].concat([n],e.currentlyRunning.value)),f.cancel();const r=this.version+=1;this.syncTimer.do(t,()=>{e.server&&e.server.sync(this.model.uri.fsPath,this.editorData.fileContent).then(()=>{this.version===r&&function(t){e.currentlyRunning.updated.fire(e.currentlyRunning.value.filter(e=>e!==t))}(this.model.uri.fsPath)})})}syncNow(){this.syncIn(0)}}const l=new Set(" ,");e.checkInputCompletionChange=function(t,e,n){if(1!==t.changes.length)return null;const r=t.changes[0];if(0===r.rangeLength&&l.has(r.text)){const t=r.range.startLineNumber,i=n.getLineContent(t),a=r.range.startColumn,u=i.lastIndexOf("\\",a-1)+1,c=i.substring(u,a-1),s=o[c];if(u&&s){const r=new monaco.Range(t,u,t,a),i=e.getSelections();e.setSelections(n.pushEditOperations(i,[{identifier:{major:1,minor:1},range:r,text:s,forceMoveMarkers:!1}],()=>[new monaco.Selection(t,u,t,u)])),e.setPosition(new monaco.Position(t,u+2))}}return null},e.checkInputCompletionPosition=function(t,e,n){const r=t.position.lineNumber,i=n.getLineContent(r),a=t.position.column,u=i.lastIndexOf("\\",a-1)+1,c=i.substring(u,a-1),s=o[c];return u&&s},e.tabHandler=function(t,e){const n=t.getSelections(),r=n[0].startLineNumber,i=e.getLineContent(r),a=n[0].startColumn,u=i.lastIndexOf("\\",a-1)+1,c=i.substring(u,a-1),s=o[c];if(u&&s){const i=new monaco.Range(r,u,r,a);t.setSelections(e.pushEditOperations(n,[{identifier:{major:1,minor:1},range:i,text:s,forceMoveMarkers:!1}],()=>[new monaco.Selection(r,u,r,u)])),t.setPosition(new monaco.Position(r,u+1))}};const f=new class{wait(t){return this.cancel(),new Promise((e,n)=>{this.reject=n,this.timer=setTimeout(()=>{this.timer=void 0,e()},t)})}cancel(){this.timer&&(clearTimeout(this.timer),this.reject("timeout"),this.timer=void 0)}};function h(t){switch(t){case"warning":return monaco.Severity.Warning;case"error":return monaco.Severity.Error;case"information":return monaco.Severity.Info}}e.registerLeanLanguage=function(t,n,o){if(e.server)return;const a=new r.WebWorkerTransport(t);e.server=new r.Server(a),e.server.error.on(t=>console.log("error:",t)),e.server.connect(),monaco.languages.register({id:"lean",filenamePatterns:["*.lean"]}),monaco.editor.onDidCreateModel(t=>{"lean"===t.getModeId()&&c.set(t.uri.fsPath,new s(t,n))}),monaco.editor.onWillDisposeModel(t=>{const e=c.get(t.uri.fsPath);e&&(e.dispose(),c.delete(t.uri.fsPath))}),e.server.allMessages.on(t=>{e.allMessages=t.msgs;for(const e of monaco.editor.getModels()){const n=e.uri.fsPath,r=[];for(const e of t.msgs){if(e.file_name!==n)continue;if(o(e))continue;const t={severity:h(e.severity),message:e.text,startLineNumber:e.pos_line,startColumn:e.pos_col+1,endLineNumber:e.pos_line,endColumn:e.pos_col+1};e.end_pos_line&&void 0!==e.end_pos_col&&(t.endLineNumber=e.end_pos_line,t.endColumn=e.end_pos_col+1),r.push(t)}monaco.editor.setModelMarkers(e,"lean",r)}}),monaco.languages.registerCompletionItemProvider("lean",{provideCompletionItems:(t,r)=>f.wait(e.delayMs).then(()=>(c.get(t.uri.fsPath).syncNow(),e.server.complete(t.uri.fsPath,r.lineNumber+n.lineOffset,r.column-1).then(t=>{const e=[];for(const i of t.completions||[]){const o={kind:monaco.languages.CompletionItemKind.Function,label:i.text,detail:i.type,documentation:i.doc,range:new monaco.Range(r.lineNumber+n.lineOffset,r.column-t.prefix.length,r.lineNumber+n.lineOffset,r.column)};i.tactic_params&&(o.detail=i.tactic_params.join(" ")),e.push(o)}return e})),()=>{})}),monaco.languages.registerHoverProvider("lean",{provideHover:(t,r)=>e.server.info(t.uri.fsPath,r.lineNumber+n.lineOffset,r.column-1).then(t=>{const e=[],i=t.record;if(!i)return{contents:[]};const o=i["full-id"]||i.text;return o&&(t.record.tactic_params?e.push({language:"text",value:o+" "+i.tactic_params.join(" ")}):e.push({language:"lean",value:o+" : "+i.type})),t.record.doc&&e.push(t.record.doc),t.record.state&&e.push({language:"lean",value:i.state}),{contents:e,range:{startLineNumber:r.lineNumber+n.lineOffset,startColumn:r.column,endLineNumber:r.lineNumber+n.lineOffset,endColumn:r.column}}})}),monaco.languages.setMonarchTokensProvider("lean",i.leanSyntax)}},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(141)),r(n(166))},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(a,u)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const i=n(142);e.Server=class{constructor(t){this.transport=t,this.jsonMessage=new i.Event,this.error=new i.Event,this.allMessages=new i.Event,this.tasks=new i.Event,this.logMessagesToConsole=!1,this.currentSeqNum=0,this.currentMessages=[],this.sentRequests=new Map,this.jsonMessage.on(t=>this.onMessage(t))}connect(){this.conn=this.transport.connect(),this.conn.jsonMessage.on(t=>this.jsonMessage.fire(t)),this.conn.error.on(t=>this.error.fire(t))}restart(){this.dispose(),this.connect()}send(t){if(!this.alive())return new Promise((t,e)=>e("server is not alive"));this.logMessagesToConsole&&console.log("=> server: ",t),t.seq_num=this.currentSeqNum++;const e=new Promise((e,n)=>this.sentRequests.set(t.seq_num,{resolve:e,reject:n}));return this.conn.send(t),e}info(t,e,n){return this.send({command:"info",file_name:t,line:e,column:n})}sync(t,e){return this.send({command:"sync",file_name:t,content:e})}complete(t,e,n,r){return this.send({command:"complete",file_name:t,line:e,column:n,skip_completions:r||!1})}search(t){return this.send({command:"search",query:t})}allHoleCommands(t){return this.send({command:"all_hole_commands",file_name:t})}holeCommands(t,e,n){return this.send({command:"hole_commands",file_name:t,line:e,column:n})}hole(t,e,n,r){return this.send({command:"hole",file_name:t,line:e,column:n,action:r})}roi(t,e){return this.send({command:"roi",files:e,mode:t})}alive(){return this.conn&&this.conn.alive}dispose(){this.conn&&(this.conn.dispose(),this.sentRequests.forEach((t,e)=>t.reject("disposed")),this.sentRequests.clear(),this.currentSeqNum=0,this.conn=null)}makeProxyTransport(){return{connect:()=>new o(this)}}onMessage(t){this.logMessagesToConsole&&console.log("<= server: ",t);const e=this.sentRequests.get(t.seq_num);if(void 0!==e)this.sentRequests.delete(t.seq_num),"ok"===t.response?e.resolve(t):e.reject(t.message||t);else if("all_messages"===t.response){const e=t;this.currentMessages=e.msgs,this.allMessages.fire(e)}else if("additional_message"===t.response){const e=t;this.currentMessages=this.currentMessages.concat([e.msg]),this.allMessages.fire({response:"all_messages",msgs:this.currentMessages})}else"current_tasks"===t.response?this.tasks.fire(t):this.error.fire({error:"unrelated",message:t.message||JSON.stringify(t)})}};class o{constructor(t){this.parent=t,this.error=new i.Event,this.jsonMessage=new i.Event,this.subscriptions=[],this.subscriptions.push(this.error,this.jsonMessage,this.parent.jsonMessage.on(t=>t.seq_num||this.jsonMessage.fire(t)),this.parent.error.on(t=>this.error.fire("unrelated"==t.error?Object.assign({},t,{error:"connect"}):t)))}get alive(){return this.parent.alive()}send(t){return r(this,void 0,void 0,(function*(){const e=t.seq_num;try{const n=yield this.parent.send(t);this.jsonMessage.fire(Object.assign({},n,{seq_num:e}))}catch(t){const n={response:"error",message:t,seq_num:e};this.jsonMessage.fire(n)}}))}dispose(){for(const t of this.subscriptions)t.dispose()}}e.ProxyConnection=o},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(141),o=r(n(167));e.WebWorkerTransport=class{constructor(t){this.opts=t}connect(){const t=new o.default;t.postMessage({command:"start-webworker",opts:this.opts});const e=new a(t);return t.onmessage=t=>{const n=t.data;e.jsonMessage.fire(n)},e}};class a{constructor(t){this.error=new i.Event,this.jsonMessage=new i.Event,this.alive=!0,this.worker=t}send(t){this.worker.postMessage(t)}dispose(){this.worker.terminate(),this.alive=!1}}e.WebWorkerConnection=a},function(t,e,n){t.exports=function(){return new Worker(n.p+"a9d194e9860941aa7eef.worker.js")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.leanSyntax=void 0,e.leanSyntax={keywords:["def","definition","lemma","theorem","example","axiom","constant","constants","class","instance","structure","inductive","variable","variables","universe","universes","attribute","namespace","section","noncomputable","meta","mutual","do","have","let","assume","suffices","show","from","local","notation","open","export","by","begin","end","λ","∀","Π","∃","Σ","if","this","break","protected","private","else","#print","#check","#eval","#reduce","#help","#exit","#unify","#compile","set_option","import","prelude"],typeKeywords:["Sort","Prop","Type"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>=","→"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/#\[[^\]]+\]/,{token:"annotation"}],[/sorry/,{token:"invalid"}],[/noncomputable theory/,{token:"keyword"}],[/[#A-Za-z_][\w'$]*/,{cases:{"@typeKeywords":"keyword","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],comment:[[/[^-]+/,"comment"],[/\/-/,"comment","@push"],[/-\//,"comment","@pop"],[/[-*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\-/,"comment","@comment"],[/--.*$/,"comment"]]}}},function(t){t.exports=JSON.parse('{"0":"₀","1":"₁","2":"₂","3":"₃","4":"₄","5":"₅","6":"₆","7":"₇","8":"₈","9":"₉","{}":"{$CURSOR}","{}_":"{$CURSOR}_","{{}}":"⦃$CURSOR⦄","[]":"[$CURSOR]","[]_":"[$CURSOR]_","[[]]":"⟦$CURSOR⟧","<>":"⟨$CURSOR⟩","()":"($CURSOR)","()_":"($CURSOR)_","([])\'":"⟮$CURSOR⟯","f<>":"‹$CURSOR›","f<<>>":"«$CURSOR»","[--]":"⁅$CURSOR⁆","\\\\":"\\\\","a":"α","b":"β","c":"χ","d":"↓","e":"ε","g":"γ","i":"∩","m":"μ","n":"¬","o":"∘","p":"Π","t":"▸","r":"→","u":"↑","v":"∨","x":"×","-":"⁻¹","~":"∼",".":"·","*":"⋆","?":"¿","l":"←","<":"⟨",">":"⟩","O":"Ø","&":"⅋","A":"𝔸","C":"ℂ","D":"Δ","F":"𝔽","G":"Γ","H":"ℍ","I":"⋂","I0":"⋂₀","K":"𝕂","L":"Λ","N":"ℕ","P":"Π","Q":"ℚ","R":"ℝ","S":"Σ","U":"⋃","U0":"⋃₀","Z":"ℤ","#":"♯",":":"∶","|":"∣","!":"¡","be":"β","ga":"γ","de":"δ","ep":"ε","ze":"ζ","et":"η","th":"θ","io":"ι","ka":"κ","la":"λ","mu":"μ","nu":"ν","xi":"ξ","pi":"π","rh":"ρ","vsi":"ς","si":"σ","ta":"τ","ph":"φ","ch":"χ","ps":"ψ","om":"ω","`A":"À","\'A":"Á","^{A}":"Â","~A":"Ã","\\"A":"Ä","cC":"Ç","`E":"È","\'E":"É","^{E}":"Ê","\\"E":"Ë","`I":"Ì","\'I":"Í","^{I}":"Î","\\"I":"Ï","~N":"Ñ","`O":"Ò","\'O":"Ó","^{O}":"Ô","~O":"Õ","\\"O":"Ö","/O":"Ø","`U":"Ù","\'U":"Ú","^{U}":"Û","\\"U":"Ü","\'Y":"Ý","`a":"à","\'a":"á","^{a}":"â","~a":"ã","\\"a":"ä","cc":"ç","`e":"è","\'e":"é","^{e}":"ê","\\"e":"ë","`i":"ì","\'i":"í","^{i}":"î","\\"i":"ï","~{n}":"ñ","`o":"ò","\'o":"ó","^{o}":"ô","~o":"õ","\\"o":"ö","/o":"ø","`u":"ù","\'u":"ú","^{u}":"û","\\"u":"ü","\'y":"ý","\\"y":"ÿ","/L":"Ł","notin":"∉","note":"♩","not":"¬","nomisma":"𐆎","nin":"∉","nni":"∌","ni":"∋","nattrans":"⟹","nat_trans":"⟹","natural":"♮","nat":"ℕ","naira":"₦","nabla":"∇","napprox":"≉","numero":"№","nLeftarrow":"⇍","nLeftrightarrow":"⇎","nRightarrow":"⇏","nVDash":"⊯","nVdash":"⊮","ncong":"≇","nearrow":"↗","neg":"¬","nequiv":"≢","neq":"≠","nexists":"∄","ne":"≠","ngeqq":"≱","ngeqslant":"≱","ngeq":"≱","ngtr":"≯","nleftarrow":"↚","nleftrightarrow":"↮","nleqq":"≰","nleqslant":"≰","nleq":"≰","nless":"≮","nmid":"∤","nparallel":"∦","npreceq":"⋠","nprec":"⊀","nrightarrow":"↛","nshortmid":"∤","nshortparallel":"∦","nsimeq":"≄","nsim":"≁","nsubseteqq":"⊈","nsubseteq":"⊈","nsubset":"⊄","nsucceq":"⋡","nsucc":"⊁","nsupseteqq":"⊉","nsupseteq":"⊉","nsupset":"⊅","ntrianglelefteq":"⋬","ntriangleleft":"⋪","ntrianglerighteq":"⋭","ntriangleright":"⋫","nvDash":"⊭","nvdash":"⊬","nwarrow":"↖","eqn":"≠","equiv":"≃","eqcirc":"≖","eqcolon":"≕","eqslantgtr":"⋝","eqslantless":"⋜","entails":"⊢","en":"–","exn":"∄","exists":"∃","ex":"∃","emptyset":"∅","empty":"∅","em":"—","epsilon":"ε","eps":"ε","euro":"€","eta":"η","ell":"ℓ","iso":"≅","in":"∈","inn":"∉","inter":"∩","intercal":"⊺","intersection":"∩","integral":"∫","int":"ℤ","inv":"⁻¹","increment":"∆","inf":"⊓","infi":"⨅","infty":"∞","iff":"↔","imp":"→","imath":"ı","iota":"ι","=n":"≠","==n":"≢","===":"≣","==>":"⟹","==":"≡","=:":"≕","=o":"≗","=>n":"⇏","=>":"⇒","~n":"≁","~~n":"≉","~~~":"≋","~~-":"≊","~~":"≈","~-n":"≄","~-":"≃","~=n":"≇","~=":"≅","homotopy":"∼","hom":"⟶","hori":"ϩ","hookleftarrow":"↩","hookrightarrow":"↪","hryvnia":"₴","heta":"ͱ","heartsuit":"♥","hbar":"ℏ",":~":"∻",":=":"≔","::-":"∺","::":"∷","-~":"≂","-|":"⊣","-1":"⁻¹","^-1":"⁻¹","-2":"⁻²","-3":"⁻³","-:":"∹","->n":"↛","->":"→","--\x3e":"⟶","---":"─","--=":"═","--_":"━","--.":"╌","-o":"⊸",".=.":"≑",".=":"≐",".+":"∔",".-":"∸","...":"⋯","(=":"≘","(b":"⟅","and=":"≙","and":"∧","an":"∧","angle":"∟","angstrom":"Å","all":"∀","allf":"∀ᶠ","all^f":"∀ᶠ","allm":"∀ᵐ","all^m":"∀ᵐ","alpha":"α","aleph":"ℵ","asterisk":"⁎","ast":"∗","asymp":"≍","apl":"⌶","approxeq":"≊","approx":"≈","aa":"å","ae":"æ","austral":"₳","afghani":"؋","amalg":"∐","or=":"≚","ordfeminine":"ª","ordmasculine":"º","or":"∨","oplus":"⊕","od":"ᵒᵈ","aop":"ᵃᵒᵖ","mop":"ᵐᵒᵖ","op":"ᵒᵖ","o+":"⊕","o--":"⊖","o-":"⊝","ox":"⊗","o/":"⊘","o.":"⊙","oo":"⊚","o*":"∘*","o=":"⊜","oe":"œ","octagonal":"🛑","ohm":"Ω","ounce":"℥","omega":"ω","omicron":"ο","ominus":"⊖","odot":"⊙","oint":"∮","oslash":"⊘","otimes":"⊗","*=":"≛","t=":"≜","transport":"▹","trans":"▹","triangledown":"▿","trianglelefteq":"⊴","triangleleft":"◃","triangleq":"≜","trianglerighteq":"⊵","triangleright":"▹","triangle":"▵","tr":"⬝","tb":"◂","twoheadleftarrow":"↞","twoheadrightarrow":"↠","tw":"◃","tie":"⁀","times":"×","theta":"θ","therefore":"∴","thickapprox":"≈","thicksim":"∼","telephone":"℡","tenge":"₸","textmusicalnote":"♪","textmu":"µ","textfractionsolidus":"⁄","textbaht":"฿","textdied":"✝","textdiscount":"⁒","textcolonmonetary":"₡","textcircledP":"℗","textwon":"₩","textnaira":"₦","textnumero":"№","textpeso":"₱","textpertenthousand":"‱","textlira":"₤","textlquill":"⁅","textrecipe":"℞","textreferencemark":"※","textrquill":"⁆","textinterrobang":"‽","textestimated":"℮","textopenbullet":"◦","tugrik":"₮","tau":"τ","top":"⊤","to":"→","to0":"→₀","r0":"→₀","to_0":"→₀","r_0":"→₀","finsupp":"→₀","to1":"→₁","r1":"→₁","to_1":"→₁","r_1":"→₁","l1":"→₁","to1s":"→₁ₛ","r1s":"→₁ₛ","to_1s":"→₁ₛ","r_1s":"→₁ₛ","l1simplefunc":"→₁ₛ","toa":"→ₐ","ra":"→ₐ","to_a":"→ₐ","r_a":"→ₐ","alghom":"→ₐ","tob":"→ᵇ","rb":"→ᵇ","to^b":"→ᵇ","r^b":"→ᵇ","boundedcontinuousfunction":"→ᵇ","tol":"→ₗ","rl":"→ₗ","to_l":"→ₗ","r_l":"→ₗ","linearmap":"→ₗ","tom":"→ₘ","rm":"→ₘ","to_m":"→ₘ","r_m":"→ₘ","aeeqfun":"→ₘ","rp":"→ₚ","to_p":"→ₚ","r_p":"→ₚ","dfinsupp":"→ₚ","tos":"→ₛ","rs":"→ₛ","to_s":"→ₛ","r_s":"→ₛ","simplefunc":"→ₛ","covers":"⋖","covby":"⋖","wcovby":"⩿","wcovers":"⩿","def=":"≝","defs":"≙","degree":"°","dei":"ϯ","delta":"δ","doteqdot":"≑","doteq":"≐","dotplus":"∔","dotsquare":"⊡","dot":"⬝","dong":"₫","downarrow":"↓","downdownarrows":"⇊","downleftharpoon":"⇃","downrightharpoon":"⇂","dr-":"↘","dr=":"⇘","drachma":"₯","dr":"↘","dl-":"↙","dl=":"⇙","dl":"↙","d-2":"⇊","d-u-":"⇵","d-|":"↧","d-":"↓","d==":"⟱","d=":"⇓","dd-":"↡","ddagger":"‡","ddag":"‡","ddots":"⋱","dz":"↯","dib":"◆","diw":"◇","di.":"◈","die":"⚀","division":"÷","divideontimes":"⋇","div":"÷","diameter":"⌀","diamondsuit":"♢","diamond":"⋄","digamma":"ϝ","di":"◆","dagger":"†","dag":"†","daleth":"ℸ","dashv":"⊣","dh":"ð","m=":"≞","meet":"⊓","member":"∈","mem":"∈","measuredangle":"∡","male":"♂","maltese":"✠","manat":"₼","mapsto":"↦","mathscr{I}":"ℐ","minus":"−","mill":"₥","micro":"µ","mid":"∣","multiplication":"×","multimap":"⊸","mho":"℧","models":"⊧","mp":"∓","?=":"≟","??":"⁇","?!":"‽","prohibited":"🛇","prod":"∏","propto":"∝","precapprox":"≾","preceq":"≼","precnapprox":"⋨","precnsim":"⋨","precsim":"≾","prec":"≺","preim":"⁻¹\'","preimage":"⁻¹\'","prime":"′","pr":"↣","powerset":"𝒫","pounds":"£","pound":"£","pab":"▰","paw":"▱","partnership":"㉐","partial":"∂","paragraph":"¶","parallel":"∥","fuzzy":"∥","pa":"▰","pm":"±","perp":"⊥","^perp":"ᗮ","permil":"‰","per":"⅌","peso":"₱","peseta":"₧","pilcrow":"¶","pitchfork":"⋔","psi":"ψ","phi":"φ","8<":"✂","leqn":"≰","leqq":"≦","leqslant":"≤","leq":"≤","len":"≰","leadsto":"↝","leftarrowtail":"↢","leftarrow":"←","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrows":"⇆","leftrightarrow":"↔","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","leftthreetimes":"⋋","lessapprox":"≲","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⋚","lessgtr":"≶","lesssim":"≲","le":"≤","lub":"⊔","lr--":"⟷","lr-n":"↮","lr-":"↔","lr=n":"⇎","lr=":"⇔","lr~":"↭","lrcorner":"⌟","lr":"↔","l-2":"⇇","l-r-":"⇆","l--":"⟵","l-n":"↚","l-|":"↤","l->":"↢","l-":"←","l==":"⇚","l=n":"⇍","l=":"⇐","l~":"↜","ll-":"↞","llcorner":"⌞","llbracket":"〚","ll":"≪","lbag":"⟅","lambda":"λ","lamda":"λ","lam":"λ","lari":"₾","langle":"⟨","lira":"₤","lceil":"⌈","ldots":"…","ldq":"“","ldata":"《","lf":"⧏","<|":"⧏","lfloor":"⌊","lhd":"◁","lnapprox":"⋦","lneqq":"≨","lneq":"≨","lnsim":"⋦","lnot":"¬","longleftarrow":"⟵","longleftrightarrow":"⟷","longrightarrow":"⟶","looparrowleft":"↫","looparrowright":"↬","lozenge":"✧","lq":"‘","ltimes":"⋉","lvertneqq":"≨","geqn":"≱","geqq":"≧","geqslant":"≥","geq":"≥","gen":"≱","gets":"←","ge":"≥","glb":"⊓","glqq":"„","glq":"‚","guarani":"₲","gangia":"ϫ","gamma":"γ","ggg":"⋙","gg":"≫","gimel":"ℷ","gnapprox":"⋧","gneqq":"≩","gneq":"≩","gnsim":"⋧","gtrapprox":"≳","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⋛","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩","grqq":"“","grq":"‘","<=n":"≰","<=>n":"⇎","<=>":"⇔","<=":"≤","<n":"≮","<~nn":"≴","<~n":"⋦","<~":"≲","<:":"⋖",":>":"⋗","<->n":"↮","<->":"↔","<--\x3e":"⟷","<--":"⟵","<-n":"↚","<-":"←","<<":"⟪",">=n":"≱",">=":"≥",">n":"≯",">~nn":"≵",">~n":"⋧",">~":"≳",">>":"⟫","root":"√","ssubn":"⊄","ssub":"⊂","ssupn":"⊅","ssup":"⊃","ssqub":"⊏","ssqup":"⊐","ss":"⊆","subn":"⊈","subseteqq":"⊆","subseteq":"⊆","subsetneqq":"⊊","subsetneq":"⊊","subset":"⊂","sub":"⊆","supn":"⊉","supseteqq":"⊇","supseteq":"⊇","supsetneqq":"⊋","supsetneq":"⊋","supset":"⊃","sup":"⊔","supr":"⨆","surd3":"∛","surd4":"∜","surd":"√","succapprox":"≿","succcurlyeq":"≽","succeq":"≽","succnapprox":"⋩","succnsim":"⋩","succsim":"≿","succ":"≻","sum":"∑","specializes":"⤳","~>":"⤳","squbn":"⋢","squb":"⊑","squpn":"⋣","squp":"⊒","square":"□","squigarrowright":"⇝","sqb":"■","sqw":"□","sq.":"▣","sqo":"▢","sqcap":"⊓","sqcup":"⊔","sqrt":"√","sqsubseteq":"⊑","sqsubset":"⊏","sqsupseteq":"⊒","sqsupset":"⊐","sq":"◾","sy":"⁻¹","st4":"✦","st6":"✶","st8":"✴","st12":"✹","stigma":"ϛ","star":"⋆","straightphi":"φ","st":"⋆","spesmilo":"₷","spadesuit":"♠","sphericalangle":"∢","section":"§","searrow":"↘","setminus":"∖","san":"ϻ","sampi":"ϡ","shortmid":"∣","shortparallel":"∥","sho":"ϸ","shima":"ϭ","shei":"ϣ","sharp":"♯","sigma":"σ","simeq":"≃","sim":"∼","sbs":"﹨","smallamalg":"∐","smallsetminus":"∖","smallsmile":"⌣","smile":"⌣","smul":"•","swarrow":"↙","Tr":"◀","Tb":"◀","Tw":"◁","Tau":"Τ","Theta":"Θ","TH":"Þ","union":"∪","undertie":"‿","uncertainty":"⯑","un":"∪","u+":"⊎","u.":"⊍","ud-|":"↨","ud-":"↕","ud=":"⇕","ud":"↕","ul-":"↖","ul=":"⇖","ulcorner":"⌜","ul":"↖","ur-":"↗","ur=":"⇗","urcorner":"⌝","ur":"↗","u-2":"⇈","u-d-":"⇅","u-|":"↥","u-":"↑","u==":"⟰","u=":"⇑","uu-":"↟","upsilon":"υ","uparrow":"↑","updownarrow":"↕","upleftharpoon":"↿","uplus":"⊎","uprightharpoon":"↾","upuparrows":"⇈","And":"⋀","AA":"Å","AE":"Æ","Alpha":"Α","Or":"⋁","O+":"⨁","Ox":"⨂","O.":"⨀","O*":"⍟","OE":"Œ","Omega":"Ω","Omicron":"Ο","Int":"ℤ","Inter":"⋂","bInter":"⋂","Iota":"Ι","Im":"ℑ","Un":"⋃","Union":"⋃","bUnion":"⋃","U+":"⨄","U.":"⨃","Upsilon":"Υ","Uparrow":"⇑","Updownarrow":"⇕","Gl-":"ƛ","Gl":"λ","Gangia":"Ϫ","Gamma":"Γ","Glb":"⨅","Ga":"α","GA":"Α","Gb":"β","GB":"Β","Gg":"γ","GG":"Γ","Gd":"δ","GD":"Δ","Ge":"ε","GE":"Ε","Gz":"ζ","GZ":"Ζ","Gth":"θ","Gt":"τ","GTH":"Θ","GT":"Τ","Gi":"ι","GI":"Ι","Gk":"κ","GK":"Κ","GL":"Λ","Gm":"μ","GM":"Μ","Gn":"ν","GN":"Ν","Gx":"ξ","GX":"Ξ","Gr":"ρ","GR":"Ρ","Gs":"σ","GS":"Σ","Gu":"υ","GU":"Υ","Gf":"φ","GF":"Φ","Gc":"χ","GC":"Χ","Gp":"ψ","GP":"Ψ","Go":"ω","GO":"Ω","Inf":"⨅","Join":"⨆","Lub":"⨆","Lambda":"Λ","Lamda":"Λ","Leftarrow":"⇐","Leftrightarrow":"⇔","Letter":"✉","Lleftarrow":"⇚","Ll":"⋘","Longleftarrow":"⇐","Longleftrightarrow":"⇔","Longrightarrow":"⇒","Meet":"⨅","Sup":"⨆","Sqcap":"⨅","Sqcup":"⨆","Lsh":"↰","|-n":"⊬","|-":"⊢","|=n":"⊭","|=":"⊨","||-n":"⊮","||-":"⊩","||=n":"⊯","||=":"⊫","|||-":"⊪","||n":"∦","||":"∥","|n":"∤","Com":"ℂ","Chi":"Χ","Cap":"⋒","Cup":"⋓","cul":"⌜","cuL":"⌈","currency":"¤","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlypreceq":"≼","curlyvee":"⋎","curlywedge":"⋏","curvearrowleft":"↶","curvearrowright":"↷","cur":"⌝","cuR":"⌉","cup":"∪","cu":"⌜","cll":"⌞","clL":"⌊","clr":"⌟","clR":"⌋","clubsuit":"♣","cl":"⌞","construction":"🚧","cong":"≅","con":"⬝","compl":"ᶜ","complement":"ᶜ","complementprefix":"∁","Complement":"∁","comp":"∘","com":"ℂ","coloneq":"≔","colon":"₡","copyright":"©","cdots":"⋯","cdot":"⬝","cib":"●","ciw":"○","ci..":"◌","ci.":"◎","ciO":"◯","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledR":"®","circledS":"Ⓢ","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","circ":"∘","ci":"●","centerdot":"·","cent":"¢","cedi":"₵","celsius":"℃","ce":"ȩ","checkmark":"✓","chi":"χ","cruzeiro":"₢","caution":"☡","cap":"∩","qed":"∎","quad":" ","quot":"⧸","bigsolidus":"⧸","/":"⧸","+ ":"⊹","b+":"⊞","b-":"⊟","bx":"⊠","b.":"⊡","bn":"ℕ","bz":"ℤ","bq":"ℚ","brokenbar":"¦","br":"ℝ","bc":"ℂ","bp":"ℙ","bb":"𝔹","bsum":"⅀","b0":"𝟘","b1":"𝟙","b2":"𝟚","b3":"𝟛","b4":"𝟜","b5":"𝟝","b6":"𝟞","b7":"𝟟","b8":"𝟠","b9":"𝟡","sb0":"𝟬","sb1":"𝟭","sb2":"𝟮","sb3":"𝟯","sb4":"𝟰","sb5":"𝟱","sb6":"𝟲","sb7":"𝟳","sb8":"𝟴","sb9":"𝟵","bub":"•","buw":"◦","but":"‣","bumpeq":"≏","bu":"•","biohazard":"☣","bigcap":"⋂","bigcirc":"◯","bigcoprod":"∐","bigcup":"⋃","bigglb":"⨅","biginf":"⨅","bigjoin":"⨆","biglub":"⨆","bigmeet":"⨅","bigsqcap":"⨅","bigsqcup":"⨆","bigstar":"★","bigsup":"⨆","bigtriangledown":"▽","bigtriangleup":"△","bigvee":"⋁","bigwedge":"⋀","beta":"β","beth":"ℶ","between":"≬","because":"∵","backcong":"≌","backepsilon":"∍","backprime":"‵","backsimeq":"⋍","backsim":"∽","barwedge":"⊼","blacklozenge":"✦","blacksquare":"▪","blacksmiley":"☻","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blacktriangle":"▴","bot":"⊥","^bot":"ᗮ","bowtie":"⋈","boxminus":"⊟","boxmid":"◫","hcomp":"◫","boxplus":"⊞","boxtimes":"⊠","join":"⊔","r-2":"⇉","r-3":"⇶","r-l-":"⇄","r--":"⟶","r-n":"↛","r-|":"↦","r->":"↣","r-o":"⊸","r-":"→","r==":"⇛","r=n":"⇏","r=":"⇒","r~":"↝","rr-":"↠","reb":"▬","rew":"▭","real":"ℝ","registered":"®","re":"▬","rbag":"⟆","rat":"ℚ","radioactive":"☢","rangle":"⟩","rq":"’","rial":"﷼","rightarrowtail":"↣","rightarrow":"→","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightthreetimes":"⋌","risingdotseq":"≓","ruble":"₽","rupee":"₨","rho":"ρ","rhd":"▷","rceil":"⌉","rfloor":"⌋","rtimes":"⋊","rdq":"”","rdata":"》","functor":"⥤","fun":"λ","f<<":"«","f<":"‹","f>>":"»","f>":"›","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac1":"⅟","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frac":"¼","frown":"⌢","frqq":"»","frq":"›","female":"♀","fei":"ϥ","facsimile":"℻","fallingdotseq":"≒","flat":"♭","flqq":"«","flq":"‹","forall":"∀",")b":"⟆","[[":"⟦","]]":"⟧","{{":"⦃","}}":"⦄","([":"⟮","])":"⟯","Xi":"Ξ","Nat":"ℕ","Nu":"Ν","Zeta":"Ζ","Rat":"ℚ","Real":"ℝ","Re":"ℜ","Rho":"Ρ","Rightarrow":"⇒","Rrightarrow":"⇛","Rsh":"↱","Fei":"Ϥ","Frowny":"☹","Hori":"Ϩ","Heta":"Ͱ","Khei":"Ϧ","Koppa":"Ϟ","Kappa":"Κ","^a":"ᵃ","^b":"ᵇ","^c":"ᶜ","^d":"ᵈ","^e":"ᵉ","^f":"ᶠ","^g":"ᵍ","^h":"ʰ","^i":"ⁱ","^j":"ʲ","^k":"ᵏ","^l":"ˡ","^m":"ᵐ","^n":"ⁿ","^o":"ᵒ","^p":"ᵖ","^r":"ʳ","^s":"ˢ","^t":"ᵗ","^u":"ᵘ","^v":"ᵛ","^w":"ʷ","^x":"ˣ","^y":"ʸ","^z":"ᶻ","^A":"ᴬ","^B":"ᴮ","^D":"ᴰ","^E":"ᴱ","^G":"ᴳ","^H":"ᴴ","^I":"ᴵ","^J":"ᴶ","^K":"ᴷ","^L":"ᴸ","^M":"ᴹ","^N":"ᴺ","^O":"ᴼ","^P":"ᴾ","^R":"ᴿ","^T":"ᵀ","^U":"ᵁ","^V":"ⱽ","^W":"ᵂ","^0":"⁰","^1":"¹","^2":"²","^3":"³","^4":"⁴","^5":"⁵","^6":"⁶","^7":"⁷","^8":"⁸","^9":"⁹","^)":"⁾","^(":"⁽","^=":"⁼","^+":"⁺","^o_":"º","^-":"⁻","^a_":"ª","^uhook":"ꭟ","^ubar":"ᶶ","^upsilon":"ᶷ","^ltilde":"ꭞ","^ls":"ꭝ","^lhook":"ᶪ","^lretroflexhook":"ᶩ","^oe":"ꟹ","^heng":"ꭜ","^hhook":"ʱ","^hwithhook":"ʱ","^Hstroke":"ꟸ","^theta":"ᶿ","^turnedv":"ᶺ","^turnedmleg":"ᶭ","^turnedm":"ᵚ","^turnedh":"ᶣ","^turnedalpha":"ᶛ","^turnedae":"ᵆ","^turneda":"ᵄ","^turnedi":"ᵎ","^turnede":"ᵌ","^turnedrhook":"ʵ","^turnedrwithhook":"ʵ","^turnedr":"ʴ","^twithpalatalhook":"ᶵ","^otop":"ᵔ","^ezh":"ᶾ","^esh":"ᶴ","^eth":"ᶞ","^eng":"ᵑ","^zcurl":"ᶽ","^zretroflexhook":"ᶼ","^vhook":"ᶹ","^Ismall":"ᶦ","^Lsmall":"ᶫ","^Nsmall":"ᶰ","^Usmall":"ᶸ","^Istroke":"ᶧ","^Rinverted":"ʶ","^ccurl":"ᶝ","^chi":"ᵡ","^shook":"ᶳ","^gscript":"ᶢ","^schwa":"ᵊ","^usideways":"ᵙ","^phi":"ᶲ","^obarred":"ᶱ","^beta":"ᵝ","^obottom":"ᵕ","^nretroflexhook":"ᶯ","^nlefthook":"ᶮ","^mhook":"ᶬ","^jtail":"ᶨ","^iota":"ᶥ","^istroke":"ᶤ","^ereversedopen":"ᶟ","^stop":"ˤ","^varphi":"ᵠ","^vargamma":"ᵞ","^gamma":"ˠ","^ain":"ᵜ","^alpha":"ᵅ","^oopen":"ᵓ","^eopen":"ᵋ","^Ou":"ᴽ","^Nreversed":"ᴻ","^Ereversed":"ᴲ","^Bbarred":"ᴯ","^Ae":"ᴭ","^SM":"℠","^TEL":"℡","^TM":"™","_a":"ₐ","_e":"ₑ","_h":"ₕ","_i":"ᵢ","_j":"ⱼ","_k":"ₖ","_l":"ₗ","_m":"ₘ","_n":"ₙ","_o":"ₒ","_p":"ₚ","_r":"ᵣ","_s":"ₛ","_t":"ₜ","_u":"ᵤ","_v":"ᵥ","_x":"ₓ","_0":"₀","_1":"₁","_2":"₂","_3":"₃","_4":"₄","_5":"₅","_6":"₆","_7":"₇","_8":"₈","_9":"₉","_)":"₎","_(":"₍","_=":"₌","_+":"₊","_--":"̲","_-":"₋","!!":"‼","!?":"⁉","San":"Ϻ","Sampi":"Ϡ","Sho":"Ϸ","Shima":"Ϭ","Shei":"Ϣ","Stigma":"Ϛ","Sigma":"Σ","Subset":"⋐","Supset":"⋑","Smiley":"☺","Psi":"Ψ","Phi":"Φ","Pi":"Π","Pi0":"Π₀","P0":"Π₀","Pi_0":"Π₀","P_0":"Π₀","bfA":"𝐀","bfB":"𝐁","bfC":"𝐂","bfD":"𝐃","bfE":"𝐄","bfF":"𝐅","bfG":"𝐆","bfH":"𝐇","bfI":"𝐈","bfJ":"𝐉","bfK":"𝐊","bfL":"𝐋","bfM":"𝐌","bfN":"𝐍","bfO":"𝐎","bfP":"𝐏","bfQ":"𝐐","bfR":"𝐑","bfS":"𝐒","bfT":"𝐓","bfU":"𝐔","bfV":"𝐕","bfW":"𝐖","bfX":"𝐗","bfY":"𝐘","bfZ":"𝐙","bfa":"𝐚","bfb":"𝐛","bfc":"𝐜","bfd":"𝐝","bfe":"𝐞","bff":"𝐟","bfg":"𝐠","bfh":"𝐡","bfi":"𝐢","bfj":"𝐣","bfk":"𝐤","bfl":"𝐥","bfm":"𝐦","bfn":"𝐧","bfo":"𝐨","bfp":"𝐩","bfq":"𝐪","bfr":"𝐫","bfs":"𝐬","bft":"𝐭","bfu":"𝐮","bfv":"𝐯","bfw":"𝐰","bfx":"𝐱","bfy":"𝐲","bfz":"𝐳","MiA":"𝐴","MiB":"𝐵","MiC":"𝐶","MiD":"𝐷","MiE":"𝐸","MiF":"𝐹","MiG":"𝐺","MiH":"𝐻","MiI":"𝐼","MiJ":"𝐽","MiK":"𝐾","MiL":"𝐿","MiM":"𝑀","MiN":"𝑁","MiO":"𝑂","MiP":"𝑃","MiQ":"𝑄","MiR":"𝑅","MiS":"𝑆","MiT":"𝑇","MiU":"𝑈","MiV":"𝑉","MiW":"𝑊","MiX":"𝑋","MiY":"𝑌","MiZ":"𝑍","Mia":"𝑎","Mib":"𝑏","Mic":"𝑐","Mid":"𝑑","Mie":"𝑒","Mif":"𝑓","Mig":"𝑔","Mii":"𝑖","Mij":"𝑗","Mik":"𝑘","Mil":"𝑙","Mim":"𝑚","Min":"𝑛","Mio":"𝑜","Mip":"𝑝","Miq":"𝑞","Mir":"𝑟","Mis":"𝑠","Mit":"𝑡","Miu":"𝑢","Miv":"𝑣","Miw":"𝑤","Mix":"𝑥","Miy":"𝑦","Miz":"𝑧","MIA":"𝑨","MIB":"𝑩","MIC":"𝑪","MID":"𝑫","MIE":"𝑬","MIF":"𝑭","MIG":"𝑮","MIH":"𝑯","MII":"𝑰","MIJ":"𝑱","MIK":"𝑲","MIL":"𝑳","MIM":"𝑴","MIN":"𝑵","MIO":"𝑶","MIP":"𝑷","MIQ":"𝑸","MIR":"𝑹","MIS":"𝑺","MIT":"𝑻","MIU":"𝑼","MIV":"𝑽","MIW":"𝑾","MIX":"𝑿","MIY":"𝒀","MIZ":"𝒁","MIa":"𝒂","MIb":"𝒃","MIc":"𝒄","MId":"𝒅","MIe":"𝒆","MIf":"𝒇","MIg":"𝒈","MIh":"𝒉","MIi":"𝒊","MIj":"𝒋","MIk":"𝒌","MIl":"𝒍","MIm":"𝒎","MIn":"𝒏","MIo":"𝒐","MIp":"𝒑","MIq":"𝒒","MIr":"𝒓","MIs":"𝒔","MIt":"𝒕","MIu":"𝒖","MIv":"𝒗","MIw":"𝒘","MIx":"𝒙","MIy":"𝒚","MIz":"𝒛","McA":"𝒜","McB":"ℬ","McC":"𝒞","McD":"𝒟","McE":"ℰ","McF":"ℱ","McG":"𝒢","McH":"ℋ","McI":"ℐ","McJ":"𝒥","McK":"𝒦","McL":"ℒ","McM":"ℳ","McN":"𝒩","McO":"𝒪","McP":"𝒫","McQ":"𝒬","McR":"ℛ","McS":"𝒮","McT":"𝒯","McU":"𝒰","McV":"𝒱","McW":"𝒲","McX":"𝒳","McY":"𝒴","McZ":"𝒵","Mca":"𝒶","Mcb":"𝒷","Mcc":"𝒸","Mcd":"𝒹","Mce":"ℯ","Mcf":"𝒻","Mcg":"ℊ","Mch":"𝒽","Mci":"𝒾","Mcj":"𝒿","Mck":"𝓀","Mcl":"𝓁","Mcm":"𝓂","Mcn":"𝓃","Mco":"ℴ","Mcp":"𝓅","Mcq":"𝓆","Mcr":"𝓇","Mcs":"𝓈","Mct":"𝓉","Mcu":"𝓊","Mcv":"𝓋","Mcw":"𝓌","Mcx":"𝓍","Mcy":"𝓎","Mcz":"𝓏","MCA":"𝓐","MCB":"𝓑","MCC":"𝓒","MCD":"𝓓","MCE":"𝓔","MCF":"𝓕","MCG":"𝓖","MCH":"𝓗","MCI":"𝓘","MCJ":"𝓙","MCK":"𝓚","MCL":"𝓛","MCM":"𝓜","MCN":"𝓝","MCO":"𝓞","MCP":"𝓟","MCQ":"𝓠","MCR":"𝓡","MCS":"𝓢","MCT":"𝓣","MCU":"𝓤","MCV":"𝓥","MCW":"𝓦","MCX":"𝓧","MCY":"𝓨","MCZ":"𝓩","MCa":"𝓪","MCb":"𝓫","MCc":"𝓬","MCd":"𝓭","MCe":"𝓮","MCf":"𝓯","MCg":"𝓰","MCh":"𝓱","MCi":"𝓲","MCj":"𝓳","MCk":"𝓴","MCl":"𝓵","MCm":"𝓶","MCn":"𝓷","MCo":"𝓸","MCp":"𝓹","MCq":"𝓺","MCr":"𝓻","MCs":"𝓼","MCt":"𝓽","MCu":"𝓾","MCv":"𝓿","MCw":"𝔀","MCx":"𝔁","MCy":"𝔂","MCz":"𝔃","MfA":"𝔄","MfB":"𝔅","MfC":"ℭ","MfD":"𝔇","MfE":"𝔈","MfF":"𝔉","MfG":"𝔊","MfH":"ℌ","MfI":"ℑ","MfJ":"𝔍","MfK":"𝔎","MfL":"𝔏","MfM":"𝔐","MfN":"𝔑","MfO":"𝔒","MfP":"𝔓","MfQ":"𝔔","MfR":"ℜ","MfS":"𝔖","MfT":"𝔗","MfU":"𝔘","MfV":"𝔙","MfW":"𝔚","MfX":"𝔛","MfY":"𝔜","MfZ":"ℨ","Mfa":"𝔞","Mfb":"𝔟","Mfc":"𝔠","Mfd":"𝔡","Mfe":"𝔢","Mff":"𝔣","Mfg":"𝔤","Mfh":"𝔥","Mfi":"𝔦","Mfj":"𝔧","Mfk":"𝔨","Mfl":"𝔩","Mfm":"𝔪","Mfn":"𝔫","Mfo":"𝔬","Mfp":"𝔭","Mfq":"𝔮","Mfr":"𝔯","Mfs":"𝔰","Mft":"𝔱","Mfu":"𝔲","Mfv":"𝔳","Mfw":"𝔴","Mfx":"𝔵","Mfy":"𝔶","Mfz":"𝔷","yen":"¥","varrho":"ϱ","varkappa":"ϰ","varkai":"ϗ","varpi":"ϖ","varphi":"ϕ","varprime":"′","varpropto":"∝","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","varbeta":"ϐ","varsigma":"ς","veebar":"⊻","vee":"∨","ve":"ě","vE":"Ě","vdash":"⊢","vdots":"⋮","vd":"ď","vDash":"⊨","vD":"Ď","vc":"č","vC":"Č","koppa":"ϟ","kip":"₭","ki":"į","kI":"Į","kelvin":"K","kappa":"κ","khei":"ϧ","warning":"⚠","won":"₩","wedge":"∧","wp":"℘","wr":"≀","Dei":"Ϯ","Delta":"Δ","Digamma":"Ϝ","Diamond":"◇","Downarrow":"⇓","DH":"Ð","zeta":"ζ","Eta":"Η","Epsilon":"Ε","Beta":"Β","Box":"□","Bumpeq":"≎","bbA":"𝔸","bbB":"𝔹","bbC":"ℂ","bbD":"𝔻","bbE":"𝔼","bbF":"𝔽","bbG":"𝔾","bbH":"ℍ","bbI":"𝕀","bbJ":"𝕁","bbK":"𝕂","bbL":"𝕃","bbM":"𝕄","bbN":"ℕ","bbO":"𝕆","bbP":"ℙ","bbQ":"ℚ","bbR":"ℝ","bbS":"𝕊","bbT":"𝕋","bbU":"𝕌","bbV":"𝕍","bbW":"𝕎","bbX":"𝕏","bbY":"𝕐","bbZ":"ℤ","bba":"𝕒","bbb":"𝕓","bbc":"𝕔","bbd":"𝕕","bbe":"𝕖","bbf":"𝕗","bbg":"𝕘","bbh":"𝕙","bbi":"𝕚","bbj":"𝕛","bbk":"𝕜","bbl":"𝕝","bbm":"𝕞","bbn":"𝕟","bbo":"𝕠","bbp":"𝕡","bbq":"𝕢","bbr":"𝕣","bbs":"𝕤","bbt":"𝕥","bbu":"𝕦","bbv":"𝕧","bbw":"𝕨","bbx":"𝕩","bby":"𝕪","bbz":"𝕫","Rge0":"ℝ≥0","R>=0":"ℝ≥0","nnreal":"ℝ≥0","ennreal":"ℝ≥0∞","Zsqrt":"ℤ√","zsqrtd":"ℤ√","liel":"⁅","[-":"⁅","bracketl":"⁅","lier":"⁆","-]":"⁆","bracketr":"⁆","nhds":"𝓝","nbhds":"𝓝","X":"⨯","vectorproduct":"⨯","crossproduct":"⨯","coprod":"⨿","sigmaobj":"∐","xf":"×ᶠ","exf":"∃ᶠ","c[":"⦃","c]":"⦄","Yot":"Ϳ","goal":"⊢","Vdash":"⊩","Vert":"‖","Vvdash":"⊪"}')},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(171)),r(n(175)),r(n(177)),r(n(97))},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(7),u=n(137),c=n(135),s=n(97),l=n(85),f=n(125),h=n(172);e.Resizer=h.Resizer;var d=n(173),p=n(126),b=n(174),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.childrenProps=[],e.childrenInstance=[],e.barActions$=new u.Subject,e.sizeRelatedInfoAction$=new u.Subject,e.sizeRelatedInfo$=u.merge(e.sizeRelatedInfoAction$,e.barActions$.pipe(d.scanBarAction({calculateOffset:function(t,n){return p.calculateCoordinateOffset(t,n)[e.axis]},getSizeRelatedInfo:function(){return e.makeSizeInfos()}}),c.tap((function(t){return e.monitorBarStatusChanges(t)})))).pipe(c.filter((function(t){return!t.discard})),c.map((function(t){if("function"==typeof e.props.beforeApplyResizer){var n=new h.Resizer(t);return e.props.beforeApplyResizer(n),n.getResult()}return t})),c.filter((function(t){return!t.discard})),c.observeOn(u.animationFrameScheduler),c.share()),e.triggerBarAction=function(t){e.barActions$.next(t)},e.createID=function(t){return e.childrenProps.push(t),e.childrenProps.length-1},e.populateChildInstance=function(t,n){n.current&&(e.childrenInstance[t]=n.current)},e}return i(e,t),Object.defineProperty(e.prototype,"axis",{get:function(){return this.props.vertical?"y":"x"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dimension",{get:function(){return this.props.vertical?"height":"width"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contextValue",{get:function(){return{vertical:!!this.props.vertical,sizeRelatedInfo$:this.sizeRelatedInfo$,createID:this.createID,populateInstance:this.populateChildInstance,triggerBarAction:this.triggerBarAction}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerProps",{get:function(){return l.omit(this.props,["onActivate","beforeApplyResizer","afterResizing"])},enumerable:!0,configurable:!0}),e.prototype.componentDidMount=function(){this.refreshSizeInfos()},e.prototype.render=function(){return a.createElement(f.ResizerProvider,{value:this.contextValue},a.createElement(b.StyledContainer,o({},this.containerProps),this.props.children))},e.prototype.getResizer=function(){return new h.Resizer(this.makeSizeInfos())},e.prototype.applyResizer=function(t){this.sizeRelatedInfoAction$.next(t.getResult())},e.prototype.monitorBarStatusChanges=function(t){switch(t.type){case s.BarActionType.ACTIVATE:return void("function"==typeof this.props.onActivate&&this.props.onActivate());case s.BarActionType.DEACTIVATE:return void("function"==typeof this.props.afterResizing&&this.props.afterResizing());default:return}},e.prototype.refreshSizeInfos=function(){this.sizeRelatedInfoAction$.next(this.makeSizeInfos())},e.prototype.makeSizeInfos=function(){var t=this,e=p.collectSizeRelatedInfo(),n=e.collect,r=e.getResult;return this.childrenProps.forEach((function(e,r){var i=t.childrenInstance[r];n({maxSize:e.maxSize,minSize:e.minSize,disableResponsive:p.isDisabledResponsive(e),isSolid:p.isSolid(e),currentSize:i.getBoundingClientRect()[t.dimension]})})),r()},e}(a.PureComponent);e.Container=g},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(126);function o(t){return 2*t+1}function a(t){return 2*t}var u=function(){function t(t){this.resizeResult=t,this.isDiscarded=!1}return t.prototype.resizeSection=function(t,e){if(!this.isDiscarded){var n=a(t),r=this.getSize(n);if(r>=0&&e.toSize>=0){var i=e.toSize-r;n===this.resizeResult.sizeInfoArray.length-1||e.preferMoveLeftBar?this.moveBar(t-1,{withOffset:-i}):this.moveBar(t,{withOffset:i})}}},t.prototype.moveBar=function(t,e){this.isDiscarded||(this.resizeResult=i.getNextSizeRelatedInfo(o(t),e.withOffset,this.resizeResult.sizeInfoArray))},t.prototype.discard=function(){this.isDiscarded=!0},t.prototype.isSectionResized=function(t){var e=a(t);return"defaultSizeInfoArray"in this.resizeResult&&this.getSize(e)!==this.resizeResult.defaultSizeInfoArray[e].currentSize},t.prototype.isBarActivated=function(t){return"barID"in this.resizeResult&&this.resizeResult.barID===o(t)},t.prototype.getSectionSize=function(t){return this.getSize(a(t))},t.prototype.getResult=function(){return r(r({},this.resizeResult),{discard:this.isDiscarded})},t.prototype.getTotalSize=function(){return this.resizeResult.sizeInfoArray.filter((function(t,e){return t&&e%2==0})).reduce((function(t,e){return t+e.currentSize}),0)},t.prototype.getSize=function(t){var e=this.resizeResult.sizeInfoArray[t];return e?e.currentSize:-1},t}();e.Resizer=u},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(135),o=n(97),a=n(126),u={barID:-1,offset:0,type:o.BarActionType.DEACTIVATE,originalCoordinate:a.DEFAULT_COORDINATE_OFFSET,defaultSizeInfoArray:[],sizeInfoArray:[],discard:!0,flexGrowRatio:0};e.scanBarAction=function(t){return i.scan((function(e,n){var i={barID:n.barID,type:n.type};switch(n.type){case o.BarActionType.ACTIVATE:var c=t.getSizeRelatedInfo(),s=c.sizeInfoArray,l=c.flexGrowRatio;return r(r(r({},u),i),{originalCoordinate:n.coordinate,defaultSizeInfoArray:s,sizeInfoArray:s,flexGrowRatio:l});case o.BarActionType.MOVE:var f=t.calculateOffset(n.coordinate,e.originalCoordinate);return r(r(r({},i),a.getNextSizeRelatedInfo(n.barID,f,e.defaultSizeInfoArray)),{offset:f,originalCoordinate:e.originalCoordinate,defaultSizeInfoArray:e.defaultSizeInfoArray,discard:!1});case o.BarActionType.DEACTIVATE:return u}}),u)}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var o=n(7);e.StyledContainer=o.forwardRef((function(t,e){var n=t.vertical,a=t.style,u=i(t,["vertical","style"]);return o.createElement("div",r({},u,{ref:e,style:r({display:"flex",flexDirection:n?"column":"row"},a)}))}))},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(7),u=n(137),c=n(135),s=n(125),l=n(85),f=n(176),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultInnerRef=a.createRef(),e.id=e.props.context.createID(e.props),e.subscription=new u.Subscription,e.flexGrowRatio=0,e.resize$=e.props.context.sizeRelatedInfo$.pipe(c.map((function(t){var n=t.sizeInfoArray,r=t.flexGrowRatio;return{sizeInfo:n[e.id],flexGrowRatio:r}})),c.filter((function(t){return!!t.sizeInfo})),c.tap((function(t){var n=t.sizeInfo,r=t.flexGrowRatio;if(e.sizeInfo=n,e.flexGrowRatio=r,e.ref.current){var i=e.getStyle(n,r),o=i.flexGrow,a=i.flexShrink,u=i.flexBasis;e.ref.current.style.flexGrow=""+o,e.ref.current.style.flexShrink=""+a,e.ref.current.style.flexBasis=u+"px",e.onSizeChanged(n.currentSize)}}))),e}return i(e,t),Object.defineProperty(e.prototype,"ref",{get:function(){return this.props.innerRef||this.defaultInnerRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childProps",{get:function(){return o(o({},l.omit(this.props,["defaultSize","size","disableResponsive","innerRef","onSizeChanged"])),this.getStyle())},enumerable:!0,configurable:!0}),e.prototype.componentDidMount=function(){this.subscription.add(this.resize$.subscribe()),this.props.context.populateInstance(this.id,this.ref)},e.prototype.componentWillUnmount=function(){this.subscription.unsubscribe()},e.prototype.render=function(){return a.createElement(f.StyledSection,o({},this.childProps,{ref:this.ref}))},e.prototype.onSizeChanged=function(t){"function"==typeof this.props.onSizeChanged&&this.props.onSizeChanged(t)},e.prototype.getFlexShrink=function(){return l.isValidNumber(this.props.size)?0:this.props.disableResponsive?1:0},e.prototype.getStyle=function(t,e){void 0===t&&(t=this.sizeInfo),void 0===e&&(e=this.flexGrowRatio);var n=this.getFlexShrink();if(t){var r=t.disableResponsive,i=t.currentSize;return{flexShrink:n,flexGrow:r?0:e*i,flexBasis:r?i:0}}var o=this.props.size||this.props.defaultSize;return l.isValidNumber(o)?{flexShrink:n,flexGrow:0,flexBasis:o}:{flexShrink:n,flexGrow:1,flexBasis:0}},e}(a.PureComponent);e.Section=s.withResizerContext(h)},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var o=n(7);e.StyledSection=o.forwardRef((function(t,e){var n,a=t.context,u=t.maxSize,c=t.minSize,s=t.flexGrow,l=t.flexShrink,f=t.flexBasis,h=t.style,d=i(t,["context","maxSize","minSize","flexGrow","flexShrink","flexBasis","style"]);return o.createElement("div",r({},d,{ref:e,style:r((n={overflow:"hidden"},n[a.vertical?"maxHeight":"maxWidth"]=u,n[a.vertical?"minHeight":"minWidth"]=c,n.flexGrow=s,n.flexShrink=l,n.flexBasis=f,n),h)}))}))},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=n(7),u=n(97),c=n(85),s=n(125),l=n(178),f=n(179),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultInnerRef=a.createRef(),e.interactiveAreaRef=a.createRef(),e.id=e.props.context.createID(e.props),e.isValidClick=!0,e.isActivated=!1,e.onMouseDown=e.triggerMouseAction(u.BarActionType.ACTIVATE),e.onMouseMove=e.triggerMouseAction(u.BarActionType.MOVE),e.onMouseUp=e.triggerMouseAction(u.BarActionType.DEACTIVATE),e.onTouchStart=e.triggerTouchAction(u.BarActionType.ACTIVATE),e.onTouchMove=e.triggerTouchAction(u.BarActionType.MOVE),e.onTouchEnd=e.triggerTouchAction(u.BarActionType.DEACTIVATE),e.onTouchCancel=e.triggerTouchAction(u.BarActionType.DEACTIVATE),e}return i(e,t),Object.defineProperty(e.prototype,"ref",{get:function(){return this.props.innerRef||this.defaultInnerRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childProps",{get:function(){return c.omit(this.props,["context","innerRef","onClick","expandInteractiveArea","onStatusChanged"])},enumerable:!0,configurable:!0}),e.prototype.componentDidMount=function(){this.props.context.populateInstance(this.id,this.ref),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("touchmove",this.onTouchMove,f.disablePassive),document.addEventListener("touchend",this.onTouchEnd),document.addEventListener("touchcancel",this.onTouchCancel),this.interactiveAreaRef.current&&(this.interactiveAreaRef.current.addEventListener("mousedown",this.onMouseDown),this.interactiveAreaRef.current.addEventListener("touchstart",this.onTouchStart,f.disablePassive))},e.prototype.componentWillUnmount=function(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd),document.removeEventListener("touchcancel",this.onTouchCancel),this.interactiveAreaRef.current&&(this.interactiveAreaRef.current.removeEventListener("mousedown",this.onMouseDown),this.interactiveAreaRef.current.removeEventListener("touchstart",this.onTouchStart))},e.prototype.render=function(){return a.createElement(l.StyledBar,o({},this.childProps,{ref:this.ref}),this.props.children,a.createElement(l.StyledInteractiveArea,o({},this.props.expandInteractiveArea,{ref:this.interactiveAreaRef,vertical:this.props.context.vertical})))},e.prototype.onStatusChanged=function(t){this.isActivated!==t&&(this.isActivated=t,"function"==typeof this.props.onStatusChanged&&this.props.onStatusChanged(t))},e.prototype.updateStatusIfNeed=function(t){t===u.BarActionType.ACTIVATE?this.onStatusChanged(!0):t===u.BarActionType.DEACTIVATE&&this.onStatusChanged(!1)},e.prototype.triggerAction=function(t,e){(this.isActivated||t===u.BarActionType.ACTIVATE)&&this.props.context.triggerBarAction({type:t,coordinate:e,barID:this.id}),this.isActivated&&t===u.BarActionType.DEACTIVATE&&this.onClick(),this.updateStatusIfNeed(t),this.updateClickStatus(t)},e.prototype.triggerMouseAction=function(t){var e=this;return function(n){e.disableUserSelectIfResizing(n,t);var r=n.clientX,i=n.clientY;e.triggerAction(t,{x:r,y:i})}},e.prototype.triggerTouchAction=function(t){var e=this;return function(n){e.disableUserSelectIfResizing(n,t);var r=n.touches[0]||{clientX:0,clientY:0},i=r.clientX,o=r.clientY;e.triggerAction(t,{x:i,y:o})}},e.prototype.disableUserSelectIfResizing=function(t,e){(this.isActivated||e===u.BarActionType.ACTIVATE)&&t.preventDefault()},e.prototype.updateClickStatus=function(t){this.isActivated&&(t===u.BarActionType.ACTIVATE?this.isValidClick=!0:t===u.BarActionType.MOVE&&(this.isValidClick=!1))},e.prototype.onClick=function(){this.isValidClick&&"function"==typeof this.props.onClick&&(this.isValidClick=!1,this.props.onClick())},e}(a.PureComponent);e.Bar=s.withResizerContext(h)},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};Object.defineProperty(e,"__esModule",{value:!0});var o=n(7);e.StyledBar=o.forwardRef((function(t,e){var n=t.size,a=t.style,u=i(t,["size","style"]);return o.createElement("div",r({},u,{ref:e,style:r({position:"relative",flex:"0 0 "+n+"px"},a)}))})),e.StyledInteractiveArea=o.forwardRef((function(t,e){var n=t.top,a=void 0===n?0:n,u=t.right,c=void 0===u?0:u,s=t.bottom,l=void 0===s?0:s,f=t.left,h=void 0===f?0:f,d=t.vertical,p=t.style,b=i(t,["top","right","bottom","left","vertical","style"]);return o.createElement("div",r({},b,{style:r({position:"absolute",top:-a,left:-h,right:-c,bottom:-l,cursor:d?"row-resize":"col-resize",WebkitTapHighlightColor:"transparent",userSelect:"none"},p),ref:e}))}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.disablePassive=!0;try{window.addEventListener("test",null,{get passive(){return e.disablePassive={passive:!1},!0}})}catch(t){}},function(t,e,n){"use strict";n.r(e),n.d(e,"Accordion",(function(){return S})),n.d(e,"AccordionItem",(function(){return N})),n.d(e,"AccordionItemButton",(function(){return D})),n.d(e,"AccordionItemHeading",(function(){return q})),n.d(e,"AccordionItemPanel",(function(){return F})),n.d(e,"AccordionItemState",(function(){return U})),n.d(e,"resetNextUuid",(function(){return T}));var r=n(7);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(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&&function(t,e){(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?d(t):e}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var y=function t(e){var n=this,r=e.expanded,o=void 0===r?[]:r,a=e.allowMultipleExpanded,c=void 0!==a&&a,l=e.allowZeroExpanded,f=void 0!==l&&l;i(this,t),u(this,"expanded",void 0),u(this,"allowMultipleExpanded",void 0),u(this,"allowZeroExpanded",void 0),u(this,"toggleExpanded",(function(t){return n.isItemDisabled(t)?n:n.isItemExpanded(t)?n.augment({expanded:n.expanded.filter((function(e){return e!==t}))}):n.augment({expanded:n.allowMultipleExpanded?[].concat(g(n.expanded),[t]):[t]})})),u(this,"isItemDisabled",(function(t){var e=n.isItemExpanded(t),r=1===n.expanded.length;return Boolean(e&&!n.allowZeroExpanded&&r)})),u(this,"isItemExpanded",(function(t){return-1!==n.expanded.indexOf(t)})),u(this,"getPanelAttributes",(function(t,e){var r=null!=e?e:n.isItemExpanded(t);return{role:n.allowMultipleExpanded?void 0:"region","aria-hidden":n.allowMultipleExpanded?!r:void 0,"aria-labelledby":n.getButtonId(t),id:n.getPanelId(t),hidden:!r||void 0}})),u(this,"getHeadingAttributes",(function(){return{role:"heading"}})),u(this,"getButtonAttributes",(function(t,e){var r=null!=e?e:n.isItemExpanded(t),i=n.isItemDisabled(t);return{id:n.getButtonId(t),"aria-disabled":i,"aria-expanded":r,"aria-controls":n.getPanelId(t),role:"button",tabIndex:0}})),u(this,"getPanelId",(function(t){return"accordion__panel-".concat(t)})),u(this,"getButtonId",(function(t){return"accordion__heading-".concat(t)})),u(this,"augment",(function(e){return new t(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({expanded:n.expanded,allowMultipleExpanded:n.allowMultipleExpanded,allowZeroExpanded:n.allowZeroExpanded},e))})),this.expanded=o,this.allowMultipleExpanded=c,this.allowZeroExpanded=f},_=Object(r.createContext)(null),w=function(t){l(n,t);var e=b(n);function n(){var t;i(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return u(d(t=e.call.apply(e,[this].concat(o))),"state",new y({expanded:t.props.preExpanded,allowMultipleExpanded:t.props.allowMultipleExpanded,allowZeroExpanded:t.props.allowZeroExpanded})),u(d(t),"toggleExpanded",(function(e){t.setState((function(t){return t.toggleExpanded(e)}),(function(){t.props.onChange&&t.props.onChange(t.state.expanded)}))})),u(d(t),"isItemDisabled",(function(e){return t.state.isItemDisabled(e)})),u(d(t),"isItemExpanded",(function(e){return t.state.isItemExpanded(e)})),u(d(t),"getPanelAttributes",(function(e,n){return t.state.getPanelAttributes(e,n)})),u(d(t),"getHeadingAttributes",(function(){return t.state.getHeadingAttributes()})),u(d(t),"getButtonAttributes",(function(e,n){return t.state.getButtonAttributes(e,n)})),t}return a(n,[{key:"render",value:function(){var t=this.state,e=t.allowZeroExpanded,n=t.allowMultipleExpanded;return Object(r.createElement)(_.Provider,{value:{allowMultipleExpanded:n,allowZeroExpanded:e,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),n}(r.PureComponent);u(w,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var x,k=function(t){l(n,t);var e=b(n);function n(){var t;i(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return u(d(t=e.call.apply(e,[this].concat(o))),"renderChildren",(function(e){return e?t.props.children(e):null})),t}return a(n,[{key:"render",value:function(){return Object(r.createElement)(_.Consumer,null,this.renderChildren)}}]),n}(r.PureComponent),S=function(t){var e=t.className,n=void 0===e?"accordion":e,i=t.allowMultipleExpanded,o=t.allowZeroExpanded,a=t.onChange,u=t.preExpanded,s=h(t,["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"]);return Object(r.createElement)(w,{preExpanded:u,allowMultipleExpanded:i,allowZeroExpanded:o,onChange:a},Object(r.createElement)("div",c({"data-accordion-component":"Accordion",className:n},s)))};!function(t){t.Accordion="Accordion",t.AccordionItem="AccordionItem",t.AccordionItemButton="AccordionItemButton",t.AccordionItemHeading="AccordionItemHeading",t.AccordionItemPanel="AccordionItemPanel"}(x||(x={}));var M=x,E=0;function T(){E=0}var C=/[\u0009\u000a\u000c\u000d\u0020]/g;function O(t){return""!==t&&!C.test(t)||(console.error('uuid must be a valid HTML5 id but was given "'.concat(t,'", ASCII whitespaces are forbidden')),!1)}var j=Object(r.createContext)(null),A=function(t){var e=t.children,n=t.uuid,i=t.accordionContext,o=t.dangerouslySetExpanded,a=function(){i.toggleExpanded(n)};return Object(r.createElement)(k,null,(function(t){var i=null!=o?o:t.isItemExpanded(n),u=t.isItemDisabled(n),c=t.getPanelAttributes(n,o),s=t.getHeadingAttributes(n),l=t.getButtonAttributes(n,o);return Object(r.createElement)(j.Provider,{value:{uuid:n,expanded:i,disabled:u,toggleExpanded:a,panelAttributes:c,headingAttributes:s,buttonAttributes:l}},e)}))},P=function(t){return Object(r.createElement)(k,null,(function(e){return Object(r.createElement)(A,c({},t,{accordionContext:e}))}))},z=function(t){var e=t.children;return Object(r.createElement)(j.Consumer,null,(function(t){return t?e(t):null}))},N=function(t){var e,n=t.uuid,i=t.dangerouslySetExpanded,o=t.className,a=void 0===o?"accordion__item":o,u=t.activeClassName,s=h(t,["uuid","dangerouslySetExpanded","className","activeClassName"]),l=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}}(t,e)||v(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object(r.useState)((e=E,E+=1,"raa-".concat(e))),1)[0],f=null!=n?n:l;return O(f.toString()),s.id&&O(s.id),Object(r.createElement)(P,{uuid:f,dangerouslySetExpanded:i},Object(r.createElement)(z,null,(function(t){var e=t.expanded&&u?u:a;return Object(r.createElement)("div",c({"data-accordion-component":"AccordionItem",className:e},s))})))};function I(t){var e=function t(e){return e&&(e.matches('[data-accordion-component="Accordion"]')?e:t(e.parentElement))}(t);return e&&Array.from(e.querySelectorAll('[data-accordion-component="AccordionItemButton"]'))}N.displayName=M.AccordionItem;var R=function(t){var e=t.toggleExpanded,n=t.className,i=void 0===n?"accordion__button":n,o=h(t,["toggleExpanded","className"]);return o.id&&O(o.id),Object(r.createElement)("div",c({className:i},o,{role:"button",tabIndex:0,onClick:e,onKeyDown:function(t){var n,r=t.key;if("Enter"!==r&&" "!==r&&"Spacebar"!==r||(t.preventDefault(),e()),t.target instanceof HTMLElement)switch(r){case"Home":t.preventDefault(),(n=(I(t.target)||[])[0])&&n.focus();break;case"End":t.preventDefault(),function(t){var e=I(t)||[],n=e[e.length-1];n&&n.focus()}(t.target);break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),function(t){var e=I(t)||[],n=e.indexOf(t);if(-1!==n){var r=e[n-1];r&&r.focus()}}(t.target);break;case"ArrowRight":case"ArrowDown":t.preventDefault(),function(t){var e=I(t)||[],n=e.indexOf(t);if(-1!==n){var r=e[n+1];r&&r.focus()}}(t.target)}},"data-accordion-component":"AccordionItemButton"}))},D=function(t){return Object(r.createElement)(z,null,(function(e){var n=e.toggleExpanded,i=e.buttonAttributes;return Object(r.createElement)(R,c({toggleExpanded:n},t,i))}))},L=function(t){l(n,t);var e=b(n);function n(){var t;i(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return u(d(t=e.call.apply(e,[this].concat(o))),"ref",void 0),u(d(t),"setRef",(function(e){t.ref=e})),t}return a(n,[{key:"componentDidUpdate",value:function(){n.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){n.VALIDATE(this.ref)}},{key:"render",value:function(){return Object(r.createElement)("div",c({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(t){if(void 0===t)throw new Error("ref is undefined");if(1!==t.childElementCount||!t.firstElementChild||"AccordionItemButton"!==t.firstElementChild.getAttribute("data-accordion-component"))throw new Error("AccordionItemButton may contain only one child element, which must be an instance of AccordionItemButton.\n\nFrom the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion):\n\n“The button element is the only element inside the heading element. That is, if there are other visually persistent elements, they are not included inside the heading element.”\n\n")}}]),n}(r.PureComponent);u(L,"defaultProps",{className:"accordion__heading","aria-level":3});var q=function(t){return Object(r.createElement)(z,null,(function(e){var n=e.headingAttributes;return t.id&&O(t.id),Object(r.createElement)(L,c({},t,n))}))};q.displayName=M.AccordionItemHeading;var F=function(t){var e=t.className,n=void 0===e?"accordion__panel":e,i=t.id,o=h(t,["className","id"]);return Object(r.createElement)(z,null,(function(t){var e=t.panelAttributes;return i&&O(i),Object(r.createElement)("div",c({"data-accordion-component":"AccordionItemPanel",className:n},o,e))}))},U=function(t){var e=t.children;return Object(r.createElement)(z,null,(function(t){var n=t.expanded,i=t.disabled;return Object(r.createElement)(r.Fragment,null,e({expanded:n,disabled:i}))}))}},function(t,e,n){"use strict";var r=n(182);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,s=[],l=!1,f=-1;function h(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&d())}function d(){if(!l){var t=u(h);l=!0;for(var e=s.length;e;){for(c=s,s=[];++f<e;)c&&c[f].run();f=-1,e=s.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function b(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new p(t,e)),1!==s.length||l||u(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=b,i.addListener=b,i.once=b,i.off=b,i.removeListener=b,i.removeAllListeners=b,i.emit=b,i.prependListener=b,i.prependOnceListener=b,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){var r=n(186),i=n(187),o=n(188),a=n(189),u=n(190),c=n(191),s=n(192);s.alea=r,s.xor128=i,s.xorwow=o,s.xorshift7=a,s.xor4096=u,s.tychei=c,t.exports=s},function(t,e,n){(function(t){var r;!function(t,i,o){function a(t){var e,n=this,r=(e=4022871197,function(t){t=String(t);for(var n=0;n<t.length;n++){var r=.02519603282416938*(e+=t.charCodeAt(n));r-=e=r>>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return 2.3283064365386963e-10*(e>>>0)});n.next=function(){var t=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=t-(n.c=0|t)},n.c=1,n.s0=r(" "),n.s1=r(" "),n.s2=r(" "),n.s0-=r(t),n.s0<0&&(n.s0+=1),n.s1-=r(t),n.s1<0&&(n.s1+=1),n.s2-=r(t),n.s2<0&&(n.s2+=1),r=null}function u(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function c(t,e){var n=new a(t),r=e&&e.state,i=n.next;return i.int32=function(){return 4294967296*n.next()|0},i.double=function(){return i()+11102230246251565e-32*(2097152*i()|0)},i.quick=i,r&&("object"==typeof r&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=c:n(35)&&n(67)?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.alea=c}(0,t,n(35))}).call(this,n(66)(t))},function(t,e,n){(function(t){var r;!function(t,i,o){function a(t){var e=this,n="";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},t===(0|t)?e.x=t:n+=t;for(var r=0;r<n.length+64;r++)e.x^=0|n.charCodeAt(r),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e}function c(t,e){var n=new a(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=c:n(35)&&n(67)?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.xor128=c}(0,t,n(35))}).call(this,n(66)(t))},function(t,e,n){(function(t){var r;!function(t,i,o){function a(t){var e=this,n="";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^t^t<<1)|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,t===(0|t)?e.x=t:n+=t;for(var r=0;r<n.length+64;r++)e.x^=0|n.charCodeAt(r),r==n.length&&(e.d=e.x<<10^e.x>>>4),e.next()}function u(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function c(t,e){var n=new a(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=c:n(35)&&n(67)?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.xorwow=c}(0,t,n(35))}).call(this,n(66)(t))},function(t,e,n){(function(t){var r;!function(t,i,o){function a(t){var e=this;e.next=function(){var t,n,r=e.x,i=e.i;return t=r[i],n=(t^=t>>>7)^t<<24,n^=(t=r[i+1&7])^t>>>10,n^=(t=r[i+3&7])^t>>>3,n^=(t=r[i+4&7])^t<<7,t=r[i+7&7],n^=(t^=t<<13)^t<<9,r[i]=n,e.i=i+1&7,n},function(t,e){var n,r=[];if(e===(0|e))r[0]=e;else for(e=""+e,n=0;n<e.length;++n)r[7&n]=r[7&n]<<15^e.charCodeAt(n)+r[n+1&7]<<13;for(;r.length<8;)r.push(0);for(n=0;n<8&&0===r[n];++n);for(8==n?r[7]=-1:r[n],t.x=r,t.i=0,n=256;n>0;--n)t.next()}(e,t)}function u(t,e){return e.x=t.x.slice(),e.i=t.i,e}function c(t,e){null==t&&(t=+new Date);var n=new a(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&(r.x&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=c:n(35)&&n(67)?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.xorshift7=c}(0,t,n(35))}).call(this,n(66)(t))},function(t,e,n){(function(t){var r;!function(t,i,o){function a(t){var e=this;e.next=function(){var t,n,r=e.w,i=e.X,o=e.i;return e.w=r=r+1640531527|0,n=i[o+34&127],t=i[o=o+1&127],n^=n<<13,t^=t<<17,n^=n>>>15,t^=t>>>12,n=i[o]=n^t,e.i=o,n+(r^r>>>16)|0},function(t,e){var n,r,i,o,a,u=[],c=128;for(e===(0|e)?(r=e,e=null):(e+="\0",r=0,c=Math.max(c,e.length)),i=0,o=-32;o<c;++o)e&&(r^=e.charCodeAt((o+32)%e.length)),0===o&&(a=r),r^=r<<10,r^=r>>>15,r^=r<<4,r^=r>>>13,o>=0&&(a=a+1640531527|0,i=0==(n=u[127&o]^=r+a)?i+1:0);for(i>=128&&(u[127&(e&&e.length||0)]=-1),i=127,o=512;o>0;--o)r=u[i+34&127],n=u[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,u[i]=r^n;t.w=a,t.X=u,t.i=i}(e,t)}function u(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function c(t,e){null==t&&(t=+new Date);var n=new a(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&(r.X&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=c:n(35)&&n(67)?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.xor4096=c}(0,t,n(35))}).call(this,n(66)(t))},function(t,e,n){(function(t){var r;!function(t,i,o){function a(t){var e=this,n="";e.next=function(){var t=e.b,n=e.c,r=e.d,i=e.a;return t=t<<25^t>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-t|0,e.b=t=t<<20^t>>>12^n,e.c=n=n-r|0,e.d=r<<16^n>>>16^i,e.a=i-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,t===Math.floor(t)?(e.a=t/4294967296|0,e.b=0|t):n+=t;for(var r=0;r<n.length+20;r++)e.b^=0|n.charCodeAt(r),e.next()}function u(t,e){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e}function c(t,e){var n=new a(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&u(r,n),i.state=function(){return u(n,{})}),i}i&&i.exports?i.exports=c:n(35)&&n(67)?void 0===(r=function(){return c}.call(e,n,e,i))||(i.exports=r):this.tychei=c}(0,t,n(35))}).call(this,n(66)(t))},function(t,e,n){var r;!function(i,o,a){var u,c=a.pow(256,6),s=a.pow(2,52),l=2*s;function f(t,e,n){var r=[],f=p(function t(e,n){var r,i=[],o=typeof e;if(n&&"object"==o)for(r in e)try{i.push(t(e[r],n-1))}catch(t){}return i.length?i:"string"==o?e:e+"\0"}((e=1==e?{entropy:!0}:e||{}).entropy?[t,b(o)]:null==t?function(){try{var t;return u&&(t=u.randomBytes)?t=t(256):(t=new Uint8Array(256),(i.crypto||i.msCrypto).getRandomValues(t)),b(t)}catch(t){var e=i.navigator,n=e&&e.plugins;return[+new Date,i,n,i.screen,b(o)]}}():t,3),r),g=new h(r),v=function(){for(var t=g.g(6),e=c,n=0;t<s;)t=256*(t+n),e*=256,n=g.g(1);for(;t>=l;)t/=2,e/=2,n>>>=1;return(t+n)/e};return v.int32=function(){return 0|g.g(4)},v.quick=function(){return g.g(4)/4294967296},v.double=v,p(b(g.S),o),(e.pass||n||function(t,e,n,r){return r&&(r.S&&d(r,g),t.state=function(){return d(g,{})}),n?(a.random=t,e):t})(v,f,"global"in e?e.global:this==a,e.state)}function h(t){var e,n=t.length,r=this,i=0,o=r.i=r.j=0,a=r.S=[];for(n||(t=[n++]);i<256;)a[i]=i++;for(i=0;i<256;i++)a[i]=a[o=255&o+t[i%n]+(e=a[i])],a[o]=e;(r.g=function(t){for(var e,n=0,i=r.i,o=r.j,a=r.S;t--;)e=a[i=255&i+1],n=256*n+a[255&(a[i]=a[o=255&o+e])+(a[o]=e)];return r.i=i,r.j=o,n})(256)}function d(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function p(t,e){for(var n,r=t+"",i=0;i<r.length;)e[255&i]=255&(n^=19*e[255&i])+r.charCodeAt(i++);return b(e)}function b(t){return String.fromCharCode.apply(0,t)}if(p(a.random(),o),t.exports){t.exports=f;try{u=n(193)}catch(t){}}else void 0===(r=function(){return f}.call(e,n,e,t))||(t.exports=r)}("undefined"!=typeof self?self:this,[],Math)},function(t,e){},function(t,e,n){var r;(function(){function i(t){"use strict";var e={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===t)return JSON.parse(JSON.stringify(e));var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r].defaultValue);return n}var o={},a={},u={},c=i(!0),s="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:i(!0),allOn:function(){"use strict";var t=i(!0),e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=!0);return e}()};function f(t,e){"use strict";var n=e?"Error in "+e+" extension->":"Error in unnamed extension",r={valid:!0,error:""};o.helper.isArray(t)||(t=[t]);for(var i=0;i<t.length;++i){var a=n+" sub-extension "+i+": ",u=t[i];if("object"!=typeof u)return r.valid=!1,r.error=a+"must be an object, but "+typeof u+" given",r;if(!o.helper.isString(u.type))return r.valid=!1,r.error=a+'property "type" must be a string, but '+typeof u.type+" given",r;var c=u.type=u.type.toLowerCase();if("language"===c&&(c=u.type="lang"),"html"===c&&(c=u.type="output"),"lang"!==c&&"output"!==c&&"listener"!==c)return r.valid=!1,r.error=a+"type "+c+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',r;if("listener"===c){if(o.helper.isUndefined(u.listeners))return r.valid=!1,r.error=a+'. Extensions of type "listener" must have a property called "listeners"',r}else if(o.helper.isUndefined(u.filter)&&o.helper.isUndefined(u.regex))return r.valid=!1,r.error=a+c+' extensions must define either a "regex" property or a "filter" method',r;if(u.listeners){if("object"!=typeof u.listeners)return r.valid=!1,r.error=a+'"listeners" property must be an object but '+typeof u.listeners+" given",r;for(var s in u.listeners)if(u.listeners.hasOwnProperty(s)&&"function"!=typeof u.listeners[s])return r.valid=!1,r.error=a+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+s+" must be a function but "+typeof u.listeners[s]+" given",r}if(u.filter){if("function"!=typeof u.filter)return r.valid=!1,r.error=a+'"filter" must be a function, but '+typeof u.filter+" given",r}else if(u.regex){if(o.helper.isString(u.regex)&&(u.regex=new RegExp(u.regex,"g")),!(u.regex instanceof RegExp))return r.valid=!1,r.error=a+'"regex" property must either be a string or a RegExp object, but '+typeof u.regex+" given",r;if(o.helper.isUndefined(u.replace))return r.valid=!1,r.error=a+'"regex" extensions must implement a replace string or function',r}}return r}function h(t,e){"use strict";return"¨E"+e.charCodeAt(0)+"E"}o.helper={},o.extensions={},o.setOption=function(t,e){"use strict";return c[t]=e,this},o.getOption=function(t){"use strict";return c[t]},o.getOptions=function(){"use strict";return c},o.resetOptions=function(){"use strict";c=i(!0)},o.setFlavor=function(t){"use strict";if(!l.hasOwnProperty(t))throw Error(t+" flavor was not found");o.resetOptions();var e=l[t];for(var n in s=t,e)e.hasOwnProperty(n)&&(c[n]=e[n])},o.getFlavor=function(){"use strict";return s},o.getFlavorOptions=function(t){"use strict";if(l.hasOwnProperty(t))return l[t]},o.getDefaultOptions=function(t){"use strict";return i(t)},o.subParser=function(t,e){"use strict";if(o.helper.isString(t)){if(void 0===e){if(a.hasOwnProperty(t))return a[t];throw Error("SubParser named "+t+" not registered!")}a[t]=e}},o.extension=function(t,e){"use strict";if(!o.helper.isString(t))throw Error("Extension 'name' must be a string");if(t=o.helper.stdExtName(t),o.helper.isUndefined(e)){if(!u.hasOwnProperty(t))throw Error("Extension named "+t+" is not registered!");return u[t]}"function"==typeof e&&(e=e()),o.helper.isArray(e)||(e=[e]);var n=f(e,t);if(!n.valid)throw Error(n.error);u[t]=e},o.getAllExtensions=function(){"use strict";return u},o.removeExtension=function(t){"use strict";delete u[t]},o.resetExtensions=function(){"use strict";u={}},o.validateExtension=function(t){"use strict";var e=f(t,null);return!!e.valid||(console.warn(e.error),!1)},o.hasOwnProperty("helper")||(o.helper={}),o.helper.isString=function(t){"use strict";return"string"==typeof t||t instanceof String},o.helper.isFunction=function(t){"use strict";return t&&"[object Function]"==={}.toString.call(t)},o.helper.isArray=function(t){"use strict";return Array.isArray(t)},o.helper.isUndefined=function(t){"use strict";return void 0===t},o.helper.forEach=function(t,e){"use strict";if(o.helper.isUndefined(t))throw new Error("obj param is required");if(o.helper.isUndefined(e))throw new Error("callback param is required");if(!o.helper.isFunction(e))throw new Error("callback param must be a function/closure");if("function"==typeof t.forEach)t.forEach(e);else if(o.helper.isArray(t))for(var n=0;n<t.length;n++)e(t[n],n,t);else{if("object"!=typeof t)throw new Error("obj does not seem to be an array or an iterable object");for(var r in t)t.hasOwnProperty(r)&&e(t[r],r,t)}},o.helper.stdExtName=function(t){"use strict";return t.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},o.helper.escapeCharactersCallback=h,o.helper.escapeCharacters=function(t,e,n){"use strict";var r="(["+e.replace(/([\[\]\\])/g,"\\$1")+"])";n&&(r="\\\\"+r);var i=new RegExp(r,"g");return t.replace(i,h)},o.helper.unescapeHTMLEntities=function(t){"use strict";return t.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var d=function(t,e,n,r){"use strict";var i,o,a,u,c,s=r||"",l=s.indexOf("g")>-1,f=new RegExp(e+"|"+n,"g"+s.replace(/g/g,"")),h=new RegExp(e,s.replace(/g/g,"")),d=[];do{for(i=0;a=f.exec(t);)if(h.test(a[0]))i++||(u=(o=f.lastIndex)-a[0].length);else if(i&&!--i){c=a.index+a[0].length;var p={left:{start:u,end:o},match:{start:o,end:a.index},right:{start:a.index,end:c},wholeMatch:{start:u,end:c}};if(d.push(p),!l)return d}}while(i&&(f.lastIndex=o));return d};o.helper.matchRecursiveRegExp=function(t,e,n,r){"use strict";for(var i=d(t,e,n,r),o=[],a=0;a<i.length;++a)o.push([t.slice(i[a].wholeMatch.start,i[a].wholeMatch.end),t.slice(i[a].match.start,i[a].match.end),t.slice(i[a].left.start,i[a].left.end),t.slice(i[a].right.start,i[a].right.end)]);return o},o.helper.replaceRecursiveRegExp=function(t,e,n,r,i){"use strict";if(!o.helper.isFunction(e)){var a=e;e=function(){return a}}var u=d(t,n,r,i),c=t,s=u.length;if(s>0){var l=[];0!==u[0].wholeMatch.start&&l.push(t.slice(0,u[0].wholeMatch.start));for(var f=0;f<s;++f)l.push(e(t.slice(u[f].wholeMatch.start,u[f].wholeMatch.end),t.slice(u[f].match.start,u[f].match.end),t.slice(u[f].left.start,u[f].left.end),t.slice(u[f].right.start,u[f].right.end))),f<s-1&&l.push(t.slice(u[f].wholeMatch.end,u[f+1].wholeMatch.start));u[s-1].wholeMatch.end<t.length&&l.push(t.slice(u[s-1].wholeMatch.end)),c=l.join("")}return c},o.helper.regexIndexOf=function(t,e,n){"use strict";if(!o.helper.isString(t))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(e instanceof RegExp==0)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var r=t.substring(n||0).search(e);return r>=0?r+(n||0):r},o.helper.splitAtIndex=function(t,e){"use strict";if(!o.helper.isString(t))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[t.substring(0,e),t.substring(e)]},o.helper.encodeEmailAddress=function(t){"use strict";var e=[function(t){return"&#"+t.charCodeAt(0)+";"},function(t){return"&#x"+t.charCodeAt(0).toString(16)+";"},function(t){return t}];return t.replace(/./g,(function(t){if("@"===t)t=e[Math.floor(2*Math.random())](t);else{var n=Math.random();t=n>.9?e[2](t):n>.45?e[1](t):e[0](t)}return t}))},o.helper.padEnd=function(t,e,n){"use strict";return e>>=0,n=String(n||" "),t.length>e?String(t):((e-=t.length)>n.length&&(n+=n.repeat(e/n.length)),String(t)+n.slice(0,e))},"undefined"==typeof console&&(console={warn:function(t){"use strict";alert(t)},log:function(t){"use strict";alert(t)},error:function(t){"use strict";throw t}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},o.Converter=function(t){"use strict";var e={},n=[],r=[],i={},a=s,h={parsed:{},raw:"",format:""};function d(t,e){if(e=e||null,o.helper.isString(t)){if(e=t=o.helper.stdExtName(t),o.extensions[t])return console.warn("DEPRECATION WARNING: "+t+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(t,e){"function"==typeof t&&(t=t(new o.Converter)),o.helper.isArray(t)||(t=[t]);var i=f(t,e);if(!i.valid)throw Error(i.error);for(var a=0;a<t.length;++a)switch(t[a].type){case"lang":n.push(t[a]);break;case"output":r.push(t[a]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(o.extensions[t],t);if(o.helper.isUndefined(u[t]))throw Error('Extension "'+t+'" could not be loaded. It was either not found or is not a valid extension.');t=u[t]}"function"==typeof t&&(t=t()),o.helper.isArray(t)||(t=[t]);var i=f(t,e);if(!i.valid)throw Error(i.error);for(var a=0;a<t.length;++a){switch(t[a].type){case"lang":n.push(t[a]);break;case"output":r.push(t[a])}if(t[a].hasOwnProperty("listeners"))for(var c in t[a].listeners)t[a].listeners.hasOwnProperty(c)&&p(c,t[a].listeners[c])}}function p(t,e){if(!o.helper.isString(t))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof t+" given");if("function"!=typeof e)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof e+" given");i.hasOwnProperty(t)||(i[t]=[]),i[t].push(e)}!function(){for(var n in t=t||{},c)c.hasOwnProperty(n)&&(e[n]=c[n]);if("object"!=typeof t)throw Error("Converter expects the passed parameter to be an object, but "+typeof t+" was passed instead.");for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.extensions&&o.helper.forEach(e.extensions,d)}(),this._dispatch=function(t,e,n,r){if(i.hasOwnProperty(t))for(var o=0;o<i[t].length;++o){var a=i[t][o](t,e,this,n,r);a&&void 0!==a&&(e=a)}return e},this.listen=function(t,e){return p(t,e),this},this.makeHtml=function(t){if(!t)return t;var i={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:n,outputModifiers:r,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return t=(t=(t=(t=(t=t.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g," "),e.smartIndentationFix&&(t=function(t){var e=t.match(/^\s*/)[0].length,n=new RegExp("^\\s{0,"+e+"}","gm");return t.replace(n,"")}(t)),t="\n\n"+t+"\n\n",t=(t=o.subParser("detab")(t,e,i)).replace(/^[ \t]+$/gm,""),o.helper.forEach(n,(function(n){t=o.subParser("runExtension")(n,t,e,i)})),t=o.subParser("metadata")(t,e,i),t=o.subParser("hashPreCodeTags")(t,e,i),t=o.subParser("githubCodeBlocks")(t,e,i),t=o.subParser("hashHTMLBlocks")(t,e,i),t=o.subParser("hashCodeTags")(t,e,i),t=o.subParser("stripLinkDefinitions")(t,e,i),t=o.subParser("blockGamut")(t,e,i),t=o.subParser("unhashHTMLSpans")(t,e,i),t=(t=(t=o.subParser("unescapeSpecialChars")(t,e,i)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),t=o.subParser("completeHTMLDocument")(t,e,i),o.helper.forEach(r,(function(n){t=o.subParser("runExtension")(n,t,e,i)})),h=i.metadata,t},this.makeMarkdown=this.makeMd=function(t,e){if(t=(t=(t=t.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+</,">¨NBSP;<"),!e){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");e=window.document}var n=e.createElement("div");n.innerHTML=t;var r={preList:function(t){for(var e=t.querySelectorAll("pre"),n=[],r=0;r<e.length;++r)if(1===e[r].childElementCount&&"code"===e[r].firstChild.tagName.toLowerCase()){var i=e[r].firstChild.innerHTML.trim(),a=e[r].firstChild.getAttribute("data-language")||"";if(""===a)for(var u=e[r].firstChild.className.split(" "),c=0;c<u.length;++c){var s=u[c].match(/^language-(.+)$/);if(null!==s){a=s[1];break}}i=o.helper.unescapeHTMLEntities(i),n.push(i),e[r].outerHTML='<precode language="'+a+'" precodenum="'+r.toString()+'"></precode>'}else n.push(e[r].innerHTML),e[r].innerHTML="",e[r].setAttribute("prenum",r.toString());return n}(n)};!function t(e){for(var n=0;n<e.childNodes.length;++n){var r=e.childNodes[n];3===r.nodeType?/\S/.test(r.nodeValue)?(r.nodeValue=r.nodeValue.split("\n").join(" "),r.nodeValue=r.nodeValue.replace(/(\s)+/g,"$1")):(e.removeChild(r),--n):1===r.nodeType&&t(r)}}(n);for(var i=n.childNodes,a="",u=0;u<i.length;u++)a+=o.subParser("makeMarkdown.node")(i[u],r);return a},this.setOption=function(t,n){e[t]=n},this.getOption=function(t){return e[t]},this.getOptions=function(){return e},this.addExtension=function(t,e){d(t,e=e||null)},this.useExtension=function(t){d(t)},this.setFlavor=function(t){if(!l.hasOwnProperty(t))throw Error(t+" flavor was not found");var n=l[t];for(var r in a=t,n)n.hasOwnProperty(r)&&(e[r]=n[r])},this.getFlavor=function(){return a},this.removeExtension=function(t){o.helper.isArray(t)||(t=[t]);for(var e=0;e<t.length;++e){for(var i=t[e],a=0;a<n.length;++a)n[a]===i&&n[a].splice(a,1);for(;0<r.length;++a)r[0]===i&&r[0].splice(a,1)}},this.getAllExtensions=function(){return{language:n,output:r}},this.getMetadata=function(t){return t?h.raw:h.parsed},this.getMetadataFormat=function(){return h.format},this._setMetadataPair=function(t,e){h.parsed[t]=e},this._setMetadataFormat=function(t){h.format=t},this._setMetadataRaw=function(t){h.raw=t}},o.subParser("anchors",(function(t,e,n){"use strict";var r=function(t,r,i,a,u,c,s){if(o.helper.isUndefined(s)&&(s=""),i=i.toLowerCase(),t.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)a="";else if(!a){if(i||(i=r.toLowerCase().replace(/ ?\n/g," ")),a="#"+i,o.helper.isUndefined(n.gUrls[i]))return t;a=n.gUrls[i],o.helper.isUndefined(n.gTitles[i])||(s=n.gTitles[i])}var l='<a href="'+(a=a.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"';return""!==s&&null!==s&&(l+=' title="'+(s=(s=s.replace(/"/g,""")).replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"'),e.openLinksInNewWindow&&!/^#/.test(a)&&(l+=' rel="noopener noreferrer" target="¨E95Eblank"'),l+">"+r+"</a>"};return t=(t=(t=(t=(t=n.converter._dispatch("anchors.before",t,e,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[([^\[\]]+)]()()()()()/g,r),e.ghMentions&&(t=t.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(t,n,r,i,a){if("\\"===r)return n+i;if(!o.helper.isString(e.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var u=e.ghMentionsLink.replace(/\{u}/g,a),c="";return e.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),n+'<a href="'+u+'"'+c+">"+i+"</a>"}))),n.converter._dispatch("anchors.after",t,e,n)}));var p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,b=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,g=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,v=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,m=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,y=function(t){"use strict";return function(e,n,r,i,a,u,c){var s=r=r.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),l="",f="",h=n||"",d=c||"";return/^www\./i.test(r)&&(r=r.replace(/^www\./i,"http://www.")),t.excludeTrailingPunctuationFromURLs&&u&&(l=u),t.openLinksInNewWindow&&(f=' rel="noopener noreferrer" target="¨E95Eblank"'),h+'<a href="'+r+'"'+f+">"+s+"</a>"+l+d}},_=function(t,e){"use strict";return function(n,r,i){var a="mailto:";return r=r||"",i=o.subParser("unescapeSpecialChars")(i,t,e),t.encodeEmails?(a=o.helper.encodeEmailAddress(a+i),i=o.helper.encodeEmailAddress(i)):a+=i,r+'<a href="'+a+'">'+i+"</a>"}};o.subParser("autoLinks",(function(t,e,n){"use strict";return t=(t=(t=n.converter._dispatch("autoLinks.before",t,e,n)).replace(g,y(e))).replace(m,_(e,n)),n.converter._dispatch("autoLinks.after",t,e,n)})),o.subParser("simplifiedAutoLinks",(function(t,e,n){"use strict";return e.simplifiedAutoLink?(t=n.converter._dispatch("simplifiedAutoLinks.before",t,e,n),t=(t=e.excludeTrailingPunctuationFromURLs?t.replace(b,y(e)):t.replace(p,y(e))).replace(v,_(e,n)),t=n.converter._dispatch("simplifiedAutoLinks.after",t,e,n)):t})),o.subParser("blockGamut",(function(t,e,n){"use strict";return t=n.converter._dispatch("blockGamut.before",t,e,n),t=o.subParser("blockQuotes")(t,e,n),t=o.subParser("headers")(t,e,n),t=o.subParser("horizontalRule")(t,e,n),t=o.subParser("lists")(t,e,n),t=o.subParser("codeBlocks")(t,e,n),t=o.subParser("tables")(t,e,n),t=o.subParser("hashHTMLBlocks")(t,e,n),t=o.subParser("paragraphs")(t,e,n),n.converter._dispatch("blockGamut.after",t,e,n)})),o.subParser("blockQuotes",(function(t,e,n){"use strict";t=n.converter._dispatch("blockQuotes.before",t,e,n),t+="\n\n";var r=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return e.splitAdjacentBlockquotes&&(r=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),t=t.replace(r,(function(t){return t=(t=(t=t.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),t=o.subParser("githubCodeBlocks")(t,e,n),t=(t=(t=o.subParser("blockGamut")(t,e,n)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(t,e){var n=e;return(n=n.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),o.subParser("hashBlock")("<blockquote>\n"+t+"\n</blockquote>",e,n)})),n.converter._dispatch("blockQuotes.after",t,e,n)})),o.subParser("codeBlocks",(function(t,e,n){"use strict";return t=n.converter._dispatch("codeBlocks.before",t,e,n),t=(t=(t+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(t,r,i){var a=r,u=i,c="\n";return a=o.subParser("outdent")(a,e,n),a=o.subParser("encodeCode")(a,e,n),a=(a=(a=o.subParser("detab")(a,e,n)).replace(/^\n+/g,"")).replace(/\n+$/g,""),e.omitExtraWLInCodeBlocks&&(c=""),a="<pre><code>"+a+c+"</code></pre>",o.subParser("hashBlock")(a,e,n)+u}))).replace(/¨0/,""),n.converter._dispatch("codeBlocks.after",t,e,n)})),o.subParser("codeSpans",(function(t,e,n){"use strict";return void 0===(t=n.converter._dispatch("codeSpans.before",t,e,n))&&(t=""),t=t.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(t,r,i,a){var u=a;return u=(u=u.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),u=r+"<code>"+(u=o.subParser("encodeCode")(u,e,n))+"</code>",o.subParser("hashHTMLSpans")(u,e,n)})),n.converter._dispatch("codeSpans.after",t,e,n)})),o.subParser("completeHTMLDocument",(function(t,e,n){"use strict";if(!e.completeHTMLDocument)return t;t=n.converter._dispatch("completeHTMLDocument.before",t,e,n);var r="html",i="<!DOCTYPE HTML>\n",o="",a='<meta charset="utf-8">\n',u="",c="";for(var s in void 0!==n.metadata.parsed.doctype&&(i="<!DOCTYPE "+n.metadata.parsed.doctype+">\n","html"!==(r=n.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==r||(a='<meta charset="utf-8">')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(s))switch(s.toLowerCase()){case"doctype":break;case"title":o="<title>"+n.metadata.parsed.title+"</title>\n";break;case"charset":a="html"===r||"html5"===r?'<meta charset="'+n.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+n.metadata.parsed.charset+'">\n';break;case"language":case"lang":u=' lang="'+n.metadata.parsed[s]+'"',c+='<meta name="'+s+'" content="'+n.metadata.parsed[s]+'">\n';break;default:c+='<meta name="'+s+'" content="'+n.metadata.parsed[s]+'">\n'}return t=i+"<html"+u+">\n<head>\n"+o+a+c+"</head>\n<body>\n"+t.trim()+"\n</body>\n</html>",n.converter._dispatch("completeHTMLDocument.after",t,e,n)})),o.subParser("detab",(function(t,e,n){"use strict";return t=(t=(t=(t=(t=(t=n.converter._dispatch("detab.before",t,e,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(t,e){for(var n=e,r=4-n.length%4,i=0;i<r;i++)n+=" ";return n}))).replace(/¨A/g," ")).replace(/¨B/g,""),n.converter._dispatch("detab.after",t,e,n)})),o.subParser("ellipsis",(function(t,e,n){"use strict";return t=(t=n.converter._dispatch("ellipsis.before",t,e,n)).replace(/\.\.\./g,"…"),n.converter._dispatch("ellipsis.after",t,e,n)})),o.subParser("emoji",(function(t,e,n){"use strict";return e.emoji?(t=(t=n.converter._dispatch("emoji.before",t,e,n)).replace(/:([\S]+?):/g,(function(t,e){return o.helper.emojis.hasOwnProperty(e)?o.helper.emojis[e]:t})),n.converter._dispatch("emoji.after",t,e,n)):t})),o.subParser("encodeAmpsAndAngles",(function(t,e,n){"use strict";return t=(t=(t=(t=(t=n.converter._dispatch("encodeAmpsAndAngles.before",t,e,n)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&")).replace(/<(?![a-z\/?$!])/gi,"<")).replace(/</g,"<")).replace(/>/g,">"),n.converter._dispatch("encodeAmpsAndAngles.after",t,e,n)})),o.subParser("encodeBackslashEscapes",(function(t,e,n){"use strict";return t=(t=(t=n.converter._dispatch("encodeBackslashEscapes.before",t,e,n)).replace(/\\(\\)/g,o.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,o.helper.escapeCharactersCallback),n.converter._dispatch("encodeBackslashEscapes.after",t,e,n)})),o.subParser("encodeCode",(function(t,e,n){"use strict";return t=(t=n.converter._dispatch("encodeCode.before",t,e,n)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/([*_{}\[\]\\=~-])/g,o.helper.escapeCharactersCallback),n.converter._dispatch("encodeCode.after",t,e,n)})),o.subParser("escapeSpecialCharsWithinTagAttributes",(function(t,e,n){"use strict";return t=(t=(t=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",t,e,n)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(t){return t.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)}))).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(t){return t.replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",t,e,n)})),o.subParser("githubCodeBlocks",(function(t,e,n){"use strict";return e.ghCodeBlocks?(t=n.converter._dispatch("githubCodeBlocks.before",t,e,n),t=(t=(t+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(t,r,i,a){var u=e.omitExtraWLInCodeBlocks?"":"\n";return a=o.subParser("encodeCode")(a,e,n),a="<pre><code"+(i?' class="'+i+" language-"+i+'"':"")+">"+(a=(a=(a=o.subParser("detab")(a,e,n)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+u+"</code></pre>",a=o.subParser("hashBlock")(a,e,n),"\n\n¨G"+(n.ghCodeBlocks.push({text:t,codeblock:a})-1)+"G\n\n"}))).replace(/¨0/,""),n.converter._dispatch("githubCodeBlocks.after",t,e,n)):t})),o.subParser("hashBlock",(function(t,e,n){"use strict";return t=(t=n.converter._dispatch("hashBlock.before",t,e,n)).replace(/(^\n+|\n+$)/g,""),t="\n\n¨K"+(n.gHtmlBlocks.push(t)-1)+"K\n\n",n.converter._dispatch("hashBlock.after",t,e,n)})),o.subParser("hashCodeTags",(function(t,e,n){"use strict";return t=n.converter._dispatch("hashCodeTags.before",t,e,n),t=o.helper.replaceRecursiveRegExp(t,(function(t,r,i,a){var u=i+o.subParser("encodeCode")(r,e,n)+a;return"¨C"+(n.gHtmlSpans.push(u)-1)+"C"}),"<code\\b[^>]*>","</code>","gim"),n.converter._dispatch("hashCodeTags.after",t,e,n)})),o.subParser("hashElement",(function(t,e,n){"use strict";return function(t,e){var r=e;return r=(r=(r=r.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),"\n\n¨K"+(n.gHtmlBlocks.push(r)-1)+"K\n\n"}})),o.subParser("hashHTMLBlocks",(function(t,e,n){"use strict";t=n.converter._dispatch("hashHTMLBlocks.before",t,e,n);var r=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],i=function(t,e,r,i){var o=t;return-1!==r.search(/\bmarkdown\b/)&&(o=r+n.converter.makeHtml(e)+i),"\n\n¨K"+(n.gHtmlBlocks.push(o)-1)+"K\n\n"};e.backslashEscapesHTMLTags&&(t=t.replace(/\\<(\/?[^>]+?)>/g,(function(t,e){return"<"+e+">"})));for(var a=0;a<r.length;++a)for(var u,c=new RegExp("^ {0,3}(<"+r[a]+"\\b[^>]*>)","im"),s="<"+r[a]+"\\b[^>]*>",l="</"+r[a]+">";-1!==(u=o.helper.regexIndexOf(t,c));){var f=o.helper.splitAtIndex(t,u),h=o.helper.replaceRecursiveRegExp(f[1],i,s,l,"im");if(h===f[1])break;t=f[0].concat(h)}return t=t.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(t,e,n)),t=(t=o.helper.replaceRecursiveRegExp(t,(function(t){return"\n\n¨K"+(n.gHtmlBlocks.push(t)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(t,e,n)),n.converter._dispatch("hashHTMLBlocks.after",t,e,n)})),o.subParser("hashHTMLSpans",(function(t,e,n){"use strict";function r(t){return"¨C"+(n.gHtmlSpans.push(t)-1)+"C"}return t=(t=(t=(t=(t=n.converter._dispatch("hashHTMLSpans.before",t,e,n)).replace(/<[^>]+?\/>/gi,(function(t){return r(t)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(t){return r(t)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(t){return r(t)}))).replace(/<[^>]+?>/gi,(function(t){return r(t)})),n.converter._dispatch("hashHTMLSpans.after",t,e,n)})),o.subParser("unhashHTMLSpans",(function(t,e,n){"use strict";t=n.converter._dispatch("unhashHTMLSpans.before",t,e,n);for(var r=0;r<n.gHtmlSpans.length;++r){for(var i=n.gHtmlSpans[r],o=0;/¨C(\d+)C/.test(i);){var a=RegExp.$1;if(i=i.replace("¨C"+a+"C",n.gHtmlSpans[a]),10===o){console.error("maximum nesting of 10 spans reached!!!");break}++o}t=t.replace("¨C"+r+"C",i)}return n.converter._dispatch("unhashHTMLSpans.after",t,e,n)})),o.subParser("hashPreCodeTags",(function(t,e,n){"use strict";return t=n.converter._dispatch("hashPreCodeTags.before",t,e,n),t=o.helper.replaceRecursiveRegExp(t,(function(t,r,i,a){var u=i+o.subParser("encodeCode")(r,e,n)+a;return"\n\n¨G"+(n.ghCodeBlocks.push({text:t,codeblock:u})-1)+"G\n\n"}),"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),n.converter._dispatch("hashPreCodeTags.after",t,e,n)})),o.subParser("headers",(function(t,e,n){"use strict";t=n.converter._dispatch("headers.before",t,e,n);var r=isNaN(parseInt(e.headerLevelStart))?1:parseInt(e.headerLevelStart),i=e.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,a=e.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;t=(t=t.replace(i,(function(t,i){var a=o.subParser("spanGamut")(i,e,n),u=e.noHeaderId?"":' id="'+c(i)+'"',s="<h"+r+u+">"+a+"</h"+r+">";return o.subParser("hashBlock")(s,e,n)}))).replace(a,(function(t,i){var a=o.subParser("spanGamut")(i,e,n),u=e.noHeaderId?"":' id="'+c(i)+'"',s=r+1,l="<h"+s+u+">"+a+"</h"+s+">";return o.subParser("hashBlock")(l,e,n)}));var u=e.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(t){var r,i;if(e.customizedHeaderId){var a=t.match(/\{([^{]+?)}\s*$/);a&&a[1]&&(t=a[1])}return r=t,i=o.helper.isString(e.prefixHeaderId)?e.prefixHeaderId:!0===e.prefixHeaderId?"section-":"",e.rawPrefixHeaderId||(r=i+r),r=e.ghCompatibleHeaderId?r.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():e.rawHeaderId?r.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():r.replace(/[^\w]/g,"").toLowerCase(),e.rawPrefixHeaderId&&(r=i+r),n.hashLinkCounts[r]?r=r+"-"+n.hashLinkCounts[r]++:n.hashLinkCounts[r]=1,r}return t=t.replace(u,(function(t,i,a){var u=a;e.customizedHeaderId&&(u=a.replace(/\s?\{([^{]+?)}\s*$/,""));var s=o.subParser("spanGamut")(u,e,n),l=e.noHeaderId?"":' id="'+c(a)+'"',f=r-1+i.length,h="<h"+f+l+">"+s+"</h"+f+">";return o.subParser("hashBlock")(h,e,n)})),n.converter._dispatch("headers.after",t,e,n)})),o.subParser("horizontalRule",(function(t,e,n){"use strict";t=n.converter._dispatch("horizontalRule.before",t,e,n);var r=o.subParser("hashBlock")("<hr />",e,n);return t=(t=(t=t.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,r)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,r)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,r),n.converter._dispatch("horizontalRule.after",t,e,n)})),o.subParser("images",(function(t,e,n){"use strict";function r(t,e,r,i,a,u,c,s){var l=n.gUrls,f=n.gTitles,h=n.gDimensions;if(r=r.toLowerCase(),s||(s=""),t.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)i="";else if(""===i||null===i){if(""!==r&&null!==r||(r=e.toLowerCase().replace(/ ?\n/g," ")),i="#"+r,o.helper.isUndefined(l[r]))return t;i=l[r],o.helper.isUndefined(f[r])||(s=f[r]),o.helper.isUndefined(h[r])||(a=h[r].width,u=h[r].height)}e=e.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var d='<img src="'+(i=i.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'" alt="'+e+'"';return s&&o.helper.isString(s)&&(d+=' title="'+(s=s.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"'),a&&u&&(d+=' width="'+(a="*"===a?"auto":a)+'"',d+=' height="'+(u="*"===u?"auto":u)+'"'),d+" />"}return t=(t=(t=(t=(t=(t=n.converter._dispatch("images.before",t,e,n)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,r)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(t,e,n,i,o,a,u,c){return r(t,e,n,i=i.replace(/\s/g,""),o,a,0,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,r)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,r)).replace(/!\[([^\[\]]+)]()()()()()/g,r),n.converter._dispatch("images.after",t,e,n)})),o.subParser("italicsAndBold",(function(t,e,n){"use strict";function r(t,e,n){return e+t+n}return t=n.converter._dispatch("italicsAndBold.before",t,e,n),t=e.literalMidWordUnderscores?(t=(t=t.replace(/\b___(\S[\s\S]*?)___\b/g,(function(t,e){return r(e,"<strong><em>","</em></strong>")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(t,e){return r(e,"<strong>","</strong>")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(t,e){return r(e,"<em>","</em>")})):(t=(t=t.replace(/___(\S[\s\S]*?)___/g,(function(t,e){return/\S$/.test(e)?r(e,"<strong><em>","</em></strong>"):t}))).replace(/__(\S[\s\S]*?)__/g,(function(t,e){return/\S$/.test(e)?r(e,"<strong>","</strong>"):t}))).replace(/_([^\s_][\s\S]*?)_/g,(function(t,e){return/\S$/.test(e)?r(e,"<em>","</em>"):t})),t=e.literalMidWordAsterisks?(t=(t=t.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(t,e,n){return r(n,e+"<strong><em>","</em></strong>")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(t,e,n){return r(n,e+"<strong>","</strong>")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(t,e,n){return r(n,e+"<em>","</em>")})):(t=(t=t.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(t,e){return/\S$/.test(e)?r(e,"<strong><em>","</em></strong>"):t}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(t,e){return/\S$/.test(e)?r(e,"<strong>","</strong>"):t}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(t,e){return/\S$/.test(e)?r(e,"<em>","</em>"):t})),n.converter._dispatch("italicsAndBold.after",t,e,n)})),o.subParser("lists",(function(t,e,n){"use strict";function r(t,r){n.gListLevel++,t=t.replace(/\n{2,}$/,"\n");var i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,a=/\n[ \t]*\n(?!¨0)/.test(t+="¨0");return e.disableForced4SpacesIndentedSublists&&(i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),t=(t=t.replace(i,(function(t,r,i,u,c,s,l){l=l&&""!==l.trim();var f=o.subParser("outdent")(c,e,n),h="";return s&&e.tasklists&&(h=' class="task-list-item" style="list-style-type: none;"',f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var t='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return l&&(t+=" checked"),t+">"}))),f=f.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(t){return"¨A"+t})),r||f.search(/\n{2,}/)>-1?(f=o.subParser("githubCodeBlocks")(f,e,n),f=o.subParser("blockGamut")(f,e,n)):(f=(f=o.subParser("lists")(f,e,n)).replace(/\n$/,""),f=(f=o.subParser("hashHTMLBlocks")(f,e,n)).replace(/\n\n+/g,"\n\n"),f=a?o.subParser("paragraphs")(f,e,n):o.subParser("spanGamut")(f,e,n)),"<li"+h+">"+(f=f.replace("¨A",""))+"</li>\n"}))).replace(/¨0/g,""),n.gListLevel--,r&&(t=t.replace(/\s+$/,"")),t}function i(t,e){if("ol"===e){var n=t.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function a(t,n,o){var a=e.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,u=e.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===n?a:u,s="";if(-1!==t.search(c))!function e(l){var f=l.search(c),h=i(t,n);-1!==f?(s+="\n\n<"+n+h+">\n"+r(l.slice(0,f),!!o)+"</"+n+">\n",c="ul"==(n="ul"===n?"ol":"ul")?a:u,e(l.slice(f))):s+="\n\n<"+n+h+">\n"+r(l,!!o)+"</"+n+">\n"}(t);else{var l=i(t,n);s="\n\n<"+n+l+">\n"+r(t,!!o)+"</"+n+">\n"}return s}return t=n.converter._dispatch("lists.before",t,e,n),t+="¨0",t=(t=n.gListLevel?t.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(t,e,n){return a(e,n.search(/[*+-]/g)>-1?"ul":"ol",!0)})):t.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(t,e,n,r){return a(n,r.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),n.converter._dispatch("lists.after",t,e,n)})),o.subParser("metadata",(function(t,e,n){"use strict";if(!e.metadata)return t;function r(t){n.metadata.raw=t,(t=(t=t.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(t,e,r){return n.metadata.parsed[e]=r,""}))}return t=(t=(t=(t=n.converter._dispatch("metadata.before",t,e,n)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(t,e,n){return r(n),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(t,e,i){return e&&(n.metadata.format=e),r(i),"¨M"}))).replace(/¨M/g,""),n.converter._dispatch("metadata.after",t,e,n)})),o.subParser("outdent",(function(t,e,n){"use strict";return t=(t=(t=n.converter._dispatch("outdent.before",t,e,n)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),n.converter._dispatch("outdent.after",t,e,n)})),o.subParser("paragraphs",(function(t,e,n){"use strict";for(var r=(t=(t=(t=n.converter._dispatch("paragraphs.before",t,e,n)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),i=[],a=r.length,u=0;u<a;u++){var c=r[u];c.search(/¨(K|G)(\d+)\1/g)>=0?i.push(c):c.search(/\S/)>=0&&(c=(c=o.subParser("spanGamut")(c,e,n)).replace(/^([ \t]*)/g,"<p>"),c+="</p>",i.push(c))}for(a=i.length,u=0;u<a;u++){for(var s="",l=i[u],f=!1;/¨(K|G)(\d+)\1/.test(l);){var h=RegExp.$1,d=RegExp.$2;s=(s="K"===h?n.gHtmlBlocks[d]:f?o.subParser("encodeCode")(n.ghCodeBlocks[d].text,e,n):n.ghCodeBlocks[d].codeblock).replace(/\$/g,"$$$$"),l=l.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,s),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(l)&&(f=!0)}i[u]=l}return t=(t=(t=i.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),n.converter._dispatch("paragraphs.after",t,e,n)})),o.subParser("runExtension",(function(t,e,n,r){"use strict";if(t.filter)e=t.filter(e,r.converter,n);else if(t.regex){var i=t.regex;i instanceof RegExp||(i=new RegExp(i,"g")),e=e.replace(i,t.replace)}return e})),o.subParser("spanGamut",(function(t,e,n){"use strict";return t=n.converter._dispatch("spanGamut.before",t,e,n),t=o.subParser("codeSpans")(t,e,n),t=o.subParser("escapeSpecialCharsWithinTagAttributes")(t,e,n),t=o.subParser("encodeBackslashEscapes")(t,e,n),t=o.subParser("images")(t,e,n),t=o.subParser("anchors")(t,e,n),t=o.subParser("autoLinks")(t,e,n),t=o.subParser("simplifiedAutoLinks")(t,e,n),t=o.subParser("emoji")(t,e,n),t=o.subParser("underline")(t,e,n),t=o.subParser("italicsAndBold")(t,e,n),t=o.subParser("strikethrough")(t,e,n),t=o.subParser("ellipsis")(t,e,n),t=o.subParser("hashHTMLSpans")(t,e,n),t=o.subParser("encodeAmpsAndAngles")(t,e,n),e.simpleLineBreaks?/\n\n¨K/.test(t)||(t=t.replace(/\n+/g,"<br />\n")):t=t.replace(/ +\n/g,"<br />\n"),n.converter._dispatch("spanGamut.after",t,e,n)})),o.subParser("strikethrough",(function(t,e,n){"use strict";return e.strikethrough&&(t=(t=n.converter._dispatch("strikethrough.before",t,e,n)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(t,r){return function(t){return e.simplifiedAutoLink&&(t=o.subParser("simplifiedAutoLinks")(t,e,n)),"<del>"+t+"</del>"}(r)})),t=n.converter._dispatch("strikethrough.after",t,e,n)),t})),o.subParser("stripLinkDefinitions",(function(t,e,n){"use strict";var r=function(t,r,i,a,u,c,s){return r=r.toLowerCase(),i.match(/^data:.+?\/.+?;base64,/)?n.gUrls[r]=i.replace(/\s/g,""):n.gUrls[r]=o.subParser("encodeAmpsAndAngles")(i,e,n),c?c+s:(s&&(n.gTitles[r]=s.replace(/"|'/g,""")),e.parseImgDimensions&&a&&u&&(n.gDimensions[r]={width:a,height:u}),"")};return(t=(t=(t+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,r)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,r)).replace(/¨0/,"")})),o.subParser("tables",(function(t,e,n){"use strict";if(!e.tables)return t;function r(t,r){return"<td"+r+">"+o.subParser("spanGamut")(t,e,n)+"</td>\n"}function i(t){var i,a=t.split("\n");for(i=0;i<a.length;++i)/^ {0,3}\|/.test(a[i])&&(a[i]=a[i].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(a[i])&&(a[i]=a[i].replace(/\|[ \t]*$/,"")),a[i]=o.subParser("codeSpans")(a[i],e,n);var u,c,s,l,f=a[0].split("|").map((function(t){return t.trim()})),h=a[1].split("|").map((function(t){return t.trim()})),d=[],p=[],b=[],g=[];for(a.shift(),a.shift(),i=0;i<a.length;++i)""!==a[i].trim()&&d.push(a[i].split("|").map((function(t){return t.trim()})));if(f.length<h.length)return t;for(i=0;i<h.length;++i)b.push((u=h[i],/^:[ \t]*--*$/.test(u)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(u)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(u)?' style="text-align:center;"':""));for(i=0;i<f.length;++i)o.helper.isUndefined(b[i])&&(b[i]=""),p.push((c=f[i],s=b[i],l=void 0,l="",c=c.trim(),(e.tablesHeaderId||e.tableHeaderId)&&(l=' id="'+c.replace(/ /g,"_").toLowerCase()+'"'),"<th"+l+s+">"+(c=o.subParser("spanGamut")(c,e,n))+"</th>\n"));for(i=0;i<d.length;++i){for(var v=[],m=0;m<p.length;++m)o.helper.isUndefined(d[i][m]),v.push(r(d[i][m],b[m]));g.push(v)}return function(t,e){for(var n="<table>\n<thead>\n<tr>\n",r=t.length,i=0;i<r;++i)n+=t[i];for(n+="</tr>\n</thead>\n<tbody>\n",i=0;i<e.length;++i){n+="<tr>\n";for(var o=0;o<r;++o)n+=e[i][o];n+="</tr>\n"}return n+"</tbody>\n</table>\n"}(p,g)}return t=(t=(t=(t=n.converter._dispatch("tables.before",t,e,n)).replace(/\\(\|)/g,o.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,i)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,i),n.converter._dispatch("tables.after",t,e,n)})),o.subParser("underline",(function(t,e,n){"use strict";return e.underline?(t=n.converter._dispatch("underline.before",t,e,n),t=(t=e.literalMidWordUnderscores?(t=t.replace(/\b___(\S[\s\S]*?)___\b/g,(function(t,e){return"<u>"+e+"</u>"}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(t,e){return"<u>"+e+"</u>"})):(t=t.replace(/___(\S[\s\S]*?)___/g,(function(t,e){return/\S$/.test(e)?"<u>"+e+"</u>":t}))).replace(/__(\S[\s\S]*?)__/g,(function(t,e){return/\S$/.test(e)?"<u>"+e+"</u>":t}))).replace(/(_)/g,o.helper.escapeCharactersCallback),t=n.converter._dispatch("underline.after",t,e,n)):t})),o.subParser("unescapeSpecialChars",(function(t,e,n){"use strict";return t=(t=n.converter._dispatch("unescapeSpecialChars.before",t,e,n)).replace(/¨E(\d+)E/g,(function(t,e){var n=parseInt(e);return String.fromCharCode(n)})),n.converter._dispatch("unescapeSpecialChars.after",t,e,n)})),o.subParser("makeMarkdown.blockquote",(function(t,e){"use strict";var n="";if(t.hasChildNodes())for(var r=t.childNodes,i=r.length,a=0;a<i;++a){var u=o.subParser("makeMarkdown.node")(r[a],e);""!==u&&(n+=u)}return"> "+(n=n.trim()).split("\n").join("\n> ")})),o.subParser("makeMarkdown.codeBlock",(function(t,e){"use strict";var n=t.getAttribute("language"),r=t.getAttribute("precodenum");return"```"+n+"\n"+e.preList[r]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(t){"use strict";return"`"+t.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(t,e){"use strict";var n="";if(t.hasChildNodes()){n+="*";for(var r=t.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],e);n+="*"}return n})),o.subParser("makeMarkdown.header",(function(t,e,n){"use strict";var r=new Array(n+1).join("#"),i="";if(t.hasChildNodes()){i=r+" ";for(var a=t.childNodes,u=a.length,c=0;c<u;++c)i+=o.subParser("makeMarkdown.node")(a[c],e)}return i})),o.subParser("makeMarkdown.hr",(function(){"use strict";return"---"})),o.subParser("makeMarkdown.image",(function(t){"use strict";var e="";return t.hasAttribute("src")&&(e+="+">",t.hasAttribute("width")&&t.hasAttribute("height")&&(e+=" ="+t.getAttribute("width")+"x"+t.getAttribute("height")),t.hasAttribute("title")&&(e+=' "'+t.getAttribute("title")+'"'),e+=")"),e})),o.subParser("makeMarkdown.links",(function(t,e){"use strict";var n="";if(t.hasChildNodes()&&t.hasAttribute("href")){var r=t.childNodes,i=r.length;n="[";for(var a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],e);n+="](",n+="<"+t.getAttribute("href")+">",t.hasAttribute("title")&&(n+=' "'+t.getAttribute("title")+'"'),n+=")"}return n})),o.subParser("makeMarkdown.list",(function(t,e,n){"use strict";var r="";if(!t.hasChildNodes())return"";for(var i=t.childNodes,a=i.length,u=t.getAttribute("start")||1,c=0;c<a;++c)void 0!==i[c].tagName&&"li"===i[c].tagName.toLowerCase()&&(r+=("ol"===n?u.toString()+". ":"- ")+o.subParser("makeMarkdown.listItem")(i[c],e),++u);return(r+="\n\x3c!-- --\x3e\n").trim()})),o.subParser("makeMarkdown.listItem",(function(t,e){"use strict";for(var n="",r=t.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],e);return/\n$/.test(n)?n=n.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):n+="\n",n})),o.subParser("makeMarkdown.node",(function(t,e,n){"use strict";n=n||!1;var r="";if(3===t.nodeType)return o.subParser("makeMarkdown.txt")(t,e);if(8===t.nodeType)return"\x3c!--"+t.data+"--\x3e\n\n";if(1!==t.nodeType)return"";switch(t.tagName.toLowerCase()){case"h1":n||(r=o.subParser("makeMarkdown.header")(t,e,1)+"\n\n");break;case"h2":n||(r=o.subParser("makeMarkdown.header")(t,e,2)+"\n\n");break;case"h3":n||(r=o.subParser("makeMarkdown.header")(t,e,3)+"\n\n");break;case"h4":n||(r=o.subParser("makeMarkdown.header")(t,e,4)+"\n\n");break;case"h5":n||(r=o.subParser("makeMarkdown.header")(t,e,5)+"\n\n");break;case"h6":n||(r=o.subParser("makeMarkdown.header")(t,e,6)+"\n\n");break;case"p":n||(r=o.subParser("makeMarkdown.paragraph")(t,e)+"\n\n");break;case"blockquote":n||(r=o.subParser("makeMarkdown.blockquote")(t,e)+"\n\n");break;case"hr":n||(r=o.subParser("makeMarkdown.hr")(t,e)+"\n\n");break;case"ol":n||(r=o.subParser("makeMarkdown.list")(t,e,"ol")+"\n\n");break;case"ul":n||(r=o.subParser("makeMarkdown.list")(t,e,"ul")+"\n\n");break;case"precode":n||(r=o.subParser("makeMarkdown.codeBlock")(t,e)+"\n\n");break;case"pre":n||(r=o.subParser("makeMarkdown.pre")(t,e)+"\n\n");break;case"table":n||(r=o.subParser("makeMarkdown.table")(t,e)+"\n\n");break;case"code":r=o.subParser("makeMarkdown.codeSpan")(t,e);break;case"em":case"i":r=o.subParser("makeMarkdown.emphasis")(t,e);break;case"strong":case"b":r=o.subParser("makeMarkdown.strong")(t,e);break;case"del":r=o.subParser("makeMarkdown.strikethrough")(t,e);break;case"a":r=o.subParser("makeMarkdown.links")(t,e);break;case"img":r=o.subParser("makeMarkdown.image")(t,e);break;default:r=t.outerHTML+"\n\n"}return r})),o.subParser("makeMarkdown.paragraph",(function(t,e){"use strict";var n="";if(t.hasChildNodes())for(var r=t.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],e);return n.trim()})),o.subParser("makeMarkdown.pre",(function(t,e){"use strict";var n=t.getAttribute("prenum");return"<pre>"+e.preList[n]+"</pre>"})),o.subParser("makeMarkdown.strikethrough",(function(t,e){"use strict";var n="";if(t.hasChildNodes()){n+="~~";for(var r=t.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],e);n+="~~"}return n})),o.subParser("makeMarkdown.strong",(function(t,e){"use strict";var n="";if(t.hasChildNodes()){n+="**";for(var r=t.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],e);n+="**"}return n})),o.subParser("makeMarkdown.table",(function(t,e){"use strict";var n,r,i="",a=[[],[]],u=t.querySelectorAll("thead>tr>th"),c=t.querySelectorAll("tbody>tr");for(n=0;n<u.length;++n){var s=o.subParser("makeMarkdown.tableCell")(u[n],e),l="---";if(u[n].hasAttribute("style"))switch(u[n].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":l=":---";break;case"text-align:right;":l="---:";break;case"text-align:center;":l=":---:"}a[0][n]=s.trim(),a[1][n]=l}for(n=0;n<c.length;++n){var f=a.push([])-1,h=c[n].getElementsByTagName("td");for(r=0;r<u.length;++r){var d=" ";void 0!==h[r]&&(d=o.subParser("makeMarkdown.tableCell")(h[r],e)),a[f].push(d)}}var p=3;for(n=0;n<a.length;++n)for(r=0;r<a[n].length;++r){var b=a[n][r].length;b>p&&(p=b)}for(n=0;n<a.length;++n){for(r=0;r<a[n].length;++r)1===n?":"===a[n][r].slice(-1)?a[n][r]=o.helper.padEnd(a[n][r].slice(-1),p-1,"-")+":":a[n][r]=o.helper.padEnd(a[n][r],p,"-"):a[n][r]=o.helper.padEnd(a[n][r],p);i+="| "+a[n].join(" | ")+" |\n"}return i.trim()})),o.subParser("makeMarkdown.tableCell",(function(t,e){"use strict";var n="";if(!t.hasChildNodes())return"";for(var r=t.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],e,!0);return n.trim()})),o.subParser("makeMarkdown.txt",(function(t){"use strict";var e=t.nodeValue;return e=(e=e.replace(/ +/g," ")).replace(/¨NBSP;/g," "),(e=(e=(e=(e=(e=(e=(e=(e=o.helper.unescapeHTMLEntities(e)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")})),void 0===(r=function(){"use strict";return o}.call(e,n,e,t))||(t.exports=r)}).call(this)},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return r})),n.d(e,"bisect",(function(){return i.b})),n.d(e,"bisectRight",(function(){return i.d})),n.d(e,"bisectLeft",(function(){return i.c})),n.d(e,"ascending",(function(){return i.a})),n.d(e,"bisector",(function(){return i.e})),n.d(e,"cross",(function(){return i.f})),n.d(e,"descending",(function(){return i.g})),n.d(e,"deviation",(function(){return i.h})),n.d(e,"extent",(function(){return i.i})),n.d(e,"histogram",(function(){return i.j})),n.d(e,"thresholdFreedmanDiaconis",(function(){return i.w})),n.d(e,"thresholdScott",(function(){return i.x})),n.d(e,"thresholdSturges",(function(){return i.y})),n.d(e,"max",(function(){return i.k})),n.d(e,"mean",(function(){return i.l})),n.d(e,"median",(function(){return i.m})),n.d(e,"merge",(function(){return i.n})),n.d(e,"min",(function(){return i.o})),n.d(e,"pairs",(function(){return i.p})),n.d(e,"permute",(function(){return i.q})),n.d(e,"quantile",(function(){return i.r})),n.d(e,"range",(function(){return i.s})),n.d(e,"scan",(function(){return i.t})),n.d(e,"shuffle",(function(){return i.u})),n.d(e,"sum",(function(){return i.v})),n.d(e,"ticks",(function(){return i.B})),n.d(e,"tickIncrement",(function(){return i.z})),n.d(e,"tickStep",(function(){return i.A})),n.d(e,"transpose",(function(){return i.C})),n.d(e,"variance",(function(){return i.D})),n.d(e,"zip",(function(){return i.E})),n.d(e,"axisTop",(function(){return d})),n.d(e,"axisRight",(function(){return p})),n.d(e,"axisBottom",(function(){return b})),n.d(e,"axisLeft",(function(){return g})),n.d(e,"brush",(function(){return sn})),n.d(e,"brushX",(function(){return un})),n.d(e,"brushY",(function(){return cn})),n.d(e,"brushSelection",(function(){return an})),n.d(e,"chord",(function(){return mn})),n.d(e,"ribbon",(function(){return Pn})),n.d(e,"nest",(function(){return zn.d})),n.d(e,"set",(function(){return zn.e})),n.d(e,"map",(function(){return zn.c})),n.d(e,"keys",(function(){return zn.b})),n.d(e,"values",(function(){return zn.f})),n.d(e,"entries",(function(){return zn.a})),n.d(e,"color",(function(){return Nn.a})),n.d(e,"rgb",(function(){return Nn.h})),n.d(e,"hsl",(function(){return Nn.e})),n.d(e,"lab",(function(){return Nn.f})),n.d(e,"hcl",(function(){return Nn.d})),n.d(e,"lch",(function(){return Nn.g})),n.d(e,"gray",(function(){return Nn.c})),n.d(e,"cubehelix",(function(){return Nn.b})),n.d(e,"contours",(function(){return Vn})),n.d(e,"contourDensity",(function(){return Xn})),n.d(e,"dispatch",(function(){return Kn.a})),n.d(e,"drag",(function(){return rr})),n.d(e,"dragDisable",(function(){return Pt})),n.d(e,"dragEnable",(function(){return zt})),n.d(e,"dsvFormat",(function(){return sr})),n.d(e,"csvParse",(function(){return fr})),n.d(e,"csvParseRows",(function(){return hr})),n.d(e,"csvFormat",(function(){return dr})),n.d(e,"csvFormatBody",(function(){return pr})),n.d(e,"csvFormatRows",(function(){return br})),n.d(e,"csvFormatRow",(function(){return gr})),n.d(e,"csvFormatValue",(function(){return vr})),n.d(e,"tsvParse",(function(){return yr})),n.d(e,"tsvParseRows",(function(){return _r})),n.d(e,"tsvFormat",(function(){return wr})),n.d(e,"tsvFormatBody",(function(){return xr})),n.d(e,"tsvFormatRows",(function(){return kr})),n.d(e,"tsvFormatRow",(function(){return Sr})),n.d(e,"tsvFormatValue",(function(){return Mr})),n.d(e,"autoType",(function(){return Er})),n.d(e,"easeLinear",(function(){return Cr.y})),n.d(e,"easeQuad",(function(){return Cr.D})),n.d(e,"easeQuadIn",(function(){return Cr.E})),n.d(e,"easeQuadOut",(function(){return Cr.G})),n.d(e,"easeQuadInOut",(function(){return Cr.F})),n.d(e,"easeCubic",(function(){return Cr.m})),n.d(e,"easeCubicIn",(function(){return Cr.n})),n.d(e,"easeCubicOut",(function(){return Cr.p})),n.d(e,"easeCubicInOut",(function(){return Cr.o})),n.d(e,"easePoly",(function(){return Cr.z})),n.d(e,"easePolyIn",(function(){return Cr.A})),n.d(e,"easePolyOut",(function(){return Cr.C})),n.d(e,"easePolyInOut",(function(){return Cr.B})),n.d(e,"easeSin",(function(){return Cr.H})),n.d(e,"easeSinIn",(function(){return Cr.I})),n.d(e,"easeSinOut",(function(){return Cr.K})),n.d(e,"easeSinInOut",(function(){return Cr.J})),n.d(e,"easeExp",(function(){return Cr.u})),n.d(e,"easeExpIn",(function(){return Cr.v})),n.d(e,"easeExpOut",(function(){return Cr.x})),n.d(e,"easeExpInOut",(function(){return Cr.w})),n.d(e,"easeCircle",(function(){return Cr.i})),n.d(e,"easeCircleIn",(function(){return Cr.j})),n.d(e,"easeCircleOut",(function(){return Cr.l})),n.d(e,"easeCircleInOut",(function(){return Cr.k})),n.d(e,"easeBounce",(function(){return Cr.e})),n.d(e,"easeBounceIn",(function(){return Cr.f})),n.d(e,"easeBounceOut",(function(){return Cr.h})),n.d(e,"easeBounceInOut",(function(){return Cr.g})),n.d(e,"easeBack",(function(){return Cr.a})),n.d(e,"easeBackIn",(function(){return Cr.b})),n.d(e,"easeBackOut",(function(){return Cr.d})),n.d(e,"easeBackInOut",(function(){return Cr.c})),n.d(e,"easeElastic",(function(){return Cr.q})),n.d(e,"easeElasticIn",(function(){return Cr.r})),n.d(e,"easeElasticOut",(function(){return Cr.t})),n.d(e,"easeElasticInOut",(function(){return Cr.s})),n.d(e,"blob",(function(){return jr})),n.d(e,"buffer",(function(){return Pr})),n.d(e,"dsv",(function(){return Rr})),n.d(e,"csv",(function(){return Dr})),n.d(e,"tsv",(function(){return Lr})),n.d(e,"image",(function(){return qr})),n.d(e,"json",(function(){return Ur})),n.d(e,"text",(function(){return Nr})),n.d(e,"xml",(function(){return Vr})),n.d(e,"html",(function(){return Hr})),n.d(e,"svg",(function(){return Wr})),n.d(e,"forceCenter",(function(){return Gr})),n.d(e,"forceCollide",(function(){return Zr})),n.d(e,"forceLink",(function(){return ei})),n.d(e,"forceManyBody",(function(){return ai})),n.d(e,"forceRadial",(function(){return ui})),n.d(e,"forceSimulation",(function(){return oi})),n.d(e,"forceX",(function(){return ci})),n.d(e,"forceY",(function(){return si})),n.d(e,"formatDefaultLocale",(function(){return li.c})),n.d(e,"format",(function(){return li.b})),n.d(e,"formatPrefix",(function(){return li.e})),n.d(e,"formatLocale",(function(){return li.d})),n.d(e,"formatSpecifier",(function(){return li.f})),n.d(e,"FormatSpecifier",(function(){return li.a})),n.d(e,"precisionFixed",(function(){return li.g})),n.d(e,"precisionPrefix",(function(){return li.h})),n.d(e,"precisionRound",(function(){return li.i})),n.d(e,"geoArea",(function(){return eo})),n.d(e,"geoBounds",(function(){return Yo})),n.d(e,"geoCentroid",(function(){return aa})),n.d(e,"geoCircle",(function(){return va})),n.d(e,"geoClipAntimeridian",(function(){return Oa})),n.d(e,"geoClipCircle",(function(){return ja})),n.d(e,"geoClipExtent",(function(){return Ia})),n.d(e,"geoClipRectangle",(function(){return Aa})),n.d(e,"geoContains",(function(){return Ja})),n.d(e,"geoDistance",(function(){return Ha})),n.d(e,"geoGraticule",(function(){return nu})),n.d(e,"geoGraticule10",(function(){return ru})),n.d(e,"geoInterpolate",(function(){return cu})),n.d(e,"geoLength",(function(){return Ua})),n.d(e,"geoPath",(function(){return ac})),n.d(e,"geoAlbers",(function(){return Mc})),n.d(e,"geoAlbersUsa",(function(){return Ec})),n.d(e,"geoAzimuthalEqualArea",(function(){return jc})),n.d(e,"geoAzimuthalEqualAreaRaw",(function(){return Oc})),n.d(e,"geoAzimuthalEquidistant",(function(){return Pc})),n.d(e,"geoAzimuthalEquidistantRaw",(function(){return Ac})),n.d(e,"geoConicConformal",(function(){return Lc})),n.d(e,"geoConicConformalRaw",(function(){return Dc})),n.d(e,"geoConicEqualArea",(function(){return Sc})),n.d(e,"geoConicEqualAreaRaw",(function(){return kc})),n.d(e,"geoConicEquidistant",(function(){return Bc})),n.d(e,"geoConicEquidistantRaw",(function(){return Uc})),n.d(e,"geoEqualEarth",(function(){return Xc})),n.d(e,"geoEqualEarthRaw",(function(){return Yc})),n.d(e,"geoEquirectangular",(function(){return Fc})),n.d(e,"geoEquirectangularRaw",(function(){return qc})),n.d(e,"geoGnomonic",(function(){return Qc})),n.d(e,"geoGnomonicRaw",(function(){return Kc})),n.d(e,"geoIdentity",(function(){return Zc})),n.d(e,"geoProjection",(function(){return _c})),n.d(e,"geoProjectionMutator",(function(){return wc})),n.d(e,"geoMercator",(function(){return Nc})),n.d(e,"geoMercatorRaw",(function(){return zc})),n.d(e,"geoNaturalEarth1",(function(){return ts})),n.d(e,"geoNaturalEarth1Raw",(function(){return Jc})),n.d(e,"geoOrthographic",(function(){return ns})),n.d(e,"geoOrthographicRaw",(function(){return es})),n.d(e,"geoStereographic",(function(){return is})),n.d(e,"geoStereographicRaw",(function(){return rs})),n.d(e,"geoTransverseMercator",(function(){return as})),n.d(e,"geoTransverseMercatorRaw",(function(){return os})),n.d(e,"geoRotation",(function(){return pa})),n.d(e,"geoStream",(function(){return $i})),n.d(e,"geoTransform",(function(){return uc})),n.d(e,"cluster",(function(){return ls})),n.d(e,"hierarchy",(function(){return hs})),n.d(e,"pack",(function(){return Ds})),n.d(e,"packSiblings",(function(){return As})),n.d(e,"packEnclose",(function(){return ms})),n.d(e,"partition",(function(){return Vs})),n.d(e,"stratify",(function(){return Ys})),n.d(e,"tree",(function(){return el})),n.d(e,"treemap",(function(){return al})),n.d(e,"treemapBinary",(function(){return ul})),n.d(e,"treemapDice",(function(){return Bs})),n.d(e,"treemapSlice",(function(){return nl})),n.d(e,"treemapSliceDice",(function(){return cl})),n.d(e,"treemapSquarify",(function(){return ol})),n.d(e,"treemapResquarify",(function(){return sl})),n.d(e,"interpolate",(function(){return ll.a})),n.d(e,"interpolateArray",(function(){return ll.b})),n.d(e,"interpolateBasis",(function(){return ll.c})),n.d(e,"interpolateBasisClosed",(function(){return ll.d})),n.d(e,"interpolateDate",(function(){return ll.g})),n.d(e,"interpolateDiscrete",(function(){return ll.h})),n.d(e,"interpolateHue",(function(){return ll.m})),n.d(e,"interpolateNumber",(function(){return ll.o})),n.d(e,"interpolateNumberArray",(function(){return ll.p})),n.d(e,"interpolateObject",(function(){return ll.q})),n.d(e,"interpolateRound",(function(){return ll.u})),n.d(e,"interpolateString",(function(){return ll.v})),n.d(e,"interpolateTransformCss",(function(){return ll.w})),n.d(e,"interpolateTransformSvg",(function(){return ll.x})),n.d(e,"interpolateZoom",(function(){return ll.y})),n.d(e,"interpolateRgb",(function(){return ll.r})),n.d(e,"interpolateRgbBasis",(function(){return ll.s})),n.d(e,"interpolateRgbBasisClosed",(function(){return ll.t})),n.d(e,"interpolateHsl",(function(){return ll.k})),n.d(e,"interpolateHslLong",(function(){return ll.l})),n.d(e,"interpolateLab",(function(){return ll.n})),n.d(e,"interpolateHcl",(function(){return ll.i})),n.d(e,"interpolateHclLong",(function(){return ll.j})),n.d(e,"interpolateCubehelix",(function(){return ll.e})),n.d(e,"interpolateCubehelixLong",(function(){return ll.f})),n.d(e,"piecewise",(function(){return ll.z})),n.d(e,"quantize",(function(){return ll.A})),n.d(e,"path",(function(){return En})),n.d(e,"polygonArea",(function(){return fl})),n.d(e,"polygonCentroid",(function(){return hl})),n.d(e,"polygonHull",(function(){return bl})),n.d(e,"polygonContains",(function(){return gl})),n.d(e,"polygonLength",(function(){return vl})),n.d(e,"quadtree",(function(){return ml.a})),n.d(e,"randomUniform",(function(){return _l})),n.d(e,"randomNormal",(function(){return wl})),n.d(e,"randomLogNormal",(function(){return xl})),n.d(e,"randomBates",(function(){return Sl})),n.d(e,"randomIrwinHall",(function(){return kl})),n.d(e,"randomExponential",(function(){return Ml})),n.d(e,"scaleBand",(function(){return El.a})),n.d(e,"scalePoint",(function(){return El.l})),n.d(e,"scaleIdentity",(function(){return El.g})),n.d(e,"scaleLinear",(function(){return El.i})),n.d(e,"scaleLog",(function(){return El.j})),n.d(e,"scaleSymlog",(function(){return El.w})),n.d(e,"scaleOrdinal",(function(){return El.k})),n.d(e,"scaleImplicit",(function(){return El.h})),n.d(e,"scalePow",(function(){return El.m})),n.d(e,"scaleSqrt",(function(){return El.v})),n.d(e,"scaleQuantile",(function(){return El.n})),n.d(e,"scaleQuantize",(function(){return El.o})),n.d(e,"scaleThreshold",(function(){return El.x})),n.d(e,"scaleTime",(function(){return El.y})),n.d(e,"scaleUtc",(function(){return El.z})),n.d(e,"scaleSequential",(function(){return El.p})),n.d(e,"scaleSequentialLog",(function(){return El.q})),n.d(e,"scaleSequentialPow",(function(){return El.r})),n.d(e,"scaleSequentialSqrt",(function(){return El.t})),n.d(e,"scaleSequentialSymlog",(function(){return El.u})),n.d(e,"scaleSequentialQuantile",(function(){return El.s})),n.d(e,"scaleDiverging",(function(){return El.b})),n.d(e,"scaleDivergingLog",(function(){return El.c})),n.d(e,"scaleDivergingPow",(function(){return El.d})),n.d(e,"scaleDivergingSqrt",(function(){return El.e})),n.d(e,"scaleDivergingSymlog",(function(){return El.f})),n.d(e,"tickFormat",(function(){return El.A})),n.d(e,"schemeCategory10",(function(){return Tl.R})),n.d(e,"schemeAccent",(function(){return Tl.M})),n.d(e,"schemeDark2",(function(){return Tl.S})),n.d(e,"schemePaired",(function(){return Tl.Z})),n.d(e,"schemePastel1",(function(){return Tl.ab})),n.d(e,"schemePastel2",(function(){return Tl.bb})),n.d(e,"schemeSet1",(function(){return Tl.ob})),n.d(e,"schemeSet2",(function(){return Tl.pb})),n.d(e,"schemeSet3",(function(){return Tl.qb})),n.d(e,"schemeTableau10",(function(){return Tl.sb})),n.d(e,"interpolateBrBG",(function(){return Tl.b})),n.d(e,"schemeBrBG",(function(){return Tl.O})),n.d(e,"interpolatePRGn",(function(){return Tl.o})),n.d(e,"schemePRGn",(function(){return Tl.Y})),n.d(e,"interpolatePiYG",(function(){return Tl.p})),n.d(e,"schemePiYG",(function(){return Tl.cb})),n.d(e,"interpolatePuOr",(function(){return Tl.t})),n.d(e,"schemePuOr",(function(){return Tl.fb})),n.d(e,"interpolateRdBu",(function(){return Tl.x})),n.d(e,"schemeRdBu",(function(){return Tl.ib})),n.d(e,"interpolateRdGy",(function(){return Tl.y})),n.d(e,"schemeRdGy",(function(){return Tl.jb})),n.d(e,"interpolateRdYlBu",(function(){return Tl.A})),n.d(e,"schemeRdYlBu",(function(){return Tl.lb})),n.d(e,"interpolateRdYlGn",(function(){return Tl.B})),n.d(e,"schemeRdYlGn",(function(){return Tl.mb})),n.d(e,"interpolateSpectral",(function(){return Tl.E})),n.d(e,"schemeSpectral",(function(){return Tl.rb})),n.d(e,"interpolateBuGn",(function(){return Tl.c})),n.d(e,"schemeBuGn",(function(){return Tl.P})),n.d(e,"interpolateBuPu",(function(){return Tl.d})),n.d(e,"schemeBuPu",(function(){return Tl.Q})),n.d(e,"interpolateGnBu",(function(){return Tl.h})),n.d(e,"schemeGnBu",(function(){return Tl.T})),n.d(e,"interpolateOrRd",(function(){return Tl.m})),n.d(e,"schemeOrRd",(function(){return Tl.W})),n.d(e,"interpolatePuBuGn",(function(){return Tl.s})),n.d(e,"schemePuBuGn",(function(){return Tl.eb})),n.d(e,"interpolatePuBu",(function(){return Tl.r})),n.d(e,"schemePuBu",(function(){return Tl.db})),n.d(e,"interpolatePuRd",(function(){return Tl.u})),n.d(e,"schemePuRd",(function(){return Tl.gb})),n.d(e,"interpolateRdPu",(function(){return Tl.z})),n.d(e,"schemeRdPu",(function(){return Tl.kb})),n.d(e,"interpolateYlGnBu",(function(){return Tl.J})),n.d(e,"schemeYlGnBu",(function(){return Tl.ub})),n.d(e,"interpolateYlGn",(function(){return Tl.I})),n.d(e,"schemeYlGn",(function(){return Tl.tb})),n.d(e,"interpolateYlOrBr",(function(){return Tl.K})),n.d(e,"schemeYlOrBr",(function(){return Tl.vb})),n.d(e,"interpolateYlOrRd",(function(){return Tl.L})),n.d(e,"schemeYlOrRd",(function(){return Tl.wb})),n.d(e,"interpolateBlues",(function(){return Tl.a})),n.d(e,"schemeBlues",(function(){return Tl.N})),n.d(e,"interpolateGreens",(function(){return Tl.i})),n.d(e,"schemeGreens",(function(){return Tl.U})),n.d(e,"interpolateGreys",(function(){return Tl.j})),n.d(e,"schemeGreys",(function(){return Tl.V})),n.d(e,"interpolatePurples",(function(){return Tl.v})),n.d(e,"schemePurples",(function(){return Tl.hb})),n.d(e,"interpolateReds",(function(){return Tl.C})),n.d(e,"schemeReds",(function(){return Tl.nb})),n.d(e,"interpolateOranges",(function(){return Tl.n})),n.d(e,"schemeOranges",(function(){return Tl.X})),n.d(e,"interpolateCividis",(function(){return Tl.e})),n.d(e,"interpolateCubehelixDefault",(function(){return Tl.g})),n.d(e,"interpolateRainbow",(function(){return Tl.w})),n.d(e,"interpolateWarm",(function(){return Tl.H})),n.d(e,"interpolateCool",(function(){return Tl.f})),n.d(e,"interpolateSinebow",(function(){return Tl.D})),n.d(e,"interpolateTurbo",(function(){return Tl.F})),n.d(e,"interpolateViridis",(function(){return Tl.G})),n.d(e,"interpolateMagma",(function(){return Tl.l})),n.d(e,"interpolateInferno",(function(){return Tl.k})),n.d(e,"interpolatePlasma",(function(){return Tl.q})),n.d(e,"create",(function(){return Cl})),n.d(e,"creator",(function(){return st})),n.d(e,"local",(function(){return jl})),n.d(e,"matcher",(function(){return x})),n.d(e,"mouse",(function(){return Lt})),n.d(e,"namespace",(function(){return j})),n.d(e,"namespaces",(function(){return O})),n.d(e,"clientPoint",(function(){return Rt})),n.d(e,"select",(function(){return Ot})),n.d(e,"selectAll",(function(){return Pl})),n.d(e,"selection",(function(){return Ct})),n.d(e,"selector",(function(){return y})),n.d(e,"selectorAll",(function(){return w})),n.d(e,"style",(function(){return U})),n.d(e,"touch",(function(){return Dt})),n.d(e,"touches",(function(){return zl})),n.d(e,"window",(function(){return D})),n.d(e,"event",(function(){return bt})),n.d(e,"customEvent",(function(){return wt})),n.d(e,"arc",(function(){return tf})),n.d(e,"area",(function(){return uf})),n.d(e,"line",(function(){return af})),n.d(e,"pie",(function(){return lf})),n.d(e,"areaRadial",(function(){return gf})),n.d(e,"radialArea",(function(){return gf})),n.d(e,"lineRadial",(function(){return bf})),n.d(e,"radialLine",(function(){return bf})),n.d(e,"pointRadial",(function(){return vf})),n.d(e,"linkHorizontal",(function(){return Mf})),n.d(e,"linkVertical",(function(){return Ef})),n.d(e,"linkRadial",(function(){return Tf})),n.d(e,"symbol",(function(){return Wf})),n.d(e,"symbols",(function(){return Hf})),n.d(e,"symbolCircle",(function(){return Cf})),n.d(e,"symbolCross",(function(){return Of})),n.d(e,"symbolDiamond",(function(){return Pf})),n.d(e,"symbolSquare",(function(){return Df})),n.d(e,"symbolStar",(function(){return Rf})),n.d(e,"symbolTriangle",(function(){return qf})),n.d(e,"symbolWye",(function(){return Vf})),n.d(e,"curveBasisClosed",(function(){return Qf})),n.d(e,"curveBasisOpen",(function(){return Jf})),n.d(e,"curveBasis",(function(){return Xf})),n.d(e,"curveBundle",(function(){return eh})),n.d(e,"curveCardinalClosed",(function(){return ah})),n.d(e,"curveCardinalOpen",(function(){return ch})),n.d(e,"curveCardinal",(function(){return ih})),n.d(e,"curveCatmullRomClosed",(function(){return dh})),n.d(e,"curveCatmullRomOpen",(function(){return bh})),n.d(e,"curveCatmullRom",(function(){return fh})),n.d(e,"curveLinearClosed",(function(){return vh})),n.d(e,"curveLinear",(function(){return nf})),n.d(e,"curveMonotoneX",(function(){return Mh})),n.d(e,"curveMonotoneY",(function(){return Eh})),n.d(e,"curveNatural",(function(){return Oh})),n.d(e,"curveStep",(function(){return Ah})),n.d(e,"curveStepAfter",(function(){return zh})),n.d(e,"curveStepBefore",(function(){return Ph})),n.d(e,"stack",(function(){return Dh})),n.d(e,"stackOffsetExpand",(function(){return Lh})),n.d(e,"stackOffsetDiverging",(function(){return qh})),n.d(e,"stackOffsetNone",(function(){return Nh})),n.d(e,"stackOffsetSilhouette",(function(){return Fh})),n.d(e,"stackOffsetWiggle",(function(){return Uh})),n.d(e,"stackOrderAppearance",(function(){return Bh})),n.d(e,"stackOrderAscending",(function(){return Hh})),n.d(e,"stackOrderDescending",(function(){return Gh})),n.d(e,"stackOrderInsideOut",(function(){return $h})),n.d(e,"stackOrderNone",(function(){return Ih})),n.d(e,"stackOrderReverse",(function(){return Yh})),n.d(e,"timeInterval",(function(){return Xh.g})),n.d(e,"timeMillisecond",(function(){return Xh.h})),n.d(e,"timeMilliseconds",(function(){return Xh.i})),n.d(e,"utcMillisecond",(function(){return Xh.L})),n.d(e,"utcMilliseconds",(function(){return Xh.M})),n.d(e,"timeSecond",(function(){return Xh.r})),n.d(e,"timeSeconds",(function(){return Xh.s})),n.d(e,"utcSecond",(function(){return Xh.V})),n.d(e,"utcSeconds",(function(){return Xh.W})),n.d(e,"timeMinute",(function(){return Xh.j})),n.d(e,"timeMinutes",(function(){return Xh.k})),n.d(e,"timeHour",(function(){return Xh.e})),n.d(e,"timeHours",(function(){return Xh.f})),n.d(e,"timeDay",(function(){return Xh.a})),n.d(e,"timeDays",(function(){return Xh.b})),n.d(e,"timeWeek",(function(){return Xh.B})),n.d(e,"timeWeeks",(function(){return Xh.C})),n.d(e,"timeSunday",(function(){return Xh.t})),n.d(e,"timeSundays",(function(){return Xh.u})),n.d(e,"timeMonday",(function(){return Xh.l})),n.d(e,"timeMondays",(function(){return Xh.m})),n.d(e,"timeTuesday",(function(){return Xh.x})),n.d(e,"timeTuesdays",(function(){return Xh.y})),n.d(e,"timeWednesday",(function(){return Xh.z})),n.d(e,"timeWednesdays",(function(){return Xh.A})),n.d(e,"timeThursday",(function(){return Xh.v})),n.d(e,"timeThursdays",(function(){return Xh.w})),n.d(e,"timeFriday",(function(){return Xh.c})),n.d(e,"timeFridays",(function(){return Xh.d})),n.d(e,"timeSaturday",(function(){return Xh.p})),n.d(e,"timeSaturdays",(function(){return Xh.q})),n.d(e,"timeMonth",(function(){return Xh.n})),n.d(e,"timeMonths",(function(){return Xh.o})),n.d(e,"timeYear",(function(){return Xh.D})),n.d(e,"timeYears",(function(){return Xh.E})),n.d(e,"utcMinute",(function(){return Xh.N})),n.d(e,"utcMinutes",(function(){return Xh.O})),n.d(e,"utcHour",(function(){return Xh.J})),n.d(e,"utcHours",(function(){return Xh.K})),n.d(e,"utcDay",(function(){return Xh.F})),n.d(e,"utcDays",(function(){return Xh.G})),n.d(e,"utcWeek",(function(){return Xh.fb})),n.d(e,"utcWeeks",(function(){return Xh.gb})),n.d(e,"utcSunday",(function(){return Xh.X})),n.d(e,"utcSundays",(function(){return Xh.Y})),n.d(e,"utcMonday",(function(){return Xh.P})),n.d(e,"utcMondays",(function(){return Xh.Q})),n.d(e,"utcTuesday",(function(){return Xh.bb})),n.d(e,"utcTuesdays",(function(){return Xh.cb})),n.d(e,"utcWednesday",(function(){return Xh.db})),n.d(e,"utcWednesdays",(function(){return Xh.eb})),n.d(e,"utcThursday",(function(){return Xh.Z})),n.d(e,"utcThursdays",(function(){return Xh.ab})),n.d(e,"utcFriday",(function(){return Xh.H})),n.d(e,"utcFridays",(function(){return Xh.I})),n.d(e,"utcSaturday",(function(){return Xh.T})),n.d(e,"utcSaturdays",(function(){return Xh.U})),n.d(e,"utcMonth",(function(){return Xh.R})),n.d(e,"utcMonths",(function(){return Xh.S})),n.d(e,"utcYear",(function(){return Xh.hb})),n.d(e,"utcYears",(function(){return Xh.ib})),n.d(e,"timeFormatDefaultLocale",(function(){return Kh.d})),n.d(e,"timeFormat",(function(){return Kh.c})),n.d(e,"timeParse",(function(){return Kh.f})),n.d(e,"utcFormat",(function(){return Kh.g})),n.d(e,"utcParse",(function(){return Kh.h})),n.d(e,"timeFormatLocale",(function(){return Kh.e})),n.d(e,"isoFormat",(function(){return Kh.a})),n.d(e,"isoParse",(function(){return Kh.b})),n.d(e,"now",(function(){return Qh.b})),n.d(e,"timer",(function(){return Qh.d})),n.d(e,"timerFlush",(function(){return Qh.e})),n.d(e,"timeout",(function(){return Qh.c})),n.d(e,"interval",(function(){return Qh.a})),n.d(e,"transition",(function(){return Te})),n.d(e,"active",(function(){return ze})),n.d(e,"interrupt",(function(){return $t})),n.d(e,"voronoi",(function(){return Rd})),n.d(e,"zoom",(function(){return Qd})),n.d(e,"zoomTransform",(function(){return Bd})),n.d(e,"zoomIdentity",(function(){return Ud}));var r="5.16.0",i=n(6),o=Array.prototype.slice,a=function(t){return t};function u(t){return"translate("+(t+.5)+",0)"}function c(t){return"translate(0,"+(t+.5)+")"}function s(t){return function(e){return+t(e)}}function l(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function f(){return!this.__axis}function h(t,e){var n=[],r=null,i=null,h=6,d=6,p=3,b=1===t||4===t?-1:1,g=4===t||2===t?"x":"y",v=1===t||3===t?u:c;function m(o){var u=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,c=null==i?e.tickFormat?e.tickFormat.apply(e,n):a:i,m=Math.max(h,0)+p,y=e.range(),_=+y[0]+.5,w=+y[y.length-1]+.5,x=(e.bandwidth?l:s)(e.copy()),k=o.selection?o.selection():o,S=k.selectAll(".domain").data([null]),M=k.selectAll(".tick").data(u,e).order(),E=M.exit(),T=M.enter().append("g").attr("class","tick"),C=M.select("line"),O=M.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),M=M.merge(T),C=C.merge(T.append("line").attr("stroke","currentColor").attr(g+"2",b*h)),O=O.merge(T.append("text").attr("fill","currentColor").attr(g,b*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),o!==k&&(S=S.transition(o),M=M.transition(o),C=C.transition(o),O=O.transition(o),E=E.transition(o).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=x(t))?v(t):this.getAttribute("transform")})),T.attr("opacity",1e-6).attr("transform",(function(t){var e=this.parentNode.__axis;return v(e&&isFinite(e=e(t))?e:x(t))}))),E.remove(),S.attr("d",4===t||2==t?d?"M"+b*d+","+_+"H0.5V"+w+"H"+b*d:"M0.5,"+_+"V"+w:d?"M"+_+","+b*d+"V0.5H"+w+"V"+b*d:"M"+_+",0.5H"+w),M.attr("opacity",1).attr("transform",(function(t){return v(x(t))})),C.attr(g+"2",b*h),O.attr(g,b*m).text(c),k.filter(f).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),k.each((function(){this.__axis=x}))}return m.scale=function(t){return arguments.length?(e=t,m):e},m.ticks=function(){return n=o.call(arguments),m},m.tickArguments=function(t){return arguments.length?(n=null==t?[]:o.call(t),m):n.slice()},m.tickValues=function(t){return arguments.length?(r=null==t?null:o.call(t),m):r&&r.slice()},m.tickFormat=function(t){return arguments.length?(i=t,m):i},m.tickSize=function(t){return arguments.length?(h=d=+t,m):h},m.tickSizeInner=function(t){return arguments.length?(h=+t,m):h},m.tickSizeOuter=function(t){return arguments.length?(d=+t,m):d},m.tickPadding=function(t){return arguments.length?(p=+t,m):p},m}function d(t){return h(1,t)}function p(t){return h(2,t)}function b(t){return h(3,t)}function g(t){return h(4,t)}var v=n(143);function m(){}var y=function(t){return null==t?m:function(){return this.querySelector(t)}};function _(){return[]}var w=function(t){return null==t?_:function(){return this.querySelectorAll(t)}},x=function(t){return function(){return this.matches(t)}},k=function(t){return new Array(t.length)};function S(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function M(t,e,n,r,i,o){for(var a,u=0,c=e.length,s=o.length;u<s;++u)(a=e[u])?(a.__data__=o[u],r[u]=a):n[u]=new S(t,o[u]);for(;u<c;++u)(a=e[u])&&(i[u]=a)}function E(t,e,n,r,i,o,a){var u,c,s,l={},f=e.length,h=o.length,d=new Array(f);for(u=0;u<f;++u)(c=e[u])&&(d[u]=s="$"+a.call(c,c.__data__,u,e),s in l?i[u]=c:l[s]=c);for(u=0;u<h;++u)(c=l[s="$"+a.call(t,o[u],u,o)])?(r[u]=c,c.__data__=o[u],l[s]=null):n[u]=new S(t,o[u]);for(u=0;u<f;++u)(c=e[u])&&l[d[u]]===c&&(i[u]=c)}function T(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}S.prototype={constructor:S,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var C="http://www.w3.org/1999/xhtml",O={svg:"http://www.w3.org/2000/svg",xhtml:C,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},j=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),O.hasOwnProperty(e)?{space:O[e],local:t}:t};function A(t){return function(){this.removeAttribute(t)}}function P(t){return function(){this.removeAttributeNS(t.space,t.local)}}function z(t,e){return function(){this.setAttribute(t,e)}}function N(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function I(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function R(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var D=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function L(t){return function(){this.style.removeProperty(t)}}function q(t,e,n){return function(){this.style.setProperty(t,e,n)}}function F(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function U(t,e){return t.style.getPropertyValue(e)||D(t).getComputedStyle(t,null).getPropertyValue(e)}function B(t){return function(){delete this[t]}}function V(t,e){return function(){this[t]=e}}function H(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function W(t){return t.trim().split(/^|\s+/)}function G(t){return t.classList||new $(t)}function $(t){this._node=t,this._names=W(t.getAttribute("class")||"")}function Y(t,e){for(var n=G(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function X(t,e){for(var n=G(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function K(t){return function(){Y(this,t)}}function Q(t){return function(){X(this,t)}}function Z(t,e){return function(){(e.apply(this,arguments)?Y:X)(this,t)}}function J(){this.textContent=""}function tt(t){return function(){this.textContent=t}}function et(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function nt(){this.innerHTML=""}function rt(t){return function(){this.innerHTML=t}}function it(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function ot(){this.nextSibling&&this.parentNode.appendChild(this)}function at(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ut(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===C&&e.documentElement.namespaceURI===C?e.createElement(t):e.createElementNS(n,t)}}function ct(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}$.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var st=function(t){var e=j(t);return(e.local?ct:ut)(e)};function lt(){return null}function ft(){var t=this.parentNode;t&&t.removeChild(this)}function ht(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function dt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var pt={},bt=null;function gt(t,e,n){return t=vt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function vt(t,e,n){return function(r){var i=bt;bt=r;try{t.call(this,this.__data__,e,n)}finally{bt=i}}}function mt(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function yt(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function _t(t,e,n){var r=pt.hasOwnProperty(t.type)?gt:vt;return function(i,o,a){var u,c=this.__on,s=r(e,o,a);if(c)for(var l=0,f=c.length;l<f;++l)if((u=c[l]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=s,u.capture=n),void(u.value=e);this.addEventListener(t.type,s,n),u={type:t.type,name:t.name,value:e,listener:s,capture:n},c?c.push(u):this.__on=[u]}}function wt(t,e,n,r){var i=bt;t.sourceEvent=bt,bt=t;try{return e.apply(n,r)}finally{bt=i}}function xt(t,e,n){var r=D(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function kt(t,e){return function(){return xt(this,t,e)}}function St(t,e){return function(){return xt(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(pt={mouseenter:"mouseover",mouseleave:"mouseout"}));var Mt=[null];function Et(t,e){this._groups=t,this._parents=e}function Tt(){return new Et([[document.documentElement]],Mt)}Et.prototype=Tt.prototype={constructor:Et,select:function(t){"function"!=typeof t&&(t=y(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,u=e[i],c=u.length,s=r[i]=new Array(c),l=0;l<c;++l)(o=u[l])&&(a=t.call(o,o.__data__,l,u))&&("__data__"in o&&(a.__data__=o.__data__),s[l]=a);return new Et(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=w(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,u=e[o],c=u.length,s=0;s<c;++s)(a=u[s])&&(r.push(t.call(a,a.__data__,s,u)),i.push(a));return new Et(r,i)},filter:function(t){"function"!=typeof t&&(t=x(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new Et(r,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),l=-1,this.each((function(t){p[++l]=t})),p;var n,r=e?E:M,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,u=new Array(a),c=new Array(a),s=new Array(a),l=0;l<a;++l){var f=i[l],h=o[l],d=h.length,p=t.call(f,f&&f.__data__,l,i),b=p.length,g=c[l]=new Array(b),v=u[l]=new Array(b);r(f,h,g,v,s[l]=new Array(d),p,e);for(var m,y,_=0,w=0;_<b;++_)if(m=g[_]){for(_>=w&&(w=_+1);!(y=v[w])&&++w<b;);m._next=y||null}}return(u=new Et(u,i))._enter=c,u._exit=s,u},enter:function(){return new Et(this._enter||this._groups.map(k),this._parents)},exit:function(){return new Et(this._exit||this._groups.map(k),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=e[u],l=n[u],f=s.length,h=a[u]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;u<r;++u)a[u]=e[u];return new Et(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=T);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,u=n[o],c=u.length,s=i[o]=new Array(c),l=0;l<c;++l)(a=u[l])&&(s[l]=a);s.sort(e)}return new Et(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=j(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?P:A:"function"==typeof e?n.local?R:I:n.local?N:z)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?L:"function"==typeof e?F:q)(t,e,null==n?"":n)):U(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?B:"function"==typeof e?H:V)(t,e)):this.node()[t]},classed:function(t,e){var n=W(t+"");if(arguments.length<2){for(var r=G(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Z:e?K:Q)(n,e))},text:function(t){return arguments.length?this.each(null==t?J:("function"==typeof t?et:tt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?nt:("function"==typeof t?it:rt)(t)):this.node().innerHTML},raise:function(){return this.each(ot)},lower:function(){return this.each(at)},append:function(t){var e="function"==typeof t?t:st(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:st(t),r=null==e?lt:"function"==typeof e?e:y(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(ft)},clone:function(t){return this.select(t?dt:ht)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=mt(t+""),a=o.length;if(!(arguments.length<2)){for(u=e?_t:yt,null==n&&(n=!1),r=0;r<a;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var c,s=0,l=u.length;s<l;++s)for(r=0,c=u[s];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?St:kt)(t,e))}};var Ct=Tt,Ot=function(t){return"string"==typeof t?new Et([[document.querySelector(t)]],[document.documentElement]):new Et([[t]],Mt)};function jt(){bt.stopImmediatePropagation()}var At=function(){bt.preventDefault(),bt.stopImmediatePropagation()},Pt=function(t){var e=t.document.documentElement,n=Ot(t).on("dragstart.drag",At,!0);"onselectstart"in e?n.on("selectstart.drag",At,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function zt(t,e){var n=t.document.documentElement,r=Ot(t).on("dragstart.drag",null);e&&(r.on("click.drag",At,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Nt=n(76),It=function(){for(var t,e=bt;t=e.sourceEvent;)e=t;return e},Rt=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},Dt=function(t,e,n){arguments.length<3&&(n=e,e=It().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return Rt(t,r);return null},Lt=function(t){var e=It();return e.changedTouches&&(e=e.changedTouches[0]),Rt(t,e)},qt=n(50),Ft=n(144),Ut=Object(v.a)("start","end","cancel","interrupt"),Bt=[],Vt=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(c){var s,l,f,h;if(1!==n.state)return u();for(s in i)if((h=i[s]).name===n.name){if(3===h.state)return Object(Ft.a)(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+s<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[s])}if(Object(Ft.a)((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(c))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),s=0,l=-1;s<f;++s)(h=n.tween[s].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=h);r.length=l+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Object(qt.c)((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:Ut,tween:Bt,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function Ht(t,e){var n=Gt(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Wt(t,e){var n=Gt(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Gt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var $t=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},Yt=n(138);function Xt(t,e){var n,r;return function(){var i=Wt(this,t),o=i.tween;if(o!==n)for(var a=0,u=(r=n=o).length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function Kt(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Wt(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:e,value:n},c=0,s=i.length;c<s;++c)if(i[c].name===e){i[c]=u;break}c===s&&i.push(u)}o.tween=i}}function Qt(t,e,n){var r=t._id;return t.each((function(){var t=Wt(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Gt(t,r).value[e]}}var Zt=n(18),Jt=n(29),te=n(61),ee=n(111),ne=function(t,e){var n;return("number"==typeof e?Jt.a:e instanceof Zt.e?te.a:(n=Object(Zt.e)(e))?(e=n,te.a):ee.a)(t,e)};function re(t){return function(){this.removeAttribute(t)}}function ie(t){return function(){this.removeAttributeNS(t.space,t.local)}}function oe(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function ae(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function ue(t,e,n){var r,i,o;return function(){var a,u,c=n(this);if(null!=c)return(a=this.getAttribute(t))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,c));this.removeAttribute(t)}}function ce(t,e,n){var r,i,o;return function(){var a,u,c=n(this);if(null!=c)return(a=this.getAttributeNS(t.space,t.local))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,c));this.removeAttributeNS(t.space,t.local)}}function se(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function le(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function fe(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&le(t,i)),n}return i._value=e,i}function he(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&se(t,i)),n}return i._value=e,i}function de(t,e){return function(){Ht(this,t).delay=+e.apply(this,arguments)}}function pe(t,e){return e=+e,function(){Ht(this,t).delay=e}}function be(t,e){return function(){Wt(this,t).duration=+e.apply(this,arguments)}}function ge(t,e){return e=+e,function(){Wt(this,t).duration=e}}function ve(t,e){if("function"!=typeof e)throw new Error;return function(){Wt(this,t).ease=e}}function me(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Ht:Wt;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}var ye=Ct.prototype.constructor;function _e(t){return function(){this.style.removeProperty(t)}}function we(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function xe(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&we(t,o,n)),r}return o._value=e,o}function ke(t){return function(e){this.textContent=t.call(this,e)}}function Se(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&ke(r)),e}return r._value=t,r}var Me=0;function Ee(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Te(t){return Ct().transition(t)}function Ce(){return++Me}var Oe=Ct.prototype;Ee.prototype=Te.prototype={constructor:Ee,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=y(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,c,s=r[a],l=s.length,f=o[a]=new Array(l),h=0;h<l;++h)(u=s[h])&&(c=t.call(u,u.__data__,h,s))&&("__data__"in u&&(c.__data__=u.__data__),f[h]=c,Vt(f[h],e,n,h,f,Gt(u,n)));return new Ee(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=w(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c,s=r[u],l=s.length,f=0;f<l;++f)if(c=s[f]){for(var h,d=t.call(c,c.__data__,f,s),p=Gt(c,n),b=0,g=d.length;b<g;++b)(h=d[b])&&Vt(h,e,n,b,d,p);o.push(d),a.push(c)}return new Ee(o,a,e,n)},filter:function(t){"function"!=typeof t&&(t=x(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new Ee(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=e[u],l=n[u],f=s.length,h=a[u]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;u<r;++u)a[u]=e[u];return new Ee(a,this._parents,this._name,this._id)},selection:function(){return new ye(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Ce(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)if(a=u[s]){var l=Gt(a,e);Vt(a,t,n,s,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Ee(r,this._parents,t,n)},call:Oe.call,nodes:Oe.nodes,node:Oe.node,size:Oe.size,empty:Oe.empty,each:Oe.each,on:function(t,e){var n=this._id;return arguments.length<2?Gt(this.node(),n).on.on(t):this.each(me(n,t,e))},attr:function(t,e){var n=j(t),r="transform"===n?Yt.b:ne;return this.attrTween(t,"function"==typeof e?(n.local?ce:ue)(n,r,Qt(this,"attr."+t,e)):null==e?(n.local?ie:re)(n):(n.local?ae:oe)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=j(t);return this.tween(n,(r.local?fe:he)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Yt.a:ne;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=U(this,t),a=(this.style.removeProperty(t),U(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,_e(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=U(this,t),u=n(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=U(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,u))}}(t,r,Qt(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,u="end."+a;return function(){var c=Wt(this,t),s=c.on,l=null==c.value[a]?o||(o=_e(e)):void 0;s===n&&i===l||(r=(n=s).copy()).on(u,i=l),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=U(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,xe(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Qt(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Se(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Gt(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?Xt:Kt)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?de:pe)(e,t)):Gt(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?be:ge)(e,t)):Gt(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(ve(e,t)):Gt(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var u={value:a},c={value:function(){0==--i&&o()}};n.each((function(){var n=Wt(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(c)),n.on=e}))}))}};var je={time:null,delay:0,duration:250,ease:n(86).b};function Ae(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return je.time=Object(qt.b)(),je;return n}Ct.prototype.interrupt=function(t){return this.each((function(){$t(this,t)}))},Ct.prototype.transition=function(t){var e,n;t instanceof Ee?(e=t._id,t=t._name):(e=Ce(),(n=je).time=Object(qt.b)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)(a=u[s])&&Vt(a,t,e,s,u,n||Ae(a,e));return new Ee(r,this._parents,t,e)};var Pe=[null],ze=function(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>1&&n.name===e)return new Ee([[t]],Pe,e,+r);return null},Ne=function(t){return function(){return t}},Ie=function(t,e,n){this.target=t,this.type=e,this.selection=n};function Re(){bt.stopImmediatePropagation()}var De=function(){bt.preventDefault(),bt.stopImmediatePropagation()},Le={name:"drag"},qe={name:"space"},Fe={name:"handle"},Ue={name:"center"};function Be(t){return[+t[0],+t[1]]}function Ve(t){return[Be(t[0]),Be(t[1])]}function He(t){return function(e){return Dt(e,bt.touches,t)}}var We={name:"x",handles:["w","e"].map(Je),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Ge={name:"y",handles:["n","s"].map(Je),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},$e={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Je),input:function(t){return null==t?null:Ve(t)},output:function(t){return t}},Ye={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Xe={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ke={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Qe={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ze={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Je(t){return{type:t}}function tn(){return!bt.ctrlKey&&!bt.button}function en(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function nn(){return navigator.maxTouchPoints||"ontouchstart"in this}function rn(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function on(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function an(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function un(){return ln(We)}function cn(){return ln(Ge)}var sn=function(){return ln($e)};function ln(t){var e,n=en,r=tn,i=nn,o=!0,a=Object(v.a)("start","brush","end"),u=6;function c(e){var n=e.property("__brush",b).selectAll(".overlay").data([Je("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ye.overlay).merge(n).each((function(){var t=rn(this).extent;Ot(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([Je("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ye.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return Ye[t.type]})),e.each(s).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function s(){var t=Ot(this),e=rn(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-u/2:e[0][0]-u/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-u/2:e[0][1]-u/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+u:u})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+u:u}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new f(t,e,n):r}function f(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function h(){if((!e||bt.touches)&&r.apply(this,arguments)){var n,i,a,u,c,f,h,d,p,b,g,v=this,m=bt.target.__data__.type,y="selection"===(o&&bt.metaKey?m="overlay":m)?Le:o&&bt.altKey?Ue:Fe,_=t===Ge?null:Qe[m],w=t===We?null:Ze[m],x=rn(v),k=x.extent,S=x.selection,M=k[0][0],E=k[0][1],T=k[1][0],C=k[1][1],O=0,j=0,A=_&&w&&o&&bt.shiftKey,P=bt.touches?He(bt.changedTouches[0].identifier):Lt,z=P(v),N=z,I=l(v,arguments,!0).beforestart();"overlay"===m?(S&&(p=!0),x.selection=S=[[n=t===Ge?M:z[0],a=t===We?E:z[1]],[c=t===Ge?T:n,h=t===We?C:a]]):(n=S[0][0],a=S[0][1],c=S[1][0],h=S[1][1]),i=n,u=a,f=c,d=h;var R=Ot(v).attr("pointer-events","none"),D=R.selectAll(".overlay").attr("cursor",Ye[m]);if(bt.touches)I.moved=q,I.ended=U;else{var L=Ot(bt.view).on("mousemove.brush",q,!0).on("mouseup.brush",U,!0);o&&L.on("keydown.brush",B,!0).on("keyup.brush",V,!0),Pt(bt.view)}Re(),$t(v),s.call(v),I.start()}function q(){var t=P(v);!A||b||g||(Math.abs(t[0]-N[0])>Math.abs(t[1]-N[1])?g=!0:b=!0),N=t,p=!0,De(),F()}function F(){var t;switch(O=N[0]-z[0],j=N[1]-z[1],y){case qe:case Le:_&&(O=Math.max(M-n,Math.min(T-c,O)),i=n+O,f=c+O),w&&(j=Math.max(E-a,Math.min(C-h,j)),u=a+j,d=h+j);break;case Fe:_<0?(O=Math.max(M-n,Math.min(T-n,O)),i=n+O,f=c):_>0&&(O=Math.max(M-c,Math.min(T-c,O)),i=n,f=c+O),w<0?(j=Math.max(E-a,Math.min(C-a,j)),u=a+j,d=h):w>0&&(j=Math.max(E-h,Math.min(C-h,j)),u=a,d=h+j);break;case Ue:_&&(i=Math.max(M,Math.min(T,n-O*_)),f=Math.max(M,Math.min(T,c+O*_))),w&&(u=Math.max(E,Math.min(C,a-j*w)),d=Math.max(E,Math.min(C,h+j*w)))}f<i&&(_*=-1,t=n,n=c,c=t,t=i,i=f,f=t,m in Xe&&D.attr("cursor",Ye[m=Xe[m]])),d<u&&(w*=-1,t=a,a=h,h=t,t=u,u=d,d=t,m in Ke&&D.attr("cursor",Ye[m=Ke[m]])),x.selection&&(S=x.selection),b&&(i=S[0][0],f=S[1][0]),g&&(u=S[0][1],d=S[1][1]),S[0][0]===i&&S[0][1]===u&&S[1][0]===f&&S[1][1]===d||(x.selection=[[i,u],[f,d]],s.call(v),I.brush())}function U(){if(Re(),bt.touches){if(bt.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else zt(bt.view,p),L.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);R.attr("pointer-events","all"),D.attr("cursor",Ye.overlay),x.selection&&(S=x.selection),on(S)&&(x.selection=null,s.call(v)),I.end()}function B(){switch(bt.keyCode){case 16:A=_&&w;break;case 18:y===Fe&&(_&&(c=f-O*_,n=i+O*_),w&&(h=d-j*w,a=u+j*w),y=Ue,F());break;case 32:y!==Fe&&y!==Ue||(_<0?c=f-O:_>0&&(n=i-O),w<0?h=d-j:w>0&&(a=u-j),y=qe,D.attr("cursor",Ye.selection),F());break;default:return}De()}function V(){switch(bt.keyCode){case 16:A&&(b=g=A=!1,F());break;case 18:y===Ue&&(_<0?c=f:_>0&&(n=i),w<0?h=d:w>0&&(a=u),y=Fe,F());break;case 32:y===qe&&(bt.altKey?(_&&(c=f-O*_,n=i+O*_),w&&(h=d-j*w,a=u+j*w),y=Ue):(_<0?c=f:_>0&&(n=i),w<0?h=d:w>0&&(a=u),y=Fe),D.attr("cursor",Ye[m]),F());break;default:return}De()}}function d(){l(this,arguments).moved()}function p(){l(this,arguments).ended()}function b(){var e=this.__brush||{selection:null};return e.extent=Ve(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n){e.selection?e.on("start.brush",(function(){l(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){l(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),o=r.selection,a=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),u=Object(Nt.a)(o,a);function c(t){r.selection=1===t&&null===a?null:u(t),s.call(e),i.brush()}return null!==o&&null!==a?c:c(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,o=t.input("function"==typeof n?n.apply(e,r):n,i.extent),a=l(e,r).beforestart();$t(e),i.selection=null===o?null:o,s.call(e),a.start().brush().end()}))},c.clear=function(t){c.move(t,null)},f.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){wt(new Ie(c,e,t.output(this.state.selection)),a.apply,a,[e,this.that,this.args])}},c.extent=function(t){return arguments.length?(n="function"==typeof t?t:Ne(Ve(t)),c):n},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Ne(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Ne(!!t),c):i},c.handleSize=function(t){return arguments.length?(u=+t,c):u},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=a.on.apply(a,arguments);return t===a?c:t},c}var fn=Math.cos,hn=Math.sin,dn=Math.PI,pn=dn/2,bn=2*dn,gn=Math.max;function vn(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}var mn=function(){var t=0,e=null,n=null,r=null;function o(o){var a,u,c,s,l,f,h=o.length,d=[],p=Object(i.s)(h),b=[],g=[],v=g.groups=new Array(h),m=new Array(h*h);for(a=0,l=-1;++l<h;){for(u=0,f=-1;++f<h;)u+=o[l][f];d.push(u),b.push(Object(i.s)(h)),a+=u}for(e&&p.sort((function(t,n){return e(d[t],d[n])})),n&&b.forEach((function(t,e){t.sort((function(t,r){return n(o[e][t],o[e][r])}))})),s=(a=gn(0,bn-t*h)/a)?t:bn/h,u=0,l=-1;++l<h;){for(c=u,f=-1;++f<h;){var y=p[l],_=b[y][f],w=o[y][_],x=u,k=u+=w*a;m[_*h+y]={index:y,subindex:_,startAngle:x,endAngle:k,value:w}}v[y]={index:y,startAngle:c,endAngle:u,value:d[y]},u+=s}for(l=-1;++l<h;)for(f=l-1;++f<h;){var S=m[f*h+l],M=m[l*h+f];(S.value||M.value)&&g.push(S.value<M.value?{source:M,target:S}:{source:S,target:M})}return r?g.sort(r):g}return o.padAngle=function(e){return arguments.length?(t=gn(0,e),o):t},o.sortGroups=function(t){return arguments.length?(e=t,o):e},o.sortSubgroups=function(t){return arguments.length?(n=t,o):n},o.sortChords=function(t){return arguments.length?(null==t?r=null:(r=vn(t))._=t,o):r&&r._},o},yn=Array.prototype.slice,_n=function(t){return function(){return t}},wn=Math.PI,xn=2*wn,kn=xn-1e-6;function Sn(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Mn(){return new Sn}Sn.prototype=Mn.prototype={constructor:Sn,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,u=n-t,c=r-e,s=o-t,l=a-e,f=s*s+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>1e-6)if(Math.abs(l*u-c*s)>1e-6&&i){var h=n-o,d=r-a,p=u*u+c*c,b=h*h+d*d,g=Math.sqrt(p),v=Math.sqrt(f),m=i*Math.tan((wn-Math.acos((p+f-b)/(2*g*v)))/2),y=m/v,_=m/g;Math.abs(y-1)>1e-6&&(this._+="L"+(t+y*s)+","+(e+y*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>s*d)+","+(this._x1=t+_*u)+","+(this._y1=e+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+a,s=e+u,l=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+c+","+s),n&&(f<0&&(f=f%xn+xn),f>kn?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-u)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=wn)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var En=Mn;function Tn(t){return t.source}function Cn(t){return t.target}function On(t){return t.radius}function jn(t){return t.startAngle}function An(t){return t.endAngle}var Pn=function(){var t=Tn,e=Cn,n=On,r=jn,i=An,o=null;function a(){var a,u=yn.call(arguments),c=t.apply(this,u),s=e.apply(this,u),l=+n.apply(this,(u[0]=c,u)),f=r.apply(this,u)-pn,h=i.apply(this,u)-pn,d=l*fn(f),p=l*hn(f),b=+n.apply(this,(u[0]=s,u)),g=r.apply(this,u)-pn,v=i.apply(this,u)-pn;if(o||(o=a=En()),o.moveTo(d,p),o.arc(0,0,l,f,h),f===g&&h===v||(o.quadraticCurveTo(0,0,b*fn(g),b*hn(g)),o.arc(0,0,b,g,v)),o.quadraticCurveTo(0,0,d,p),o.closePath(),a)return o=null,a+""||null}return a.radius=function(t){return arguments.length?(n="function"==typeof t?t:_n(+t),a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:_n(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:_n(+t),a):i},a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(t){return arguments.length?(e=t,a):e},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a},zn=n(52),Nn=n(31),In=Array.prototype.slice,Rn=function(t,e){return t-e},Dn=function(t){return function(){return t}},Ln=function(t,e){for(var n,r=-1,i=e.length;++r<i;)if(n=qn(t,e[r]))return n;return 0};function qn(t,e){for(var n=e[0],r=e[1],i=-1,o=0,a=t.length,u=a-1;o<a;u=o++){var c=t[o],s=c[0],l=c[1],f=t[u],h=f[0],d=f[1];if(Fn(c,f,e))return 0;l>r!=d>r&&n<(h-s)*(r-l)/(d-l)+s&&(i=-i)}return i}function Fn(t,e,n){var r,i,o,a;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],o=n[r],a=e[r],i<=o&&o<=a||a<=o&&o<=i)}var Un=function(){},Bn=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],Vn=function(){var t=1,e=1,n=i.y,r=c;function o(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(Rn);else{var r=Object(i.i)(t),o=r[0],u=r[1];e=Object(i.A)(o,u,e),e=Object(i.s)(Math.floor(o/e)*e,Math.floor(u/e)*e,e)}return e.map((function(e){return a(t,e)}))}function a(n,i){var o=[],a=[];return function(n,r,i){var o,a,c,s,l,f,h=new Array,d=new Array;for(o=a=-1,s=n[0]>=r,Bn[s<<1].forEach(p);++o<t-1;)c=s,s=n[o+1]>=r,Bn[c|s<<1].forEach(p);for(Bn[s<<0].forEach(p);++a<e-1;){for(o=-1,s=n[a*t+t]>=r,l=n[a*t]>=r,Bn[s<<1|l<<2].forEach(p);++o<t-1;)c=s,s=n[a*t+t+o+1]>=r,f=l,l=n[a*t+o+1]>=r,Bn[c|s<<1|l<<2|f<<3].forEach(p);Bn[s|l<<3].forEach(p)}for(o=-1,l=n[a*t]>=r,Bn[l<<2].forEach(p);++o<t-1;)f=l,l=n[a*t+o+1]>=r,Bn[l<<2|f<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+o,t[0][1]+a],c=[t[1][0]+o,t[1][1]+a],s=u(r),l=u(c);(e=d[s])?(n=h[l])?(delete d[e.end],delete h[n.start],e===n?(e.ring.push(c),i(e.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(c),d[e.end=l]=e):(e=h[l])?(n=d[s])?(delete h[e.start],delete d[n.end],e===n?(e.ring.push(c),i(e.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete h[e.start],e.ring.unshift(r),h[e.start=s]=e):h[s]=d[l]={start:s,end:l,ring:[r,c]}}Bn[l<<3].forEach(p)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e<n;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r}(t)>0?o.push([t]):a.push(t)})),a.forEach((function(t){for(var e,n=0,r=o.length;n<r;++n)if(-1!==Ln((e=o[n])[0],t))return void e.push(t)})),{type:"MultiPolygon",value:i,coordinates:o}}function u(e){return 2*e[0]+e[1]*(t+1)*4}function c(n,r,i){n.forEach((function(n){var o,a=n[0],u=n[1],c=0|a,s=0|u,l=r[s*t+c];a>0&&a<t&&c===a&&(o=r[s*t+c-1],n[0]=a+(i-o)/(l-o)-.5),u>0&&u<e&&s===u&&(o=r[(s-1)*t+c],n[1]=u+(i-o)/(l-o)-.5)}))}return o.contour=a,o.size=function(n){if(!arguments.length)return[t,e];var r=Math.ceil(n[0]),i=Math.ceil(n[1]);if(!(r>0&&i>0))throw new Error("invalid size");return t=r,e=i,o},o.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Dn(In.call(t)):Dn(t),o):n},o.smooth=function(t){return arguments.length?(r=t?c:Un,o):r===c},o};function Hn(t,e,n){for(var r=t.width,i=t.height,o=1+(n<<1),a=0;a<i;++a)for(var u=0,c=0;u<r+n;++u)u<r&&(c+=t.data[u+a*r]),u>=n&&(u>=o&&(c-=t.data[u-o+a*r]),e.data[u-n+a*r]=c/Math.min(u+1,r-1+o-u,o))}function Wn(t,e,n){for(var r=t.width,i=t.height,o=1+(n<<1),a=0;a<r;++a)for(var u=0,c=0;u<i+n;++u)u<i&&(c+=t.data[a+u*r]),u>=n&&(u>=o&&(c-=t.data[a+(u-o)*r]),e.data[a+(u-n)*r]=c/Math.min(u+1,i-1+o-u,o))}function Gn(t){return t[0]}function $n(t){return t[1]}function Yn(){return 1}var Xn=function(){var t=Gn,e=$n,n=Yn,r=960,o=500,a=20,u=2,c=3*a,s=r+2*c>>u,l=o+2*c>>u,f=Dn(20);function h(r){var o=new Float32Array(s*l),h=new Float32Array(s*l);r.forEach((function(r,i,a){var f=+t(r,i,a)+c>>u,h=+e(r,i,a)+c>>u,d=+n(r,i,a);f>=0&&f<s&&h>=0&&h<l&&(o[f+h*s]+=d)})),Hn({width:s,height:l,data:o},{width:s,height:l,data:h},a>>u),Wn({width:s,height:l,data:h},{width:s,height:l,data:o},a>>u),Hn({width:s,height:l,data:o},{width:s,height:l,data:h},a>>u),Wn({width:s,height:l,data:h},{width:s,height:l,data:o},a>>u),Hn({width:s,height:l,data:o},{width:s,height:l,data:h},a>>u),Wn({width:s,height:l,data:h},{width:s,height:l,data:o},a>>u);var p=f(o);if(!Array.isArray(p)){var b=Object(i.k)(o);p=Object(i.A)(0,b,p),(p=Object(i.s)(0,Math.floor(b/p)*p,p)).shift()}return Vn().thresholds(p).size([s,l])(o).map(d)}function d(t){return t.value*=Math.pow(2,-2*u),t.coordinates.forEach(p),t}function p(t){t.forEach(b)}function b(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,u)-c,t[1]=t[1]*Math.pow(2,u)-c}function v(){return s=r+2*(c=3*a)>>u,l=o+2*c>>u,h}return h.x=function(e){return arguments.length?(t="function"==typeof e?e:Dn(+e),h):t},h.y=function(t){return arguments.length?(e="function"==typeof t?t:Dn(+t),h):e},h.weight=function(t){return arguments.length?(n="function"==typeof t?t:Dn(+t),h):n},h.size=function(t){if(!arguments.length)return[r,o];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e>=0||e>=0))throw new Error("invalid size");return r=e,o=n,v()},h.cellSize=function(t){if(!arguments.length)return 1<<u;if(!((t=+t)>=1))throw new Error("invalid cell size");return u=Math.floor(Math.log(t)/Math.LN2),v()},h.thresholds=function(t){return arguments.length?(f="function"==typeof t?t:Array.isArray(t)?Dn(In.call(t)):Dn(t),h):f},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),v()},h},Kn=n(38),Qn=function(t){return function(){return t}};function Zn(t,e,n,r,i,o,a,u,c,s){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=u,this.dy=c,this._=s}function Jn(){return!bt.ctrlKey&&!bt.button}function tr(){return this.parentNode}function er(t){return null==t?{x:bt.x,y:bt.y}:t}function nr(){return navigator.maxTouchPoints||"ontouchstart"in this}Zn.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var rr=function(){var t,e,n,r,i=Jn,o=tr,a=er,u=nr,c={},s=Object(v.a)("start","drag","end"),l=0,f=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",g).on("touchmove.drag",m).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var a=_("mouse",o.apply(this,arguments),Lt,this,arguments);a&&(Ot(bt.view).on("mousemove.drag",p,!0).on("mouseup.drag",b,!0),Pt(bt.view),jt(),n=!1,t=bt.clientX,e=bt.clientY,a("start"))}}function p(){if(At(),!n){var r=bt.clientX-t,i=bt.clientY-e;n=r*r+i*i>f}c.mouse("drag")}function b(){Ot(bt.view).on("mousemove.drag mouseup.drag",null),zt(bt.view,n),At(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var t,e,n=bt.changedTouches,r=o.apply(this,arguments),a=n.length;for(t=0;t<a;++t)(e=_(n[t].identifier,r,Dt,this,arguments))&&(jt(),e("start"))}}function m(){var t,e,n=bt.changedTouches,r=n.length;for(t=0;t<r;++t)(e=c[n[t].identifier])&&(At(),e("drag"))}function y(){var t,e,n=bt.changedTouches,i=n.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<i;++t)(e=c[n[t].identifier])&&(jt(),e("end"))}function _(t,e,n,r,i){var o,u,f,d=n(e,t),p=s.copy();if(wt(new Zn(h,"beforestart",o,t,l,d[0],d[1],0,0,p),(function(){return null!=(bt.subject=o=a.apply(r,i))&&(u=o.x-d[0]||0,f=o.y-d[1]||0,!0)})))return function a(s){var b,g=d;switch(s){case"start":c[t]=a,b=l++;break;case"end":delete c[t],--l;case"drag":d=n(e,t),b=l}wt(new Zn(h,s,o,t,b,d[0]+u,d[1]+f,d[0]-g[0],d[1]-g[1],p),p.apply,p,[s,r,i])}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:Qn(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:Qn(t),h):o},h.subject=function(t){return arguments.length?(a="function"==typeof t?t:Qn(t),h):a},h.touchable=function(t){return arguments.length?(u="function"==typeof t?t:Qn(!!t),h):u},h.on=function(){var t=s.on.apply(s,arguments);return t===s?h:t},h.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,h):Math.sqrt(f)},h},ir={},or={};function ar(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function ur(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function cr(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}var sr=function(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],o=t.length,a=0,u=0,c=o<=0,s=!1;function l(){if(c)return or;if(s)return s=!1,ir;var e,r,i=a;if(34===t.charCodeAt(i)){for(;a++<o&&34!==t.charCodeAt(a)||34===t.charCodeAt(++a););return(e=a)>=o?c=!0:10===(r=t.charCodeAt(a++))?s=!0:13===r&&(s=!0,10===t.charCodeAt(a)&&++a),t.slice(i+1,e-1).replace(/""/g,'"')}for(;a<o;){if(10===(r=t.charCodeAt(e=a++)))s=!0;else if(13===r)s=!0,10===t.charCodeAt(a)&&++a;else if(r!==n)continue;return t.slice(i,e)}return c=!0,t.slice(i,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(r=l())!==or;){for(var f=[];r!==ir&&r!==or;)f.push(r),r=l();e&&null==(f=e(f,u++))||i.push(f)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return a(e[t])})).join(t)}))}function o(e){return e.map(a).join(t)}function a(t){return null==t?"":t instanceof Date?function(t){var e,n=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+cr(-e,6):e>9999?"+"+cr(e,6):cr(e,4))+"-"+cr(t.getUTCMonth()+1,2)+"-"+cr(t.getUTCDate(),2)+(o?"T"+cr(n,2)+":"+cr(r,2)+":"+cr(i,2)+"."+cr(o,3)+"Z":i?"T"+cr(n,2)+":"+cr(r,2)+":"+cr(i,2)+"Z":r||n?"T"+cr(n,2)+":"+cr(r,2)+"Z":"")}(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,o=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=ar(t);return function(r,i){return e(n(r),i,t)}}(t,e):ar(t)}));return o.columns=i||[],o},parseRows:r,format:function(e,n){return null==n&&(n=ur(e)),[n.map(a).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=ur(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}},lr=sr(","),fr=lr.parse,hr=lr.parseRows,dr=lr.format,pr=lr.formatBody,br=lr.formatRows,gr=lr.formatRow,vr=lr.formatValue,mr=sr("\t"),yr=mr.parse,_r=mr.parseRows,wr=mr.format,xr=mr.formatBody,kr=mr.formatRows,Sr=mr.formatRow,Mr=mr.formatValue;function Er(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Tr&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}var Tr=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Cr=n(100);function Or(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}var jr=function(t,e){return fetch(t,e).then(Or)};function Ar(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}var Pr=function(t,e){return fetch(t,e).then(Ar)};function zr(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}var Nr=function(t,e){return fetch(t,e).then(zr)};function Ir(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),Nr(e,n).then((function(e){return t(e,r)}))}}function Rr(t,e,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=sr(t);return Nr(e,n).then((function(t){return i.parse(t,r)}))}var Dr=Ir(fr),Lr=Ir(yr),qr=function(t,e){return new Promise((function(n,r){var i=new Image;for(var o in e)i[o]=e[o];i.onerror=r,i.onload=function(){n(i)},i.src=t}))};function Fr(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}var Ur=function(t,e){return fetch(t,e).then(Fr)};function Br(t){return function(e,n){return Nr(e,n).then((function(e){return(new DOMParser).parseFromString(e,t)}))}}var Vr=Br("application/xml"),Hr=Br("text/html"),Wr=Br("image/svg+xml"),Gr=function(t,e){var n;function r(){var r,i,o=n.length,a=0,u=0;for(r=0;r<o;++r)a+=(i=n[r]).x,u+=i.y;for(a=a/o-t,u=u/o-e,r=0;r<o;++r)(i=n[r]).x-=a,i.y-=u}return null==t&&(t=0),null==e&&(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r},$r=function(t){return function(){return t}},Yr=function(){return 1e-6*(Math.random()-.5)},Xr=n(151);function Kr(t){return t.x+t.vx}function Qr(t){return t.y+t.vy}var Zr=function(t){var e,n,r=1,i=1;function o(){for(var t,o,u,c,s,l,f,h=e.length,d=0;d<i;++d)for(o=Object(Xr.a)(e,Kr,Qr).visitAfter(a),t=0;t<h;++t)u=e[t],l=n[u.index],f=l*l,c=u.x+u.vx,s=u.y+u.vy,o.visit(p);function p(t,e,n,i,o){var a=t.data,h=t.r,d=l+h;if(!a)return e>c+d||i<c-d||n>s+d||o<s-d;if(a.index>u.index){var p=c-a.x-a.vx,b=s-a.y-a.vy,g=p*p+b*b;g<d*d&&(0===p&&(g+=(p=Yr())*p),0===b&&(g+=(b=Yr())*b),g=(d-(g=Math.sqrt(g)))/g*r,u.vx+=(p*=g)*(d=(h*=h)/(f+h)),u.vy+=(b*=g)*d,a.vx-=p*(d=1-d),a.vy-=b*d)}}}function a(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function u(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!=typeof t&&(t=$r(null==t?1:+t)),o.initialize=function(t){e=t,u()},o.iterations=function(t){return arguments.length?(i=+t,o):i},o.strength=function(t){return arguments.length?(r=+t,o):r},o.radius=function(e){return arguments.length?(t="function"==typeof e?e:$r(+e),u(),o):t},o};function Jr(t){return t.index}function ti(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}var ei=function(t){var e,n,r,i,o,a=Jr,u=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},c=$r(30),s=1;function l(r){for(var i=0,a=t.length;i<s;++i)for(var u,c,l,f,h,d,p,b=0;b<a;++b)c=(u=t[b]).source,f=(l=u.target).x+l.vx-c.x-c.vx||Yr(),h=l.y+l.vy-c.y-c.vy||Yr(),f*=d=((d=Math.sqrt(f*f+h*h))-n[b])/d*r*e[b],h*=d,l.vx-=f*(p=o[b]),l.vy-=h*p,c.vx+=f*(p=1-p),c.vy+=h*p}function f(){if(r){var u,c,s=r.length,l=t.length,f=Object(zn.c)(r,a);for(u=0,i=new Array(s);u<l;++u)(c=t[u]).index=u,"object"!=typeof c.source&&(c.source=ti(f,c.source)),"object"!=typeof c.target&&(c.target=ti(f,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(u=0,o=new Array(l);u<l;++u)c=t[u],o[u]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);e=new Array(l),h(),n=new Array(l),d()}}function h(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+u(t[n],n,t)}function d(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+c(t[e],e,t)}return null==t&&(t=[]),l.initialize=function(t){r=t,f()},l.links=function(e){return arguments.length?(t=e,f(),l):t},l.id=function(t){return arguments.length?(a=t,l):a},l.iterations=function(t){return arguments.length?(s=+t,l):s},l.strength=function(t){return arguments.length?(u="function"==typeof t?t:$r(+t),h(),l):u},l.distance=function(t){return arguments.length?(c="function"==typeof t?t:$r(+t),d(),l):c},l};function ni(t){return t.x}function ri(t){return t.y}var ii=Math.PI*(3-Math.sqrt(5)),oi=function(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=Object(zn.c)(),c=Object(qt.c)(l),s=Object(v.a)("tick","end");function l(){f(),s.call("tick",e),n<r&&(c.stop(),s.call("end",e))}function f(r){var c,s,l=t.length;void 0===r&&(r=1);for(var f=0;f<r;++f)for(n+=(o-n)*i,u.each((function(t){t(n)})),c=0;c<l;++c)null==(s=t[c]).fx?s.x+=s.vx*=a:(s.x=s.fx,s.vx=0),null==s.fy?s.y+=s.vy*=a:(s.y=s.fy,s.vy=0);return e}function h(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(n),o=n*ii;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function d(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),h(),e={tick:f,restart:function(){return c.restart(l),e},stop:function(){return c.stop(),e},nodes:function(n){return arguments.length?(t=n,h(),u.each(d),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(a=1-t,e):1-a},force:function(t,n){return arguments.length>1?(null==n?u.remove(t):u.set(t,d(n)),e):u.get(t)},find:function(e,n,r){var i,o,a,u,c,s=0,l=t.length;for(null==r?r=1/0:r*=r,s=0;s<l;++s)(a=(i=e-(u=t[s]).x)*i+(o=n-u.y)*o)<r&&(c=u,r=a);return c},on:function(t,n){return arguments.length>1?(s.on(t,n),e):s.on(t)}}},ai=function(){var t,e,n,r,i=$r(-30),o=1,a=1/0,u=.81;function c(r){var i,o=t.length,a=Object(Xr.a)(t,ni,ri).visitAfter(l);for(n=r,i=0;i<o;++i)e=t[i],a.visit(f)}function s(){if(t){var e,n,o=t.length;for(r=new Array(o),e=0;e<o;++e)n=t[e],r[n.index]=+i(n,e,t)}}function l(t){var e,n,i,o,a,u=0,c=0;if(t.length){for(i=o=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(u+=e.value,c+=n,i+=n*e.x,o+=n*e.y);t.x=i/c,t.y=o/c}else{(e=t).x=e.data.x,e.y=e.data.y;do{u+=r[e.data.index]}while(e=e.next)}t.value=u}function f(t,i,c,s){if(!t.value)return!0;var l=t.x-e.x,f=t.y-e.y,h=s-i,d=l*l+f*f;if(h*h/u<d)return d<a&&(0===l&&(d+=(l=Yr())*l),0===f&&(d+=(f=Yr())*f),d<o&&(d=Math.sqrt(o*d)),e.vx+=l*t.value*n/d,e.vy+=f*t.value*n/d),!0;if(!(t.length||d>=a)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Yr())*l),0===f&&(d+=(f=Yr())*f),d<o&&(d=Math.sqrt(o*d)));do{t.data!==e&&(h=r[t.data.index]*n/d,e.vx+=l*h,e.vy+=f*h)}while(t=t.next)}}return c.initialize=function(e){t=e,s()},c.strength=function(t){return arguments.length?(i="function"==typeof t?t:$r(+t),s(),c):i},c.distanceMin=function(t){return arguments.length?(o=t*t,c):Math.sqrt(o)},c.distanceMax=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c.theta=function(t){return arguments.length?(u=t*t,c):Math.sqrt(u)},c},ui=function(t,e,n){var r,i,o,a=$r(.1);function u(t){for(var a=0,u=r.length;a<u;++a){var c=r[a],s=c.x-e||1e-6,l=c.y-n||1e-6,f=Math.sqrt(s*s+l*l),h=(o[a]-f)*i[a]*t/f;c.vx+=s*h,c.vy+=l*h}}function c(){if(r){var e,n=r.length;for(i=new Array(n),o=new Array(n),e=0;e<n;++e)o[e]=+t(r[e],e,r),i[e]=isNaN(o[e])?0:+a(r[e],e,r)}}return"function"!=typeof t&&(t=$r(+t)),null==e&&(e=0),null==n&&(n=0),u.initialize=function(t){r=t,c()},u.strength=function(t){return arguments.length?(a="function"==typeof t?t:$r(+t),c(),u):a},u.radius=function(e){return arguments.length?(t="function"==typeof e?e:$r(+e),c(),u):t},u.x=function(t){return arguments.length?(e=+t,u):e},u.y=function(t){return arguments.length?(n=+t,u):n},u},ci=function(t){var e,n,r,i=$r(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vx+=(r[o]-i.x)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=$r(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:$r(+t),a(),o):i},o.x=function(e){return arguments.length?(t="function"==typeof e?e:$r(+e),a(),o):t},o},si=function(t){var e,n,r,i=$r(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vy+=(r[o]-i.y)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=$r(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:$r(+t),a(),o):i},o.y=function(e){return arguments.length?(t="function"==typeof e?e:$r(+e),a(),o):t},o},li=n(99),fi=function(){return new hi};function hi(){this.reset()}hi.prototype={constructor:hi,reset:function(){this.s=this.t=0},add:function(t){pi(di,t,this.t),pi(this,di.s,this.s),this.s?this.t+=di.t:this.s=di.t},valueOf:function(){return this.s}};var di=new hi;function pi(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var bi=Math.PI,gi=bi/2,vi=bi/4,mi=2*bi,yi=180/bi,_i=bi/180,wi=Math.abs,xi=Math.atan,ki=Math.atan2,Si=Math.cos,Mi=Math.ceil,Ei=Math.exp,Ti=(Math.floor,Math.log),Ci=Math.pow,Oi=Math.sin,ji=Math.sign||function(t){return t>0?1:t<0?-1:0},Ai=Math.sqrt,Pi=Math.tan;function zi(t){return t>1?0:t<-1?bi:Math.acos(t)}function Ni(t){return t>1?gi:t<-1?-gi:Math.asin(t)}function Ii(t){return(t=Oi(t/2))*t}function Ri(){}function Di(t,e){t&&qi.hasOwnProperty(t.type)&&qi[t.type](t,e)}var Li={Feature:function(t,e){Di(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)Di(n[r].geometry,e)}},qi={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){Fi(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)Fi(n[r],e,0)},Polygon:function(t,e){Ui(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)Ui(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)Di(n[r],e)}};function Fi(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function Ui(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)Fi(t[n],e,1);e.polygonEnd()}var Bi,Vi,Hi,Wi,Gi,$i=function(t,e){t&&Li.hasOwnProperty(t.type)?Li[t.type](t,e):Di(t,e)},Yi=fi(),Xi=fi(),Ki={point:Ri,lineStart:Ri,lineEnd:Ri,polygonStart:function(){Yi.reset(),Ki.lineStart=Qi,Ki.lineEnd=Zi},polygonEnd:function(){var t=+Yi;Xi.add(t<0?mi+t:t),this.lineStart=this.lineEnd=this.point=Ri},sphere:function(){Xi.add(mi)}};function Qi(){Ki.point=Ji}function Zi(){to(Bi,Vi)}function Ji(t,e){Ki.point=to,Bi=t,Vi=e,Hi=t*=_i,Wi=Si(e=(e*=_i)/2+vi),Gi=Oi(e)}function to(t,e){var n=(t*=_i)-Hi,r=n>=0?1:-1,i=r*n,o=Si(e=(e*=_i)/2+vi),a=Oi(e),u=Gi*a,c=Wi*o+u*Si(i),s=u*r*Oi(i);Yi.add(ki(s,c)),Hi=t,Wi=o,Gi=a}var eo=function(t){return Xi.reset(),$i(t,Ki),2*Xi};function no(t){return[ki(t[1],t[0]),Ni(t[2])]}function ro(t){var e=t[0],n=t[1],r=Si(n);return[r*Si(e),r*Oi(e),Oi(n)]}function io(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function oo(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ao(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function uo(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function co(t){var e=Ai(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var so,lo,fo,ho,po,bo,go,vo,mo,yo,_o=fi(),wo={point:xo,lineStart:So,lineEnd:Mo,polygonStart:function(){wo.point=Eo,wo.lineStart=To,wo.lineEnd=Co,_o.reset(),Ki.polygonStart()},polygonEnd:function(){Ki.polygonEnd(),wo.point=xo,wo.lineStart=So,wo.lineEnd=Mo,Yi<0?(so=-(fo=180),lo=-(ho=90)):_o>1e-6?ho=90:_o<-1e-6&&(lo=-90),yo[0]=so,yo[1]=fo},sphere:function(){so=-(fo=180),lo=-(ho=90)}};function xo(t,e){mo.push(yo=[so=t,fo=t]),e<lo&&(lo=e),e>ho&&(ho=e)}function ko(t,e){var n=ro([t*_i,e*_i]);if(vo){var r=oo(vo,n),i=oo([r[1],-r[0],0],r);co(i),i=no(i);var o,a=t-po,u=a>0?1:-1,c=i[0]*yi*u,s=wi(a)>180;s^(u*po<c&&c<u*t)?(o=i[1]*yi)>ho&&(ho=o):s^(u*po<(c=(c+360)%360-180)&&c<u*t)?(o=-i[1]*yi)<lo&&(lo=o):(e<lo&&(lo=e),e>ho&&(ho=e)),s?t<po?Oo(so,t)>Oo(so,fo)&&(fo=t):Oo(t,fo)>Oo(so,fo)&&(so=t):fo>=so?(t<so&&(so=t),t>fo&&(fo=t)):t>po?Oo(so,t)>Oo(so,fo)&&(fo=t):Oo(t,fo)>Oo(so,fo)&&(so=t)}else mo.push(yo=[so=t,fo=t]);e<lo&&(lo=e),e>ho&&(ho=e),vo=n,po=t}function So(){wo.point=ko}function Mo(){yo[0]=so,yo[1]=fo,wo.point=xo,vo=null}function Eo(t,e){if(vo){var n=t-po;_o.add(wi(n)>180?n+(n>0?360:-360):n)}else bo=t,go=e;Ki.point(t,e),ko(t,e)}function To(){Ki.lineStart()}function Co(){Eo(bo,go),Ki.lineEnd(),wi(_o)>1e-6&&(so=-(fo=180)),yo[0]=so,yo[1]=fo,vo=null}function Oo(t,e){return(e-=t)<0?e+360:e}function jo(t,e){return t[0]-e[0]}function Ao(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var Po,zo,No,Io,Ro,Do,Lo,qo,Fo,Uo,Bo,Vo,Ho,Wo,Go,$o,Yo=function(t){var e,n,r,i,o,a,u;if(ho=fo=-(so=lo=1/0),mo=[],$i(t,wo),n=mo.length){for(mo.sort(jo),e=1,o=[r=mo[0]];e<n;++e)Ao(r,(i=mo[e])[0])||Ao(r,i[1])?(Oo(r[0],i[1])>Oo(r[0],r[1])&&(r[1]=i[1]),Oo(i[0],r[1])>Oo(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(u=Oo(r[1],i[0]))>a&&(a=u,so=i[0],fo=r[1])}return mo=yo=null,so===1/0||lo===1/0?[[NaN,NaN],[NaN,NaN]]:[[so,lo],[fo,ho]]},Xo={sphere:Ri,point:Ko,lineStart:Zo,lineEnd:ea,polygonStart:function(){Xo.lineStart=na,Xo.lineEnd=ra},polygonEnd:function(){Xo.lineStart=Zo,Xo.lineEnd=ea}};function Ko(t,e){t*=_i;var n=Si(e*=_i);Qo(n*Si(t),n*Oi(t),Oi(e))}function Qo(t,e,n){++Po,No+=(t-No)/Po,Io+=(e-Io)/Po,Ro+=(n-Ro)/Po}function Zo(){Xo.point=Jo}function Jo(t,e){t*=_i;var n=Si(e*=_i);Wo=n*Si(t),Go=n*Oi(t),$o=Oi(e),Xo.point=ta,Qo(Wo,Go,$o)}function ta(t,e){t*=_i;var n=Si(e*=_i),r=n*Si(t),i=n*Oi(t),o=Oi(e),a=ki(Ai((a=Go*o-$o*i)*a+(a=$o*r-Wo*o)*a+(a=Wo*i-Go*r)*a),Wo*r+Go*i+$o*o);zo+=a,Do+=a*(Wo+(Wo=r)),Lo+=a*(Go+(Go=i)),qo+=a*($o+($o=o)),Qo(Wo,Go,$o)}function ea(){Xo.point=Ko}function na(){Xo.point=ia}function ra(){oa(Vo,Ho),Xo.point=Ko}function ia(t,e){Vo=t,Ho=e,t*=_i,e*=_i,Xo.point=oa;var n=Si(e);Wo=n*Si(t),Go=n*Oi(t),$o=Oi(e),Qo(Wo,Go,$o)}function oa(t,e){t*=_i;var n=Si(e*=_i),r=n*Si(t),i=n*Oi(t),o=Oi(e),a=Go*o-$o*i,u=$o*r-Wo*o,c=Wo*i-Go*r,s=Ai(a*a+u*u+c*c),l=Ni(s),f=s&&-l/s;Fo+=f*a,Uo+=f*u,Bo+=f*c,zo+=l,Do+=l*(Wo+(Wo=r)),Lo+=l*(Go+(Go=i)),qo+=l*($o+($o=o)),Qo(Wo,Go,$o)}var aa=function(t){Po=zo=No=Io=Ro=Do=Lo=qo=Fo=Uo=Bo=0,$i(t,Xo);var e=Fo,n=Uo,r=Bo,i=e*e+n*n+r*r;return i<1e-12&&(e=Do,n=Lo,r=qo,zo<1e-6&&(e=No,n=Io,r=Ro),(i=e*e+n*n+r*r)<1e-12)?[NaN,NaN]:[ki(n,e)*yi,Ni(r/Ai(i))*yi]},ua=function(t){return function(){return t}},ca=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n};function sa(t,e){return[wi(t)>bi?t+Math.round(-t/mi)*mi:t,e]}function la(t,e,n){return(t%=mi)?e||n?ca(ha(t),da(e,n)):ha(t):e||n?da(e,n):sa}function fa(t){return function(e,n){return[(e+=t)>bi?e-mi:e<-bi?e+mi:e,n]}}function ha(t){var e=fa(t);return e.invert=fa(-t),e}function da(t,e){var n=Si(t),r=Oi(t),i=Si(e),o=Oi(e);function a(t,e){var a=Si(e),u=Si(t)*a,c=Oi(t)*a,s=Oi(e),l=s*n+u*r;return[ki(c*i-l*o,u*n-s*r),Ni(l*i+c*o)]}return a.invert=function(t,e){var a=Si(e),u=Si(t)*a,c=Oi(t)*a,s=Oi(e),l=s*i-c*o;return[ki(c*i+s*o,u*n+l*r),Ni(l*n-u*r)]},a}sa.invert=sa;var pa=function(t){function e(e){return(e=t(e[0]*_i,e[1]*_i))[0]*=yi,e[1]*=yi,e}return t=la(t[0]*_i,t[1]*_i,t.length>2?t[2]*_i:0),e.invert=function(e){return(e=t.invert(e[0]*_i,e[1]*_i))[0]*=yi,e[1]*=yi,e},e};function ba(t,e,n,r,i,o){if(n){var a=Si(e),u=Oi(e),c=r*n;null==i?(i=e+r*mi,o=e-c/2):(i=ga(a,i),o=ga(a,o),(r>0?i<o:i>o)&&(i+=r*mi));for(var s,l=i;r>0?l>o:l<o;l-=c)s=no([a,-u*Si(l),-u*Oi(l)]),t.point(s[0],s[1])}}function ga(t,e){(e=ro(e))[0]-=t,co(e);var n=zi(-e[1]);return((-e[2]<0?-n:n)+mi-1e-6)%mi}var va=function(){var t,e,n=ua([0,0]),r=ua(90),i=ua(6),o={point:function(n,r){t.push(n=e(n,r)),n[0]*=yi,n[1]*=yi}};function a(){var a=n.apply(this,arguments),u=r.apply(this,arguments)*_i,c=i.apply(this,arguments)*_i;return t=[],e=la(-a[0]*_i,-a[1]*_i,0).invert,ba(o,u,c,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return a.center=function(t){return arguments.length?(n="function"==typeof t?t:ua([+t[0],+t[1]]),a):n},a.radius=function(t){return arguments.length?(r="function"==typeof t?t:ua(+t),a):r},a.precision=function(t){return arguments.length?(i="function"==typeof t?t:ua(+t),a):i},a},ma=function(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:Ri,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},ya=function(t,e){return wi(t[0]-e[0])<1e-6&&wi(t[1]-e[1])<1e-6};function _a(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var wa=function(t,e,n,r,i){var o,a,u=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(ya(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}a[0]+=2e-6}u.push(n=new _a(r,t,null,!0)),c.push(n.o=new _a(r,null,n,!1)),u.push(n=new _a(a,t,null,!1)),c.push(n.o=new _a(a,null,n,!0))}})),u.length){for(c.sort(e),xa(u),xa(c),o=0,a=c.length;o<a;++o)c[o].e=n=!n;for(var s,l,f=u[0];;){for(var h=f,d=!0;h.v;)if((h=h.n)===f)return;s=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,a=s.length;o<a;++o)i.point((l=s[o])[0],l[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(s=h.p.z,o=s.length-1;o>=0;--o)i.point((l=s[o])[0],l[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function xa(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}var ka=fi();function Sa(t){return wi(t[0])<=bi?t[0]:ji(t[0])*((wi(t[0])+bi)%mi-bi)}var Ma=function(t,e){var n=Sa(e),r=e[1],i=Oi(r),o=[Oi(n),-Si(n),0],a=0,u=0;ka.reset(),1===i?r=gi+1e-6:-1===i&&(r=-gi-1e-6);for(var c=0,s=t.length;c<s;++c)if(f=(l=t[c]).length)for(var l,f,h=l[f-1],d=Sa(h),p=h[1]/2+vi,b=Oi(p),g=Si(p),v=0;v<f;++v,d=y,b=w,g=x,h=m){var m=l[v],y=Sa(m),_=m[1]/2+vi,w=Oi(_),x=Si(_),k=y-d,S=k>=0?1:-1,M=S*k,E=M>bi,T=b*w;if(ka.add(ki(T*S*Oi(M),g*x+T*Si(M))),a+=E?k+S*mi:k,E^d>=n^y>=n){var C=oo(ro(h),ro(m));co(C);var O=oo(o,C);co(O);var j=(E^k>=0?-1:1)*Ni(O[2]);(r>j||r===j&&(C[0]||C[1]))&&(u+=E^k>=0?1:-1)}}return(a<-1e-6||a<1e-6&&ka<-1e-6)^1&u},Ea=function(t,e,n,r){return function(o){var a,u,c,s=e(o),l=ma(),f=e(l),h=!1,d={point:p,lineStart:g,lineEnd:v,polygonStart:function(){d.point=m,d.lineStart=y,d.lineEnd=_,u=[],a=[]},polygonEnd:function(){d.point=p,d.lineStart=g,d.lineEnd=v,u=Object(i.n)(u);var t=Ma(a,r);u.length?(h||(o.polygonStart(),h=!0),wa(u,Ca,t,n,o)):t&&(h||(o.polygonStart(),h=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),h&&(o.polygonEnd(),h=!1),u=a=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function p(e,n){t(e,n)&&o.point(e,n)}function b(t,e){s.point(t,e)}function g(){d.point=b,s.lineStart()}function v(){d.point=p,s.lineEnd()}function m(t,e){c.push([t,e]),f.point(t,e)}function y(){f.lineStart(),c=[]}function _(){m(c[0][0],c[0][1]),f.lineEnd();var t,e,n,r,i=f.clean(),s=l.result(),d=s.length;if(c.pop(),a.push(c),c=null,d)if(1&i){if((e=(n=s[0]).length-1)>0){for(h||(o.polygonStart(),h=!0),o.lineStart(),t=0;t<e;++t)o.point((r=n[t])[0],r[1]);o.lineEnd()}}else d>1&&2&i&&s.push(s.pop().concat(s.shift())),u.push(s.filter(Ta))}return d}};function Ta(t){return t.length>1}function Ca(t,e){return((t=t.x)[0]<0?t[1]-gi-1e-6:gi-t[1])-((e=e.x)[0]<0?e[1]-gi-1e-6:gi-e[1])}var Oa=Ea((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u=o>0?bi:-bi,c=wi(o-n);wi(c-bi)<1e-6?(t.point(n,r=(r+a)/2>0?gi:-gi),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):i!==u&&c>=bi&&(wi(n-i)<1e-6&&(n-=1e-6*i),wi(o-u)<1e-6&&(o-=1e-6*u),r=function(t,e,n,r){var i,o,a=Oi(t-n);return wi(a)>1e-6?xi((Oi(e)*(o=Si(r))*Oi(n)-Oi(r)*(i=Si(e))*Oi(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=a),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*gi,r.point(-bi,i),r.point(0,i),r.point(bi,i),r.point(bi,0),r.point(bi,-i),r.point(0,-i),r.point(-bi,-i),r.point(-bi,0),r.point(-bi,i);else if(wi(t[0]-e[0])>1e-6){var o=t[0]<e[0]?bi:-bi;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}),[-bi,-gi]),ja=function(t){var e=Si(t),n=6*_i,r=e>0,i=wi(e)>1e-6;function o(t,n){return Si(t)*Si(n)>e}function a(t,n,r){var i=[1,0,0],o=oo(ro(t),ro(n)),a=io(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var s=e*a/c,l=-e*u/c,f=oo(i,o),h=uo(i,s);ao(h,uo(o,l));var d=f,p=io(h,d),b=io(d,d),g=p*p-b*(io(h,h)-1);if(!(g<0)){var v=Ai(g),m=uo(d,(-p-v)/b);if(ao(m,h),m=no(m),!r)return m;var y,_=t[0],w=n[0],x=t[1],k=n[1];w<_&&(y=_,_=w,w=y);var S=w-_,M=wi(S-bi)<1e-6;if(!M&&k<x&&(y=x,x=k,k=y),M||S<1e-6?M?x+k>0^m[1]<(wi(m[0]-_)<1e-6?x:k):x<=m[1]&&m[1]<=k:S>bi^(_<=m[0]&&m[0]<=w)){var E=uo(d,(-p+v)/b);return ao(E,h),[m,no(E)]}}}function u(e,n){var i=r?t:bi-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return Ea(o,(function(t){var e,n,c,s,l;return{lineStart:function(){s=c=!1,l=1},point:function(f,h){var d,p=[f,h],b=o(f,h),g=r?b?0:u(f,h):b?u(f+(f<0?bi:-bi),h):0;if(!e&&(s=c=b)&&t.lineStart(),b!==c&&(!(d=a(e,p))||ya(e,d)||ya(p,d))&&(p[2]=1),b!==c)l=0,b?(t.lineStart(),d=a(p,e),t.point(d[0],d[1])):(d=a(e,p),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&&e&&r^b){var v;g&n||!(v=a(p,e,!0))||(l=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1],3)))}!b||e&&ya(e,p)||t.point(p[0],p[1]),e=p,c=b,n=g},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return l|(s&&c)<<1}}}),(function(e,r,i,o){ba(o,t,n,i,e,r)}),r?[0,-t]:[-bi,t-bi])};function Aa(t,e,n,r){function o(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function a(i,o,a,c){var l=0,f=0;if(null==i||(l=u(i,a))!==(f=u(o,a))||s(i,o)<0^a>0)do{c.point(0===l||3===l?t:n,l>1?r:e)}while((l=(l+a+4)%4)!==f);else c.point(o[0],o[1])}function u(r,i){return wi(r[0]-t)<1e-6?i>0?0:3:wi(r[0]-n)<1e-6?i>0?2:1:wi(r[1]-e)<1e-6?i>0?1:0:i>0?3:2}function c(t,e){return s(t.x,e.x)}function s(t,e){var n=u(t,1),r=u(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(u){var s,l,f,h,d,p,b,g,v,m,y,_=u,w=ma(),x={point:k,lineStart:function(){x.point=S,l&&l.push(f=[]),m=!0,v=!1,b=g=NaN},lineEnd:function(){s&&(S(h,d),p&&v&&w.rejoin(),s.push(w.result())),x.point=k,v&&_.lineEnd()},polygonStart:function(){_=w,s=[],l=[],y=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;n<i;++n)for(var o,a,u=l[n],c=1,s=u.length,f=u[0],h=f[0],d=f[1];c<s;++c)o=h,a=d,h=(f=u[c])[0],d=f[1],a<=r?d>r&&(h-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--e;return e}(),n=y&&e,o=(s=Object(i.n)(s)).length;(n||o)&&(u.polygonStart(),n&&(u.lineStart(),a(null,null,1,u),u.lineEnd()),o&&wa(s,c,e,a,u),u.polygonEnd()),_=u,s=l=f=null}};function k(t,e){o(t,e)&&_.point(t,e)}function S(i,a){var u=o(i,a);if(l&&f.push([i,a]),m)h=i,d=a,p=u,m=!1,u&&(_.lineStart(),_.point(i,a));else if(u&&v)_.point(i,a);else{var c=[b=Math.max(-1e9,Math.min(1e9,b)),g=Math.max(-1e9,Math.min(1e9,g))],s=[i=Math.max(-1e9,Math.min(1e9,i)),a=Math.max(-1e9,Math.min(1e9,a))];!function(t,e,n,r,i,o){var a,u=t[0],c=t[1],s=0,l=1,f=e[0]-u,h=e[1]-c;if(a=n-u,f||!(a>0)){if(a/=f,f<0){if(a<s)return;a<l&&(l=a)}else if(f>0){if(a>l)return;a>s&&(s=a)}if(a=i-u,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>s&&(s=a)}else if(f>0){if(a<s)return;a<l&&(l=a)}if(a=r-c,h||!(a>0)){if(a/=h,h<0){if(a<s)return;a<l&&(l=a)}else if(h>0){if(a>l)return;a>s&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>l)return;a>s&&(s=a)}else if(h>0){if(a<s)return;a<l&&(l=a)}return s>0&&(t[0]=u+s*f,t[1]=c+s*h),l<1&&(e[0]=u+l*f,e[1]=c+l*h),!0}}}}}(c,s,t,e,n,r)?u&&(_.lineStart(),_.point(i,a),y=!1):(v||(_.lineStart(),_.point(c[0],c[1])),_.point(s[0],s[1]),u||_.lineEnd(),y=!1)}b=i,g=a,v=u}return x}}var Pa,za,Na,Ia=function(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=Aa(r,i,o,a)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=e=null,n):[[r,i],[o,a]]}}},Ra=fi(),Da={sphere:Ri,point:Ri,lineStart:function(){Da.point=qa,Da.lineEnd=La},lineEnd:Ri,polygonStart:Ri,polygonEnd:Ri};function La(){Da.point=Da.lineEnd=Ri}function qa(t,e){Pa=t*=_i,za=Oi(e*=_i),Na=Si(e),Da.point=Fa}function Fa(t,e){t*=_i;var n=Oi(e*=_i),r=Si(e),i=wi(t-Pa),o=Si(i),a=r*Oi(i),u=Na*n-za*r*o,c=za*n+Na*r*o;Ra.add(ki(Ai(a*a+u*u),c)),Pa=t,za=n,Na=r}var Ua=function(t){return Ra.reset(),$i(t,Da),+Ra},Ba=[null,null],Va={type:"LineString",coordinates:Ba},Ha=function(t,e){return Ba[0]=t,Ba[1]=e,Ua(Va)},Wa={Feature:function(t,e){return $a(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if($a(n[r].geometry,e))return!0;return!1}},Ga={Sphere:function(){return!0},Point:function(t,e){return Ya(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ya(n[r],e))return!0;return!1},LineString:function(t,e){return Xa(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Xa(n[r],e))return!0;return!1},Polygon:function(t,e){return Ka(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ka(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if($a(n[r],e))return!0;return!1}};function $a(t,e){return!(!t||!Ga.hasOwnProperty(t.type))&&Ga[t.type](t,e)}function Ya(t,e){return 0===Ha(t,e)}function Xa(t,e){for(var n,r,i,o=0,a=t.length;o<a;o++){if(0===(r=Ha(t[o],e)))return!0;if(o>0&&(i=Ha(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<1e-12*i)return!0;n=r}return!1}function Ka(t,e){return!!Ma(t.map(Qa),Za(e))}function Qa(t){return(t=t.map(Za)).pop(),t}function Za(t){return[t[0]*_i,t[1]*_i]}var Ja=function(t,e){return(t&&Wa.hasOwnProperty(t.type)?Wa[t.type]:$a)(t,e)};function tu(t,e,n){var r=Object(i.s)(t,e-1e-6,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function eu(t,e,n){var r=Object(i.s)(t,e-1e-6,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function nu(){var t,e,n,r,o,a,u,c,s,l,f,h,d=10,p=d,b=90,g=360,v=2.5;function m(){return{type:"MultiLineString",coordinates:y()}}function y(){return Object(i.s)(Mi(r/b)*b,n,b).map(f).concat(Object(i.s)(Mi(c/g)*g,u,g).map(h)).concat(Object(i.s)(Mi(e/d)*d,t,d).filter((function(t){return wi(t%b)>1e-6})).map(s)).concat(Object(i.s)(Mi(a/p)*p,o,p).filter((function(t){return wi(t%g)>1e-6})).map(l))}return m.lines=function(){return y().map((function(t){return{type:"LineString",coordinates:t}}))},m.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(h(u).slice(1),f(n).reverse().slice(1),h(c).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],c=+t[0][1],u=+t[1][1],r>n&&(t=r,r=n,n=t),c>u&&(t=c,c=u,u=t),m.precision(v)):[[r,c],[n,u]]},m.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],o=+n[1][1],e>t&&(n=e,e=t,t=n),a>o&&(n=a,a=o,o=n),m.precision(v)):[[e,a],[t,o]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(b=+t[0],g=+t[1],m):[b,g]},m.stepMinor=function(t){return arguments.length?(d=+t[0],p=+t[1],m):[d,p]},m.precision=function(i){return arguments.length?(v=+i,s=tu(a,o,90),l=eu(e,t,v),f=tu(c,u,90),h=eu(r,n,v),m):v},m.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function ru(){return nu()()}var iu,ou,au,uu,cu=function(t,e){var n=t[0]*_i,r=t[1]*_i,i=e[0]*_i,o=e[1]*_i,a=Si(r),u=Oi(r),c=Si(o),s=Oi(o),l=a*Si(n),f=a*Oi(n),h=c*Si(i),d=c*Oi(i),p=2*Ni(Ai(Ii(o-r)+a*c*Ii(i-n))),b=Oi(p),g=p?function(t){var e=Oi(t*=p)/b,n=Oi(p-t)/b,r=n*l+e*h,i=n*f+e*d,o=n*u+e*s;return[ki(i,r)*yi,ki(o,Ai(r*r+i*i))*yi]}:function(){return[n*yi,r*yi]};return g.distance=p,g},su=function(t){return t},lu=fi(),fu=fi(),hu={point:Ri,lineStart:Ri,lineEnd:Ri,polygonStart:function(){hu.lineStart=du,hu.lineEnd=gu},polygonEnd:function(){hu.lineStart=hu.lineEnd=hu.point=Ri,lu.add(wi(fu)),fu.reset()},result:function(){var t=lu/2;return lu.reset(),t}};function du(){hu.point=pu}function pu(t,e){hu.point=bu,iu=au=t,ou=uu=e}function bu(t,e){fu.add(uu*t-au*e),au=t,uu=e}function gu(){bu(iu,ou)}var vu,mu,yu,_u,wu=hu,xu=1/0,ku=xu,Su=-xu,Mu=Su,Eu={point:function(t,e){t<xu&&(xu=t),t>Su&&(Su=t),e<ku&&(ku=e),e>Mu&&(Mu=e)},lineStart:Ri,lineEnd:Ri,polygonStart:Ri,polygonEnd:Ri,result:function(){var t=[[xu,ku],[Su,Mu]];return Su=Mu=-(ku=xu=1/0),t}},Tu=0,Cu=0,Ou=0,ju=0,Au=0,Pu=0,zu=0,Nu=0,Iu=0,Ru={point:Du,lineStart:Lu,lineEnd:Uu,polygonStart:function(){Ru.lineStart=Bu,Ru.lineEnd=Vu},polygonEnd:function(){Ru.point=Du,Ru.lineStart=Lu,Ru.lineEnd=Uu},result:function(){var t=Iu?[zu/Iu,Nu/Iu]:Pu?[ju/Pu,Au/Pu]:Ou?[Tu/Ou,Cu/Ou]:[NaN,NaN];return Tu=Cu=Ou=ju=Au=Pu=zu=Nu=Iu=0,t}};function Du(t,e){Tu+=t,Cu+=e,++Ou}function Lu(){Ru.point=qu}function qu(t,e){Ru.point=Fu,Du(yu=t,_u=e)}function Fu(t,e){var n=t-yu,r=e-_u,i=Ai(n*n+r*r);ju+=i*(yu+t)/2,Au+=i*(_u+e)/2,Pu+=i,Du(yu=t,_u=e)}function Uu(){Ru.point=Du}function Bu(){Ru.point=Hu}function Vu(){Wu(vu,mu)}function Hu(t,e){Ru.point=Wu,Du(vu=yu=t,mu=_u=e)}function Wu(t,e){var n=t-yu,r=e-_u,i=Ai(n*n+r*r);ju+=i*(yu+t)/2,Au+=i*(_u+e)/2,Pu+=i,zu+=(i=_u*t-yu*e)*(yu+t),Nu+=i*(_u+e),Iu+=3*i,Du(yu=t,_u=e)}var Gu=Ru;function $u(t){this._context=t}$u.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,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(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,mi)}},result:Ri};var Yu,Xu,Ku,Qu,Zu,Ju=fi(),tc={point:Ri,lineStart:function(){tc.point=ec},lineEnd:function(){Yu&&nc(Xu,Ku),tc.point=Ri},polygonStart:function(){Yu=!0},polygonEnd:function(){Yu=null},result:function(){var t=+Ju;return Ju.reset(),t}};function ec(t,e){tc.point=nc,Xu=Qu=t,Ku=Zu=e}function nc(t,e){Qu-=t,Zu-=e,Ju.add(Ai(Qu*Qu+Zu*Zu)),Qu=t,Zu=e}var rc=tc;function ic(){this._string=[]}function oc(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}ic.prototype={_radius:4.5,_circle:oc(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,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(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=oc(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var ac=function(t,e){var n,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),$i(t,n(r))),r.result()}return o.area=function(t){return $i(t,n(wu)),wu.result()},o.measure=function(t){return $i(t,n(rc)),rc.result()},o.bounds=function(t){return $i(t,n(Eu)),Eu.result()},o.centroid=function(t){return $i(t,n(Gu)),Gu.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,su):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new ic):new $u(e=t),"function"!=typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)},uc=function(t){return{stream:cc(t)}};function cc(t){return function(e){var n=new sc;for(var r in t)n[r]=t[r];return n.stream=e,n}}function sc(){}function lc(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),$i(n,t.stream(Eu)),e(Eu.result()),null!=r&&t.clipExtent(r),t}function fc(t,e,n){return lc(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,u])}),n)}function hc(t,e,n){return fc(t,[[0,0],e],n)}function dc(t,e,n){return lc(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function pc(t,e,n){return lc(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}sc.prototype={constructor:sc,point:function(t,e){this.stream.point(t,e)},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 bc=Si(30*_i),gc=function(t,e){return+e?function(t,e){function n(r,i,o,a,u,c,s,l,f,h,d,p,b,g){var v=s-r,m=l-i,y=v*v+m*m;if(y>4*e&&b--){var _=a+h,w=u+d,x=c+p,k=Ai(_*_+w*w+x*x),S=Ni(x/=k),M=wi(wi(x)-1)<1e-6||wi(o-f)<1e-6?(o+f)/2:ki(w,_),E=t(M,S),T=E[0],C=E[1],O=T-r,j=C-i,A=m*O-v*j;(A*A/y>e||wi((v*O+m*j)/y-.5)>.3||a*h+u*d+c*p<bc)&&(n(r,i,o,a,u,c,T,C,M,_/=k,w/=k,x,b,g),g.point(T,C),n(T,C,M,_,w,x,s,l,f,h,d,p,b,g))}}return function(e){var r,i,o,a,u,c,s,l,f,h,d,p,b={point:g,lineStart:v,lineEnd:y,polygonStart:function(){e.polygonStart(),b.lineStart=_},polygonEnd:function(){e.polygonEnd(),b.lineStart=v}};function g(n,r){n=t(n,r),e.point(n[0],n[1])}function v(){l=NaN,b.point=m,e.lineStart()}function m(r,i){var o=ro([r,i]),a=t(r,i);n(l,f,s,h,d,p,l=a[0],f=a[1],s=r,h=o[0],d=o[1],p=o[2],16,e),e.point(l,f)}function y(){b.point=g,e.lineEnd()}function _(){v(),b.point=w,b.lineEnd=x}function w(t,e){m(r=t,e),i=l,o=f,a=h,u=d,c=p,b.point=m}function x(){n(l,f,s,h,d,p,i,o,r,a,u,c,16,e),b.lineEnd=y,y()}return b}}(t,e):function(t){return cc({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)},vc=cc({point:function(t,e){this.stream.point(t*_i,e*_i)}});function mc(t,e,n,r,i){function o(o,a){return[e+t*(o*=r),n-t*(a*=i)]}return o.invert=function(o,a){return[(o-e)/t*r,(n-a)/t*i]},o}function yc(t,e,n,r,i,o){var a=Si(o),u=Oi(o),c=a*t,s=u*t,l=a/t,f=u/t,h=(u*n-a*e)/t,d=(u*e+a*n)/t;function p(t,o){return[c*(t*=r)-s*(o*=i)+e,n-s*t-c*o]}return p.invert=function(t,e){return[r*(l*t-f*e+h),i*(d-f*t-l*e)]},p}function _c(t){return wc((function(){return t}))()}function wc(t){var e,n,r,i,o,a,u,c,s,l,f=150,h=480,d=250,p=0,b=0,g=0,v=0,m=0,y=0,_=1,w=1,x=null,k=Oa,S=null,M=su,E=.5;function T(t){return c(t[0]*_i,t[1]*_i)}function C(t){return(t=c.invert(t[0],t[1]))&&[t[0]*yi,t[1]*yi]}function O(){var t=yc(f,0,0,_,w,y).apply(null,e(p,b)),r=(y?yc:mc)(f,h-t[0],d-t[1],_,w,y);return n=la(g,v,m),u=ca(e,r),c=ca(n,u),a=gc(u,E),j()}function j(){return s=l=null,T}return T.stream=function(t){return s&&l===t?s:s=vc(function(t){return cc({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(k(a(M(l=t)))))},T.preclip=function(t){return arguments.length?(k=t,x=void 0,j()):k},T.postclip=function(t){return arguments.length?(M=t,S=r=i=o=null,j()):M},T.clipAngle=function(t){return arguments.length?(k=+t?ja(x=t*_i):(x=null,Oa),j()):x*yi},T.clipExtent=function(t){return arguments.length?(M=null==t?(S=r=i=o=null,su):Aa(S=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),j()):null==S?null:[[S,r],[i,o]]},T.scale=function(t){return arguments.length?(f=+t,O()):f},T.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],O()):[h,d]},T.center=function(t){return arguments.length?(p=t[0]%360*_i,b=t[1]%360*_i,O()):[p*yi,b*yi]},T.rotate=function(t){return arguments.length?(g=t[0]%360*_i,v=t[1]%360*_i,m=t.length>2?t[2]%360*_i:0,O()):[g*yi,v*yi,m*yi]},T.angle=function(t){return arguments.length?(y=t%360*_i,O()):y*yi},T.reflectX=function(t){return arguments.length?(_=t?-1:1,O()):_<0},T.reflectY=function(t){return arguments.length?(w=t?-1:1,O()):w<0},T.precision=function(t){return arguments.length?(a=gc(u,E=t*t),j()):Ai(E)},T.fitExtent=function(t,e){return fc(T,t,e)},T.fitSize=function(t,e){return hc(T,t,e)},T.fitWidth=function(t,e){return dc(T,t,e)},T.fitHeight=function(t,e){return pc(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&C,O()}}function xc(t){var e=0,n=bi/3,r=wc(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*_i,n=t[1]*_i):[e*yi,n*yi]},i}function kc(t,e){var n=Oi(t),r=(n+Oi(e))/2;if(wi(r)<1e-6)return function(t){var e=Si(t);function n(t,n){return[t*e,Oi(n)/e]}return n.invert=function(t,n){return[t/e,Ni(n*e)]},n}(t);var i=1+n*(2*r-n),o=Ai(i)/r;function a(t,e){var n=Ai(i-2*r*Oi(e))/r;return[n*Oi(t*=r),o-n*Si(t)]}return a.invert=function(t,e){var n=o-e,a=ki(t,wi(n))*ji(n);return n*r<0&&(a-=bi*ji(t)*ji(n)),[a/r,Ni((i-(t*t+n*n)*r*r)/(2*r))]},a}var Sc=function(){return xc(kc).scale(155.424).center([0,33.6442])},Mc=function(){return Sc().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},Ec=function(){var t,e,n,r,i,o,a=Mc(),u=Sc().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Sc().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,e){o=[t,e]}};function l(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(r.point(e,a),o)||(i.point(e,a),o)}function f(){return t=e=null,l}return l.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},l.stream=function(n){return t&&e===n?t:(r=[a.stream(e=n),u.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},l.precision=function(t){return arguments.length?(a.precision(t),u.precision(t),c.precision(t),f()):a.precision()},l.scale=function(t){return arguments.length?(a.scale(t),u.scale(.35*t),c.scale(t),l.translate(a.translate())):a.scale()},l.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],l=+t[1];return n=a.translate(t).clipExtent([[o-.455*e,l-.238*e],[o+.455*e,l+.238*e]]).stream(s),r=u.translate([o-.307*e,l+.201*e]).clipExtent([[o-.425*e+1e-6,l+.12*e+1e-6],[o-.214*e-1e-6,l+.234*e-1e-6]]).stream(s),i=c.translate([o-.205*e,l+.212*e]).clipExtent([[o-.214*e+1e-6,l+.166*e+1e-6],[o-.115*e-1e-6,l+.234*e-1e-6]]).stream(s),f()},l.fitExtent=function(t,e){return fc(l,t,e)},l.fitSize=function(t,e){return hc(l,t,e)},l.fitWidth=function(t,e){return dc(l,t,e)},l.fitHeight=function(t,e){return pc(l,t,e)},l.scale(1070)};function Tc(t){return function(e,n){var r=Si(e),i=Si(n),o=t(r*i);return[o*i*Oi(e),o*Oi(n)]}}function Cc(t){return function(e,n){var r=Ai(e*e+n*n),i=t(r),o=Oi(i),a=Si(i);return[ki(e*o,r*a),Ni(r&&n*o/r)]}}var Oc=Tc((function(t){return Ai(2/(1+t))}));Oc.invert=Cc((function(t){return 2*Ni(t/2)}));var jc=function(){return _c(Oc).scale(124.75).clipAngle(179.999)},Ac=Tc((function(t){return(t=zi(t))&&t/Oi(t)}));Ac.invert=Cc((function(t){return t}));var Pc=function(){return _c(Ac).scale(79.4188).clipAngle(179.999)};function zc(t,e){return[t,Ti(Pi((gi+e)/2))]}zc.invert=function(t,e){return[t,2*xi(Ei(e))-gi]};var Nc=function(){return Ic(zc).scale(961/mi)};function Ic(t){var e,n,r,i=_c(t),o=i.center,a=i.scale,u=i.translate,c=i.clipExtent,s=null;function l(){var o=bi*a(),u=i(pa(i.rotate()).invert([0,0]));return c(null==s?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:t===zc?[[Math.max(u[0]-o,s),e],[Math.min(u[0]+o,n),r]]:[[s,Math.max(u[1]-o,e)],[n,Math.min(u[1]+o,r)]])}return i.scale=function(t){return arguments.length?(a(t),l()):a()},i.translate=function(t){return arguments.length?(u(t),l()):u()},i.center=function(t){return arguments.length?(o(t),l()):o()},i.clipExtent=function(t){return arguments.length?(null==t?s=e=n=r=null:(s=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),l()):null==s?null:[[s,e],[n,r]]},l()}function Rc(t){return Pi((gi+t)/2)}function Dc(t,e){var n=Si(t),r=t===e?Oi(t):Ti(n/Si(e))/Ti(Rc(e)/Rc(t)),i=n*Ci(Rc(t),r)/r;if(!r)return zc;function o(t,e){i>0?e<1e-6-gi&&(e=1e-6-gi):e>gi-1e-6&&(e=gi-1e-6);var n=i/Ci(Rc(e),r);return[n*Oi(r*t),i-n*Si(r*t)]}return o.invert=function(t,e){var n=i-e,o=ji(r)*Ai(t*t+n*n),a=ki(t,wi(n))*ji(n);return n*r<0&&(a-=bi*ji(t)*ji(n)),[a/r,2*xi(Ci(i/o,1/r))-gi]},o}var Lc=function(){return xc(Dc).scale(109.5).parallels([30,30])};function qc(t,e){return[t,e]}qc.invert=qc;var Fc=function(){return _c(qc).scale(152.63)};function Uc(t,e){var n=Si(t),r=t===e?Oi(t):(n-Si(e))/(e-t),i=n/r+t;if(wi(r)<1e-6)return qc;function o(t,e){var n=i-e,o=r*t;return[n*Oi(o),i-n*Si(o)]}return o.invert=function(t,e){var n=i-e,o=ki(t,wi(n))*ji(n);return n*r<0&&(o-=bi*ji(t)*ji(n)),[o/r,i-ji(r)*Ai(t*t+n*n)]},o}var Bc=function(){return xc(Uc).scale(131.154).center([0,13.9389])},Vc=1.340264,Hc=-.081106,Wc=893e-6,Gc=.003796,$c=Ai(3)/2;function Yc(t,e){var n=Ni($c*Oi(e)),r=n*n,i=r*r*r;return[t*Si(n)/($c*(Vc+3*Hc*r+i*(7*Wc+9*Gc*r))),n*(Vc+Hc*r+i*(Wc+Gc*r))]}Yc.invert=function(t,e){for(var n,r=e,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=n=(r*(Vc+Hc*i+o*(Wc+Gc*i))-e)/(Vc+3*Hc*i+o*(7*Wc+9*Gc*i)))*r)*i*i,!(wi(n)<1e-12));++a);return[$c*t*(Vc+3*Hc*i+o*(7*Wc+9*Gc*i))/Si(r),Ni(Oi(r)/$c)]};var Xc=function(){return _c(Yc).scale(177.158)};function Kc(t,e){var n=Si(e),r=Si(t)*n;return[n*Oi(t)/r,Oi(e)/r]}Kc.invert=Cc(xi);var Qc=function(){return _c(Kc).scale(144.049).clipAngle(60)},Zc=function(){var t,e,n,r,i,o,a,u=1,c=0,s=0,l=1,f=1,h=0,d=null,p=1,b=1,g=cc({point:function(t,e){var n=y([t,e]);this.stream.point(n[0],n[1])}}),v=su;function m(){return p=u*l,b=u*f,o=a=null,y}function y(n){var r=n[0]*p,i=n[1]*b;if(h){var o=i*t-r*e;r=r*t+i*e,i=o}return[r+c,i+s]}return y.invert=function(n){var r=n[0]-c,i=n[1]-s;if(h){var o=i*t+r*e;r=r*t-i*e,i=o}return[r/p,i/b]},y.stream=function(t){return o&&a===t?o:o=g(v(a=t))},y.postclip=function(t){return arguments.length?(v=t,d=n=r=i=null,m()):v},y.clipExtent=function(t){return arguments.length?(v=null==t?(d=n=r=i=null,su):Aa(d=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),m()):null==d?null:[[d,n],[r,i]]},y.scale=function(t){return arguments.length?(u=+t,m()):u},y.translate=function(t){return arguments.length?(c=+t[0],s=+t[1],m()):[c,s]},y.angle=function(n){return arguments.length?(e=Oi(h=n%360*_i),t=Si(h),m()):h*yi},y.reflectX=function(t){return arguments.length?(l=t?-1:1,m()):l<0},y.reflectY=function(t){return arguments.length?(f=t?-1:1,m()):f<0},y.fitExtent=function(t,e){return fc(y,t,e)},y.fitSize=function(t,e){return hc(y,t,e)},y.fitWidth=function(t,e){return dc(y,t,e)},y.fitHeight=function(t,e){return pc(y,t,e)},y};function Jc(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}Jc.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(wi(n)>1e-6&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var ts=function(){return _c(Jc).scale(175.295)};function es(t,e){return[Si(e)*Oi(t),Oi(e)]}es.invert=Cc(Ni);var ns=function(){return _c(es).scale(249.5).clipAngle(90.000001)};function rs(t,e){var n=Si(e),r=1+Si(t)*n;return[n*Oi(t)/r,Oi(e)/r]}rs.invert=Cc((function(t){return 2*xi(t)}));var is=function(){return _c(rs).scale(250).clipAngle(142)};function os(t,e){return[Ti(Pi((gi+e)/2)),-t]}os.invert=function(t,e){return[-e,2*xi(Ei(t))-gi]};var as=function(){var t=Ic(os),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)};function us(t,e){return t.parent===e.parent?1:2}function cs(t,e){return t+e.x}function ss(t,e){return Math.max(t,e.y)}var ls=function(){var t=us,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(cs,0)/t.length}(n),e.y=function(t){return 1+t.reduce(ss,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),s=u.x-t(u,c)/2,l=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-s)/(l-s)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i};function fs(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function hs(t,e){var n,r,i,o,a,u=new gs(t),c=+t.value&&(u.value=t.value),s=[u];for(null==e&&(e=ds);n=s.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)s.push(r=n.children[o]=new gs(i[o])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(bs)}function ds(t){return t.children}function ps(t){t.data=t.data.data}function bs(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function gs(t){this.data=t,this.depth=this.height=0,this.parent=null}gs.prototype=hs.prototype={constructor:gs,count:function(){return this.eachAfter(fs)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},eachAfter:function(t){for(var e,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n]);for(;i=a.pop();)t(i);return this},eachBefore:function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return hs(this).eachBefore(ps)}};var vs=Array.prototype.slice,ms=function(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(vs.call(t))).length,o=[];r<i;)e=t[r],n&&ws(n,e)?++r:(n=ks(o=ys(o,e)),r=0);return n};function ys(t,e){var n,r;if(xs(e,t))return[e];for(n=0;n<t.length;++n)if(_s(e,t[n])&&xs(Ss(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(_s(Ss(t[n],t[r]),e)&&_s(Ss(t[n],e),t[r])&&_s(Ss(t[r],e),t[n])&&xs(Ms(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function _s(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function ws(t,e){var n=t.r-e.r+1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function xs(t,e){for(var n=0;n<e.length;++n)if(!ws(t,e[n]))return!1;return!0}function ks(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return Ss(t[0],t[1]);case 3:return Ms(t[0],t[1],t[2])}var e}function Ss(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,u=e.r,c=o-n,s=a-r,l=u-i,f=Math.sqrt(c*c+s*s);return{x:(n+o+c/f*l)/2,y:(r+a+s/f*l)/2,r:(f+i+u)/2}}function Ms(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,u=e.y,c=e.r,s=n.x,l=n.y,f=n.r,h=r-a,d=r-s,p=i-u,b=i-l,g=c-o,v=f-o,m=r*r+i*i-o*o,y=m-a*a-u*u+c*c,_=m-s*s-l*l+f*f,w=d*p-h*b,x=(p*_-b*y)/(2*w)-r,k=(b*g-p*v)/w,S=(d*y-h*_)/(2*w)-i,M=(h*v-d*g)/w,E=k*k+M*M-1,T=2*(o+x*k+S*M),C=x*x+S*S-o*o,O=-(E?(T+Math.sqrt(T*T-4*E*C))/(2*E):C/T);return{x:r+x+k*O,y:i+S+M*O,r:O}}function Es(t,e,n){var r,i,o,a,u=t.x-e.x,c=t.y-e.y,s=u*u+c*c;s?(i=e.r+n.r,i*=i,a=t.r+n.r,i>(a*=a)?(r=(s+a-i)/(2*s),o=Math.sqrt(Math.max(0,a/s-r*r)),n.x=t.x-r*u-o*c,n.y=t.y-r*c+o*u):(r=(s+i-a)/(2*s),o=Math.sqrt(Math.max(0,i/s-r*r)),n.x=e.x+r*u-o*c,n.y=e.y+r*c+o*u)):(n.x=e.x+n.r,n.y=e.y)}function Ts(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Cs(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function Os(t){this._=t,this.next=null,this.previous=null}function js(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,u,c,s,l,f;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;Es(n,e,r=t[2]),e=new Os(e),n=new Os(n),r=new Os(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(u=3;u<i;++u){Es(e._,n._,r=t[u]),r=new Os(r),c=n.next,s=e.previous,l=n._.r,f=e._.r;do{if(l<=f){if(Ts(c._,r._)){n=c,e.next=n,n.previous=e,--u;continue t}l+=c._.r,c=c.next}else{if(Ts(s._,r._)){(e=s).next=n,n.previous=e,--u;continue t}f+=s._.r,s=s.previous}}while(c!==s.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,o=Cs(e);(r=r.next)!==n;)(a=Cs(r))<o&&(e=r,o=a);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=ms(e),u=0;u<i;++u)(e=t[u]).x-=r.x,e.y-=r.y;return r.r}var As=function(t){return js(t),t};function Ps(t){return null==t?null:zs(t)}function zs(t){if("function"!=typeof t)throw new Error;return t}function Ns(){return 0}var Is=function(t){return function(){return t}};function Rs(t){return Math.sqrt(t.value)}var Ds=function(){var t=null,e=1,n=1,r=Ns;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(Ls(t)).eachAfter(qs(r,.5)).eachBefore(Fs(1)):i.eachBefore(Ls(Rs)).eachAfter(qs(Ns,1)).eachAfter(qs(r,i.r/Math.min(e,n))).eachBefore(Fs(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=Ps(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:Is(+t),i):r},i};function Ls(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function qs(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,u=t(n)*e||0;if(u)for(i=0;i<a;++i)r[i].r+=u;if(o=js(r),u)for(i=0;i<a;++i)r[i].r-=u;n.r=o+u}}}function Fs(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var Us=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Bs=function(t,e,n,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(r-e)/t.value;++u<c;)(o=a[u]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*s},Vs=function(){var t=1,e=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/o,i.eachBefore(function(t,e){return function(r){r.children&&Bs(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,u=r.y1-n;a<i&&(i=a=(i+a)/2),u<o&&(o=u=(o+u)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=u}}(e,o)),r&&i.eachBefore(Us),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i},Hs={depth:-1},Ws={};function Gs(t){return t.id}function $s(t){return t.parentId}var Ys=function(){var t=Gs,e=$s;function n(n){var r,i,o,a,u,c,s,l=n.length,f=new Array(l),h={};for(i=0;i<l;++i)r=n[i],u=f[i]=new gs(r),null!=(c=t(r,i,n))&&(c+="")&&(h[s="$"+(u.id=c)]=s in h?Ws:u);for(i=0;i<l;++i)if(u=f[i],null!=(c=e(n[i],i,n))&&(c+="")){if(!(a=h["$"+c]))throw new Error("missing: "+c);if(a===Ws)throw new Error("ambiguous: "+c);a.children?a.children.push(u):a.children=[u],u.parent=a}else{if(o)throw new Error("multiple roots");o=u}if(!o)throw new Error("no root");if(o.parent=Hs,o.eachBefore((function(t){t.depth=t.parent.depth+1,--l})).eachBefore(bs),o.parent=null,l>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=zs(e),n):t},n.parentId=function(t){return arguments.length?(e=zs(t),n):e},n};function Xs(t,e){return t.parent===e.parent?1:2}function Ks(t){var e=t.children;return e?e[0]:t.t}function Qs(t){var e=t.children;return e?e[e.length-1]:t.t}function Zs(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Js(t,e,n){return t.a.parent===e.parent?t.a:n}function tl(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}tl.prototype=Object.create(gs.prototype);var el=function(){var t=Xs,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,o,a=new tl(t,0),u=[a];e=u.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(n=e.children[i]=new tl(r[i],i)),n.parent=e;return(a.parent=new tl(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var s=i,l=i,f=i;i.eachBefore((function(t){t.x<s.x&&(s=t),t.x>l.x&&(l=t),t.depth>f.depth&&(f=t)}));var h=s===l?1:t(s,l)/2,d=h-s.x,p=e/(l.x+h+d),b=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*b}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,u=n,c=o.parent.children[0],s=o.m,l=a.m,f=u.m,h=c.m;u=Qs(u),o=Ks(o),u&&o;)c=Ks(c),(a=Qs(a)).a=e,(i=u.z+f-o.z-s+t(u._,o._))>0&&(Zs(Js(u,e,r),e,i),s+=i,l+=i),f+=u.m,s+=o.m,h+=c.m,l+=a.m;u&&!Qs(a)&&(a.t=u,a.m+=f-l),o&&!Ks(c)&&(c.t=o,c.m+=s-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},nl=function(t,e,n,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(i-n)/t.value;++u<c;)(o=a[u]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*s},rl=(1+Math.sqrt(5))/2;function il(t,e,n,r,i,o){for(var a,u,c,s,l,f,h,d,p,b,g,v=[],m=e.children,y=0,_=0,w=m.length,x=e.value;y<w;){c=i-n,s=o-r;do{l=m[_++].value}while(!l&&_<w);for(f=h=l,g=l*l*(b=Math.max(s/c,c/s)/(x*t)),p=Math.max(h/g,g/f);_<w;++_){if(l+=u=m[_].value,u<f&&(f=u),u>h&&(h=u),g=l*l*b,(d=Math.max(h/g,g/f))>p){l-=u;break}p=d}v.push(a={value:l,dice:c<s,children:m.slice(y,_)}),a.dice?Bs(a,n,r,i,x?r+=s*l/x:o):nl(a,n,r,x?n+=c*l/x:i,o),x-=l,y=_}return v}var ol=function t(e){function n(t,n,r,i,o){il(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(rl),al=function(){var t=ol,e=!1,n=1,r=1,i=[0],o=Ns,a=Ns,u=Ns,c=Ns,s=Ns;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(Us),t}function f(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,f=e.x1-n,h=e.y1-n;f<r&&(r=f=(r+f)/2),h<l&&(l=h=(l+h)/2),e.x0=r,e.y0=l,e.x1=f,e.y1=h,e.children&&(n=i[e.depth+1]=o(e)/2,r+=s(e)-n,l+=a(e)-n,(f-=u(e)-n)<r&&(r=f=(r+f)/2),(h-=c(e)-n)<l&&(l=h=(l+h)/2),t(e,r,l,f,h))}return l.round=function(t){return arguments.length?(e=!!t,l):e},l.size=function(t){return arguments.length?(n=+t[0],r=+t[1],l):[n,r]},l.tile=function(e){return arguments.length?(t=zs(e),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:Is(+t),l):o},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:Is(+t),l):a},l.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:Is(+t),l):u},l.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:Is(+t),l):c},l.paddingLeft=function(t){return arguments.length?(s="function"==typeof t?t:Is(+t),l):s},l},ul=function(t,e,n,r,i){var o,a,u=t.children,c=u.length,s=new Array(c+1);for(s[0]=a=o=0;o<c;++o)s[o+1]=a+=u[o].value;!function t(e,n,r,i,o,a,c){if(e>=n-1){var l=u[e];return l.x0=i,l.y0=o,l.x1=a,void(l.y1=c)}for(var f=s[e],h=r/2+f,d=e+1,p=n-1;d<p;){var b=d+p>>>1;s[b]<h?d=b+1:p=b}h-s[d-1]<s[d]-h&&e+1<d&&--d;var g=s[d]-f,v=r-g;if(a-i>c-o){var m=(i*v+a*g)/r;t(e,d,g,i,o,m,c),t(d,n,v,m,o,a,c)}else{var y=(o*v+c*g)/r;t(e,d,g,i,o,a,y),t(d,n,v,i,y,a,c)}}(0,c,t.value,e,n,r,i)},cl=function(t,e,n,r,i){(1&t.depth?nl:Bs)(t,e,n,r,i)},sl=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,u,c,s,l,f=-1,h=a.length,d=t.value;++f<h;){for(c=(u=a[f]).children,s=u.value=0,l=c.length;s<l;++s)u.value+=c[s].value;u.dice?Bs(u,n,r,i,r+=(o-r)*u.value/d):nl(u,n,r,n+=(i-n)*u.value/d,o),d-=u.value}else t._squarify=a=il(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(rl),ll=n(24),fl=function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[1]*i[0]-e[0]*i[1];return o/2},hl=function(t){for(var e,n,r=-1,i=t.length,o=0,a=0,u=t[i-1],c=0;++r<i;)e=u,u=t[r],c+=n=e[0]*u[1]-u[0]*e[1],o+=(e[0]+u[0])*n,a+=(e[1]+u[1])*n;return[o/(c*=3),a/c]};function dl(t,e){return t[0]-e[0]||t[1]-e[1]}function pl(t){for(var e,n,r,i=t.length,o=[0,1],a=2,u=2;u<i;++u){for(;a>1&&(e=t[o[a-2]],n=t[o[a-1]],r=t[u],(n[0]-e[0])*(r[1]-e[1])-(n[1]-e[1])*(r[0]-e[0])<=0);)--a;o[a++]=u}return o.slice(0,a)}var bl=function(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e<n;++e)r[e]=[+t[e][0],+t[e][1],e];for(r.sort(dl),e=0;e<n;++e)i[e]=[r[e][0],-r[e][1]];var o=pl(r),a=pl(i),u=a[0]===o[0],c=a[a.length-1]===o[o.length-1],s=[];for(e=o.length-1;e>=0;--e)s.push(t[r[o[e]][2]]);for(e=+u;e<a.length-c;++e)s.push(t[r[a[e]][2]]);return s},gl=function(t,e){for(var n,r,i=t.length,o=t[i-1],a=e[0],u=e[1],c=o[0],s=o[1],l=!1,f=0;f<i;++f)n=(o=t[f])[0],(r=o[1])>u!=s>u&&a<(c-n)*(u-r)/(s-r)+n&&(l=!l),c=n,s=r;return l},vl=function(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r<i;)e=a,n=u,e-=a=(o=t[r])[0],n-=u=o[1],c+=Math.sqrt(e*e+n*n);return c},ml=n(90),yl=function(){return Math.random()},_l=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(yl),wl=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*e()-1,o=2*e()-1,i=r*r+o*o}while(!i||i>1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(yl),xl=function t(e){function n(){var t=wl.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(yl),kl=function t(e){function n(t){return function(){for(var n=0,r=0;r<t;++r)n+=e();return n}}return n.source=t,n}(yl),Sl=function t(e){function n(t){var n=kl.source(e)(t);return function(){return n()/t}}return n.source=t,n}(yl),Ml=function t(e){function n(t){return function(){return-Math.log(1-e())/t}}return n.source=t,n}(yl),El=n(116),Tl=n(136),Cl=function(t){return Ot(st(t).call(document.documentElement))},Ol=0;function jl(){return new Al}function Al(){this._="@"+(++Ol).toString(36)}Al.prototype=jl.prototype={constructor:Al,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Pl=function(t){return"string"==typeof t?new Et([document.querySelectorAll(t)],[document.documentElement]):new Et([null==t?[]:t],Mt)},zl=function(t,e){null==e&&(e=It().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=Rt(t,e[n]);return i},Nl=function(t){return function(){return t}},Il=Math.abs,Rl=Math.atan2,Dl=Math.cos,Ll=Math.max,ql=Math.min,Fl=Math.sin,Ul=Math.sqrt,Bl=Math.PI,Vl=Bl/2,Hl=2*Bl;function Wl(t){return t>1?0:t<-1?Bl:Math.acos(t)}function Gl(t){return t>=1?Vl:t<=-1?-Vl:Math.asin(t)}function $l(t){return t.innerRadius}function Yl(t){return t.outerRadius}function Xl(t){return t.startAngle}function Kl(t){return t.endAngle}function Ql(t){return t&&t.padAngle}function Zl(t,e,n,r,i,o,a,u){var c=n-t,s=r-e,l=a-i,f=u-o,h=f*c-l*s;if(!(h*h<1e-12))return[t+(h=(l*(e-o)-f*(t-i))/h)*c,e+h*s]}function Jl(t,e,n,r,i,o,a){var u=t-n,c=e-r,s=(a?o:-o)/Ul(u*u+c*c),l=s*c,f=-s*u,h=t+l,d=e+f,p=n+l,b=r+f,g=(h+p)/2,v=(d+b)/2,m=p-h,y=b-d,_=m*m+y*y,w=i-o,x=h*b-p*d,k=(y<0?-1:1)*Ul(Ll(0,w*w*_-x*x)),S=(x*y-m*k)/_,M=(-x*m-y*k)/_,E=(x*y+m*k)/_,T=(-x*m+y*k)/_,C=S-g,O=M-v,j=E-g,A=T-v;return C*C+O*O>j*j+A*A&&(S=E,M=T),{cx:S,cy:M,x01:-l,y01:-f,x11:S*(i/w-1),y11:M*(i/w-1)}}var tf=function(){var t=$l,e=Yl,n=Nl(0),r=null,i=Xl,o=Kl,a=Ql,u=null;function c(){var c,s,l=+t.apply(this,arguments),f=+e.apply(this,arguments),h=i.apply(this,arguments)-Vl,d=o.apply(this,arguments)-Vl,p=Il(d-h),b=d>h;if(u||(u=c=En()),f<l&&(s=f,f=l,l=s),f>1e-12)if(p>Hl-1e-12)u.moveTo(f*Dl(h),f*Fl(h)),u.arc(0,0,f,h,d,!b),l>1e-12&&(u.moveTo(l*Dl(d),l*Fl(d)),u.arc(0,0,l,d,h,b));else{var g,v,m=h,y=d,_=h,w=d,x=p,k=p,S=a.apply(this,arguments)/2,M=S>1e-12&&(r?+r.apply(this,arguments):Ul(l*l+f*f)),E=ql(Il(f-l)/2,+n.apply(this,arguments)),T=E,C=E;if(M>1e-12){var O=Gl(M/l*Fl(S)),j=Gl(M/f*Fl(S));(x-=2*O)>1e-12?(_+=O*=b?1:-1,w-=O):(x=0,_=w=(h+d)/2),(k-=2*j)>1e-12?(m+=j*=b?1:-1,y-=j):(k=0,m=y=(h+d)/2)}var A=f*Dl(m),P=f*Fl(m),z=l*Dl(w),N=l*Fl(w);if(E>1e-12){var I,R=f*Dl(y),D=f*Fl(y),L=l*Dl(_),q=l*Fl(_);if(p<Bl&&(I=Zl(A,P,L,q,R,D,z,N))){var F=A-I[0],U=P-I[1],B=R-I[0],V=D-I[1],H=1/Fl(Wl((F*B+U*V)/(Ul(F*F+U*U)*Ul(B*B+V*V)))/2),W=Ul(I[0]*I[0]+I[1]*I[1]);T=ql(E,(l-W)/(H-1)),C=ql(E,(f-W)/(H+1))}}k>1e-12?C>1e-12?(g=Jl(L,q,A,P,f,C,b),v=Jl(R,D,z,N,f,C,b),u.moveTo(g.cx+g.x01,g.cy+g.y01),C<E?u.arc(g.cx,g.cy,C,Rl(g.y01,g.x01),Rl(v.y01,v.x01),!b):(u.arc(g.cx,g.cy,C,Rl(g.y01,g.x01),Rl(g.y11,g.x11),!b),u.arc(0,0,f,Rl(g.cy+g.y11,g.cx+g.x11),Rl(v.cy+v.y11,v.cx+v.x11),!b),u.arc(v.cx,v.cy,C,Rl(v.y11,v.x11),Rl(v.y01,v.x01),!b))):(u.moveTo(A,P),u.arc(0,0,f,m,y,!b)):u.moveTo(A,P),l>1e-12&&x>1e-12?T>1e-12?(g=Jl(z,N,R,D,l,-T,b),v=Jl(A,P,L,q,l,-T,b),u.lineTo(g.cx+g.x01,g.cy+g.y01),T<E?u.arc(g.cx,g.cy,T,Rl(g.y01,g.x01),Rl(v.y01,v.x01),!b):(u.arc(g.cx,g.cy,T,Rl(g.y01,g.x01),Rl(g.y11,g.x11),!b),u.arc(0,0,l,Rl(g.cy+g.y11,g.cx+g.x11),Rl(v.cy+v.y11,v.cx+v.x11),b),u.arc(v.cx,v.cy,T,Rl(v.y11,v.x11),Rl(v.y01,v.x01),!b))):u.arc(0,0,l,w,_,b):u.lineTo(z,N)}else u.moveTo(0,0);if(u.closePath(),c)return u=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Bl/2;return[Dl(r)*n,Fl(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Nl(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Nl(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Nl(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Nl(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Nl(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Nl(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Nl(+t),c):a},c.context=function(t){return arguments.length?(u=null==t?null:t,c):u},c};function ef(t){this._context=t}ef.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var nf=function(t){return new ef(t)};function rf(t){return t[0]}function of(t){return t[1]}var af=function(){var t=rf,e=of,n=Nl(!0),r=null,i=nf,o=null;function a(a){var u,c,s,l=a.length,f=!1;for(null==r&&(o=i(s=En())),u=0;u<=l;++u)!(u<l&&n(c=a[u],u,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(c,u,a),+e(c,u,a));if(s)return o=null,s+""||null}return a.x=function(e){return arguments.length?(t="function"==typeof e?e:Nl(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:Nl(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:Nl(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a},uf=function(){var t=rf,e=null,n=Nl(0),r=of,i=Nl(!0),o=null,a=nf,u=null;function c(c){var s,l,f,h,d,p=c.length,b=!1,g=new Array(p),v=new Array(p);for(null==o&&(u=a(d=En())),s=0;s<=p;++s){if(!(s<p&&i(h=c[s],s,c))===b)if(b=!b)l=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),f=s-1;f>=l;--f)u.point(g[f],v[f]);u.lineEnd(),u.areaEnd()}b&&(g[s]=+t(h,s,c),v[s]=+n(h,s,c),u.point(e?+e(h,s,c):g[s],r?+r(h,s,c):v[s]))}if(d)return u=null,d+""||null}function s(){return af().defined(i).curve(a).context(o)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:Nl(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:Nl(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Nl(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:Nl(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:Nl(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Nl(+t),c):r},c.lineX0=c.lineY0=function(){return s().x(t).y(n)},c.lineY1=function(){return s().x(t).y(r)},c.lineX1=function(){return s().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Nl(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c},cf=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},sf=function(t){return t},lf=function(){var t=sf,e=cf,n=null,r=Nl(0),i=Nl(Hl),o=Nl(0);function a(a){var u,c,s,l,f,h=a.length,d=0,p=new Array(h),b=new Array(h),g=+r.apply(this,arguments),v=Math.min(Hl,Math.max(-Hl,i.apply(this,arguments)-g)),m=Math.min(Math.abs(v)/h,o.apply(this,arguments)),y=m*(v<0?-1:1);for(u=0;u<h;++u)(f=b[p[u]=u]=+t(a[u],u,a))>0&&(d+=f);for(null!=e?p.sort((function(t,n){return e(b[t],b[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),u=0,s=d?(v-h*y)/d:0;u<h;++u,g=l)c=p[u],l=g+((f=b[c])>0?f*s:0)+y,b[c]={data:a[c],index:u,value:f,startAngle:g,endAngle:l,padAngle:m};return b}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:Nl(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Nl(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Nl(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Nl(+t),a):o},a},ff=df(nf);function hf(t){this._curve=t}function df(t){function e(e){return new hf(t(e))}return e._curve=t,e}function pf(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(df(t)):e()._curve},t}hf.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var bf=function(){return pf(af().curve(ff))},gf=function(){var t=uf().curve(ff),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return pf(n())},delete t.lineX0,t.lineEndAngle=function(){return pf(r())},delete t.lineX1,t.lineInnerRadius=function(){return pf(i())},delete t.lineY0,t.lineOuterRadius=function(){return pf(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(df(t)):e()._curve},t},vf=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},mf=Array.prototype.slice;function yf(t){return t.source}function _f(t){return t.target}function wf(t){var e=yf,n=_f,r=rf,i=of,o=null;function a(){var a,u=mf.call(arguments),c=e.apply(this,u),s=n.apply(this,u);if(o||(o=a=En()),t(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=s,u)),+i.apply(this,u)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"==typeof t?t:Nl(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:Nl(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function xf(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function kf(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Sf(t,e,n,r,i){var o=vf(e,n),a=vf(e,n=(n+i)/2),u=vf(r,n),c=vf(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function Mf(){return wf(xf)}function Ef(){return wf(kf)}function Tf(){var t=wf(Sf);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var Cf={draw:function(t,e){var n=Math.sqrt(e/Bl);t.moveTo(n,0),t.arc(0,0,n,0,Hl)}},Of={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},jf=Math.sqrt(1/3),Af=2*jf,Pf={draw:function(t,e){var n=Math.sqrt(e/Af),r=n*jf;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},zf=Math.sin(Bl/10)/Math.sin(7*Bl/10),Nf=Math.sin(Hl/10)*zf,If=-Math.cos(Hl/10)*zf,Rf={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Nf*n,i=If*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=Hl*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*n,-u*n),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},Df={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},Lf=Math.sqrt(3),qf={draw:function(t,e){var n=-Math.sqrt(e/(3*Lf));t.moveTo(0,2*n),t.lineTo(-Lf*n,-n),t.lineTo(Lf*n,-n),t.closePath()}},Ff=Math.sqrt(3)/2,Uf=1/Math.sqrt(12),Bf=3*(Uf/2+1),Vf={draw:function(t,e){var n=Math.sqrt(e/Bf),r=n/2,i=n*Uf,o=r,a=n*Uf+n,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(-.5*r-Ff*i,Ff*r+-.5*i),t.lineTo(-.5*o-Ff*a,Ff*o+-.5*a),t.lineTo(-.5*u-Ff*c,Ff*u+-.5*c),t.lineTo(-.5*r+Ff*i,-.5*i-Ff*r),t.lineTo(-.5*o+Ff*a,-.5*a-Ff*o),t.lineTo(-.5*u+Ff*c,-.5*c-Ff*u),t.closePath()}},Hf=[Cf,Of,Pf,Df,Rf,qf,Vf],Wf=function(){var t=Nl(Cf),e=Nl(64),n=null;function r(){var r;if(n||(n=r=En()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:Nl(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:Nl(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r},Gf=function(){};function $f(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Yf(t){this._context=t}Yf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$f(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$f(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Xf=function(t){return new Yf(t)};function Kf(t){this._context=t}Kf.prototype={areaStart:Gf,areaEnd:Gf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:$f(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Qf=function(t){return new Kf(t)};function Zf(t){this._context=t}Zf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:$f(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Jf=function(t){return new Zf(t)};function th(t,e){this._basis=new Yf(t),this._beta=e}th.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,u=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*e[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var eh=function t(e){function n(t){return 1===e?new Yf(t):new th(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function nh(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function rh(t,e){this._context=t,this._k=(1-e)/6}rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:nh(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:nh(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ih=function t(e){function n(t){return new rh(t,e)}return n.tension=function(e){return t(+e)},n}(0);function oh(t,e){this._context=t,this._k=(1-e)/6}oh.prototype={areaStart:Gf,areaEnd:Gf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:nh(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ah=function t(e){function n(t){return new oh(t,e)}return n.tension=function(e){return t(+e)},n}(0);function uh(t,e){this._context=t,this._k=(1-e)/6}uh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nh(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ch=function t(e){function n(t){return new uh(t,e)}return n.tension=function(e){return t(+e)},n}(0);function sh(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>1e-12){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>1e-12){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*s+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function lh(t,e){this._context=t,this._alpha=e}lh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:sh(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var fh=function t(e){function n(t){return e?new lh(t,e):new rh(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function hh(t,e){this._context=t,this._alpha=e}hh.prototype={areaStart:Gf,areaEnd:Gf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:sh(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var dh=function t(e){function n(t){return e?new hh(t,e):new oh(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ph(t,e){this._context=t,this._alpha=e}ph.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:sh(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var bh=function t(e){function n(t){return e?new ph(t,e):new uh(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function gh(t){this._context=t}gh.prototype={areaStart:Gf,areaEnd:Gf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var vh=function(t){return new gh(t)};function mh(t){return t<0?-1:1}function yh(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(mh(o)+mh(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function _h(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function wh(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function xh(t){this._context=t}function kh(t){this._context=new Sh(t)}function Sh(t){this._context=t}function Mh(t){return new xh(t)}function Eh(t){return new kh(t)}function Th(t){this._context=t}function Ch(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}xh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:wh(this,this._t0,_h(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,wh(this,_h(this,n=yh(this,t,e)),n);break;default:wh(this,this._t0,n=yh(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(kh.prototype=Object.create(xh.prototype)).point=function(t,e){xh.prototype.point.call(this,e,t)},Sh.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},Th.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Ch(t),i=Ch(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Oh=function(t){return new Th(t)};function jh(t,e){this._context=t,this._t=e}jh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Ah=function(t){return new jh(t,.5)};function Ph(t){return new jh(t,0)}function zh(t){return new jh(t,1)}var Nh=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},Ih=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n};function Rh(t,e){return t[e]}var Dh=function(){var t=Nl([]),e=Ih,n=Nh,r=Rh;function i(i){var o,a,u=t.apply(this,arguments),c=i.length,s=u.length,l=new Array(s);for(o=0;o<s;++o){for(var f,h=u[o],d=l[o]=new Array(c),p=0;p<c;++p)d[p]=f=[0,+r(i[p],h,p,i)],f.data=i[p];d.key=h}for(o=0,a=e(l);o<s;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:Nl(mf.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:Nl(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Ih:"function"==typeof t?t:Nl(mf.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Nh:t,i):n},i},Lh=function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}Nh(t,e)}},qh=function(t,e){if((u=t.length)>0)for(var n,r,i,o,a,u,c=0,s=t[e[0]].length;c<s;++c)for(o=a=0,n=0;n<u;++n)(i=(r=t[e[n]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},Fh=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,u=0;a<n;++a)u+=t[a][r][1]||0;i[r][1]+=i[r][0]=-u/2}Nh(t,e)}},Uh=function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var u=0,c=0,s=0;u<i;++u){for(var l=t[e[u]],f=l[a][1]||0,h=(f-(l[a-1][1]||0))/2,d=0;d<u;++d){var p=t[e[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}c+=f,s+=h*f}n[a-1][1]+=n[a-1][0]=o,c&&(o-=s/c)}n[a-1][1]+=n[a-1][0]=o,Nh(t,e)}},Bh=function(t){var e=t.map(Vh);return Ih(t).sort((function(t,n){return e[t]-e[n]}))};function Vh(t){for(var e,n=-1,r=0,i=t.length,o=-1/0;++n<i;)(e=+t[n][1])>o&&(o=e,r=n);return r}var Hh=function(t){var e=t.map(Wh);return Ih(t).sort((function(t,n){return e[t]-e[n]}))};function Wh(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}var Gh=function(t){return Hh(t).reverse()},$h=function(t){var e,n,r=t.length,i=t.map(Wh),o=Bh(t),a=0,u=0,c=[],s=[];for(e=0;e<r;++e)n=o[e],a<u?(a+=i[n],c.push(n)):(u+=i[n],s.push(n));return s.reverse().concat(c)},Yh=function(t){return Ih(t).reverse()},Xh=n(91),Kh=n(101),Qh=n(56),Zh=function(t){return function(){return t}};function Jh(t){return t[0]}function td(t){return t[1]}function ed(){this._=null}function nd(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function rd(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function id(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function od(t){for(;t.L;)t=t.L;return t}ed.prototype={constructor:ed,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=od(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(rd(this,n),n=(t=n).U),n.C=!1,r.C=!0,id(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(id(this,n),n=(t=n).U),n.C=!1,r.C=!0,rd(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?od(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=a,a.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,rd(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,id(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,rd(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,id(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,rd(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,id(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var ad=ed;function ud(t,e,n,r){var i=[null,null],o=Ad.push(i)-1;return i.left=t,i.right=e,n&&sd(i,t,e,n),r&&sd(i,e,t,r),Od[t.index].halfedges.push(o),Od[e.index].halfedges.push(o),i}function cd(t,e,n){var r=[e,n];return r.left=t,r}function sd(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function ld(t,e,n,r,i){var o,a=t[0],u=t[1],c=a[0],s=a[1],l=0,f=1,h=u[0]-c,d=u[1]-s;if(o=e-c,h||!(o>0)){if(o/=h,h<0){if(o<l)return;o<f&&(f=o)}else if(h>0){if(o>f)return;o>l&&(l=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>l&&(l=o)}else if(h>0){if(o<l)return;o<f&&(f=o)}if(o=n-s,d||!(o>0)){if(o/=d,d<0){if(o<l)return;o<f&&(f=o)}else if(d>0){if(o>f)return;o>l&&(l=o)}if(o=i-s,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>l&&(l=o)}else if(d>0){if(o<l)return;o<f&&(f=o)}return!(l>0||f<1)||(l>0&&(t[0]=[c+l*h,s+l*d]),f<1&&(t[1]=[c+f*h,s+f*d]),!0)}}}}}function fd(t,e,n,r,i){var o=t[1];if(o)return!0;var a,u,c=t[0],s=t.left,l=t.right,f=s[0],h=s[1],d=l[0],p=l[1],b=(f+d)/2,g=(h+p)/2;if(p===h){if(b<e||b>=r)return;if(f>d){if(c){if(c[1]>=i)return}else c=[b,n];o=[b,i]}else{if(c){if(c[1]<n)return}else c=[b,i];o=[b,n]}}else if(u=g-(a=(f-d)/(p-h))*b,a<-1||a>1)if(f>d){if(c){if(c[1]>=i)return}else c=[(n-u)/a,n];o=[(i-u)/a,i]}else{if(c){if(c[1]<n)return}else c=[(i-u)/a,i];o=[(n-u)/a,n]}else if(h<p){if(c){if(c[0]>=r)return}else c=[e,a*e+u];o=[r,a*r+u]}else{if(c){if(c[0]<e)return}else c=[r,a*r+u];o=[e,a*e+u]}return t[0]=c,t[1]=o,!0}function hd(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function dd(t,e){return e[+(e.left!==t.site)]}function pd(t,e){return e[+(e.left===t.site)]}var bd,gd=[];function vd(){nd(this),this.x=this.y=this.arc=this.site=this.cy=null}function md(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i[0],u=i[1],c=r[0]-a,s=r[1]-u,l=o[0]-a,f=o[1]-u,h=2*(c*f-s*l);if(!(h>=-zd)){var d=c*c+s*s,p=l*l+f*f,b=(f*d-s*p)/h,g=(c*p-l*d)/h,v=gd.pop()||new vd;v.arc=t,v.site=i,v.x=b+a,v.y=(v.cy=g+u)+Math.sqrt(b*b+g*g),t.circle=v;for(var m=null,y=jd._;y;)if(v.y<y.y||v.y===y.y&&v.x<=y.x){if(!y.L){m=y.P;break}y=y.L}else{if(!y.R){m=y;break}y=y.R}jd.insert(m,v),m||(bd=v)}}}}function yd(t){var e=t.circle;e&&(e.P||(bd=e.N),jd.remove(e),gd.push(e),nd(e),t.circle=null)}var _d=[];function wd(){nd(this),this.edge=this.site=this.circle=null}function xd(t){var e=_d.pop()||new wd;return e.site=t,e}function kd(t){yd(t),Cd.remove(t),_d.push(t),nd(t)}function Sd(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,a=t.N,u=[t];kd(t);for(var c=o;c.circle&&Math.abs(n-c.circle.x)<Pd&&Math.abs(r-c.circle.cy)<Pd;)o=c.P,u.unshift(c),kd(c),c=o;u.unshift(c),yd(c);for(var s=a;s.circle&&Math.abs(n-s.circle.x)<Pd&&Math.abs(r-s.circle.cy)<Pd;)a=s.N,u.push(s),kd(s),s=a;u.push(s),yd(s);var l,f=u.length;for(l=1;l<f;++l)s=u[l],c=u[l-1],sd(s.edge,c.site,s.site,i);c=u[0],(s=u[f-1]).edge=ud(c.site,s.site,null,i),md(c),md(s)}function Md(t){for(var e,n,r,i,o=t[0],a=t[1],u=Cd._;u;)if((r=Ed(u,a)-o)>Pd)u=u.L;else{if(!((i=o-Td(u,a))>Pd)){r>-Pd?(e=u.P,n=u):i>-Pd?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){Od[t.index]={site:t,halfedges:[]}}(t);var c=xd(t);if(Cd.insert(e,c),e||n){if(e===n)return yd(e),n=xd(e.site),Cd.insert(c,n),c.edge=n.edge=ud(e.site,c.site),md(e),void md(n);if(n){yd(e),yd(n);var s=e.site,l=s[0],f=s[1],h=t[0]-l,d=t[1]-f,p=n.site,b=p[0]-l,g=p[1]-f,v=2*(h*g-d*b),m=h*h+d*d,y=b*b+g*g,_=[(g*m-d*y)/v+l,(h*y-b*m)/v+f];sd(n.edge,s,p,_),c.edge=ud(s,t,null,_),n.edge=ud(t,p,null,_),md(e),md(n)}else c.edge=ud(e.site,c.site)}}function Ed(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(n=a.site)[0],c=n[1],s=c-e;if(!s)return u;var l=u-r,f=1/o-1/s,h=l/s;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*s)-c+s/2+i-o/2)))/f+r:(r+u)/2}function Td(t,e){var n=t.N;if(n)return Ed(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var Cd,Od,jd,Ad,Pd=1e-6,zd=1e-12;function Nd(t,e){return e[1]-t[1]||e[0]-t[0]}function Id(t,e){var n,r,i,o=t.sort(Nd).pop();for(Ad=[],Od=new Array(t.length),Cd=new ad,jd=new ad;;)if(i=bd,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(Md(o),n=o[0],r=o[1]),o=t.pop();else{if(!i)break;Sd(i.arc)}if(function(){for(var t,e,n,r,i=0,o=Od.length;i<o;++i)if((t=Od[i])&&(r=(e=t.halfedges).length)){var a=new Array(r),u=new Array(r);for(n=0;n<r;++n)a[n]=n,u[n]=hd(t,Ad[e[n]]);for(a.sort((function(t,e){return u[e]-u[t]})),n=0;n<r;++n)u[n]=e[a[n]];for(n=0;n<r;++n)e[n]=u[n]}}(),e){var a=+e[0][0],u=+e[0][1],c=+e[1][0],s=+e[1][1];!function(t,e,n,r){for(var i,o=Ad.length;o--;)fd(i=Ad[o],t,e,n,r)&&ld(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>Pd||Math.abs(i[0][1]-i[1][1])>Pd)||delete Ad[o]}(a,u,c,s),function(t,e,n,r){var i,o,a,u,c,s,l,f,h,d,p,b,g=Od.length,v=!0;for(i=0;i<g;++i)if(o=Od[i]){for(a=o.site,u=(c=o.halfedges).length;u--;)Ad[c[u]]||c.splice(u,1);for(u=0,s=c.length;u<s;)p=(d=pd(o,Ad[c[u]]))[0],b=d[1],f=(l=dd(o,Ad[c[++u%s]]))[0],h=l[1],(Math.abs(p-f)>Pd||Math.abs(b-h)>Pd)&&(c.splice(u,0,Ad.push(cd(a,d,Math.abs(p-t)<Pd&&r-b>Pd?[t,Math.abs(f-t)<Pd?h:r]:Math.abs(b-r)<Pd&&n-p>Pd?[Math.abs(h-r)<Pd?f:n,r]:Math.abs(p-n)<Pd&&b-e>Pd?[n,Math.abs(f-n)<Pd?h:e]:Math.abs(b-e)<Pd&&p-t>Pd?[Math.abs(h-e)<Pd?f:t,e]:null))-1),++s);s&&(v=!1)}if(v){var m,y,_,w=1/0;for(i=0,v=null;i<g;++i)(o=Od[i])&&(_=(m=(a=o.site)[0]-t)*m+(y=a[1]-e)*y)<w&&(w=_,v=o);if(v){var x=[t,e],k=[t,r],S=[n,r],M=[n,e];v.halfedges.push(Ad.push(cd(a=v.site,x,k))-1,Ad.push(cd(a,k,S))-1,Ad.push(cd(a,S,M))-1,Ad.push(cd(a,M,x))-1)}}for(i=0;i<g;++i)(o=Od[i])&&(o.halfedges.length||delete Od[i])}(a,u,c,s)}this.edges=Ad,this.cells=Od,Cd=jd=Ad=Od=null}Id.prototype={constructor:Id,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return dd(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length)for(var i,o,a,u,c,s,l=n.site,f=-1,h=e[i[o-1]],d=h.left===l?h.right:h.left;++f<o;)a=d,d=(h=e[i[f]]).left===l?h.right:h.left,a&&d&&r<a.index&&r<d.index&&(c=a,s=d,((u=l)[0]-s[0])*(c[1]-u[1])-(u[0]-c[0])*(s[1]-u[1])<0)&&t.push([l.data,a.data,d.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){for(var r,i,o=this,a=o._found||0,u=o.cells.length;!(i=o.cells[a]);)if(++a>=u)return null;var c=t-i.site[0],s=e-i.site[1],l=c*c+s*s;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=t-u[0],s=e-u[1],f=c*c+s*s;f<l&&(l=f,a=u.index)}}))}while(null!==a);return o._found=r,null==n||l<=n*n?i.site:null}};var Rd=function(){var t=Jh,e=td,n=null;function r(r){return new Id(r.map((function(n,i){var o=[Math.round(t(n,i,r)/Pd)*Pd,Math.round(e(n,i,r)/Pd)*Pd];return o.index=i,o.data=n,o})),n)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(e){return arguments.length?(t="function"==typeof e?e:Zh(+e),r):t},r.y=function(t){return arguments.length?(e="function"==typeof t?t:Zh(+t),r):e},r.extent=function(t){return arguments.length?(n=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(t){return arguments.length?(n=null==t?null:[[0,0],[+t[0],+t[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r},Dd=n(145),Ld=function(t){return function(){return t}};function qd(t,e,n){this.target=t,this.type=e,this.transform=n}function Fd(t,e,n){this.k=t,this.x=e,this.y=n}Fd.prototype={constructor:Fd,scale:function(t){return 1===t?this:new Fd(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Fd(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ud=new Fd(1,0,0);function Bd(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Ud;return t.__zoom}function Vd(){bt.stopImmediatePropagation()}Bd.prototype=Fd.prototype;var Hd=function(){bt.preventDefault(),bt.stopImmediatePropagation()};function Wd(){return!bt.ctrlKey&&!bt.button}function Gd(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function $d(){return this.__zoom||Ud}function Yd(){return-bt.deltaY*(1===bt.deltaMode?.05:bt.deltaMode?1:.002)}function Xd(){return navigator.maxTouchPoints||"ontouchstart"in this}function Kd(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var Qd=function(){var t,e,n=Wd,r=Gd,i=Kd,o=Yd,a=Xd,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],s=250,l=Dd.a,f=Object(v.a)("start","zoom","end"),h=0;function d(t){t.property("__zoom",$d).on("wheel.zoom",w).on("mousedown.zoom",x).on("dblclick.zoom",k).filter(a).on("touchstart.zoom",S).on("touchmove.zoom",M).on("touchend.zoom touchcancel.zoom",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new Fd(e,t.x,t.y)}function b(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new Fd(t.k,r,i)}function g(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function m(t,e,n){t.on("start.zoom",(function(){y(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,o=y(t,i),a=r.apply(t,i),u=null==n?g(a):"function"==typeof n?n.apply(t,i):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),s=t.__zoom,f="function"==typeof e?e.apply(t,i):e,h=l(s.invert(u).concat(c/s.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var e=h(t),n=c/e[2];t=new Fd(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}}))}function y(t,e,n){return!n&&t.__zooming||new _(t,e)}function _(t,e){this.that=t,this.args=e,this.active=0,this.extent=r.apply(t,e),this.taps=0}function w(){if(n.apply(this,arguments)){var t=y(this,arguments),e=this.__zoom,r=Math.max(u[0],Math.min(u[1],e.k*Math.pow(2,o.apply(this,arguments)))),a=Lt(this);if(t.wheel)t.mouse[0][0]===a[0]&&t.mouse[0][1]===a[1]||(t.mouse[1]=e.invert(t.mouse[0]=a)),clearTimeout(t.wheel);else{if(e.k===r)return;t.mouse=[a,e.invert(a)],$t(this),t.start()}Hd(),t.wheel=setTimeout(s,150),t.zoom("mouse",i(b(p(e,r),t.mouse[0],t.mouse[1]),t.extent,c))}function s(){t.wheel=null,t.end()}}function x(){if(!e&&n.apply(this,arguments)){var t=y(this,arguments,!0),r=Ot(bt.view).on("mousemove.zoom",s,!0).on("mouseup.zoom",l,!0),o=Lt(this),a=bt.clientX,u=bt.clientY;Pt(bt.view),Vd(),t.mouse=[o,this.__zoom.invert(o)],$t(this),t.start()}function s(){if(Hd(),!t.moved){var e=bt.clientX-a,n=bt.clientY-u;t.moved=e*e+n*n>h}t.zoom("mouse",i(b(t.that.__zoom,t.mouse[0]=Lt(t.that),t.mouse[1]),t.extent,c))}function l(){r.on("mousemove.zoom mouseup.zoom",null),zt(bt.view,t.moved),Hd(),t.end()}}function k(){if(n.apply(this,arguments)){var t=this.__zoom,e=Lt(this),o=t.invert(e),a=t.k*(bt.shiftKey?.5:2),u=i(b(p(t,a),e,o),r.apply(this,arguments),c);Hd(),s>0?Ot(this).transition().duration(s).call(m,u,e):Ot(this).call(d.transform,u)}}function S(){if(n.apply(this,arguments)){var e,r,i,o,a=bt.touches,u=a.length,c=y(this,arguments,bt.changedTouches.length===u);for(Vd(),r=0;r<u;++r)i=a[r],o=[o=Dt(this,a,i.identifier),this.__zoom.invert(o),i.identifier],c.touch0?c.touch1||c.touch0[2]===o[2]||(c.touch1=o,c.taps=0):(c.touch0=o,e=!0,c.taps=1+!!t);t&&(t=clearTimeout(t)),e&&(c.taps<2&&(t=setTimeout((function(){t=null}),500)),$t(this),c.start())}}function M(){if(this.__zooming){var e,n,r,o,a=y(this,arguments),u=bt.changedTouches,s=u.length;for(Hd(),t&&(t=clearTimeout(t)),a.taps=0,e=0;e<s;++e)n=u[e],r=Dt(this,u,n.identifier),a.touch0&&a.touch0[2]===n.identifier?a.touch0[0]=r:a.touch1&&a.touch1[2]===n.identifier&&(a.touch1[0]=r);if(n=a.that.__zoom,a.touch1){var l=a.touch0[0],f=a.touch0[1],h=a.touch1[0],d=a.touch1[1],g=(g=h[0]-l[0])*g+(g=h[1]-l[1])*g,v=(v=d[0]-f[0])*v+(v=d[1]-f[1])*v;n=p(n,Math.sqrt(g/v)),r=[(l[0]+h[0])/2,(l[1]+h[1])/2],o=[(f[0]+d[0])/2,(f[1]+d[1])/2]}else{if(!a.touch0)return;r=a.touch0[0],o=a.touch0[1]}a.zoom("touch",i(b(n,r,o),a.extent,c))}}function E(){if(this.__zooming){var t,n,r=y(this,arguments),i=bt.changedTouches,o=i.length;for(Vd(),e&&clearTimeout(e),e=setTimeout((function(){e=null}),500),t=0;t<o;++t)n=i[t],r.touch0&&r.touch0[2]===n.identifier?delete r.touch0:r.touch1&&r.touch1[2]===n.identifier&&delete r.touch1;if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0]);else if(r.end(),2===r.taps){var a=Ot(this).on("dblclick.zoom");a&&a.apply(this,arguments)}}}return d.transform=function(t,e,n){var r=t.selection?t.selection():t;r.property("__zoom",$d),t!==r?m(t,e,n):r.interrupt().each((function(){y(this,arguments).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},d.scaleBy=function(t,e,n){d.scaleTo(t,(function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n}),n)},d.scaleTo=function(t,e,n){d.transform(t,(function(){var t=r.apply(this,arguments),o=this.__zoom,a=null==n?g(t):"function"==typeof n?n.apply(this,arguments):n,u=o.invert(a),s="function"==typeof e?e.apply(this,arguments):e;return i(b(p(o,s),a,u),t,c)}),n)},d.translateBy=function(t,e,n){d.transform(t,(function(){return i(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),c)}))},d.translateTo=function(t,e,n,o){d.transform(t,(function(){var t=r.apply(this,arguments),a=this.__zoom,u=null==o?g(t):"function"==typeof o?o.apply(this,arguments):o;return i(Ud.translate(u[0],u[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),o)},_.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){wt(new qd(d,t,this.that.__zoom),f.apply,f,[t,this.that,this.args])}},d.wheelDelta=function(t){return arguments.length?(o="function"==typeof t?t:Ld(+t),d):o},d.filter=function(t){return arguments.length?(n="function"==typeof t?t:Ld(!!t),d):n},d.touchable=function(t){return arguments.length?(a="function"==typeof t?t:Ld(!!t),d):a},d.extent=function(t){return arguments.length?(r="function"==typeof t?t:Ld([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),d):r},d.scaleExtent=function(t){return arguments.length?(u[0]=+t[0],u[1]=+t[1],d):[u[0],u[1]]},d.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],d):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},d.constrain=function(t){return arguments.length?(i=t,d):i},d.duration=function(t){return arguments.length?(s=+t,d):s},d.interpolate=function(t){return arguments.length?(l=t,d):l},d.on=function(){var t=f.on.apply(f,arguments);return t===f?d:t},d.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,d):Math.sqrt(h)},d}},function(e,n,r){"use strict";r.r(n),r.d(n,"default",(function(){return ci}));var i=r(7),o=r.n(i);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s=function(t,e){var n=new Set(e);return Object.assign.apply(Object,[{}].concat(function(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object.entries(t).filter((function(t){var e=a(t,1)[0];return!n.has(e)})).map((function(t){var e=a(t,2);return function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e[0],e[1])})))))},l=r(139),f=r.n(l);function h(t){return(h="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 d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(t,e)||b(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||b(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){if(t){if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e){var n=Object(i.useRef)();Object(i.useEffect)((function(){clearTimeout(n.current);var e=t();if(e)return function(){return n.current=setTimeout(e)}}),e)}function m(){}var y=function(t){return null==t?m:function(){return this.querySelector(t)}};function _(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function w(){return[]}var x=function(t){return null==t?w:function(){return this.querySelectorAll(t)}},k=function(t){return function(){return this.matches(t)}};function S(t){return function(e){return e.matches(t)}}var M=Array.prototype.find;function E(){return this.firstElementChild}var T=Array.prototype.filter;function C(){return Array.from(this.children)}var O=function(t){return new Array(t.length)};function j(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}j.prototype={constructor:j,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var A=function(t){return function(){return t}};function P(t,e,n,r,i,o){for(var a,u=0,c=e.length,s=o.length;u<s;++u)(a=e[u])?(a.__data__=o[u],r[u]=a):n[u]=new j(t,o[u]);for(;u<c;++u)(a=e[u])&&(i[u]=a)}function z(t,e,n,r,i,o,a){var u,c,s,l=new Map,f=e.length,h=o.length,d=new Array(f);for(u=0;u<f;++u)(c=e[u])&&(d[u]=s=a.call(c,c.__data__,u,e)+"",l.has(s)?i[u]=c:l.set(s,c));for(u=0;u<h;++u)s=a.call(t,o[u],u,o)+"",(c=l.get(s))?(r[u]=c,c.__data__=o[u],l.delete(s)):n[u]=new j(t,o[u]);for(u=0;u<f;++u)(c=e[u])&&l.get(d[u])===c&&(i[u]=c)}function N(t){return t.__data__}function I(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function R(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var D="http://www.w3.org/1999/xhtml",L={svg:"http://www.w3.org/2000/svg",xhtml:D,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},q=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),L.hasOwnProperty(e)?{space:L[e],local:t}:t};function F(t){return function(){this.removeAttribute(t)}}function U(t){return function(){this.removeAttributeNS(t.space,t.local)}}function B(t,e){return function(){this.setAttribute(t,e)}}function V(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function H(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function W(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var G=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function $(t){return function(){this.style.removeProperty(t)}}function Y(t,e,n){return function(){this.style.setProperty(t,e,n)}}function X(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function K(t,e){return t.style.getPropertyValue(e)||G(t).getComputedStyle(t,null).getPropertyValue(e)}function Q(t){return function(){delete this[t]}}function Z(t,e){return function(){this[t]=e}}function J(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function tt(t){return t.trim().split(/^|\s+/)}function et(t){return t.classList||new nt(t)}function nt(t){this._node=t,this._names=tt(t.getAttribute("class")||"")}function rt(t,e){for(var n=et(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function it(t,e){for(var n=et(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function ot(t){return function(){rt(this,t)}}function at(t){return function(){it(this,t)}}function ut(t,e){return function(){(e.apply(this,arguments)?rt:it)(this,t)}}function ct(){this.textContent=""}function st(t){return function(){this.textContent=t}}function lt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function ft(){this.innerHTML=""}function ht(t){return function(){this.innerHTML=t}}function dt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function pt(){this.nextSibling&&this.parentNode.appendChild(this)}function bt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===D&&e.documentElement.namespaceURI===D?e.createElement(t):e.createElementNS(n,t)}}function vt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}nt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var mt=function(t){var e=q(t);return(e.local?vt:gt)(e)};function yt(){return null}function _t(){var t=this.parentNode;t&&t.removeChild(this)}function wt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function kt(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function St(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Mt(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Et(t,e,n){var r=G(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Tt(t,e){return function(){return Et(this,t,e)}}function Ct(t,e){return function(){return Et(this,t,e.apply(this,arguments))}}var Ot=[null];function jt(t,e){this._groups=t,this._parents=e}function At(){return new jt([[document.documentElement]],Ot)}jt.prototype=At.prototype={constructor:jt,select:function(t){"function"!=typeof t&&(t=y(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,u=e[i],c=u.length,s=r[i]=new Array(c),l=0;l<c;++l)(o=u[l])&&(a=t.call(o,o.__data__,l,u))&&("__data__"in o&&(a.__data__=o.__data__),s[l]=a);return new jt(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return _(t.apply(this,arguments))}}(t):x(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,u=e[o],c=u.length,s=0;s<c;++s)(a=u[s])&&(r.push(t.call(a,a.__data__,s,u)),i.push(a));return new jt(r,i)},selectChild:function(t){return this.select(null==t?E:function(t){return function(){return M.call(this.children,t)}}("function"==typeof t?t:S(t)))},selectChildren:function(t){return this.selectAll(null==t?C:function(t){return function(){return T.call(this.children,t)}}("function"==typeof t?t:S(t)))},filter:function(t){"function"!=typeof t&&(t=k(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new jt(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,N);var n=e?z:P,r=this._parents,i=this._groups;"function"!=typeof t&&(t=A(t));for(var o=i.length,a=new Array(o),u=new Array(o),c=new Array(o),s=0;s<o;++s){var l=r[s],f=i[s],h=f.length,d=I(t.call(l,l&&l.__data__,s,r)),p=d.length,b=u[s]=new Array(p),g=a[s]=new Array(p),v=c[s]=new Array(h);n(l,f,b,g,v,d,e);for(var m,y,_=0,w=0;_<p;++_)if(m=b[_]){for(_>=w&&(w=_+1);!(y=g[w])&&++w<p;);m._next=y||null}}return(a=new jt(a,r))._enter=u,a._exit=c,a},enter:function(){return new jt(this._enter||this._groups.map(O),this._parents)},exit:function(){return new jt(this._exit||this._groups.map(O),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),u=new Array(i),c=0;c<a;++c)for(var s,l=n[c],f=r[c],h=l.length,d=u[c]=new Array(h),p=0;p<h;++p)(s=l[p]||f[p])&&(d[p]=s);for(;c<i;++c)u[c]=n[c];return new jt(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=R);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,u=n[o],c=u.length,s=i[o]=new Array(c),l=0;l<c;++l)(a=u[l])&&(s[l]=a);s.sort(e)}return new jt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=q(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?U:F:"function"==typeof e?n.local?W:H:n.local?V:B)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?$:"function"==typeof e?X:Y)(t,e,null==n?"":n)):K(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Q:"function"==typeof e?J:Z)(t,e)):this.node()[t]},classed:function(t,e){var n=tt(t+"");if(arguments.length<2){for(var r=et(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?ut:e?ot:at)(n,e))},text:function(t){return arguments.length?this.each(null==t?ct:("function"==typeof t?lt:st)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ft:("function"==typeof t?dt:ht)(t)):this.node().innerHTML},raise:function(){return this.each(pt)},lower:function(){return this.each(bt)},append:function(t){var e="function"==typeof t?t:mt(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:mt(t),r=null==e?yt:"function"==typeof e?e:y(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(_t)},clone:function(t){return this.select(t?xt:wt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=kt(t+""),a=o.length;if(!(arguments.length<2)){for(u=e?Mt:St,r=0;r<a;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var c,s=0,l=u.length;s<l;++s)for(r=0,c=u[s];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?Ct:Tt)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var Pt=At,zt=function(t){return"string"==typeof t?new jt([[document.querySelector(t)]],[document.documentElement]):new jt([[t]],Ot)},Nt=r(143);const It={passive:!1},Rt={capture:!0,passive:!1};function Dt(t){t.stopImmediatePropagation()}var Lt=function(t){t.preventDefault(),t.stopImmediatePropagation()},qt=function(t){var e=t.document.documentElement,n=zt(t).on("dragstart.drag",Lt,Rt);"onselectstart"in e?n.on("selectstart.drag",Lt,Rt):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function Ft(t,e){var n=t.document.documentElement,r=zt(t).on("dragstart.drag",null);e&&(r.on("click.drag",Lt,Rt),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Ut=r(145),Bt=function(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]},Vt=r(50),Ht=r(144),Wt=Object(Nt.a)("start","end","cancel","interrupt"),Gt=[],$t=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(c){var s,l,f,h;if(1!==n.state)return u();for(s in i)if((h=i[s]).name===n.name){if(3===h.state)return Object(Ht.a)(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+s<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[s])}if(Object(Ht.a)((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(c))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),s=0,l=-1;s<f;++s)(h=n.tween[s].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=h);r.length=l+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Object(Vt.c)((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:Wt,tween:Gt,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function Yt(t,e){var n=Kt(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Xt(t,e){var n=Kt(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Kt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Qt=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},Zt=r(138);function Jt(t,e){var n,r;return function(){var i=Xt(this,t),o=i.tween;if(o!==n)for(var a=0,u=(r=n=o).length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function te(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=Xt(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:e,value:n},c=0,s=i.length;c<s;++c)if(i[c].name===e){i[c]=u;break}c===s&&i.push(u)}o.tween=i}}function ee(t,e,n){var r=t._id;return t.each((function(){var t=Xt(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Kt(t,r).value[e]}}var ne=r(18),re=r(29),ie=r(61),oe=r(111),ae=function(t,e){var n;return("number"==typeof e?re.a:e instanceof ne.e?ie.a:(n=Object(ne.e)(e))?(e=n,ie.a):oe.a)(t,e)};function ue(t){return function(){this.removeAttribute(t)}}function ce(t){return function(){this.removeAttributeNS(t.space,t.local)}}function se(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function le(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function fe(t,e,n){var r,i,o;return function(){var a,u,c=n(this);if(null!=c)return(a=this.getAttribute(t))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,c));this.removeAttribute(t)}}function he(t,e,n){var r,i,o;return function(){var a,u,c=n(this);if(null!=c)return(a=this.getAttributeNS(t.space,t.local))===(u=c+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,c));this.removeAttributeNS(t.space,t.local)}}function de(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function pe(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function be(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&pe(t,i)),n}return i._value=e,i}function ge(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&de(t,i)),n}return i._value=e,i}function ve(t,e){return function(){Yt(this,t).delay=+e.apply(this,arguments)}}function me(t,e){return e=+e,function(){Yt(this,t).delay=e}}function ye(t,e){return function(){Xt(this,t).duration=+e.apply(this,arguments)}}function _e(t,e){return e=+e,function(){Xt(this,t).duration=e}}function we(t,e){if("function"!=typeof e)throw new Error;return function(){Xt(this,t).ease=e}}function xe(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Yt:Xt;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}var ke=Pt.prototype.constructor;function Se(t){return function(){this.style.removeProperty(t)}}function Me(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ee(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Me(t,o,n)),r}return o._value=e,o}function Te(t){return function(e){this.textContent=t.call(this,e)}}function Ce(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Te(r)),e}return r._value=t,r}var Oe=0;function je(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ae(){return++Oe}var Pe=Pt.prototype;je.prototype=function(t){return Pt().transition(t)}.prototype={constructor:je,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=y(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,c,s=r[a],l=s.length,f=o[a]=new Array(l),h=0;h<l;++h)(u=s[h])&&(c=t.call(u,u.__data__,h,s))&&("__data__"in u&&(c.__data__=u.__data__),f[h]=c,$t(f[h],e,n,h,f,Kt(u,n)));return new je(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=x(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c,s=r[u],l=s.length,f=0;f<l;++f)if(c=s[f]){for(var h,d=t.call(c,c.__data__,f,s),p=Kt(c,n),b=0,g=d.length;b<g;++b)(h=d[b])&&$t(h,e,n,b,d,p);o.push(d),a.push(c)}return new je(o,a,e,n)},selectChild:Pe.selectChild,selectChildren:Pe.selectChildren,filter:function(t){"function"!=typeof t&&(t=k(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new je(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=e[u],l=n[u],f=s.length,h=a[u]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;u<r;++u)a[u]=e[u];return new je(a,this._parents,this._name,this._id)},selection:function(){return new ke(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Ae(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)if(a=u[s]){var l=Kt(a,e);$t(a,t,n,s,u,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new je(r,this._parents,t,n)},call:Pe.call,nodes:Pe.nodes,node:Pe.node,size:Pe.size,empty:Pe.empty,each:Pe.each,on:function(t,e){var n=this._id;return arguments.length<2?Kt(this.node(),n).on.on(t):this.each(xe(n,t,e))},attr:function(t,e){var n=q(t),r="transform"===n?Zt.b:ae;return this.attrTween(t,"function"==typeof e?(n.local?he:fe)(n,r,ee(this,"attr."+t,e)):null==e?(n.local?ce:ue)(n):(n.local?le:se)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=q(t);return this.tween(n,(r.local?be:ge)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Zt.a:ae;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=K(this,t),a=(this.style.removeProperty(t),K(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,Se(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=K(this,t),u=n(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=K(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,u))}}(t,r,ee(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,u="end."+a;return function(){var c=Xt(this,t),s=c.on,l=null==c.value[a]?o||(o=Se(e)):void 0;s===n&&i===l||(r=(n=s).copy()).on(u,i=l),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=K(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,Ee(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(ee(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Ce(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Kt(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?Jt:te)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ve:me)(e,t)):Kt(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ye:_e)(e,t)):Kt(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(we(e,t)):Kt(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Xt(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var u={value:a},c={value:function(){0==--i&&o()}};n.each((function(){var n=Xt(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(c)),n.on=e})),0===i&&o()}))},[Symbol.iterator]:Pe[Symbol.iterator]};var ze={time:null,delay:0,duration:250,ease:r(86).b};function Ne(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}Pt.prototype.interrupt=function(t){return this.each((function(){Qt(this,t)}))},Pt.prototype.transition=function(t){var e,n;t instanceof je?(e=t._id,t=t._name):(e=Ae(),(n=ze).time=Object(Vt.b)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)(a=u[s])&&$t(a,t,e,s,u,n||Ne(a,e));return new je(r,this._parents,t,e)};var Ie=t=>()=>t;function Re(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function De(t,e,n){this.k=t,this.x=e,this.y=n}De.prototype={constructor:De,scale:function(t){return 1===t?this:new De(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new De(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Le=new De(1,0,0);function qe(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Le;return t.__zoom}function Fe(t){t.stopImmediatePropagation()}qe.prototype=De.prototype;var Ue=function(t){t.preventDefault(),t.stopImmediatePropagation()};function Be(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Ve(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function He(){return this.__zoom||Le}function We(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Ge(){return navigator.maxTouchPoints||"ontouchstart"in this}function $e(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var Ye=function(){var t,e,n,r=Be,i=Ve,o=$e,a=We,u=Ge,c=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,f=Ut.a,h=Object(Nt.a)("start","zoom","end"),d=0,p=10;function b(t){t.property("__zoom",He).on("wheel.zoom",x,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(u).on("touchstart.zoom",M).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(c[0],Math.min(c[1],e)))===t.k?t:new De(e,t.x,t.y)}function v(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new De(t.k,r,i)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function y(t,e,n,r){t.on("start.zoom",(function(){_(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=_(t,o).event(r),u=i.apply(t,o),c=null==n?m(u):"function"==typeof n?n.apply(t,o):n,s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),l=t.__zoom,h="function"==typeof e?e.apply(t,o):e,d=f(l.invert(c).concat(s/l.k),h.invert(c).concat(s/h.k));return function(t){if(1===t)t=h;else{var e=d(t),n=s/e[2];t=new De(n,c[0]-e[0]*n,c[1]-e[1]*n)}a.zoom(null,t)}}))}function _(t,e,n){return!n&&t.__zooming||new w(t,e)}function w(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function x(t,...e){if(r.apply(this,arguments)){var n=_(this,e).event(t),i=this.__zoom,u=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),l=Bt(t);if(n.wheel)n.mouse[0][0]===l[0]&&n.mouse[0][1]===l[1]||(n.mouse[1]=i.invert(n.mouse[0]=l)),clearTimeout(n.wheel);else{if(i.k===u)return;n.mouse=[l,i.invert(l)],Qt(this),n.start()}Ue(t),n.wheel=setTimeout(f,150),n.zoom("mouse",o(v(g(i,u),n.mouse[0],n.mouse[1]),n.extent,s))}function f(){n.wheel=null,n.end()}}function k(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,a=_(this,e,!0).event(t),u=zt(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",p,!0),c=Bt(t,i),l=t.clientX,f=t.clientY;qt(t.view),Fe(t),a.mouse=[c,this.__zoom.invert(c)],Qt(this),a.start()}function h(t){if(Ue(t),!a.moved){var e=t.clientX-l,n=t.clientY-f;a.moved=e*e+n*n>d}a.event(t).zoom("mouse",o(v(a.that.__zoom,a.mouse[0]=Bt(t,i),a.mouse[1]),a.extent,s))}function p(t){u.on("mousemove.zoom mouseup.zoom",null),Ft(t.view,a.moved),Ue(t),a.event(t).end()}}function S(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=Bt(t.changedTouches?t.changedTouches[0]:t,this),u=n.invert(a),c=n.k*(t.shiftKey?.5:2),f=o(v(g(n,c),a,u),i.apply(this,e),s);Ue(t),l>0?zt(this).transition().duration(l).call(y,f,a,t):zt(this).call(b.transform,f,a,t)}}function M(n,...i){if(r.apply(this,arguments)){var o,a,u,c,s=n.touches,l=s.length,f=_(this,i,n.changedTouches.length===l).event(n);for(Fe(n),a=0;a<l;++a)u=s[a],c=[c=Bt(u,this),this.__zoom.invert(c),u.identifier],f.touch0?f.touch1||f.touch0[2]===c[2]||(f.touch1=c,f.taps=0):(f.touch0=c,o=!0,f.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(f.taps<2&&(e=c[0],t=setTimeout((function(){t=null}),500)),Qt(this),f.start())}}function E(t,...e){if(this.__zooming){var n,r,i,a,u=_(this,e).event(t),c=t.changedTouches,l=c.length;for(Ue(t),n=0;n<l;++n)r=c[n],i=Bt(r,this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=i:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=i);if(r=u.that.__zoom,u.touch1){var f=u.touch0[0],h=u.touch0[1],d=u.touch1[0],p=u.touch1[1],b=(b=d[0]-f[0])*b+(b=d[1]-f[1])*b,m=(m=p[0]-h[0])*m+(m=p[1]-h[1])*m;r=g(r,Math.sqrt(b/m)),i=[(f[0]+d[0])/2,(f[1]+d[1])/2],a=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],a=u.touch0[1]}u.zoom("touch",o(v(r,i,a),u.extent,s))}}function T(t,...r){if(this.__zooming){var i,o,a=_(this,r).event(t),u=t.changedTouches,c=u.length;for(Fe(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),i=0;i<c;++i)o=u[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=Bt(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<p)){var s=zt(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}return b.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",He),t!==i?y(t,e,n,r):i.interrupt().each((function(){_(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},b.scaleBy=function(t,e,n,r){b.scaleTo(t,(function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n}),n,r)},b.scaleTo=function(t,e,n,r){b.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==n?m(t):"function"==typeof n?n.apply(this,arguments):n,u=r.invert(a),c="function"==typeof e?e.apply(this,arguments):e;return o(v(g(r,c),a,u),t,s)}),n,r)},b.translateBy=function(t,e,n,r){b.transform(t,(function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),s)}),null,r)},b.translateTo=function(t,e,n,r,a){b.transform(t,(function(){var t=i.apply(this,arguments),a=this.__zoom,u=null==r?m(t):"function"==typeof r?r.apply(this,arguments):r;return o(Le.translate(u[0],u[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,s)}),r,a)},w.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=zt(this.that).datum();h.call(t,this.that,new Re(t,{sourceEvent:this.sourceEvent,target:b,type:t,transform:this.that.__zoom,dispatch:h}),e)}},b.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:Ie(+t),b):a},b.filter=function(t){return arguments.length?(r="function"==typeof t?t:Ie(!!t),b):r},b.touchable=function(t){return arguments.length?(u="function"==typeof t?t:Ie(!!t),b):u},b.extent=function(t){return arguments.length?(i="function"==typeof t?t:Ie([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),b):i},b.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],b):[c[0],c[1]]},b.translateExtent=function(t){return arguments.length?(s[0][0]=+t[0][0],s[1][0]=+t[1][0],s[0][1]=+t[0][1],s[1][1]=+t[1][1],b):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},b.constrain=function(t){return arguments.length?(o=t,b):o},b.duration=function(t){return arguments.length?(l=+t,b):l},b.interpolate=function(t){return arguments.length?(f=t,b):f},b.on=function(){var t=h.on.apply(h,arguments);return t===h?b:t},b.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,b):Math.sqrt(d)},b.tapDistance=function(t){return arguments.length?(p=+t,b):p},b},Xe=t=>()=>t;function Ke(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:u,dx:c,dy:s,dispatch:l}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:l}})}function Qe(t){return!t.ctrlKey&&!t.button}function Ze(){return this.parentNode}function Je(t,e){return null==e?{x:t.x,y:t.y}:e}function tn(){return navigator.maxTouchPoints||"ontouchstart"in this}Ke.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var en=r(6),nn=r(152),rn=r.n(nn),on=r(84),an=r(153),un=r.n(an);function cn(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 sn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ln(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ln(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var fn=function(t,e,n){return e&&cn(t.prototype,e),n&&cn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e,n){var r=n.default,i=void 0===r?null:r,o=n.triggerUpdate,a=void 0===o||o,u=n.onChange,c=void 0===u?function(t,e){}:u;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.defaultVal=i,this.triggerUpdate=a,this.onChange=c}));function hn(t){var e=t.stateInit,n=void 0===e?function(){return{}}:e,r=t.props,i=void 0===r?{}:r,o=t.methods,a=void 0===o?{}:o,u=t.aliases,c=void 0===u?{}:u,s=t.init,l=void 0===s?function(){}:s,f=t.update,h=void 0===f?function(){}:f,d=Object.keys(i).map((function(t){return new fn(t,i[t])}));return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},n instanceof Function?n(t):n,{initialised:!1}),r={};function i(e){return o(e,t),u(),i}var o=function(t,n){l.call(i,t,e,n),e.initialised=!0},u=un()((function(){e.initialised&&(h.call(i,e,r),r={})}),1);return d.forEach((function(t){i[t.name]=function(t){var n=t.name,o=t.triggerUpdate,a=void 0!==o&&o,c=t.onChange,s=void 0===c?function(t,e){}:c,l=t.defaultVal,f=void 0===l?null:l;return function(t){var o=e[n];if(!arguments.length)return o;var c=void 0===t?f:t;return e[n]=c,s.call(i,c,e,o),!r.hasOwnProperty(n)&&(r[n]=o),a&&u(),i}}(t)})),Object.keys(a).forEach((function(t){i[t]=function(){for(var n,r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];return(n=a[t]).call.apply(n,[i,e].concat(o))}})),Object.entries(c).forEach((function(t){var e=sn(t,2),n=e[0],r=e[1];return i[n]=i[r]})),i.resetProps=function(){return d.forEach((function(t){i[t.name](t.defaultVal)})),i},i.resetProps(),e._rerender=u,i}}var dn=function(t){return t instanceof Function?t:"string"==typeof t?function(e){return e[t]}:function(e){return t}},pn=r(154),bn=r.n(pn);function gn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vn(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 mn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var yn=function(t,e,n){return(t<<16)+(e<<8)+n},_n=function(t,e){return 123*t%Math.pow(2,e)},wn=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;gn(this,t),this.csBits=e,this.registry=["__reserved for background__"]}var e,n;return e=t,(n=[{key:"register",value:function(t){if(this.registry.length>=Math.pow(2,24-this.csBits))return null;var e,n=this.registry.length,r=(e=n+(_n(n,this.csBits)<<24-this.csBits),"#".concat(Math.min(e,Math.pow(2,24)).toString(16).padStart(6,"0")));return this.registry.push(t),r}},{key:"lookup",value:function(t){var e,n,r,i,o,a="string"==typeof t?(e=t,r=(n=bn()(e).toRgb()).r,i=n.g,o=n.b,yn(r,i,o)):yn.apply(void 0,function(t){return function(t){if(Array.isArray(t))return mn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return mn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mn(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t));if(!a)return null;var u=a&Math.pow(2,24-this.csBits)-1,c=a>>24-this.csBits&Math.pow(2,this.csBits)-1;return _n(u,this.csBits)!==c||u>=this.registry.length?null:this.registry[u]}}])&&vn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function xn(t){return t.x}function kn(t){return t.y}function Sn(t){return t.z}var Mn=Math.PI*(3-Math.sqrt(5)),En=20*Math.PI/(9+Math.sqrt(221)),Tn=function(t,e){e=e||2;var n,r=Math.min(3,Math.max(1,Math.round(e))),i=1,o=.001,a=1-Math.pow(o,1/300),u=0,c=.6,s=new Map,l=Object(Vt.c)(d),f=Object(Nt.a)("tick","end"),h=function(){let t=1;return()=>(t=(1664525*t+1013904223)%4294967296)/4294967296}();function d(){p(),f.call("tick",n),i<o&&(l.stop(),f.call("end",n))}function p(e){var o,l,f=t.length;void 0===e&&(e=1);for(var h=0;h<e;++h)for(i+=(u-i)*a,s.forEach((function(t){t(i)})),o=0;o<f;++o)null==(l=t[o]).fx?l.x+=l.vx*=c:(l.x=l.fx,l.vx=0),r>1&&(null==l.fy?l.y+=l.vy*=c:(l.y=l.fy,l.vy=0)),r>2&&(null==l.fz?l.z+=l.vz*=c:(l.z=l.fz,l.vz=0));return n}function b(){for(var e,n=0,i=t.length;n<i;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),null!=e.fz&&(e.z=e.fz),isNaN(e.x)||r>1&&isNaN(e.y)||r>2&&isNaN(e.z)){var o=10*(r>2?Math.cbrt(.5+n):r>1?Math.sqrt(.5+n):n),a=n*Mn,u=n*En;1===r?e.x=o:2===r?(e.x=o*Math.cos(a),e.y=o*Math.sin(a)):(e.x=o*Math.sin(a)*Math.cos(u),e.y=o*Math.cos(a),e.z=o*Math.sin(a)*Math.sin(u))}(isNaN(e.vx)||r>1&&isNaN(e.vy)||r>2&&isNaN(e.vz))&&(e.vx=0,r>1&&(e.vy=0),r>2&&(e.vz=0))}}function g(e){return e.initialize&&e.initialize(t,h,r),e}return null==t&&(t=[]),b(),n={tick:p,restart:function(){return l.restart(d),n},stop:function(){return l.stop(),n},numDimensions:function(t){return arguments.length?(r=Math.min(3,Math.max(1,Math.round(t))),s.forEach(g),n):r},nodes:function(e){return arguments.length?(t=e,b(),s.forEach(g),n):t},alpha:function(t){return arguments.length?(i=+t,n):i},alphaMin:function(t){return arguments.length?(o=+t,n):o},alphaDecay:function(t){return arguments.length?(a=+t,n):+a},alphaTarget:function(t){return arguments.length?(u=+t,n):u},velocityDecay:function(t){return arguments.length?(c=1-t,n):1-c},randomSource:function(t){return arguments.length?(h=t,s.forEach(g),n):h},force:function(t,e){return arguments.length>1?(null==e?s.delete(t):s.set(t,g(e)),n):s.get(t)},find:function(){var e,n,i,o,a,u,c=Array.prototype.slice.call(arguments),s=c.shift()||0,l=(r>1?c.shift():null)||0,f=(r>2?c.shift():null)||0,h=c.shift()||1/0,d=0,p=t.length;for(h*=h,d=0;d<p;++d)(o=(e=s-(a=t[d]).x)*e+(n=l-(a.y||0))*n+(i=f-(a.z||0))*i)<h&&(u=a,h=o);return u},on:function(t,e){return arguments.length>1?(f.on(t,e),n):f.on(t)}}},Cn=function(t){return function(){return t}},On=function(t){return 1e-6*(t()-.5)};function jn(t){return t.index}function An(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}var Pn=function(t){var e,n,r,i,o,a,u,c=jn,s=function(t){return 1/Math.min(o[t.source.index],o[t.target.index])},l=Cn(30),f=1;function h(r){for(var o=0,c=t.length;o<f;++o)for(var s,l,h,d,p,b=0,g=0,v=0,m=0;b<c;++b)l=(s=t[b]).source,g=(h=s.target).x+h.vx-l.x-l.vx||On(u),i>1&&(v=h.y+h.vy-l.y-l.vy||On(u)),i>2&&(m=h.z+h.vz-l.z-l.vz||On(u)),g*=d=((d=Math.sqrt(g*g+v*v+m*m))-n[b])/d*r*e[b],v*=d,m*=d,h.vx-=g*(p=a[b]),i>1&&(h.vy-=v*p),i>2&&(h.vz-=m*p),l.vx+=g*(p=1-p),i>1&&(l.vy+=v*p),i>2&&(l.vz+=m*p)}function d(){if(r){var i,u,s=r.length,l=t.length,f=new Map(r.map((t,e)=>[c(t,e,r),t]));for(i=0,o=new Array(s);i<l;++i)(u=t[i]).index=i,"object"!=typeof u.source&&(u.source=An(f,u.source)),"object"!=typeof u.target&&(u.target=An(f,u.target)),o[u.source.index]=(o[u.source.index]||0)+1,o[u.target.index]=(o[u.target.index]||0)+1;for(i=0,a=new Array(l);i<l;++i)u=t[i],a[i]=o[u.source.index]/(o[u.source.index]+o[u.target.index]);e=new Array(l),p(),n=new Array(l),b()}}function p(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+s(t[n],n,t)}function b(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+l(t[e],e,t)}return null==t&&(t=[]),h.initialize=function(t,...e){r=t,u=e.find(t=>"function"==typeof t)||Math.random,i=e.find(t=>[1,2,3].includes(t))||2,d()},h.links=function(e){return arguments.length?(t=e,d(),h):t},h.id=function(t){return arguments.length?(c=t,h):c},h.iterations=function(t){return arguments.length?(f=+t,h):f},h.strength=function(t){return arguments.length?(s="function"==typeof t?t:Cn(+t),p(),h):s},h.distance=function(t){return arguments.length?(l="function"==typeof t?t:Cn(+t),b(),h):l},h};function zn(t,e,n){if(isNaN(e))return t;var r,i,o,a,u,c,s=t._root,l={data:n},f=t._x0,h=t._x1;if(!s)return t._root=l,t;for(;s.length;)if((a=e>=(i=(f+h)/2))?f=i:h=i,r=s,!(s=s[u=+a]))return r[u]=l,t;if(e===(o=+t._x.call(null,s.data)))return l.next=s,r?r[u]=l:t._root=l,t;do{r=r?r[u]=new Array(2):t._root=new Array(2),(a=e>=(i=(f+h)/2))?f=i:h=i}while((u=+a)==(c=+(o>=i)));return r[c]=s,r[u]=l,t}var Nn=function(t,e,n){this.node=t,this.x0=e,this.x1=n};function In(t){return t[0]}function Rn(t,e){var n=new Dn(null==e?In:e,NaN,NaN);return null==t?n:n.addAll(t)}function Dn(t,e,n){this._x=t,this._x0=e,this._x1=n,this._root=void 0}function Ln(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var qn=Rn.prototype=Dn.prototype;qn.copy=function(){var t,e,n=new Dn(this._x,this._x0,this._x1),r=this._root;if(!r)return n;if(!r.length)return n._root=Ln(r),n;for(t=[{source:r,target:n._root=new Array(2)}];r=t.pop();)for(var i=0;i<2;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(2)}):r.target[i]=Ln(e));return n},qn.add=function(t){var e=+this._x.call(null,t);return zn(this.cover(e),e,t)},qn.addAll=function(t){var e,n,r=t.length,i=new Array(r),o=1/0,a=-1/0;for(e=0;e<r;++e)isNaN(n=+this._x.call(null,t[e]))||(i[e]=n,n<o&&(o=n),n>a&&(a=n));if(o>a)return this;for(this.cover(o).cover(a),e=0;e<r;++e)zn(this,i[e],t[e]);return this},qn.cover=function(t){if(isNaN(t=+t))return this;var e=this._x0,n=this._x1;if(isNaN(e))n=(e=Math.floor(t))+1;else{for(var r,i,o=n-e||1,a=this._root;e>t||t>=n;)switch(i=+(t<e),(r=new Array(2))[i]=a,a=r,o*=2,i){case 0:n=e+o;break;case 1:e=n-o}this._root&&this._root.length&&(this._root=a)}return this._x0=e,this._x1=n,this},qn.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},qn.extent=function(t){return arguments.length?this.cover(+t[0][0]).cover(+t[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]},qn.find=function(t,e){var n,r,i,o,a,u=this._x0,c=this._x1,s=[],l=this._root;for(l&&s.push(new Nn(l,u,c)),null==e?e=1/0:(u=t-e,c=t+e);o=s.pop();)if(!(!(l=o.node)||(r=o.x0)>c||(i=o.x1)<u))if(l.length){var f=(r+i)/2;s.push(new Nn(l[1],f,i),new Nn(l[0],r,f)),(a=+(t>=f))&&(o=s[s.length-1],s[s.length-1]=s[s.length-1-a],s[s.length-1-a]=o)}else{var h=Math.abs(t-+this._x.call(null,l.data));h<e&&(e=h,u=t-h,c=t+h,n=l.data)}return n},qn.remove=function(t){if(isNaN(o=+this._x.call(null,t)))return this;var e,n,r,i,o,a,u,c,s,l=this._root,f=this._x0,h=this._x1;if(!l)return this;if(l.length)for(;;){if((u=o>=(a=(f+h)/2))?f=a:h=a,e=l,!(l=l[c=+u]))return this;if(!l.length)break;e[c+1&1]&&(n=e,s=c)}for(;l.data!==t;)if(r=l,!(l=l.next))return this;return(i=l.next)&&delete l.next,r?(i?r.next=i:delete r.next,this):e?(i?e[c]=i:delete e[c],(l=e[0]||e[1])&&l===(e[1]||e[0])&&!l.length&&(n?n[s]=l:this._root=l),this):(this._root=i,this)},qn.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},qn.root=function(){return this._root},qn.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},qn.visit=function(t){var e,n,r,i,o=[],a=this._root;for(a&&o.push(new Nn(a,this._x0,this._x1));e=o.pop();)if(!t(a=e.node,r=e.x0,i=e.x1)&&a.length){var u=(r+i)/2;(n=a[1])&&o.push(new Nn(n,u,i)),(n=a[0])&&o.push(new Nn(n,r,u))}return this},qn.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new Nn(this._root,this._x0,this._x1));e=n.pop();){var i=e.node;if(i.length){var o,a=e.x0,u=e.x1,c=(a+u)/2;(o=i[0])&&n.push(new Nn(o,a,c)),(o=i[1])&&n.push(new Nn(o,c,u))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.x1);return this},qn.x=function(t){return arguments.length?(this._x=t,this):this._x};var Fn=r(151);function Un(t,e,n,r,i){if(isNaN(e)||isNaN(n)||isNaN(r))return t;var o,a,u,c,s,l,f,h,d,p,b,g,v=t._root,m={data:i},y=t._x0,_=t._y0,w=t._z0,x=t._x1,k=t._y1,S=t._z1;if(!v)return t._root=m,t;for(;v.length;)if((h=e>=(a=(y+x)/2))?y=a:x=a,(d=n>=(u=(_+k)/2))?_=u:k=u,(p=r>=(c=(w+S)/2))?w=c:S=c,o=v,!(v=v[b=p<<2|d<<1|h]))return o[b]=m,t;if(s=+t._x.call(null,v.data),l=+t._y.call(null,v.data),f=+t._z.call(null,v.data),e===s&&n===l&&r===f)return m.next=v,o?o[b]=m:t._root=m,t;do{o=o?o[b]=new Array(8):t._root=new Array(8),(h=e>=(a=(y+x)/2))?y=a:x=a,(d=n>=(u=(_+k)/2))?_=u:k=u,(p=r>=(c=(w+S)/2))?w=c:S=c}while((b=p<<2|d<<1|h)==(g=(f>=c)<<2|(l>=u)<<1|s>=a));return o[g]=v,o[b]=m,t}var Bn=function(t,e,n,r,i,o,a){this.node=t,this.x0=e,this.y0=n,this.z0=r,this.x1=i,this.y1=o,this.z1=a};function Vn(t){return t[0]}function Hn(t){return t[1]}function Wn(t){return t[2]}function Gn(t,e,n,r){var i=new $n(null==e?Vn:e,null==n?Hn:n,null==r?Wn:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function $n(t,e,n,r,i,o,a,u,c){this._x=t,this._y=e,this._z=n,this._x0=r,this._y0=i,this._z0=o,this._x1=a,this._y1=u,this._z1=c,this._root=void 0}function Yn(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Xn=Gn.prototype=$n.prototype;Xn.copy=function(){var t,e,n=new $n(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),r=this._root;if(!r)return n;if(!r.length)return n._root=Yn(r),n;for(t=[{source:r,target:n._root=new Array(8)}];r=t.pop();)for(var i=0;i<8;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(8)}):r.target[i]=Yn(e));return n},Xn.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t),r=+this._z.call(null,t);return Un(this.cover(e,n,r),e,n,r,t)},Xn.addAll=function(t){var e,n,r,i,o,a=t.length,u=new Array(a),c=new Array(a),s=new Array(a),l=1/0,f=1/0,h=1/0,d=-1/0,p=-1/0,b=-1/0;for(n=0;n<a;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||isNaN(o=+this._z.call(null,e))||(u[n]=r,c[n]=i,s[n]=o,r<l&&(l=r),r>d&&(d=r),i<f&&(f=i),i>p&&(p=i),o<h&&(h=o),o>b&&(b=o));if(l>d||f>p||h>b)return this;for(this.cover(l,f,h).cover(d,p,b),n=0;n<a;++n)Un(this,u[n],c[n],s[n],t[n]);return this},Xn.cover=function(t,e,n){if(isNaN(t=+t)||isNaN(e=+e)||isNaN(n=+n))return this;var r=this._x0,i=this._y0,o=this._z0,a=this._x1,u=this._y1,c=this._z1;if(isNaN(r))a=(r=Math.floor(t))+1,u=(i=Math.floor(e))+1,c=(o=Math.floor(n))+1;else{for(var s,l,f=a-r||1,h=this._root;r>t||t>=a||i>e||e>=u||o>n||n>=c;)switch(l=(n<o)<<2|(e<i)<<1|t<r,(s=new Array(8))[l]=h,h=s,f*=2,l){case 0:a=r+f,u=i+f,c=o+f;break;case 1:r=a-f,u=i+f,c=o+f;break;case 2:a=r+f,i=u-f,c=o+f;break;case 3:r=a-f,i=u-f,c=o+f;break;case 4:a=r+f,u=i+f,o=c-f;break;case 5:r=a-f,u=i+f,o=c-f;break;case 6:a=r+f,i=u-f,o=c-f;break;case 7:r=a-f,i=u-f,o=c-f}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=i,this._z0=o,this._x1=a,this._y1=u,this._z1=c,this},Xn.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Xn.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1],+t[0][2]).cover(+t[1][0],+t[1][1],+t[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]},Xn.find=function(t,e,n,r){var i,o,a,u,c,s,l,f,h,d=this._x0,p=this._y0,b=this._z0,g=this._x1,v=this._y1,m=this._z1,y=[],_=this._root;for(_&&y.push(new Bn(_,d,p,b,g,v,m)),null==r?r=1/0:(d=t-r,p=e-r,b=n-r,g=t+r,v=e+r,m=n+r,r*=r);f=y.pop();)if(!(!(_=f.node)||(o=f.x0)>g||(a=f.y0)>v||(u=f.z0)>m||(c=f.x1)<d||(s=f.y1)<p||(l=f.z1)<b))if(_.length){var w=(o+c)/2,x=(a+s)/2,k=(u+l)/2;y.push(new Bn(_[7],w,x,k,c,s,l),new Bn(_[6],o,x,k,w,s,l),new Bn(_[5],w,a,k,c,x,l),new Bn(_[4],o,a,k,w,x,l),new Bn(_[3],w,x,u,c,s,k),new Bn(_[2],o,x,u,w,s,k),new Bn(_[1],w,a,u,c,x,k),new Bn(_[0],o,a,u,w,x,k)),(h=(n>=k)<<2|(e>=x)<<1|t>=w)&&(f=y[y.length-1],y[y.length-1]=y[y.length-1-h],y[y.length-1-h]=f)}else{var S=t-+this._x.call(null,_.data),M=e-+this._y.call(null,_.data),E=n-+this._z.call(null,_.data),T=S*S+M*M+E*E;if(T<r){var C=Math.sqrt(r=T);d=t-C,p=e-C,b=n-C,g=t+C,v=e+C,m=n+C,i=_.data}}return i},Xn.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t))||isNaN(u=+this._z.call(null,t)))return this;var e,n,r,i,o,a,u,c,s,l,f,h,d,p,b,g=this._root,v=this._x0,m=this._y0,y=this._z0,_=this._x1,w=this._y1,x=this._z1;if(!g)return this;if(g.length)for(;;){if((f=o>=(c=(v+_)/2))?v=c:_=c,(h=a>=(s=(m+w)/2))?m=s:w=s,(d=u>=(l=(y+x)/2))?y=l:x=l,e=g,!(g=g[p=d<<2|h<<1|f]))return this;if(!g.length)break;(e[p+1&7]||e[p+2&7]||e[p+3&7]||e[p+4&7]||e[p+5&7]||e[p+6&7]||e[p+7&7])&&(n=e,b=p)}for(;g.data!==t;)if(r=g,!(g=g.next))return this;return(i=g.next)&&delete g.next,r?(i?r.next=i:delete r.next,this):e?(i?e[p]=i:delete e[p],(g=e[0]||e[1]||e[2]||e[3]||e[4]||e[5]||e[6]||e[7])&&g===(e[7]||e[6]||e[5]||e[4]||e[3]||e[2]||e[1]||e[0])&&!g.length&&(n?n[b]=g:this._root=g),this):(this._root=i,this)},Xn.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Xn.root=function(){return this._root},Xn.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},Xn.visit=function(t){var e,n,r,i,o,a,u,c,s=[],l=this._root;for(l&&s.push(new Bn(l,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));e=s.pop();)if(!t(l=e.node,r=e.x0,i=e.y0,o=e.z0,a=e.x1,u=e.y1,c=e.z1)&&l.length){var f=(r+a)/2,h=(i+u)/2,d=(o+c)/2;(n=l[7])&&s.push(new Bn(n,f,h,d,a,u,c)),(n=l[6])&&s.push(new Bn(n,r,h,d,f,u,c)),(n=l[5])&&s.push(new Bn(n,f,i,d,a,h,c)),(n=l[4])&&s.push(new Bn(n,r,i,d,f,h,c)),(n=l[3])&&s.push(new Bn(n,f,h,o,a,u,d)),(n=l[2])&&s.push(new Bn(n,r,h,o,f,u,d)),(n=l[1])&&s.push(new Bn(n,f,i,o,a,h,d)),(n=l[0])&&s.push(new Bn(n,r,i,o,f,h,d))}return this},Xn.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new Bn(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));e=n.pop();){var i=e.node;if(i.length){var o,a=e.x0,u=e.y0,c=e.z0,s=e.x1,l=e.y1,f=e.z1,h=(a+s)/2,d=(u+l)/2,p=(c+f)/2;(o=i[0])&&n.push(new Bn(o,a,u,c,h,d,p)),(o=i[1])&&n.push(new Bn(o,h,u,c,s,d,p)),(o=i[2])&&n.push(new Bn(o,a,d,c,h,l,p)),(o=i[3])&&n.push(new Bn(o,h,d,c,s,l,p)),(o=i[4])&&n.push(new Bn(o,a,u,p,h,d,f)),(o=i[5])&&n.push(new Bn(o,h,u,p,s,d,f)),(o=i[6])&&n.push(new Bn(o,a,d,p,h,l,f)),(o=i[7])&&n.push(new Bn(o,h,d,p,s,l,f))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.z0,e.x1,e.y1,e.z1);return this},Xn.x=function(t){return arguments.length?(this._x=t,this):this._x},Xn.y=function(t){return arguments.length?(this._y=t,this):this._y},Xn.z=function(t){return arguments.length?(this._z=t,this):this._z};var Kn=function(){var t,e,n,r,i,o,a=Cn(-30),u=1,c=1/0,s=.81;function l(r){var o,a=t.length,u=(1===e?Rn(t,xn):2===e?Object(Fn.a)(t,xn,kn):3===e?Gn(t,xn,kn,Sn):null).visitAfter(h);for(i=r,o=0;o<a;++o)n=t[o],u.visit(d)}function f(){if(t){var e,n,r=t.length;for(o=new Array(r),e=0;e<r;++e)n=t[e],o[n.index]=+a(n,e,t)}}function h(t){var n,r,i,a,u,c,s=0,l=0,f=t.length;if(f){for(i=a=u=c=0;c<f;++c)(n=t[c])&&(r=Math.abs(n.value))&&(s+=n.value,l+=r,i+=r*(n.x||0),a+=r*(n.y||0),u+=r*(n.z||0));s*=Math.sqrt(4/f),t.x=i/l,e>1&&(t.y=a/l),e>2&&(t.z=u/l)}else{(n=t).x=n.data.x,e>1&&(n.y=n.data.y),e>2&&(n.z=n.data.z);do{s+=o[n.data.index]}while(n=n.next)}t.value=s}function d(t,a,l,f,h){if(!t.value)return!0;var d=[l,f,h][e-1],p=t.x-n.x,b=e>1?t.y-n.y:0,g=e>2?t.z-n.z:0,v=d-a,m=p*p+b*b+g*g;if(v*v/s<m)return m<c&&(0===p&&(m+=(p=On(r))*p),e>1&&0===b&&(m+=(b=On(r))*b),e>2&&0===g&&(m+=(g=On(r))*g),m<u&&(m=Math.sqrt(u*m)),n.vx+=p*t.value*i/m,e>1&&(n.vy+=b*t.value*i/m),e>2&&(n.vz+=g*t.value*i/m)),!0;if(!(t.length||m>=c)){(t.data!==n||t.next)&&(0===p&&(m+=(p=On(r))*p),e>1&&0===b&&(m+=(b=On(r))*b),e>2&&0===g&&(m+=(g=On(r))*g),m<u&&(m=Math.sqrt(u*m)));do{t.data!==n&&(v=o[t.data.index]*i/m,n.vx+=p*v,e>1&&(n.vy+=b*v),e>2&&(n.vz+=g*v))}while(t=t.next)}}return l.initialize=function(n,...i){t=n,r=i.find(t=>"function"==typeof t)||Math.random,e=i.find(t=>[1,2,3].includes(t))||2,f()},l.strength=function(t){return arguments.length?(a="function"==typeof t?t:Cn(+t),f(),l):a},l.distanceMin=function(t){return arguments.length?(u=t*t,l):Math.sqrt(u)},l.distanceMax=function(t){return arguments.length?(c=t*t,l):Math.sqrt(c)},l.theta=function(t){return arguments.length?(s=t*t,l):Math.sqrt(s)},l},Qn=function(t,e,n){var r,i=1;function o(){var o,a,u=r.length,c=0,s=0,l=0;for(o=0;o<u;++o)c+=(a=r[o]).x||0,s+=a.y||0,l+=a.z||0;for(c=(c/u-t)*i,s=(s/u-e)*i,l=(l/u-n)*i,o=0;o<u;++o)a=r[o],c&&(a.x-=c),s&&(a.y-=s),l&&(a.z-=l)}return null==t&&(t=0),null==e&&(e=0),null==n&&(n=0),o.initialize=function(t){r=t},o.x=function(e){return arguments.length?(t=+e,o):t},o.y=function(t){return arguments.length?(e=+t,o):e},o.z=function(t){return arguments.length?(n=+t,o):n},o.strength=function(t){return arguments.length?(i=+t,o):i},o};const{abs:Zn,cos:Jn,sin:tr,acos:er,atan2:nr,sqrt:rr,pow:ir}=Math;function or(t){return t<0?-ir(-t,1/3):ir(t,1/3)}const ar=Math.PI,ur=2*ar,cr=ar/2,sr=Number.MAX_SAFE_INTEGER||9007199254740991,lr=Number.MIN_SAFE_INTEGER||-9007199254740991,fr={x:0,y:0,z:0},hr={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(t,e){const n=e(t);let r=n.x*n.x+n.y*n.y;return void 0!==n.z&&(r+=n.z*n.z),rr(r)},compute:function(t,e,n){if(0===t)return e[0].t=0,e[0];const r=e.length-1;if(1===t)return e[r].t=1,e[r];const i=1-t;let o=e;if(0===r)return e[0].t=t,e[0];if(1===r){const e={x:i*o[0].x+t*o[1].x,y:i*o[0].y+t*o[1].y,t:t};return n&&(e.z=i*o[0].z+t*o[1].z),e}if(r<4){let e,a,u,c=i*i,s=t*t,l=0;2===r?(o=[o[0],o[1],o[2],fr],e=c,a=i*t*2,u=s):3===r&&(e=c*i,a=c*t*3,u=i*s*3,l=t*s);const f={x:e*o[0].x+a*o[1].x+u*o[2].x+l*o[3].x,y:e*o[0].y+a*o[1].y+u*o[2].y+l*o[3].y,t:t};return n&&(f.z=e*o[0].z+a*o[1].z+u*o[2].z+l*o[3].z),f}const a=JSON.parse(JSON.stringify(e));for(;a.length>1;){for(let e=0;e<a.length-1;e++)a[e]={x:a[e].x+(a[e+1].x-a[e].x)*t,y:a[e].y+(a[e+1].y-a[e].y)*t},void 0!==a[e].z&&(a[e]=a[e].z+(a[e+1].z-a[e].z)*t);a.splice(a.length-1,1)}return a[0].t=t,a[0]},computeWithRatios:function(t,e,n,r){const i=1-t,o=n,a=e;let u,c=o[0],s=o[1],l=o[2],f=o[3];return c*=i,s*=t,2===a.length?(u=c+s,{x:(c*a[0].x+s*a[1].x)/u,y:(c*a[0].y+s*a[1].y)/u,z:!!r&&(c*a[0].z+s*a[1].z)/u,t:t}):(c*=i,s*=2*i,l*=t*t,3===a.length?(u=c+s+l,{x:(c*a[0].x+s*a[1].x+l*a[2].x)/u,y:(c*a[0].y+s*a[1].y+l*a[2].y)/u,z:!!r&&(c*a[0].z+s*a[1].z+l*a[2].z)/u,t:t}):(c*=i,s*=1.5*i,l*=3*i,f*=t*t*t,4===a.length?(u=c+s+l+f,{x:(c*a[0].x+s*a[1].x+l*a[2].x+f*a[3].x)/u,y:(c*a[0].y+s*a[1].y+l*a[2].y+f*a[3].y)/u,z:!!r&&(c*a[0].z+s*a[1].z+l*a[2].z+f*a[3].z)/u,t:t}):void 0))},derive:function(t,e){const n=[];for(let r=t,i=r.length,o=i-1;i>1;i--,o--){const t=[];for(let n,i=0;i<o;i++)n={x:o*(r[i+1].x-r[i].x),y:o*(r[i+1].y-r[i].y)},e&&(n.z=o*(r[i+1].z-r[i].z)),t.push(n);n.push(t),r=t}return n},between:function(t,e,n){return e<=t&&t<=n||hr.approximately(t,e)||hr.approximately(t,n)},approximately:function(t,e,n){return Zn(t-e)<=(n||1e-6)},length:function(t){const e=hr.Tvalues.length;let n=0;for(let r,i=0;i<e;i++)r=.5*hr.Tvalues[i]+.5,n+=hr.Cvalues[i]*hr.arcfn(r,t);return.5*n},map:function(t,e,n,r,i){return r+(t-e)/(n-e)*(i-r)},lerp:function(t,e,n){const r={x:e.x+t*(n.x-e.x),y:e.y+t*(n.y-e.y)};return void 0!==e.z&&void 0!==n.z&&(r.z=e.z+t*(n.z-e.z)),r},pointToString:function(t){let e=t.x+"/"+t.y;return void 0!==t.z&&(e+="/"+t.z),e},pointsToString:function(t){return"["+t.map(hr.pointToString).join(", ")+"]"},copy:function(t){return JSON.parse(JSON.stringify(t))},angle:function(t,e,n){const r=e.x-t.x,i=e.y-t.y,o=n.x-t.x,a=n.y-t.y;return nr(r*a-i*o,r*o+i*a)},round:function(t,e){const n=""+t,r=n.indexOf(".");return parseFloat(n.substring(0,r+1+e))},dist:function(t,e){const n=t.x-e.x,r=t.y-e.y;return rr(n*n+r*r)},closest:function(t,e){let n,r,i=ir(2,63);return t.forEach((function(t,o){r=hr.dist(e,t),r<i&&(i=r,n=o)})),{mdist:i,mpos:n}},abcratio:function(t,e){if(2!==e&&3!==e)return!1;if(void 0===t)t=.5;else if(0===t||1===t)return t;const n=ir(t,e)+ir(1-t,e);return Zn((n-1)/n)},projectionratio:function(t,e){if(2!==e&&3!==e)return!1;if(void 0===t)t=.5;else if(0===t||1===t)return t;const n=ir(1-t,e);return n/(ir(t,e)+n)},lli8:function(t,e,n,r,i,o,a,u){const c=(t-n)*(o-u)-(e-r)*(i-a);return 0!=c&&{x:((t*r-e*n)*(i-a)-(t-n)*(i*u-o*a))/c,y:((t*r-e*n)*(o-u)-(e-r)*(i*u-o*a))/c}},lli4:function(t,e,n,r){const i=t.x,o=t.y,a=e.x,u=e.y,c=n.x,s=n.y,l=r.x,f=r.y;return hr.lli8(i,o,a,u,c,s,l,f)},lli:function(t,e){return hr.lli4(t,t.c,e,e.c)},makeline:function(t,e){return new xr(t.x,t.y,(t.x+e.x)/2,(t.y+e.y)/2,e.x,e.y)},findbbox:function(t){let e=sr,n=sr,r=lr,i=lr;return t.forEach((function(t){const o=t.bbox();e>o.x.min&&(e=o.x.min),n>o.y.min&&(n=o.y.min),r<o.x.max&&(r=o.x.max),i<o.y.max&&(i=o.y.max)})),{x:{min:e,mid:(e+r)/2,max:r,size:r-e},y:{min:n,mid:(n+i)/2,max:i,size:i-n}}},shapeintersections:function(t,e,n,r,i){if(!hr.bboxoverlap(e,r))return[];const o=[],a=[t.startcap,t.forward,t.back,t.endcap],u=[n.startcap,n.forward,n.back,n.endcap];return a.forEach((function(e){e.virtual||u.forEach((function(r){if(r.virtual)return;const a=e.intersects(r,i);a.length>0&&(a.c1=e,a.c2=r,a.s1=t,a.s2=n,o.push(a))}))})),o},makeshape:function(t,e,n){const r=e.points.length,i=t.points.length,o=hr.makeline(e.points[r-1],t.points[0]),a=hr.makeline(t.points[i-1],e.points[0]),u={startcap:o,forward:t,back:e,endcap:a,bbox:hr.findbbox([o,t,e,a]),intersections:function(t){return hr.shapeintersections(u,u.bbox,t,t.bbox,n)}};return u},getminmax:function(t,e,n){if(!n)return{min:0,max:0};let r,i,o=sr,a=lr;-1===n.indexOf(0)&&(n=[0].concat(n)),-1===n.indexOf(1)&&n.push(1);for(let u=0,c=n.length;u<c;u++)r=n[u],i=t.get(r),i[e]<o&&(o=i[e]),i[e]>a&&(a=i[e]);return{min:o,mid:(o+a)/2,max:a,size:a-o}},align:function(t,e){const n=e.p1.x,r=e.p1.y,i=-nr(e.p2.y-r,e.p2.x-n);return t.map((function(t){return{x:(t.x-n)*Jn(i)-(t.y-r)*tr(i),y:(t.x-n)*tr(i)+(t.y-r)*Jn(i)}}))},roots:function(t,e){e=e||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=t.length-1,r=hr.align(t,e),i=function(t){return 0<=t&&t<=1};if(2===n){const t=r[0].y,e=r[1].y,n=r[2].y,o=t-2*e+n;if(0!==o){const r=-rr(e*e-t*n),a=-t+e;return[-(r+a)/o,-(-r+a)/o].filter(i)}return e!==n&&0===o?[(2*e-n)/(2*e-2*n)].filter(i):[]}const o=r[0].y,a=r[1].y,u=r[2].y;let c=3*a-o-3*u+r[3].y,s=3*o-6*a+3*u,l=-3*o+3*a,f=o;if(hr.approximately(c,0)){if(hr.approximately(s,0))return hr.approximately(l,0)?[]:[-f/l].filter(i);const t=rr(l*l-4*s*f),e=2*s;return[(t-l)/e,(-l-t)/e].filter(i)}s/=c,l/=c,f/=c;const h=(3*l-s*s)/3,d=h/3,p=(2*s*s*s-9*s*l+27*f)/27,b=p/2,g=b*b+d*d*d;let v,m,y,_,w;if(g<0){const t=-h/3,e=rr(t*t*t),n=-p/(2*e),r=er(n<-1?-1:n>1?1:n),o=2*or(e);return y=o*Jn(r/3)-s/3,_=o*Jn((r+ur)/3)-s/3,w=o*Jn((r+2*ur)/3)-s/3,[y,_,w].filter(i)}if(0===g)return v=b<0?or(-b):-or(b),y=2*v-s/3,_=-v-s/3,[y,_].filter(i);{const t=rr(g);return v=or(-b+t),m=or(b+t),[v-m-s/3].filter(i)}},droots:function(t){if(3===t.length){const e=t[0],n=t[1],r=t[2],i=e-2*n+r;if(0!==i){const t=-rr(n*n-e*r),o=-e+n;return[-(t+o)/i,-(-t+o)/i]}return n!==r&&0===i?[(2*n-r)/(2*(n-r))]:[]}if(2===t.length){const e=t[0],n=t[1];return e!==n?[e/(e-n)]:[]}return[]},curvature:function(t,e,n,r,i){let o,a,u,c,s=0,l=0;const f=hr.compute(t,e),h=hr.compute(t,n),d=f.x*f.x+f.y*f.y;if(r?(o=rr(ir(f.y*h.z-h.y*f.z,2)+ir(f.z*h.x-h.z*f.x,2)+ir(f.x*h.y-h.x*f.y,2)),a=ir(d+f.z*f.z,1.5)):(o=f.x*h.y-f.y*h.x,a=ir(d,1.5)),0===o||0===a)return{k:0,r:0};if(s=o/a,l=a/o,!i){const i=hr.curvature(t-.001,e,n,r,!0).k,o=hr.curvature(t+.001,e,n,r,!0).k;c=(o-s+(s-i))/2,u=(Zn(o-s)+Zn(s-i))/2}return{k:s,r:l,dk:c,adk:u}},inflections:function(t){if(t.length<4)return[];const e=hr.align(t,{p1:t[0],p2:t.slice(-1)[0]}),n=e[2].x*e[1].y,r=e[3].x*e[1].y,i=e[1].x*e[2].y,o=18*(-3*n+2*r+3*i-e[3].x*e[2].y),a=18*(3*n-r-3*i),u=18*(i-n);if(hr.approximately(o,0)){if(!hr.approximately(a,0)){let t=-u/a;if(0<=t&&t<=1)return[t]}return[]}const c=2*o;if(hr.approximately(c,0))return[];const s=a*a-4*o*u;if(s<0)return[];const l=Math.sqrt(s);return[(l-a)/c,-(a+l)/c].filter((function(t){return 0<=t&&t<=1}))},bboxoverlap:function(t,e){const n=["x","y"],r=n.length;for(let i,o,a,u,c=0;c<r;c++)if(i=n[c],o=t[i].mid,a=e[i].mid,u=(t[i].size+e[i].size)/2,Zn(o-a)>=u)return!1;return!0},expandbox:function(t,e){e.x.min<t.x.min&&(t.x.min=e.x.min),e.y.min<t.y.min&&(t.y.min=e.y.min),e.z&&e.z.min<t.z.min&&(t.z.min=e.z.min),e.x.max>t.x.max&&(t.x.max=e.x.max),e.y.max>t.y.max&&(t.y.max=e.y.max),e.z&&e.z.max>t.z.max&&(t.z.max=e.z.max),t.x.mid=(t.x.min+t.x.max)/2,t.y.mid=(t.y.min+t.y.max)/2,t.z&&(t.z.mid=(t.z.min+t.z.max)/2),t.x.size=t.x.max-t.x.min,t.y.size=t.y.max-t.y.min,t.z&&(t.z.size=t.z.max-t.z.min)},pairiteration:function(t,e,n){const r=t.bbox(),i=e.bbox(),o=1e5,a=n||.5;if(r.x.size+r.y.size<a&&i.x.size+i.y.size<a)return[(o*(t._t1+t._t2)/2|0)/o+"/"+(o*(e._t1+e._t2)/2|0)/o];let u=t.split(.5),c=e.split(.5),s=[{left:u.left,right:c.left},{left:u.left,right:c.right},{left:u.right,right:c.right},{left:u.right,right:c.left}];s=s.filter((function(t){return hr.bboxoverlap(t.left.bbox(),t.right.bbox())}));let l=[];return 0===s.length||(s.forEach((function(t){l=l.concat(hr.pairiteration(t.left,t.right,a))})),l=l.filter((function(t,e){return l.indexOf(t)===e}))),l},getccenter:function(t,e,n){const r=e.x-t.x,i=e.y-t.y,o=n.x-e.x,a=n.y-e.y,u=r*Jn(cr)-i*tr(cr),c=r*tr(cr)+i*Jn(cr),s=o*Jn(cr)-a*tr(cr),l=o*tr(cr)+a*Jn(cr),f=(t.x+e.x)/2,h=(t.y+e.y)/2,d=(e.x+n.x)/2,p=(e.y+n.y)/2,b=f+u,g=h+c,v=d+s,m=p+l,y=hr.lli8(f,h,b,g,d,p,v,m),_=hr.dist(y,t);let w,x=nr(t.y-y.y,t.x-y.x),k=nr(e.y-y.y,e.x-y.x),S=nr(n.y-y.y,n.x-y.x);return x<S?((x>k||k>S)&&(x+=ur),x>S&&(w=S,S=x,x=w)):S<k&&k<x?(w=S,S=x,x=w):S+=ur,y.s=x,y.e=S,y.r=_,y},numberSort:function(t,e){return t-e}};class dr{constructor(t){this.curves=[],this._3d=!1,t&&(this.curves=t,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map((function(t){return hr.pointsToString(t.points)})).join(", ")+"]"}addCurve(t){this.curves.push(t),this._3d=this._3d||t._3d}length(){return this.curves.map((function(t){return t.length()})).reduce((function(t,e){return t+e}))}curve(t){return this.curves[t]}bbox(){const t=this.curves;for(var e=t[0].bbox(),n=1;n<t.length;n++)hr.expandbox(e,t[n].bbox());return e}offset(t){const e=[];return this.curves.forEach((function(n){e.push(...n.offset(t))})),new dr(e)}}const{abs:pr,min:br,max:gr,cos:vr,sin:mr,acos:yr,sqrt:_r}=Math,wr=Math.PI;class xr{constructor(t){let e=t&&t.forEach?t:Array.from(arguments).slice(),n=!1;if("object"==typeof e[0]){n=e.length;const t=[];e.forEach((function(e){["x","y","z"].forEach((function(n){void 0!==e[n]&&t.push(e[n])}))})),e=t}let r=!1;const i=e.length;if(n){if(n>4){if(1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");r=!0}}else if(6!==i&&8!==i&&9!==i&&12!==i&&1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const o=this._3d=!r&&(9===i||12===i)||t&&t[0]&&void 0!==t[0].z,a=this.points=[];for(let t=0,n=o?3:2;t<i;t+=n){var u={x:e[t],y:e[t+1]};o&&(u.z=e[t+2]),a.push(u)}const c=this.order=a.length-1,s=this.dims=["x","y"];o&&s.push("z"),this.dimlen=s.length;const l=hr.align(a,{p1:a[0],p2:a[c]}),f=hr.dist(a[0],a[c]);this._linear=l.reduce((t,e)=>t+pr(e.y),0)<f/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(t,e,n,r){if(void 0===r&&(r=.5),0===r)return new xr(e,e,n);if(1===r)return new xr(t,e,e);const i=xr.getABC(2,t,e,n,r);return new xr(t,i.A,n)}static cubicFromPoints(t,e,n,r,i){void 0===r&&(r=.5);const o=xr.getABC(3,t,e,n,r);void 0===i&&(i=hr.dist(e,o.C));const a=i*(1-r)/r,u=hr.dist(t,n),c=(n.x-t.x)/u,s=(n.y-t.y)/u,l=i*c,f=i*s,h=a*c,d=a*s,p=e.x-l,b=e.y-f,g=e.x+h,v=e.y+d,m=o.A,y=m.x+(p-m.x)/(1-r),_=m.y+(b-m.y)/(1-r),w=m.x+(g-m.x)/r,x=m.y+(v-m.y)/r,k={x:t.x+(y-t.x)/r,y:t.y+(_-t.y)/r},S={x:n.x+(w-n.x)/(1-r),y:n.y+(x-n.y)/(1-r)};return new xr(t,k,S,n)}static getUtils(){return hr}getUtils(){return xr.getUtils()}static get PolyBezier(){return dr}valueOf(){return this.toString()}toString(){return hr.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const t=this.points,e=["M",t[0].x,t[0].y,2===this.order?"Q":"C"];for(let n=1,r=t.length;n<r;n++)e.push(t[n].x),e.push(t[n].y);return e.join(" ")}setRatios(t){if(t.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=t,this._lut=[]}verify(){const t=this.coordDigest();t!==this._print&&(this._print=t,this.update())}coordDigest(){return this.points.map((function(t,e){return""+e+t.x+t.y+(t.z?t.z:0)})).join("")}update(){this._lut=[],this.dpoints=hr.derive(this.points,this._3d),this.computedirection()}computedirection(){const t=this.points,e=hr.angle(t[0],t[this.order],t[1]);this.clockwise=e>0}length(){return hr.length(this.derivative.bind(this))}static getABC(t=2,e,n,r,i=.5){const o=hr.projectionratio(i,t),a=1-o,u={x:o*e.x+a*r.x,y:o*e.y+a*r.y},c=hr.abcratio(i,t);return{A:{x:n.x+(n.x-u.x)/c,y:n.y+(n.y-u.y)/c},B:n,C:u,S:e,E:r}}getABC(t,e){e=e||this.get(t);let n=this.points[0],r=this.points[this.order];return xr.getABC(this.order,n,e,r,t)}getLUT(t){if(this.verify(),t=t||100,this._lut.length===t)return this._lut;this._lut=[],t++,this._lut=[];for(let e,n,r=0;r<t;r++)n=r/(t-1),e=this.compute(n),e.t=n,this._lut.push(e);return this._lut}on(e,n){n=n||5;const r=this.getLUT(),i=[];for(let t,o=0,a=0;o<r.length;o++)t=r[o],hr.dist(t,e)<n&&(i.push(t),a+=o/r.length);return!!i.length&&(t/=i.length)}project(t){const e=this.getLUT(),n=e.length-1,r=hr.closest(e,t),i=r.mpos,o=(i-1)/n,a=(i+1)/n,u=.1/n;let c,s,l=r.mdist,f=o,h=f;for(l+=1;f<a+u;f+=u)c=this.compute(f),s=hr.dist(t,c),s<l&&(l=s,h=f);return h=h<0?0:h>1?1:h,c=this.compute(h),c.t=h,c.d=l,c}get(t){return this.compute(t)}point(t){return this.points[t]}compute(t){return this.ratios?hr.computeWithRatios(t,this.points,this.ratios,this._3d):hr.compute(t,this.points,this._3d,this.ratios)}raise(){const t=this.points,e=[t[0]],n=t.length;for(let r,i,o=1;o<n;o++)r=t[o],i=t[o-1],e[o]={x:(n-o)/n*r.x+o/n*i.x,y:(n-o)/n*r.y+o/n*i.y};return e[n]=t[n-1],new xr(e)}derivative(t){return hr.compute(t,this.dpoints[0],this._3d)}dderivative(t){return hr.compute(t,this.dpoints[1],this._3d)}align(){let t=this.points;return new xr(hr.align(t,{p1:t[0],p2:t[t.length-1]}))}curvature(t){return hr.curvature(t,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return hr.inflections(this.points)}normal(t){return this._3d?this.__normal3(t):this.__normal2(t)}__normal2(t){const e=this.derivative(t),n=_r(e.x*e.x+e.y*e.y);return{t:t,x:-e.y/n,y:e.x/n}}__normal3(t){const e=this.derivative(t),n=this.derivative(t+.01),r=_r(e.x*e.x+e.y*e.y+e.z*e.z),i=_r(n.x*n.x+n.y*n.y+n.z*n.z);e.x/=r,e.y/=r,e.z/=r,n.x/=i,n.y/=i,n.z/=i;const o={x:n.y*e.z-n.z*e.y,y:n.z*e.x-n.x*e.z,z:n.x*e.y-n.y*e.x},a=_r(o.x*o.x+o.y*o.y+o.z*o.z);o.x/=a,o.y/=a,o.z/=a;const u=[o.x*o.x,o.x*o.y-o.z,o.x*o.z+o.y,o.x*o.y+o.z,o.y*o.y,o.y*o.z-o.x,o.x*o.z-o.y,o.y*o.z+o.x,o.z*o.z];return{t:t,x:u[0]*e.x+u[1]*e.y+u[2]*e.z,y:u[3]*e.x+u[4]*e.y+u[5]*e.z,z:u[6]*e.x+u[7]*e.y+u[8]*e.z}}hull(t){let e=this.points,n=[],r=[],i=0;for(r[i++]=e[0],r[i++]=e[1],r[i++]=e[2],3===this.order&&(r[i++]=e[3]);e.length>1;){n=[];for(let o,a=0,u=e.length-1;a<u;a++)o=hr.lerp(t,e[a],e[a+1]),r[i++]=o,n.push(o);e=n}return r}split(t,e){if(0===t&&e)return this.split(e).left;if(1===e)return this.split(t).right;const n=this.hull(t),r={left:2===this.order?new xr([n[0],n[3],n[5]]):new xr([n[0],n[4],n[7],n[9]]),right:2===this.order?new xr([n[5],n[4],n[2]]):new xr([n[9],n[8],n[6],n[3]]),span:n};return r.left._t1=hr.map(0,0,1,this._t1,this._t2),r.left._t2=hr.map(t,0,1,this._t1,this._t2),r.right._t1=hr.map(t,0,1,this._t1,this._t2),r.right._t2=hr.map(1,0,1,this._t1,this._t2),e?(e=hr.map(e,t,1,0,1),r.right.split(e).left):r}extrema(){const t={};let e=[];return this.dims.forEach(function(n){let r=function(t){return t[n]},i=this.dpoints[0].map(r);t[n]=hr.droots(i),3===this.order&&(i=this.dpoints[1].map(r),t[n]=t[n].concat(hr.droots(i))),t[n]=t[n].filter((function(t){return t>=0&&t<=1})),e=e.concat(t[n].sort(hr.numberSort))}.bind(this)),t.values=e.sort(hr.numberSort).filter((function(t,n){return e.indexOf(t)===n})),t}bbox(){const t=this.extrema(),e={};return this.dims.forEach(function(n){e[n]=hr.getminmax(this,n,t[n])}.bind(this)),e}overlaps(t){const e=this.bbox(),n=t.bbox();return hr.bboxoverlap(e,n)}offset(t,e){if(void 0!==e){const n=this.get(t),r=this.normal(t),i={c:n,n:r,x:n.x+r.x*e,y:n.y+r.y*e};return this._3d&&(i.z=n.z+r.z*e),i}if(this._linear){const e=this.normal(0),n=this.points.map((function(n){const r={x:n.x+t*e.x,y:n.y+t*e.y};return n.z&&e.z&&(r.z=n.z+t*e.z),r}));return[new xr(n)]}return this.reduce().map((function(e){return e._linear?e.offset(t)[0]:e.scale(t)}))}simple(){if(3===this.order){const t=hr.angle(this.points[0],this.points[3],this.points[1]),e=hr.angle(this.points[0],this.points[3],this.points[2]);if(t>0&&e<0||t<0&&e>0)return!1}const t=this.normal(0),e=this.normal(1);let n=t.x*e.x+t.y*e.y;return this._3d&&(n+=t.z*e.z),pr(yr(n))<wr/3}reduce(){let t,e,n=0,r=0,i=[],o=[],a=this.extrema().values;for(-1===a.indexOf(0)&&(a=[0].concat(a)),-1===a.indexOf(1)&&a.push(1),n=a[0],t=1;t<a.length;t++)r=a[t],e=this.split(n,r),e._t1=n,e._t2=r,i.push(e),n=r;return i.forEach((function(t){for(n=0,r=0;r<=1;)for(r=n+.01;r<=1.01;r+=.01)if(e=t.split(n,r),!e.simple()){if(r-=.01,pr(n-r)<.01)return[];e=t.split(n,r),e._t1=hr.map(n,0,1,t._t1,t._t2),e._t2=hr.map(r,0,1,t._t1,t._t2),o.push(e),n=r;break}n<1&&(e=t.split(n,1),e._t1=hr.map(n,0,1,t._t1,t._t2),e._t2=t._t2,o.push(e))})),o}translate(t,e,n){n="number"==typeof n?n:e;const r=this.order;let i=this.points.map((t,i)=>(1-i/r)*e+i/r*n);return new xr(this.points.map((e,n)=>({x:e.x+t.x*i[n],y:e.y+t.y*i[n]})))}scale(t){const e=this.order;let n=!1;if("function"==typeof t&&(n=t),n&&2===e)return this.raise().scale(n);const r=this.clockwise,i=this.points;if(this._linear)return this.translate(this.normal(0),n?n(0):t,n?n(1):t);const o=n?n(0):t,a=n?n(1):t,u=[this.offset(0,10),this.offset(1,10)],c=[],s=hr.lli4(u[0],u[0].c,u[1],u[1].c);if(!s)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach((function(t){const n=c[t*e]=hr.copy(i[t*e]);n.x+=(t?a:o)*u[t].n.x,n.y+=(t?a:o)*u[t].n.y})),n?([0,1].forEach((function(o){if(2!==e||!o){var a=i[o+1],u={x:a.x-s.x,y:a.y-s.y},l=n?n((o+1)/e):t;n&&!r&&(l=-l);var f=_r(u.x*u.x+u.y*u.y);u.x/=f,u.y/=f,c[o+1]={x:a.x+l*u.x,y:a.y+l*u.y}}})),new xr(c)):([0,1].forEach(t=>{if(2===e&&t)return;const n=c[t*e],r=this.derivative(t),o={x:n.x+r.x,y:n.y+r.y};c[t+1]=hr.lli4(n,o,s,i[t+1])}),new xr(c))}outline(t,e,n,r){if(e=void 0===e?t:e,this._linear){const i=this.normal(0),o=this.points[0],a=this.points[this.points.length-1];let u,c,s;void 0===n&&(n=t,r=e),u={x:o.x+i.x*t,y:o.y+i.y*t},s={x:a.x+i.x*n,y:a.y+i.y*n},c={x:(u.x+s.x)/2,y:(u.y+s.y)/2};const l=[u,c,s];u={x:o.x-i.x*e,y:o.y-i.y*e},s={x:a.x-i.x*r,y:a.y-i.y*r},c={x:(u.x+s.x)/2,y:(u.y+s.y)/2};const f=[s,c,u],h=hr.makeline(f[2],l[0]),d=hr.makeline(l[2],f[0]),p=[h,new xr(l),d,new xr(f)];return new dr(p)}const i=this.reduce(),o=i.length,a=[];let u,c=[],s=0,l=this.length();const f=void 0!==n&&void 0!==r;function h(t,e,n,r,i){return function(o){const a=r/n,u=(r+i)/n,c=e-t;return hr.map(o,0,1,t+a*c,t+u*c)}}i.forEach((function(i){const o=i.length();f?(a.push(i.scale(h(t,n,l,s,o))),c.push(i.scale(h(-e,-r,l,s,o)))):(a.push(i.scale(t)),c.push(i.scale(-e))),s+=o})),c=c.map((function(t){return u=t.points,u[3]?t.points=[u[3],u[2],u[1],u[0]]:t.points=[u[2],u[1],u[0]],t})).reverse();const d=a[0].points[0],p=a[o-1].points[a[o-1].points.length-1],b=c[o-1].points[c[o-1].points.length-1],g=c[0].points[0],v=hr.makeline(b,d),m=hr.makeline(p,g),y=[v].concat(a).concat([m]).concat(c);return new dr(y)}outlineshapes(t,e,n){e=e||t;const r=this.outline(t,e).curves,i=[];for(let t=1,e=r.length;t<e/2;t++){const o=hr.makeshape(r[t],r[e-t],n);o.startcap.virtual=t>1,o.endcap.virtual=t<e/2-1,i.push(o)}return i}intersects(t,e){return t?t.p1&&t.p2?this.lineIntersects(t):(t instanceof xr&&(t=t.reduce()),this.curveintersects(this.reduce(),t,e)):this.selfintersects(e)}lineIntersects(t){const e=br(t.p1.x,t.p2.x),n=br(t.p1.y,t.p2.y),r=gr(t.p1.x,t.p2.x),i=gr(t.p1.y,t.p2.y);return hr.roots(this.points,t).filter(t=>{var o=this.get(t);return hr.between(o.x,e,r)&&hr.between(o.y,n,i)})}selfintersects(t){const e=this.reduce(),n=e.length-2,r=[];for(let i,o,a,u=0;u<n;u++)o=e.slice(u,u+1),a=e.slice(u+2),i=this.curveintersects(o,a,t),r.push(...i);return r}curveintersects(t,e,n){const r=[];t.forEach((function(t){e.forEach((function(e){t.overlaps(e)&&r.push({left:t,right:e})}))}));let i=[];return r.forEach((function(t){const e=hr.pairiteration(t.left,t.right,n);e.length>0&&(i=i.concat(e))})),i}arcs(t){return t=t||.5,this._iterate(t,[])}_error(t,e,n,r){const i=(r-n)/4,o=this.get(n+i),a=this.get(r-i),u=hr.dist(t,e),c=hr.dist(t,o),s=hr.dist(t,a);return pr(c-u)+pr(s-u)}_iterate(t,e){let n,r=0,i=1;do{n=0,i=1;let o,a,u,c,s,l=this.get(r),f=!1,h=!1,d=i,p=1,b=0;do{if(h=f,c=u,d=(r+i)/2,b++,o=this.get(d),a=this.get(i),u=hr.getccenter(l,o,a),u.interval={start:r,end:i},f=this._error(u,l,r,i)<=t,s=h&&!f,s||(p=i),f){if(i>=1){if(u.interval.end=p=1,c=u,i>1){let t={x:u.x+u.r*vr(u.e),y:u.y+u.r*mr(u.e)};u.e+=hr.angle({x:u.x,y:u.y},t,this.get(1))}break}i+=(i-r)/2}else i=d}while(!s&&n++<100);if(n>=100)break;c=c||u,e.push(c),r=p}while(i<1);return e}}function kr(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Sr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(t,e)||Er(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mr(t){return function(t){if(Array.isArray(t))return Tr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Er(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Er(t,e){if(t){if("string"==typeof t)return Tr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tr(t,e):void 0}}function Tr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Cr(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var Or=r(116),jr=r(150);function Ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ar(Object(n),!0).forEach((function(e){Nr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zr(t){return(zr="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 Nr(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ir(t,e){return(Ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Rr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Dr(t,e,n){return(Dr=Rr()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&Ir(i,n.prototype),i}).apply(null,arguments)}function Lr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(t,e)||Fr(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qr(t){return function(t){if(Array.isArray(t))return Ur(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Fr(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fr(t,e){if(t){if("string"==typeof t)return Ur(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ur(t,e):void 0}}function Ur(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}!function(t,e){void 0===e&&(e={});var n=e.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}(".force-graph-container canvas {\n display: block;\n user-select: none;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.force-graph-container .graph-tooltip {\n position: absolute;\n top: 0;\n font-family: sans-serif;\n font-size: 16px;\n padding: 4px;\n border-radius: 3px;\n color: #eee;\n background: rgba(0,0,0,0.65);\n visibility: hidden; /* by default */\n}\n\n.force-graph-container .clickable {\n cursor: pointer;\n}\n\n.force-graph-container .grabbable {\n cursor: move;\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n\n.force-graph-container .grabbable:active {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n}\n");var Br=Object(Or.k)(jr.a);function Vr(t,e,n){e&&"string"==typeof n&&t.filter((function(t){return!t[n]})).forEach((function(t){t[n]=Br(e(t))}))}var Hr=function(t,e){return e.onNeedsRedraw&&e.onNeedsRedraw()},Wr=function(t,e){if(!e.isShadow){var n=dn(e.linkDirectionalParticles);e.graphData.links.forEach((function(t){var e=Math.round(Math.abs(n(t)));e?t.__photons=qr(Array(e)).map((function(){return{}})):delete t.__photons}))}},Gr=hn({props:{graphData:{default:{nodes:[],links:[]},onChange:function(t,e){e.engineRunning=!1,Wr(0,e)}},dagMode:{onChange:function(t,e){!t&&(e.graphData.nodes||[]).forEach((function(t){return t.fx=t.fy=void 0}))}},dagLevelDistance:{},dagNodeFilter:{default:function(t){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:Hr},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:Hr},nodeColor:{default:"color",triggerUpdate:!1,onChange:Hr},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:Hr},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:Hr},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:Hr},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:Hr},linkColor:{default:"color",triggerUpdate:!1,onChange:Hr},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:Hr},linkWidth:{default:1,triggerUpdate:!1,onChange:Hr},linkCurvature:{default:0,triggerUpdate:!1,onChange:Hr},linkCanvasObject:{triggerUpdate:!1,onChange:Hr},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:Hr},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:Hr},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:Hr},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:Hr},linkDirectionalParticles:{default:0,triggerUpdate:!1,onChange:Wr},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:4,triggerUpdate:!1},linkDirectionalParticleColor:{triggerUpdate:!1},globalScale:{default:1,triggerUpdate:!1},d3AlphaMin:{default:0,triggerUpdate:!1},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(t,e){e.forceLayout.alphaDecay(t)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(t,e){e.forceLayout.alphaTarget(t)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(t,e){e.forceLayout.velocityDecay(t)}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1},onNeedsRedraw:{triggerUpdate:!1},isShadow:{default:!1,triggerUpdate:!1}},methods:{d3Force:function(t,e,n){return void 0===n?t.forceLayout.force(e):(t.forceLayout.force(e,n),this)},d3ReheatSimulation:function(t){return t.forceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(t){return t.cntTicks=0,t.startTickTime=new Date,t.engineRunning=!0,this},isEngineRunning:function(t){return!!t.engineRunning},tickFrame:function(t){var e,n,r,i,o,a;return!t.isShadow&&t.engineRunning&&(++t.cntTicks>t.cooldownTicks||new Date-t.startTickTime>t.cooldownTime||t.d3AlphaMin>0&&t.forceLayout.alpha()<t.d3AlphaMin?(t.engineRunning=!1,t.onEngineStop()):(t.forceLayout.tick(),t.onEngineTick())),function(){var e=dn(t.linkVisibility),n=dn(t.linkColor),r=dn(t.linkWidth),i=dn(t.linkLineDash),o=dn(t.linkCurvature),a=dn(t.linkCanvasObjectMode),u=t.ctx,c=2*t.isShadow,s=t.graphData.links.filter(e);s.forEach((function(t){var e=o(t);if(e){var n=t.source,r=t.target;if(n&&r&&n.hasOwnProperty("x")&&r.hasOwnProperty("x")){var i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2));if(i>0){var a=Math.atan2(r.y-n.y,r.x-n.x),u=i*e,c={x:(n.x+r.x)/2+u*Math.cos(a-Math.PI/2),y:(n.y+r.y)/2+u*Math.sin(a-Math.PI/2)};t.__controlPoints=[c.x,c.y]}else{var s=70*e;t.__controlPoints=[r.x,r.y-s,r.x+s,r.y]}}}else t.__controlPoints=null}));var l=[],f=[],h=s;if(t.linkCanvasObject){var d=[],p=[];s.forEach((function(t){return({before:l,after:f,replace:d}[a(t)]||p).push(t)})),h=[].concat(qr(l),f,p),l=l.concat(d)}u.save(),l.forEach((function(e){return t.linkCanvasObject(e,u,t.globalScale)})),u.restore();var b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=(e instanceof Array?e.length?e:[void 0]:[e]).map((function(t){return{keyAccessor:t,isProp:!(t instanceof Function)}})),o=t.reduce((function(t,e){var r=t,o=e;return i.forEach((function(t,e){var a,u=t.keyAccessor;if(t.isProp){var c=o,s=c[u],l=kr(c,[u].map(Cr));a=s,o=l}else a=u(o,e);e+1<i.length?(r.hasOwnProperty(a)||(r[a]={}),r=r[a]):n?(r.hasOwnProperty(a)||(r[a]=[]),r[a].push(o)):r[a]=o})),t}),{});n instanceof Function&&function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;r===i.length?Object.keys(e).forEach((function(t){return e[t]=n(e[t])})):Object.values(e).forEach((function(e){return t(e,r+1)}))}(o);var a=o;return r&&(a=[],function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===i.length?a.push({keys:n,vals:e}):Object.entries(e).forEach((function(e){var r=Sr(e,2),i=r[0],o=r[1];return t(o,[].concat(Mr(n),[i]))}))}(o),e instanceof Array&&0===e.length&&1===a.length&&(a[0].keys=[])),a}(h,[n,r,i]);u.save(),Object.entries(b).forEach((function(e){var n=Lr(e,2),r=n[0],o=n[1],a=r&&"undefined"!==r?r:"rgba(0,0,0,0.15)";Object.entries(o).forEach((function(e){var n=Lr(e,2),r=n[0],o=n[1],s=(r||1)/t.globalScale+c;Object.entries(o).forEach((function(t){var e=Lr(t,2);e[0];var n=e[1],r=i(n[0]);u.beginPath(),n.forEach((function(t){var e=t.source,n=t.target;if(e&&n&&e.hasOwnProperty("x")&&n.hasOwnProperty("x")){u.moveTo(e.x,e.y);var r=t.__controlPoints;r?u[2===r.length?"quadraticCurveTo":"bezierCurveTo"].apply(u,qr(r).concat([n.x,n.y])):u.lineTo(n.x,n.y)}})),u.strokeStyle=a,u.lineWidth=s,u.setLineDash(r||[]),u.stroke()}))}))})),u.restore(),u.save(),f.forEach((function(e){return t.linkCanvasObject(e,u,t.globalScale)})),u.restore()}(),!t.isShadow&&(e=dn(t.linkDirectionalArrowLength),n=dn(t.linkDirectionalArrowRelPos),r=dn(t.linkVisibility),i=dn(t.linkDirectionalArrowColor||t.linkColor),o=dn(t.nodeVal),(a=t.ctx).save(),t.graphData.links.filter(r).forEach((function(r){var u=e(r);if(u&&!(u<0)){var c=r.source,s=r.target;if(c&&s&&c.hasOwnProperty("x")&&s.hasOwnProperty("x")){var l=Math.sqrt(Math.max(0,o(c)||1))*t.nodeRelSize,f=Math.sqrt(Math.max(0,o(s)||1))*t.nodeRelSize,h=Math.min(1,Math.max(0,n(r))),d=i(r)||"rgba(0,0,0,0.28)",p=u/1.6/2,b=r.__controlPoints&&Dr(xr,[c.x,c.y].concat(qr(r.__controlPoints),[s.x,s.y])),g=b?function(t){return b.get(t)}:function(t){return{x:c.x+(s.x-c.x)*t||0,y:c.y+(s.y-c.y)*t||0}},v=b?b.length():Math.sqrt(Math.pow(s.x-c.x,2)+Math.pow(s.y-c.y,2)),m=l+u+(v-l-f-u)*h,y=g(m/v),_=g((m-u)/v),w=g((m-.8*u)/v),x=Math.atan2(y.y-_.y,y.x-_.x)-Math.PI/2;a.beginPath(),a.moveTo(y.x,y.y),a.lineTo(_.x+p*Math.cos(x),_.y+p*Math.sin(x)),a.lineTo(w.x,w.y),a.lineTo(_.x-p*Math.cos(x),_.y-p*Math.sin(x)),a.fillStyle=d,a.fill()}}})),a.restore()),!t.isShadow&&function(){var e=dn(t.linkDirectionalParticles),n=dn(t.linkDirectionalParticleSpeed),r=dn(t.linkDirectionalParticleWidth),i=dn(t.linkVisibility),o=dn(t.linkDirectionalParticleColor||t.linkColor),a=t.ctx;a.save(),t.graphData.links.filter(i).forEach((function(i){var u=e(i);if(i.hasOwnProperty("__photons")&&i.__photons.length){var c=i.source,s=i.target;if(c&&s&&c.hasOwnProperty("x")&&s.hasOwnProperty("x")){var l=n(i),f=i.__photons||[],h=Math.max(0,r(i)/2)/Math.sqrt(t.globalScale),d=o(i)||"rgba(0,0,0,0.28)";a.fillStyle=d;var p=i.__controlPoints?Dr(xr,[c.x,c.y].concat(qr(i.__controlPoints),[s.x,s.y])):null,b=0,g=!1;f.forEach((function(t){var e=!!t.__singleHop;if(t.hasOwnProperty("__progressRatio")||(t.__progressRatio=e?0:b/u),!e&&b++,t.__progressRatio+=l,t.__progressRatio>=1){if(e)return void(g=!0);t.__progressRatio=t.__progressRatio%1}var n=t.__progressRatio,r=p?p.get(n):{x:c.x+(s.x-c.x)*n||0,y:c.y+(s.y-c.y)*n||0};a.beginPath(),a.arc(r.x,r.y,h,0,2*Math.PI,!1),a.fill()})),g&&(i.__photons=i.__photons.filter((function(t){return!t.__singleHop||t.__progressRatio<=1})))}}})),a.restore()}(),function(){var e=dn(t.nodeVisibility),n=dn(t.nodeVal),r=dn(t.nodeColor),i=dn(t.nodeCanvasObjectMode),o=t.ctx,a=t.isShadow/t.globalScale,u=t.graphData.nodes.filter(e);o.save(),u.forEach((function(e){var u=i(e);if(!t.nodeCanvasObject||"before"!==u&&"replace"!==u||(t.nodeCanvasObject(e,o,t.globalScale),"replace"!==u)){var c=Math.sqrt(Math.max(0,n(e)||1))*t.nodeRelSize+a;o.beginPath(),o.arc(e.x,e.y,c,0,2*Math.PI,!1),o.fillStyle=r(e)||"rgba(31, 120, 180, 0.92)",o.fill(),t.nodeCanvasObject&&"after"===u&&t.nodeCanvasObject(e,t.ctx,t.globalScale)}else o.restore()})),o.restore()}(),this},emitParticle:function(t,e){return e&&(!e.__photons&&(e.__photons=[]),e.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:Tn().force("link",Pn()).force("charge",Kn()).force("center",Qn()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(t,e){e.ctx=t},update:function(t){t.engineRunning=!1,t.onUpdate(),null!==t.nodeAutoColorBy&&Vr(t.graphData.nodes,dn(t.nodeAutoColorBy),t.nodeColor),null!==t.linkAutoColorBy&&Vr(t.graphData.links,dn(t.linkAutoColorBy),t.linkColor),t.graphData.links.forEach((function(e){e.source=e[t.linkSource],e.target=e[t.linkTarget]})),t.forceLayout.stop().alpha(1).nodes(t.graphData.nodes);var e=t.forceLayout.force("link");e&&e.id((function(e){return e[t.nodeId]})).links(t.graphData.links);var n=t.dagMode&&function(t,e){var n=t.nodes,r=t.links,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.nodeFilter,a=void 0===o?function(){return!0}:o,u=i.onLoopError,c=void 0===u?function(t){throw"Invalid DAG structure! Found cycle in node path: ".concat(t.join(" -> "),".")}:u,s={};n.forEach((function(t){return s[e(t)]={data:t,out:[],depth:-1,skip:!a(t)}})),r.forEach((function(t){var n=t.source,r=t.target,i=c(n),o=c(r);if(!s.hasOwnProperty(i))throw"Missing source node with id: ".concat(i);if(!s.hasOwnProperty(o))throw"Missing target node with id: ".concat(o);var a=s[i],u=s[o];function c(t){return"object"===zr(t)?e(t):t}a.out.push(u)}));var l=[];h(Object.values(s));var f=Object.assign.apply(Object,[{}].concat(qr(Object.entries(s).filter((function(t){return!Lr(t,2)[1].skip})).map((function(t){var e=Lr(t,2);return Nr({},e[0],e[1].depth)})))));return f;function h(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=function(){var i=t[o];if(-1!==n.indexOf(i)){var a=[].concat(qr(n.slice(n.indexOf(i))),[i]).map((function(t){return e(t.data)}));return l.some((function(t){return t.length===a.length&&t.every((function(t,e){return t===a[e]}))}))||(l.push(a),c(a)),"continue"}r>i.depth&&(i.depth=r,h(i.out,[].concat(qr(n),[i]),r+(i.skip?0:1)))},o=0,a=t.length;o<a;o++)i()}}(t.graphData,(function(e){return e[t.nodeId]}),{nodeFilter:t.dagNodeFilter,onLoopError:t.onDagError||void 0}),r=Math.max.apply(Math,qr(Object.values(n||[]))),i=t.dagLevelDistance||t.graphData.nodes.length/(r||1)*2*(-1!==["radialin","radialout"].indexOf(t.dagMode)?.7:1);if(t.dagMode){var o=function(e,o){return function(a){return e?(n[a[t.nodeId]]-r/2)*i*(o?-1:1):void 0}},a=o(-1!==["lr","rl"].indexOf(t.dagMode),"rl"===t.dagMode),u=o(-1!==["td","bu"].indexOf(t.dagMode),"bu"===t.dagMode);t.graphData.nodes.filter(t.dagNodeFilter).forEach((function(t){t.fx=a(t),t.fy=u(t)}))}t.forceLayout.force("dagRadial",-1!==["radialin","radialout"].indexOf(t.dagMode)?function(t,e,n,r){var i,o,a,u,c=Cn(.1);function s(t){for(var c=0,s=i.length;c<s;++c){var l=i[c],f=l.x-e||1e-6,h=(l.y||0)-n||1e-6,d=(l.z||0)-r||1e-6,p=Math.sqrt(f*f+h*h+d*d),b=(u[c]-p)*a[c]*t/p;l.vx+=f*b,o>1&&(l.vy+=h*b),o>2&&(l.vz+=d*b)}}function l(){if(i){var e,n=i.length;for(a=new Array(n),u=new Array(n),e=0;e<n;++e)u[e]=+t(i[e],e,i),a[e]=isNaN(u[e])?0:+c(i[e],e,i)}}return"function"!=typeof t&&(t=Cn(+t)),null==e&&(e=0),null==n&&(n=0),null==r&&(r=0),s.initialize=function(t,...e){i=t,o=e.find(t=>[1,2,3].includes(t))||2,l()},s.strength=function(t){return arguments.length?(c="function"==typeof t?t:Cn(+t),l(),s):c},s.radius=function(e){return arguments.length?(t="function"==typeof e?e:Cn(+e),l(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(n=+t,s):n},s.z=function(t){return arguments.length?(r=+t,s):r},s}((function(e){var o=n[e[t.nodeId]]||-1;return("radialin"===t.dagMode?r-o:o)*i})).strength((function(e){return t.dagNodeFilter(e)?1:0})):null);for(var c=0;c<t.warmupTicks&&!(t.d3AlphaMin>0&&t.forceLayout.alpha()<t.d3AlphaMin);c++)t.forceLayout.tick();this.resetCountdown(),t.onFinishUpdate()}});function $r(t,e){var n=t instanceof Array?t:[t],r=new e;return{linkProp:function(t){return{default:r[t](),onChange:function(e,r){n.forEach((function(n){return r[n][t](e)}))},triggerUpdate:!1}},linkMethod:function(t){return function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=[];return n.forEach((function(n){var r=e[n],o=r[t].apply(r,i);o!==r&&a.push(o)})),a.length?a[0]:this}}}}var Yr=$r("forceGraph",Gr),Xr=$r(["forceGraph","shadowGraph"],Gr),Kr=Object.assign.apply(Object,qr(["nodeColor","nodeAutoColorBy","nodeCanvasObject","nodeCanvasObjectMode","linkColor","linkAutoColorBy","linkLineDash","linkWidth","linkCanvasObject","linkCanvasObjectMode","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","dagMode","dagLevelDistance","dagNodeFilter","onDagError","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map((function(t){return Nr({},t,Yr.linkProp(t))}))).concat(qr(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map((function(t){return Nr({},t,Xr.linkProp(t))}))))),Qr=Object.assign.apply(Object,qr(["d3Force","d3ReheatSimulation","emitParticle"].map((function(t){return Nr({},t,Yr.linkMethod(t))}))));function Zr(t){if(t.canvas){var e=t.canvas.width,n=t.canvas.height;300===e&&150===n&&(e=n=0);var r=window.devicePixelRatio;e/=r,n/=r,[t.canvas,t.shadowCanvas].forEach((function(i){i.style.width="".concat(t.width,"px"),i.style.height="".concat(t.height,"px"),i.width=t.width*r,i.height=t.height*r,e||n||i.getContext("2d").scale(r,r)}));var i=qe(t.canvas).k;t.zoom.translateBy(t.zoom.__baseElem,(t.width-e)/2/i,(t.height-n)/2/i),t.needsRedraw=!0}}function Jr(t){var e=window.devicePixelRatio;t.setTransform(e,0,0,e,0,0)}function ti(t,e,n){t.save(),Jr(t),t.clearRect(0,0,e,n),t.restore()}var ei=hn({props:Pr({width:{default:window.innerWidth,onChange:function(t,e){return Zr(e)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(t,e){return Zr(e)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(t,e){[{type:"Node",objs:t.nodes},{type:"Link",objs:t.links}].forEach((function(t){var n=t.type;t.objs.filter((function(t){if(!t.hasOwnProperty("__indexColor"))return!0;var n=e.colorTracker.lookup(t.__indexColor);return!n||!n.hasOwnProperty("d")||n.d!==t})).forEach((function(t){t.__indexColor=e.colorTracker.register({type:n,d:t})}))})),e.forceGraph.graphData(t),e.shadowGraph.graphData(t)},triggerUpdate:!1},backgroundColor:{onChange:function(t,e){e.canvas&&t&&(e.canvas.style.background=t)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(t,e){e.shadowGraph.nodeCanvasObject(t?function(e,n,r){return t(e,e.__indexColor,n,r)}:null),e.flushShadowCanvas&&e.flushShadowCanvas()},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(t,e){e.shadowGraph.linkCanvasObject(t?function(e,n,r){return t(e,e.__indexColor,n,r)}:null),e.flushShadowCanvas&&e.flushShadowCanvas()},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(t,e){e.zoom.scaleExtent([t,e.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(t,e){e.zoom.scaleExtent([e.zoom.scaleExtent()[0],t])},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},enableZoomInteraction:{default:!0,triggerUpdate:!1},enablePanInteraction:{default:!0,triggerUpdate:!1},enableZoomPanInteraction:{default:!0,triggerUpdate:!1},enablePointerInteraction:{default:!0,onChange:function(t,e){e.hoverObj=null},triggerUpdate:!1},autoPauseRedraw:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1},onZoom:{triggerUpdate:!1},onZoomEnd:{triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},Kr),aliases:{stopAnimation:"pauseAnimation"},methods:Pr({graph2ScreenCoords:function(t,e,n){var r=qe(t.canvas);return{x:e*r.k+r.x,y:n*r.k+r.y}},screen2GraphCoords:function(t,e,n){var r=qe(t.canvas);return{x:(e-r.x)/r.k,y:(n-r.y)/r.k}},centerAt:function(t,e,n,r){if(!t.canvas)return null;if(void 0!==e||void 0!==n){var i=Object.assign({},void 0!==e?{x:e}:{},void 0!==n?{y:n}:{});return r?new on.a.Tween(o()).to(i,r).easing(on.a.Easing.Quadratic.Out).onUpdate(a).start():a(i),this}return o();function o(){var e=qe(t.canvas);return{x:(t.width/2-e.x)/e.k,y:(t.height/2-e.y)/e.k}}function a(e){var n=e.x,r=e.y;t.zoom.translateTo(t.zoom.__baseElem,void 0===n?o().x:n,void 0===r?o().y:r),t.needsRedraw=!0}},zoom:function(t,e,n){return t.canvas?void 0!==e?(n?new on.a.Tween({k:r()}).to({k:e},n).easing(on.a.Easing.Quadratic.Out).onUpdate((function(t){return i(t.k)})).start():i(e),this):r():null;function r(){return qe(t.canvas).k}function i(e){t.zoom.scaleTo(t.zoom.__baseElem,e),t.needsRedraw=!0}},zoomToFit:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=this.getGraphBbox.apply(this,i);if(a){var u={x:(a.x[0]+a.x[1])/2,y:(a.y[0]+a.y[1])/2},c=Math.max(1e-12,Math.min(1e12,(t.width-2*n)/(a.x[1]-a.x[0]),(t.height-2*n)/(a.y[1]-a.y[0])));this.centerAt(u.x,u.y,e),this.zoom(c,e)}return this},getGraphBbox:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=dn(t.nodeVal),r=function(e){return Math.sqrt(Math.max(0,n(e)||1))*t.nodeRelSize},i=t.graphData.nodes.filter(e).map((function(t){return{x:t.x,y:t.y,r:r(t)}}));return i.length?{x:[Object(en.o)(i,(function(t){return t.x-t.r})),Object(en.k)(i,(function(t){return t.x+t.r}))],y:[Object(en.o)(i,(function(t){return t.y-t.r})),Object(en.k)(i,(function(t){return t.y+t.r}))]}:null},pauseAnimation:function(t){return t.animationFrameRequestId&&(cancelAnimationFrame(t.animationFrameRequestId),t.animationFrameRequestId=null),this},resumeAnimation:function(t){return t.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},Qr),stateInit:function(){return{lastSetZoom:1,zoom:Ye(),forceGraph:new Gr,shadowGraph:(new Gr).cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new wn}},init:function(t,e){var n=this;t.innerHTML="";var r=document.createElement("div");r.classList.add("force-graph-container"),r.style.position="relative",t.appendChild(r),e.canvas=document.createElement("canvas"),e.backgroundColor&&(e.canvas.style.background=e.backgroundColor),r.appendChild(e.canvas),e.shadowCanvas=document.createElement("canvas");var i=e.canvas.getContext("2d"),o=e.shadowCanvas.getContext("2d",{willReadFrequently:!0}),a={x:-1e12,y:-1e12},u=function(){var t=null,n=window.devicePixelRatio,r=a.x>0&&a.y>0?o.getImageData(a.x*n,a.y*n,1,1):null;return r&&(t=e.colorTracker.lookup(r.data)),t};zt(e.canvas).call(function(){var t,e,n,r,i=Qe,o=Ze,a=Je,u=tn,c={},s=Object(Nt.a)("start","drag","end"),l=0,f=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",g).on("touchmove.drag",v,It).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&i.call(this,a,u)){var c=y(this,o.call(this,a,u),a,u,"mouse");c&&(zt(a.view).on("mousemove.drag",p,Rt).on("mouseup.drag",b,Rt),qt(a.view),Dt(a),n=!1,t=a.clientX,e=a.clientY,c("start",a))}}function p(r){if(Lt(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>f}c.mouse("drag",r)}function b(t){zt(t.view).on("mousemove.drag mouseup.drag",null),Ft(t.view,n),Lt(t),c.mouse("end",t)}function g(t,e){if(i.call(this,t,e)){var n,r,a=t.changedTouches,u=o.call(this,t,e),c=a.length;for(n=0;n<c;++n)(r=y(this,u,t,e,a[n].identifier,a[n]))&&(Dt(t),r("start",t,a[n]))}}function v(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=c[r[e].identifier])&&(Lt(t),n("drag",t,r[e]))}function m(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<o;++e)(n=c[i[e].identifier])&&(Dt(t),n("end",t,i[e]))}function y(t,e,n,r,i,o){var u,f,d,p=s.copy(),b=Bt(o||n,e);if(null!=(d=a.call(t,new Ke("beforestart",{sourceEvent:n,target:h,identifier:i,active:l,x:b[0],y:b[1],dx:0,dy:0,dispatch:p}),r)))return u=d.x-b[0]||0,f=d.y-b[1]||0,function n(o,a,s){var g,v=b;switch(o){case"start":c[i]=n,g=l++;break;case"end":delete c[i],--l;case"drag":b=Bt(s||a,e),g=l}p.call(o,t,new Ke(o,{sourceEvent:a,subject:d,target:h,identifier:i,active:g,x:b[0]+u,y:b[1]+f,dx:b[0]-v[0],dy:b[1]-v[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:Xe(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:Xe(t),h):o},h.subject=function(t){return arguments.length?(a="function"==typeof t?t:Xe(t),h):a},h.touchable=function(t){return arguments.length?(u="function"==typeof t?t:Xe(!!t),h):u},h.on=function(){var t=s.on.apply(s,arguments);return t===s?h:t},h.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,h):Math.sqrt(f)},h}().subject((function(){if(!e.enableNodeDrag)return null;var t=u();return t&&"Node"===t.type?t.d:null})).on("start",(function(t){var n=t.subject;n.__initialDragPos={x:n.x,y:n.y,fx:n.fx,fy:n.fy},t.active||(n.fx=n.x,n.fy=n.y),e.canvas.classList.add("grabbable")})).on("drag",(function(t){var n=t.subject,r=n.__initialDragPos,i=t,o=qe(e.canvas).k,a={x:r.x+(i.x-r.x)/o-n.x,y:r.y+(i.y-r.y)/o-n.y};["x","y"].forEach((function(t){return n["f".concat(t)]=n[t]=r[t]+(i[t]-r[t])/o})),e.forceGraph.d3AlphaTarget(.3).resetCountdown(),e.isPointerDragging=!0,n.__dragged=!0,e.onNodeDrag(n,a)})).on("end",(function(t){var n=t.subject,r=n.__initialDragPos,i={x:n.x-r.x,y:n.y-r.y};void 0===r.fx&&(n.fx=void 0),void 0===r.fy&&(n.fy=void 0),delete n.__initialDragPos,e.forceGraph.d3AlphaTarget()&&e.forceGraph.d3AlphaTarget(0).resetCountdown(),e.canvas.classList.remove("grabbable"),e.isPointerDragging=!1,n.__dragged&&(delete n.__dragged,e.onNodeDragEnd(n,i))}))),e.zoom(e.zoom.__baseElem=zt(e.canvas)),e.zoom.__baseElem.on("dblclick.zoom",null),e.zoom.filter((function(t){return!t.button&&e.enableZoomPanInteraction&&(e.enableZoomInteraction||"wheel"!==t.type)&&(e.enablePanInteraction||"wheel"===t.type)})).on("zoom",(function(t){var r=t.transform;[i,o].forEach((function(t){Jr(t),t.translate(r.x,r.y),t.scale(r.k,r.k)})),e.onZoom&&e.onZoom(Pr(Pr({},r),n.centerAt())),e.needsRedraw=!0})).on("end",(function(t){return e.onZoomEnd&&e.onZoomEnd(Pr(Pr({},t.transform),n.centerAt()))})),Zr(e),e.forceGraph.onNeedsRedraw((function(){return e.needsRedraw=!0})).onFinishUpdate((function(){qe(e.canvas).k===e.lastSetZoom&&e.graphData.nodes.length&&(e.zoom.scaleTo(e.zoom.__baseElem,e.lastSetZoom=4/Math.cbrt(e.graphData.nodes.length)),e.needsRedraw=!0)}));var c=document.createElement("div");c.classList.add("graph-tooltip"),r.appendChild(c),["pointermove","pointerdown"].forEach((function(t){return r.addEventListener(t,(function(n){"pointerdown"===t&&(e.isPointerPressed=!0,e.pointerDownEvent=n),!e.isPointerDragging&&"pointermove"===n.type&&e.onBackgroundClick&&(n.pressure>0||e.isPointerPressed)&&("touch"!==n.pointerType||void 0===n.movementX||[n.movementX,n.movementY].some((function(t){return Math.abs(t)>1})))&&(e.isPointerDragging=!0);var i,o,u,s=(i=r.getBoundingClientRect(),o=window.pageXOffset||document.documentElement.scrollLeft,u=window.pageYOffset||document.documentElement.scrollTop,{top:i.top+u,left:i.left+o});a.x=n.pageX-s.left,a.y=n.pageY-s.top,c.style.top="".concat(a.y,"px"),c.style.left="".concat(a.x,"px"),c.style.transform="translate(-".concat(a.x/e.width*100,"%, ").concat(e.height-a.y<100?"calc(-100% - 8px)":"21px",")")}),{passive:!0})})),r.addEventListener("pointerup",(function(t){if(e.isPointerPressed=!1,e.isPointerDragging)e.isPointerDragging=!1;else{var n=[t,e.pointerDownEvent];requestAnimationFrame((function(){if(0===t.button)if(e.hoverObj){var r=e["on".concat(e.hoverObj.type,"Click")];r&&r.apply(void 0,[e.hoverObj.d].concat(n))}else e.onBackgroundClick&&e.onBackgroundClick.apply(e,n);if(2===t.button)if(e.hoverObj){var i=e["on".concat(e.hoverObj.type,"RightClick")];i&&i.apply(void 0,[e.hoverObj.d].concat(n))}else e.onBackgroundRightClick&&e.onBackgroundRightClick.apply(e,n)}))}}),{passive:!0}),r.addEventListener("contextmenu",(function(t){return!(e.onBackgroundRightClick||e.onNodeRightClick||e.onLinkRightClick)||(t.preventDefault(),!1)})),e.forceGraph(i),e.shadowGraph(o);var s=rn()((function(){ti(o,e.width,e.height),e.shadowGraph.linkWidth((function(t){return dn(e.linkWidth)(t)+e.linkHoverPrecision}));var t=qe(e.canvas);e.shadowGraph.globalScale(t.k).tickFrame()}),800);e.flushShadowCanvas=s.flush,(this._animationCycle=function t(){var n=!e.autoPauseRedraw||!!e.needsRedraw||e.forceGraph.isEngineRunning()||e.graphData.links.some((function(t){return t.__photons&&t.__photons.length}));if(e.needsRedraw=!1,e.enablePointerInteraction){var r=e.isPointerDragging?null:u();if(r!==e.hoverObj){var o=e.hoverObj,a=o?o.type:null,l=r?r.type:null;if(a&&a!==l){var f=e["on".concat(a,"Hover")];f&&f(null,o.d)}if(l){var h=e["on".concat(l,"Hover")];h&&h(r.d,a===l?o.d:null)}var d=r&&dn(e["".concat(r.type.toLowerCase(),"Label")])(r.d)||"";c.style.visibility=d?"visible":"hidden",c.innerHTML=d,e.canvas.classList[r&&e["on".concat(l,"Click")]||!r&&e.onBackgroundClick?"add":"remove"]("clickable"),e.hoverObj=r}n&&s()}if(n){ti(i,e.width,e.height);var p=qe(e.canvas).k;e.onRenderFramePre&&e.onRenderFramePre(i,p),e.forceGraph.globalScale(p).tickFrame(),e.onRenderFramePost&&e.onRenderFramePost(i,p)}on.a.update(),e.animationFrameRequestId=requestAnimationFrame(t)})()},update:function(t){}}),ni=r(1),ri=r.n(ni);const ii={width:ri.a.number,height:ri.a.number,graphData:ri.a.shape({nodes:ri.a.arrayOf(ri.a.object).isRequired,links:ri.a.arrayOf(ri.a.object).isRequired}),backgroundColor:ri.a.string,nodeRelSize:ri.a.number,nodeId:ri.a.string,nodeLabel:ri.a.oneOfType([ri.a.string,ri.a.func]),nodeVal:ri.a.oneOfType([ri.a.number,ri.a.string,ri.a.func]),nodeVisibility:ri.a.oneOfType([ri.a.bool,ri.a.string,ri.a.func]),nodeColor:ri.a.oneOfType([ri.a.string,ri.a.func]),nodeAutoColorBy:ri.a.oneOfType([ri.a.string,ri.a.func]),onNodeHover:ri.a.func,onNodeClick:ri.a.func,linkSource:ri.a.string,linkTarget:ri.a.string,linkLabel:ri.a.oneOfType([ri.a.string,ri.a.func]),linkVisibility:ri.a.oneOfType([ri.a.bool,ri.a.string,ri.a.func]),linkColor:ri.a.oneOfType([ri.a.string,ri.a.func]),linkAutoColorBy:ri.a.oneOfType([ri.a.string,ri.a.func]),linkWidth:ri.a.oneOfType([ri.a.number,ri.a.string,ri.a.func]),linkCurvature:ri.a.oneOfType([ri.a.number,ri.a.string,ri.a.func]),linkDirectionalArrowLength:ri.a.oneOfType([ri.a.number,ri.a.string,ri.a.func]),linkDirectionalArrowColor:ri.a.oneOfType([ri.a.string,ri.a.func]),linkDirectionalArrowRelPos:ri.a.oneOfType([ri.a.number,ri.a.string,ri.a.func]),linkDirectionalParticles:ri.a.oneOfType([ri.a.number,ri.a.string,ri.a.func]),linkDirectionalParticleSpeed:ri.a.oneOfType([ri.a.number,ri.a.string,ri.a.func]),linkDirectionalParticleWidth:ri.a.oneOfType([ri.a.number,ri.a.string,ri.a.func]),linkDirectionalParticleColor:ri.a.oneOfType([ri.a.string,ri.a.func]),onLinkHover:ri.a.func,onLinkClick:ri.a.func,dagMode:ri.a.oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:ri.a.number,dagNodeFilter:ri.a.func,onDagError:ri.a.func,d3AlphaMin:ri.a.number,d3AlphaDecay:ri.a.number,d3VelocityDecay:ri.a.number,warmupTicks:ri.a.number,cooldownTicks:ri.a.number,cooldownTime:ri.a.number,onEngineTick:ri.a.func,onEngineStop:ri.a.func,getGraphBbox:ri.a.func},oi={zoomToFit:ri.a.func,onNodeRightClick:ri.a.func,onNodeDrag:ri.a.func,onNodeDragEnd:ri.a.func,onLinkRightClick:ri.a.func,linkHoverPrecision:ri.a.number,onBackgroundClick:ri.a.func,onBackgroundRightClick:ri.a.func,enablePointerInteraction:ri.a.bool,enableNodeDrag:ri.a.bool},ai={showNavInfo:ri.a.bool,nodeOpacity:ri.a.number,nodeResolution:ri.a.number,nodeThreeObject:ri.a.oneOfType([ri.a.object,ri.a.string,ri.a.func]),nodeThreeObjectExtend:ri.a.oneOfType([ri.a.bool,ri.a.string,ri.a.func]),linkOpacity:ri.a.number,linkResolution:ri.a.number,linkCurveRotation:ri.a.oneOfType([ri.a.number,ri.a.string,ri.a.func]),linkMaterial:ri.a.oneOfType([ri.a.object,ri.a.string,ri.a.func]),linkThreeObject:ri.a.oneOfType([ri.a.object,ri.a.string,ri.a.func]),linkThreeObjectExtend:ri.a.oneOfType([ri.a.bool,ri.a.string,ri.a.func]),linkPositionUpdate:ri.a.func,linkDirectionalArrowResolution:ri.a.number,linkDirectionalParticleResolution:ri.a.number,forceEngine:ri.a.oneOf(["d3","ngraph"]),ngraphPhysics:ri.a.object,numDimensions:ri.a.oneOf([1,2,3])},ui=Object.assign({},ii,oi,{linkLineDash:ri.a.oneOfType([ri.a.arrayOf(ri.a.number),ri.a.string,ri.a.func]),nodeCanvasObjectMode:ri.a.oneOfType([ri.a.string,ri.a.func]),nodeCanvasObject:ri.a.func,nodePointerAreaPaint:ri.a.func,linkCanvasObjectMode:ri.a.oneOfType([ri.a.string,ri.a.func]),linkCanvasObject:ri.a.func,linkPointerAreaPaint:ri.a.func,autoPauseRedraw:ri.a.bool,minZoom:ri.a.number,maxZoom:ri.a.number,enableZoomInteraction:ri.a.bool,enablePanInteraction:ri.a.bool,onZoom:ri.a.func,onZoomEnd:ri.a.func,onRenderFramePre:ri.a.func,onRenderFramePost:ri.a.func});Object.assign({},ii,oi,ai,{enableNavigationControls:ri.a.bool,controlType:ri.a.oneOf(["trackball","orbit","fly"]),rendererConfig:ri.a.object,extraRenderers:ri.a.arrayOf(ri.a.shape({render:ri.a.func.isRequired}))}),Object.assign({},ii,ai,{nodeDesc:ri.a.oneOfType([ri.a.string,ri.a.func]),linkDesc:ri.a.oneOfType([ri.a.string,ri.a.func])}),Object.assign({},ii,ai,{markerAttrs:ri.a.object,yOffset:ri.a.number,glScale:ri.a.number});const ci=function(t,e){var n="object"===h(e)?e:{wrapperElementType:e,methodNames:(arguments.length<=2?void 0:arguments[2])||void 0,initPropNames:(arguments.length<=3?void 0:arguments[3])||void 0},r=n.wrapperElementType,a=void 0===r?"div":r,u=n.nodeMapper,c=void 0===u?function(t){return t}:u,l=n.methodNames,b=void 0===l?[]:l,g=n.initPropNames,m=void 0===g?[]:g;return Object(i.forwardRef)((function(e,n){var r=Object(i.useRef)(),u=d(Object(i.useState)({}),2),l=u[0],h=u[1];Object(i.useEffect)((function(){return h(e)}));var g=Object(i.useMemo)((function(){var n=f()(m.filter((function(t){return e.hasOwnProperty(t)})).map((function(t){return[t,e[t]]})));return t(n)}),[]);Object(i.useLayoutEffect)((function(){g(c(r.current))}),[]),v((function(){return g._destructor instanceof Function?g._destructor:void 0}),[]);var y=Object(i.useCallback)((function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return g[t]instanceof Function?g[t].apply(g,n):void 0}),[g]),_=s(e,[].concat(p(b),p(m)));return Object.keys(_).filter((function(t){return l[t]!==e[t]})).forEach((function(t){return y(t,e[t])})),Object(i.useImperativeHandle)(n,(function(){return f()(b.map((function(t){return[t,function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return y.apply(void 0,[t].concat(n))}]})))})),o.a.createElement(a,{ref:r})}))}(ei,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});ci.displayName="ForceGraph2D",ci.propTypes=ui}]);