(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(t,e,n){"use strict";t.exports=n(298)},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(t)?t:[t]).forEach(function(t){t&&t.locale&&(a.a.__addLocaleData(t),u.a.__addLocaleData(t))})}function b(t){var e=t&&t.toLowerCase();return!(!a.a.__localeData__[e]||!u.a.__localeData__[e])}var w="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},x=(function(){function t(t){this.value=t}function e(e){var n,r;function i(n,r){try{var a=e[n](r),s=a.value;s instanceof t?Promise.resolve(s.value).then(function(t){i("next",t)},function(t){i("throw",t)}):o(a.done?"return":"normal",a.value)}catch(u){o("throw",u)}}function o(t,e){switch(t){case"return":n.resolve({value:e,done:!0});break;case"throw":n.reject(e);break;default:n.resolve({value:e,done:!1})}(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(t,e){return new Promise(function(o,a){var s={key:t,arg:e,resolve:o,reject:a,next:null};r?r=r.next=s:(n=r=s,i(t,e))})},"function"!==typeof e.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(e.prototype[Symbol.asyncIterator]=function(){return this}),e.prototype.next=function(t){return this._invoke("next",t)},e.prototype.throw=function(t){return this._invoke("throw",t)},e.prototype.return=function(t){return this._invoke("return",t)}}(),function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}),_=function(){function t(t,e){for(var n=0;n":">","<":"<",'"':""","'":"'"},Q=/[&><"']/g;function K(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return t.hasOwnProperty(r)?e[r]=t[r]:n.hasOwnProperty(r)&&(e[r]=n[r]),e},{})}function X(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intl;p()(t,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function J(t,e){if(t===e)return!0;if("object"!==("undefined"===typeof t?"undefined":w(t))||null===t||"object"!==("undefined"===typeof e?"undefined":w(e))||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(e),o=0;o3&&void 0!==arguments[3]?arguments[3]:{},u=a.intl,c=void 0===u?{}:u,l=s.intl,f=void 0===l?{}:l;return!J(e,r)||!J(n,i)||!(f===c||J(K(f,$),K(c,$)))}function tt(t,e){return"[React Intl] "+t+(e?"\n"+e:"")}function et(t){0}var nt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,t);var r,i="ordinal"===n.style,o=(r=function(t){return a.a.prototype._resolveLocale(t)}(e),a.a.prototype._findPluralRuleFunction(r));this.format=function(t){return o(t,i)}},rt=Object.keys(H),it=Object.keys(W),ot=Object.keys(V),at=Object.keys(G),st={second:60,minute:60,hour:24,day:30,month:12};function ut(t){var e=u.a.thresholds;e.second=t.second,e.minute=t.minute,e.hour=t.hour,e.day=t.day,e.month=t.month,e["second-short"]=t["second-short"],e["minute-short"]=t["minute-short"],e["hour-short"]=t["hour-short"],e["day-short"]=t["day-short"],e["month-short"]=t["month-short"]}function ct(t,e,n,r){var i=t&&t[e]&&t[e][n];if(i)return i;r(tt("No "+e+" format named: "+n))}function lt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=t.formats,a=t.messages,s=t.defaultLocale,u=t.defaultFormats,c=n.id,l=n.defaultMessage;p()(c,"[React Intl] An `id` must be provided to format a message.");var f=a&&a[c];if(!(Object.keys(r).length>0))return f||l||c;var h=void 0,d=t.onError||et;if(f)try{h=e.getMessageFormat(f,i,o).format(r)}catch(m){d(tt('Error formatting message: "'+c+'" for locale: "'+i+'"'+(l?", using default message as fallback.":""),m))}else(!l||i&&i.toLowerCase()!==s.toLowerCase())&&d(tt('Missing message: "'+c+'" for locale: "'+i+'"'+(l?", using default message as fallback.":"")));if(!h&&l)try{h=e.getMessageFormat(l,s,u).format(r)}catch(m){d(tt('Error formatting the default message for: "'+c+'"',m))}return h||d(tt('Cannot format message: "'+c+'", using message '+(f||l?"source":"id")+" as fallback.")),h||f||l||c}var ft=Object.freeze({formatDate:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=t.formats,a=t.timeZone,s=r.format,u=t.onError||et,c=new Date(n),l=S({},a&&{timeZone:a},s&&ct(o,"date",s,u)),f=K(r,rt,l);try{return e.getDateTimeFormat(i,f).format(c)}catch(h){u(tt("Error formatting date.",h))}return String(c)},formatTime:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=t.formats,a=t.timeZone,s=r.format,u=t.onError||et,c=new Date(n),l=S({},a&&{timeZone:a},s&&ct(o,"time",s,u)),f=K(r,rt,l);f.hour||f.minute||f.second||(f=S({},f,{hour:"numeric",minute:"numeric"}));try{return e.getDateTimeFormat(i,f).format(c)}catch(h){u(tt("Error formatting time.",h))}return String(c)},formatRelative:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=t.formats,a=r.format,s=t.onError||et,c=new Date(n),l=new Date(r.now),f=a&&ct(o,"relative",a,s),h=K(r,ot,f),d=S({},u.a.thresholds);ut(st);try{return e.getRelativeFormat(i,h).format(c,{now:isFinite(l)?l:e.now()})}catch(p){s(tt("Error formatting relative time.",p))}finally{ut(d)}return String(c)},formatNumber:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=t.formats,a=r.format,s=t.onError||et,u=a&&ct(o,"number",a,s),c=K(r,it,u);try{return e.getNumberFormat(i,c).format(n)}catch(l){s(tt("Error formatting number.",l))}return String(n)},formatPlural:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.locale,o=K(r,at),a=t.onError||et;try{return e.getPluralFormat(i,o).format(n)}catch(s){a(tt("Error formatting plural.",s))}return"other"},formatMessage:lt,formatHTMLMessage:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return lt(t,e,n,Object.keys(r).reduce(function(t,e){var n=r[e];return t[e]="string"===typeof n?(""+n).replace(Q,function(t){return Y[t]}):n,t},{}))}}),ht=Object.keys(B),dt=Object.keys(U),pt={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:et},mt=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,e);var r=k(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));p()("undefined"!==typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var i=n.intl,o=void 0;o=isFinite(t.initialNow)?Number(t.initialNow):i?i.now():Date.now();var s=(i||{}).formatters,c=void 0===s?{getDateTimeFormat:y()(Intl.DateTimeFormat),getNumberFormat:y()(Intl.NumberFormat),getMessageFormat:y()(a.a),getRelativeFormat:y()(u.a),getPluralFormat:y()(nt)}:s;return r.state=S({},c,{now:function(){return r._didDisplay?Date.now():o}}),r}return N(e,t),_(e,[{key:"getConfig",value:function(){var t=this.context.intl,e=K(this.props,ht,t);for(var n in pt)void 0===e[n]&&(e[n]=pt[n]);if(!function(t){for(var e=(t||"").split("-");e.length>0;){if(b(e.join("-")))return!0;e.pop()}return!1}(e.locale)){var r=e,i=r.locale,o=r.defaultLocale,a=r.defaultFormats;(0,r.onError)(tt('Missing locale data for locale: "'+i+'". Using default locale: "'+o+'" as fallback.')),e=S({},e,{locale:o,formats:a,messages:pt.messages})}return e}},{key:"getBoundFormatFns",value:function(t,e){return dt.reduce(function(n,r){return n[r]=ft[r].bind(null,t,e),n},{})}},{key:"getChildContext",value:function(){var t=this.getConfig(),e=this.getBoundFormatFns(t,this.state),n=this.state,r=n.now,i=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(n,["now"]);return{intl:S({},t,e,{formatters:i,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n1?r-1:0),o=1;o0){var g=Math.floor(1099511627776*Math.random()).toString(16),v=function(){var t=0;return function(){return"ELEMENT-"+g+"-"+(t+=1)}}();p="@__"+g+"__@",m={},y={},Object.keys(c).forEach(function(t){var e=c[t];if(Object(f.isValidElement)(e)){var n=v();m[t]=p+n+p,y[n]=e}else m[t]=e})}var b=n({id:a,description:s,defaultMessage:u},m||c),w=void 0;return w=y&&Object.keys(y).length>0?b.split(p).filter(function(t){return!!t}).map(function(t){return y[t]||t}):[b],"function"===typeof d?d.apply(void 0,A(w)):f.createElement.apply(void 0,[h,null].concat(A(w)))}}]),e}(f.Component);Ot.displayName="FormattedMessage",Ot.contextTypes={intl:q},Ot.defaultProps={values:{}};var Et=function(t){function e(t,n){x(this,e);var r=k(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return X(n),r}return N(e,t),_(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!J(t.values,e))return!0;for(var n=S({},t,{values:e}),r=arguments.length,i=Array(r>1?r-1:0),o=1;oe?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>>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>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};var o=i(r),a=o.right,s=o.left,u=a,c=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);nt?1:e>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,e){var n,r,i=t.length,o=0,a=-1,s=0,u=0;if(null==e)for(;++a1)return u/(o-1)},m=function(t,e){var n=p(t,e);return n?Math.sqrt(n):n},y=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=S?10:o>=N?5:o>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=S?10:o>=N?5:o>=k?2:1)}function E(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>=S?i*=10:o>=N?i*=5:o>=k&&(i*=2),ef;)h.pop(),--d;var p,m=new Array(d+1);for(i=0;i<=d;++i)(p=m[i]=[]).x0=i>0?h[i-1]:l,p.x1=i=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=b.call(t,d).sort(r),Math.ceil((n-e)/(2*(T(t,.75)-T(t,.25))*Math.pow(t.length,-1/3)))},j=function(t,e,n){return Math.ceil((n-e)/(3.5*m(t)*Math.pow(t.length,-1/3)))},M=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r},I=function(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n},R=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r},z=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},B=function(t,e){if(n=t.length){var n,i,o=0,a=0,s=t[a];for(null==e&&(e=r);++o=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);for(;++a0)for(var n,r,i=new Array(n),o=0;o=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),pt.hasOwnProperty(e)?{space:pt[e],local:t}:t};var yt=function(t){var e=mt(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===dt&&e.documentElement.namespaceURI===dt?e.createElement(t):e.createElementNS(n,t)}})(e)};function gt(){}var vt=function(t){return null==t?gt:function(){return this.querySelector(t)}};function bt(){return[]}var wt=function(t){return null==t?bt:function(){return this.querySelectorAll(t)}},xt=function(t){return function(){return this.matches(t)}},_t=function(t){return new Array(t.length)};function St(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}St.prototype={constructor:St,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 Nt="$";function kt(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;se?1:t>=e?0:NaN}var Et=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Ct(t,e){return t.style.getPropertyValue(e)||Et(t).getComputedStyle(t,null).getPropertyValue(e)}function Lt(t){return t.trim().split(/^|\s+/)}function Tt(t){return t.classList||new Pt(t)}function Pt(t){this._node=t,this._names=Lt(t.getAttribute("class")||"")}function jt(t,e){for(var n=Tt(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function It(){this.textContent=""}function Ft(){this.innerHTML=""}function Dt(){this.nextSibling&&this.parentNode.appendChild(this)}function Rt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zt(){return null}function Bt(){var t=this.parentNode;t&&t.removeChild(this)}function Ut(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function qt(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Ht={},Wt=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(Ht={mouseenter:"mouseover",mouseleave:"mouseout"}));function Vt(t,e,n){return t=Gt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Gt(t,e,n){return function(r){var i=Wt;Wt=r;try{t.call(this,this.__data__,e,n)}finally{Wt=i}}}function $t(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=x&&(x=w+1);!(b=g[x])&&++x=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=Ot);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"===typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):Ct(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"===typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=Lt(t+"");if(arguments.length<2){for(var r=Tt(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Yt:$t,null==n&&(n=!1),r=0;rf}u.mouse("drag")}function m(){ee(Wt.view).on("mousemove.drag mouseup.drag",null),me(Wt.view,n),de(),u.mouse("end")}function y(){if(i.apply(this,arguments)){var t,e,n=Wt.changedTouches,r=o.apply(this,arguments),a=n.length;for(t=0;t>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=Le.exec(t))?ze(parseInt(e[1],16)):(e=Te.exec(t))?new He(e[1],e[2],e[3],1):(e=Pe.exec(t))?new He(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=je.exec(t))?Be(e[1],e[2],e[3],e[4]):(e=Me.exec(t))?Be(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ie.exec(t))?Ve(e[1],e[2]/100,e[3]/100,1):(e=Fe.exec(t))?Ve(e[1],e[2]/100,e[3]/100,e[4]):De.hasOwnProperty(t)?ze(De[t]):"transparent"===t?new He(NaN,NaN,NaN,0):null}function ze(t){return new He(t>>16&255,t>>8&255,255&t,1)}function Be(t,e,n,r){return r<=0&&(t=e=n=NaN),new He(t,e,n,r)}function Ue(t){return t instanceof ke||(t=Re(t)),t?new He((t=t.rgb()).r,t.g,t.b,t.opacity):new He}function qe(t,e,n,r){return 1===arguments.length?Ue(t):new He(t,e,n,null==r?1:r)}function He(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function We(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ve(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new $e(t,e,n,r)}function Ge(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof $e)return new $e(t.h,t.s,t.l,t.opacity);if(t instanceof ke||(t=Re(t)),!t)return new $e;if(t instanceof $e)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new $e(a,s,u,t.opacity)}(t):new $e(t,e,n,null==r?1:r)}function $e(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ye(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Se(ke,Re,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Se(He,qe,Ne(ke,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new He(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new He(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+We(this.r)+We(this.g)+We(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Se($e,Ge,Ne(ke,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new $e(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new $e(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 He(Ye(t>=240?t-240:t+120,i,r),Ye(t,i,r),Ye(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Qe=Math.PI/180,Ke=180/Math.PI,Xe=.96422,Je=1,Ze=.82521,tn=4/29,en=6/29,nn=3*en*en,rn=en*en*en;function on(t){if(t instanceof un)return new un(t.l,t.a,t.b,t.opacity);if(t instanceof yn){if(isNaN(t.h))return new un(t.l,0,0,t.opacity);var e=t.h*Qe;return new un(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof He||(t=Ue(t));var n,r,i=hn(t.r),o=hn(t.g),a=hn(t.b),s=cn((.2225045*i+.7168786*o+.0606169*a)/Je);return i===o&&o===a?n=r=s:(n=cn((.4360747*i+.3850649*o+.1430804*a)/Xe),r=cn((.0139322*i+.0971045*o+.7141733*a)/Ze)),new un(116*s-16,500*(n-s),200*(s-r),t.opacity)}function an(t,e){return new un(t,0,0,null==e?1:e)}function sn(t,e,n,r){return 1===arguments.length?on(t):new un(t,e,n,null==r?1:r)}function un(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function cn(t){return t>rn?Math.pow(t,1/3):t/nn+tn}function ln(t){return t>en?t*t*t:nn*(t-tn)}function fn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function hn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function dn(t){if(t instanceof yn)return new yn(t.h,t.c,t.l,t.opacity);if(t instanceof un||(t=on(t)),0===t.a&&0===t.b)return new yn(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ke;return new yn(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function pn(t,e,n,r){return 1===arguments.length?dn(t):new yn(n,e,t,null==r?1:r)}function mn(t,e,n,r){return 1===arguments.length?dn(t):new yn(t,e,n,null==r?1:r)}function yn(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Se(un,sn,Ne(ke,{brighter:function(t){return new un(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new un(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new He(fn(3.1338561*(e=Xe*ln(e))-1.6168667*(t=Je*ln(t))-.4906146*(n=Ze*ln(n))),fn(-.9787684*e+1.9161415*t+.033454*n),fn(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Se(yn,mn,Ne(ke,{brighter:function(t){return new yn(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new yn(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return on(this).rgb()}}));var gn=-.29227,vn=-.90649,bn=1.97294,wn=bn*vn,xn=1.78277*bn,_n=1.78277*gn- -.14861*vn;function Sn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Nn)return new Nn(t.h,t.s,t.l,t.opacity);t instanceof He||(t=Ue(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(_n*r+wn*e-xn*n)/(_n+wn-xn),o=r-i,a=(bn*(n-i)-gn*o)/vn,s=Math.sqrt(a*a+o*o)/(bn*i*(1-i)),u=s?Math.atan2(a,o)*Ke-120:NaN;return new Nn(u<0?u+360:u,s,i,t.opacity)}(t):new Nn(t,e,n,null==r?1:r)}function Nn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function kn(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}Se(Nn,Sn,Ne(ke,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Nn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Nn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Qe,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new He(255*(e+n*(-.14861*r+1.78277*i)),255*(e+n*(gn*r+vn*i)),255*(e+n*(bn*r)),this.opacity)}}));var An=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r180||n<-180?n-360*Math.round(n/360):n):En(isNaN(t)?e:t)}function Tn(t){return 1===(t=+t)?Pn: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):En(isNaN(e)?n:e)}}function Pn(t,e){var n=e-t;return n?Cn(t,n):En(isNaN(t)?e:t)}var jn=function t(e){var n=Tn(e);function r(t,e){var r=n((t=qe(t)).r,(e=qe(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Pn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Mn(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;no&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:zn(n,r)})),o=qn.lastIndex;return o180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:zn(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:zn(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:zn(t,n)},{i:s-2,x:zn(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n=0&&e._call.call(null,t),e=e._next;--xr}function Ir(){Ar=(kr=Er.now())+Or,xr=_r=0;try{Mr()}finally{xr=0,function(){var t,e,n=vr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:vr=e);br=t,Dr(r)}(),Ar=0}}function Fr(){var t=Er.now(),e=t-kr;e>Nr&&(Or-=e,kr=t)}function Dr(t){xr||(_r&&(_r=clearTimeout(_r)),t-Ar>24?(t<1/0&&(_r=setTimeout(Ir,t-Er.now()-Or)),Sr&&(Sr=clearInterval(Sr))):(Sr||(kr=Er.now(),Sr=setInterval(Fr,Nr)),xr=1,Cr(Ir)))}Pr.prototype=jr.prototype={constructor:Pr,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?Lr():+n)+(null==e?0:+e),this._next||br===this||(br?br._next=this:vr=this,br=this),this._call=t,this._time=n,Dr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Dr())}};var Rr=function(t,e,n){var r=new Pr;return e=null==e?0:+e,r.restart(function(n){r.stop(),t(n+e)},e,n),r},zr=function(t,e,n){var r=new Pr,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?Lr():+n,r.restart(function o(a){a+=i,r.restart(o,i+=e,n),t(a)},e,n),r)},Br=ht("start","end","cancel","interrupt"),Ur=[],qr=0,Hr=1,Wr=2,Vr=3,Gr=4,$r=5,Yr=6,Qr=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(u){var c,l,f,h;if(n.state!==Hr)return s();for(c in i)if((h=i[c]).name===n.name){if(h.state===Vr)return Rr(o);h.state===Gr?(h.state=Yr,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+cqr)throw new Error("too late; already scheduled");return n}function Xr(t,e){var n=Jr(t,e);if(n.state>Vr)throw new Error("too late; already running");return n}function Jr(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Zr=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>Wr&&n.state<$r,n.state=Yr,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}};function ti(t,e,n){var r=t._id;return t.each(function(){var t=Xr(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Jr(t,r).value[e]}}var ei=function(t,e){var n;return("number"===typeof e?zn:e instanceof Re?jn:(n=Re(e))?(e=n,jn):$n)(t,e)};var ni=te.prototype.constructor;function ri(t){return function(){this.style.removeProperty(t)}}var ii=0;function oi(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function ai(t){return te().transition(t)}function si(){return++ii}var ui=te.prototype;function ci(t){return+t}function li(t){return t*t}function fi(t){return t*(2-t)}function hi(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function di(t){return t*t*t}function pi(t){return--t*t*t+1}function mi(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}oi.prototype=ai.prototype={constructor:oi,select:function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=vt(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Kr:Xr;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=mt(t),r="transform"===n?rr:ei;return this.attrTween(t,"function"===typeof e?(n.local?function(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(t.space,t.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttributeNS(t.space,t.local)}}:function(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(t))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttribute(t)}})(n,r,ti(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(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(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)}})(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=mt(t);return this.tween(n,(r.local?function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e(n))}}(t,i)),n}return i._value=e,i}:function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e(n))}}(t,i)),n}return i._value=e,i})(r,e))},style:function(t,e,n){var r="transform"===(t+="")?nr:ei;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Ct(this,t),a=(this.style.removeProperty(t),Ct(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,ri(t)):"function"===typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=Ct(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Ct(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}(t,r,ti(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=Xr(this,t),c=u.on,l=null==u.value[a]?o||(o=ri(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=Ct(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,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e(r),n)}}(t,o,n)),r}return o._value=e,o}(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}}(ti(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":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=Jr(this.node(),n).tween,o=0,a=i.length;oHr&&n.name===e)return new oi([[t]],Ji,e,+r);return null},to=function(t){return function(){return t}},eo=function(t,e,n){this.target=t,this.type=e,this.selection=n};function no(){Wt.stopImmediatePropagation()}var ro=function(){Wt.preventDefault(),Wt.stopImmediatePropagation()},io={name:"drag"},oo={name:"space"},ao={name:"handle"},so={name:"center"},uo={name:"x",handles:["e","w"].map(go),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},co={name:"y",handles:["n","s"].map(go),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},lo={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(go),input:function(t){return t},output:function(t){return t}},fo={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"},ho={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},po={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},mo={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},yo={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function go(t){return{type:t}}function vo(){return!Wt.button}function bo(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function wo(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function xo(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function _o(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function So(){return Ao(uo)}function No(){return Ao(co)}var ko=function(){return Ao(lo)};function Ao(t){var e,n=bo,r=vo,i=ht(a,"start","brush","end"),o=6;function a(e){var n=e.property("__brush",f).selectAll(".overlay").data([go("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",fo.overlay).merge(n).each(function(){var t=wo(this).extent;ee(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([go("selection")]).enter().append("rect").attr("class","selection").attr("cursor",fo.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 fo[t.type]}),e.each(s).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",l)}function s(){var t=ee(this),e=wo(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]-o/2:e[0][0]-o/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-o/2:e[0][1]-o/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+o:o}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+o:o})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(t,e){return t.__brush.emitter||new c(t,e)}function c(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function l(){if(Wt.touches){if(Wt.changedTouches.length0&&(n=i-d),_<0?f=h-p:_>0&&(o=a-p),w=oo,I.attr("cursor",fo.selection),R());break;default:return}ro()},!0).on("keyup.brush",function(){switch(Wt.keyCode){case 16:L&&(y=g=L=!1,R());break;case 18:w===so&&(x<0?c=l:x>0&&(n=i),_<0?f=h:_>0&&(o=a),w=ao,R());break;case 32:w===oo&&(Wt.altKey?(x&&(c=l-d*x,n=i+d*x),_&&(f=h-p*_,o=a+p*_),w=so):(x<0?c=l:x>0&&(n=i),_<0?f=h:_>0&&(o=a),w=ao),I.attr("cursor",fo[b]),R());break;default:return}ro()},!0).on("mousemove.brush",D,!0).on("mouseup.brush",z,!0);pe(Wt.view)}no(),Zr(v),s.call(v),j.start()}function D(){var t=ue(v);!L||y||g||(Math.abs(t[0]-P[0])>Math.abs(t[1]-P[1])?g=!0:y=!0),P=t,m=!0,ro(),R()}function R(){var t;switch(d=P[0]-T[0],p=P[1]-T[1],w){case oo:case io:x&&(d=Math.max(A-n,Math.min(E-c,d)),i=n+d,l=c+d),_&&(p=Math.max(O-o,Math.min(C-f,p)),a=o+p,h=f+p);break;case ao:x<0?(d=Math.max(A-n,Math.min(E-n,d)),i=n+d,l=c):x>0&&(d=Math.max(A-c,Math.min(E-c,d)),i=n,l=c+d),_<0?(p=Math.max(O-o,Math.min(C-o,p)),a=o+p,h=f):_>0&&(p=Math.max(O-f,Math.min(C-f,p)),a=o,h=f+p);break;case so:x&&(i=Math.max(A,Math.min(E,n-d*x)),l=Math.max(A,Math.min(E,c+d*x))),_&&(a=Math.max(O,Math.min(C,o-p*_)),h=Math.max(O,Math.min(C,f+p*_)))}l1e-6)if(Math.abs(l*s-u*c)>1e-6&&i){var h=n-o,d=r-a,p=s*s+u*u,m=h*h+d*d,y=Math.sqrt(p),g=Math.sqrt(f),v=i*Math.tan((Fo-Math.acos((p+f-m)/(2*y*g)))/2),b=v/g,w=v/y;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*c)+","+(e+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*d)+","+(this._x1=t+w*s)+","+(this._y1=e+w*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+a,c=e+s,l=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%Do+Do),f>Ro?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=Fo)+","+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 Uo=Bo;function qo(t){return t.source}function Ho(t){return t.target}function Wo(t){return t.radius}function Vo(t){return t.startAngle}function Go(t){return t.endAngle}var $o=function(){var t=qo,e=Ho,n=Wo,r=Vo,i=Go,o=null;function a(){var a,s=Mo.call(arguments),u=t.apply(this,s),c=e.apply(this,s),l=+n.apply(this,(s[0]=u,s)),f=r.apply(this,s)-Lo,h=i.apply(this,s)-Lo,d=l*Oo(f),p=l*Eo(f),m=+n.apply(this,(s[0]=c,s)),y=r.apply(this,s)-Lo,g=i.apply(this,s)-Lo;if(o||(o=a=Uo()),o.moveTo(d,p),o.arc(0,0,l,f,h),f===y&&h===g||(o.quadraticCurveTo(0,0,m*Oo(y),m*Eo(y)),o.arc(0,0,m,y,g)),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:Io(+t),a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:Io(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:Io(+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};function Yo(){}function Qo(t,e){var n=new Yo;if(t instanceof Yo)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var u,c,l,f=-1,h=n.length,d=r[i++],p=Ko(),m=a();++fr.length)return n;var a,s=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!=s?a.sort(function(t,e){return s(t.key,e.key)}):a}(o(t,0,ta,ea),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 Jo(){return{}}function Zo(t,e,n){t[e]=n}function ta(){return Ko()}function ea(t,e,n){t.set(e,n)}function na(){}var ra=Ko.prototype;function ia(t,e){var n=new na;if(t instanceof na)t.each(function(t){n.add(t)});else if(t){var r=-1,i=t.length;if(null==e)for(;++rr!==d>r&&n<(h-c)*(r-l)/(d-l)+c&&(i=-i)}return i}function ma(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 ya=function(){},ga=[[],[[[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]]],[]],va=function(){var t=1,e=1,n=C,r=s;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(la);else{var r=y(t),i=r[0],a=r[1];e=E(i,a,e),e=_(Math.floor(i/e)*e,Math.floor(a/e)*e,e)}return e.map(function(e){return o(t,e)})}function o(n,i){var o=[],s=[];return function(n,r,i){var o,s,u,c,l,f,h=new Array,d=new Array;o=s=-1,c=n[0]>=r,ga[c<<1].forEach(p);for(;++o=r,ga[u|c<<1].forEach(p);ga[c<<0].forEach(p);for(;++s=r,l=n[s*t]>=r,ga[c<<1|l<<2].forEach(p);++o=r,f=l,l=n[s*t+o+1]>=r,ga[u|c<<1|l<<2|f<<3].forEach(p);ga[c|l<<3].forEach(p)}o=-1,l=n[s*t]>=r,ga[l<<2].forEach(p);for(;++o=r,ga[l<<2|f<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+o,t[0][1]+s],u=[t[1][0]+o,t[1][1]+s],c=a(r),l=a(u);(e=d[c])?(n=h[l])?(delete d[e.end],delete h[n.start],e===n?(e.ring.push(u),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(u),d[e.end=l]=e):(e=h[l])?(n=d[c])?(delete h[e.start],delete d[n.end],e===n?(e.ring.push(u),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=c]=e):h[c]=d[l]={start:c,end:l,ring:[r,u]}}ga[l<<3].forEach(p)}(n,i,function(t){r(t,n,i),fa(t)>0?o.push([t]):s.push(t)}),s.forEach(function(t){for(var e,n=0,r=o.length;n0&&a0&&s0)||!(o>0))throw new Error("invalid size");return t=r,e=o,i},i.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?ha(ca.call(t)):ha(t),i):n},i.smooth=function(t){return arguments.length?(r=t?s:ya,i):r===s},i};function ba(t,e,n){for(var r=t.width,i=t.height,o=1+(n<<1),a=0;a=n&&(s>=o&&(u-=t.data[s-o+a*r]),e.data[s-n+a*r]=u/Math.min(s+1,r-1+o-s,o))}function wa(t,e,n){for(var r=t.width,i=t.height,o=1+(n<<1),a=0;a=n&&(s>=o&&(u-=t.data[a+(s-o)*r]),e.data[a+(s-n)*r]=u/Math.min(s+1,i-1+o-s,o))}function xa(t){return t[0]}function _a(t){return t[1]}function Sa(){return 1}var Na=function(){var t=xa,e=_a,n=Sa,r=960,i=500,o=20,a=2,s=3*o,u=r+2*s>>a,c=i+2*s>>a,l=ha(20);function f(r){var i=new Float32Array(u*c),f=new Float32Array(u*c);r.forEach(function(r,o,l){var f=+t(r,o,l)+s>>a,h=+e(r,o,l)+s>>a,d=+n(r,o,l);f>=0&&f=0&&h>a),wa({width:u,height:c,data:f},{width:u,height:c,data:i},o>>a),ba({width:u,height:c,data:i},{width:u,height:c,data:f},o>>a),wa({width:u,height:c,data:f},{width:u,height:c,data:i},o>>a),ba({width:u,height:c,data:i},{width:u,height:c,data:f},o>>a),wa({width:u,height:c,data:f},{width:u,height:c,data:i},o>>a);var d=l(i);if(!Array.isArray(d)){var p=M(i);d=E(0,p,d),(d=_(0,Math.floor(p/d)*d,d)).shift()}return va().thresholds(d).size([u,c])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*a),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(m)}function m(t){t[0]=t[0]*Math.pow(2,a)-s,t[1]=t[1]*Math.pow(2,a)-s}function y(){return u=r+2*(s=3*o)>>a,c=i+2*s>>a,f}return f.x=function(e){return arguments.length?(t="function"===typeof e?e:ha(+e),f):t},f.y=function(t){return arguments.length?(e="function"===typeof t?t:ha(+t),f):e},f.weight=function(t){return arguments.length?(n="function"===typeof t?t:ha(+t),f):n},f.size=function(t){if(!arguments.length)return[r,i];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e>=0)&&!(e>=0))throw new Error("invalid size");return r=e,i=n,y()},f.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),y()},f.thresholds=function(t){return arguments.length?(l="function"===typeof t?t:Array.isArray(t)?ha(ca.call(t)):ha(t),f):l},f.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*t*t+1)-1)/2),y()},f},ka={},Aa={},Oa=34,Ea=10,Ca=13;function La(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}function Ta(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 Pa(t,e){var n=t+"",r=n.length;return r9999?"+"+Pa(e,6):Pa(e,4))+"-"+Pa(t.getUTCMonth()+1,2)+"-"+Pa(t.getUTCDate(),2)+(o?"T"+Pa(n,2)+":"+Pa(r,2)+":"+Pa(i,2)+"."+Pa(o,3)+"Z":i?"T"+Pa(n,2)+":"+Pa(r,2)+":"+Pa(i,2)+"Z":r||n?"T"+Pa(n,2)+":"+Pa(r,2)+"Z":"")}var Ma=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,s=0,u=o<=0,c=!1;function l(){if(u)return Aa;if(c)return c=!1,ka;var e,r,i=a;if(t.charCodeAt(i)===Oa){for(;a++=o?u=!0:(r=t.charCodeAt(a++))===Ea?c=!0:r===Ca&&(c=!0,t.charCodeAt(a)===Ea&&++a),t.slice(i+1,e-1).replace(/""/g,'"')}for(;a=(o=(m+g)/2))?m=o:g=o,(l=n>=(a=(y+v)/2))?y=a:v=a,i=d,!(d=d[f=l<<1|c]))return i[f]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)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),(c=e>=(o=(m+g)/2))?m=o:g=o,(l=n>=(a=(y+v)/2))?y=a:v=a}while((f=l<<1|c)===(h=(u>=a)<<1|s>=o));return i[h]=d,i[f]=p,t}var ms=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function ys(t){return t[0]}function gs(t){return t[1]}function vs(t,e,n){var r=new bs(null==e?ys:e,null==n?gs:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function bs(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 ws(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var xs=vs.prototype=bs.prototype;function _s(t){return t.x+t.vx}function Ss(t){return t.y+t.vy}xs.copy=function(){var t,e,n=new bs(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=ws(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]=ws(e));return n},xs.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return ps(this.cover(e,n),e,n,t)},xs.addAll=function(t){var e,n,r,i,o=t.length,a=new Array(o),s=new Array(o),u=1/0,c=1/0,l=-1/0,f=-1/0;for(n=0;nl&&(l=r),if&&(f=i));if(u>l||c>f)return this;for(this.cover(u,c).cover(l,f),n=0;nt||t>=i||r>e||e>=o;)switch(s=(eh||(o=u.y0)>d||(a=u.x1)=g)<<1|t>=y)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var v=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),w=v*v+b*b;if(w=(s=(p+y)/2))?p=s:y=s,(l=a>=(u=(m+g)/2))?m=u:g=u,e=d,!(d=d[f=l<<1|c]))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)},xs.removeAll=function(t){for(var e=0,n=t.length;eu+d||ic+d||os.index){var p=u-a.x-a.vx,m=c-a.y-a.vy,y=p*p+m*m;yt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}},js=function(){var t,e,n,r,i=hs(-30),o=1,a=1/0,s=.81;function u(r){var i,o=t.length,a=vs(t,Es,Cs).visitAfter(l);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===l&&(d+=(l=ds())*l),0===f&&(d+=(f=ds())*f),d1?r[0]+r.slice(2):r,+t.slice(n+1)]},Rs=function(t){return(t=Ds(Math.abs(t)))?t[1]:NaN},zs=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bs(t){return new Us(t)}function Us(t){if(!(e=zs.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}Bs.prototype=Us.prototype,Us.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var qs,Hs,Ws,Vs,Gs=function(t){t:for(var e,n=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t},$s=function(t,e){var n=Ds(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")},Ys={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},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 $s(100*t,e)},r:$s,s:function(t,e){var n=Ds(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(qs=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ds(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Qs=function(t){return t},Ks=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"],Xs=function(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}):Qs,i=t.currency,o=t.decimal,a=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):Qs,s=t.percent||"%";function u(t){var e=(t=Bs(t)).fill,n=t.align,u=t.sign,c=t.symbol,l=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.trim,m=t.type;"n"===m?(h=!0,m="g"):Ys[m]||(null==d&&(d=12),p=!0,m="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var y="$"===c?i[0]:"#"===c&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",g="$"===c?i[1]:/[%p]/.test(m)?s:"",v=Ys[m],b=/[defgprs%]/.test(m);function w(t){var i,s,c,w=y,x=g;if("c"===m)x=v(t)+x,t="";else{var _=(t=+t)<0;if(t=v(Math.abs(t),d),p&&(t=Gs(t)),_&&0===+t&&(_=!1),w=(_?"("===u?u:"-":"-"===u||"("===u?"":u)+w,x=("s"===m?Ks[8+qs/3]:"")+x+(_&&"("===u?")":""),b)for(i=-1,s=t.length;++i(c=t.charCodeAt(i))||c>57){x=(46===c?o+t.slice(i+1):t.slice(i))+x,t=t.slice(0,i);break}}h&&!l&&(t=r(t,1/0));var S=w.length+t.length+x.length,N=S>1)+w+t+x+N.slice(S);break;default:t=N+w+t+x}return a(t)}return d=null==d?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),w.toString=function(){return t+""},w}return{format:u,formatPrefix:function(t,e){var n=u(((t=Bs(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Rs(e)/3))),i=Math.pow(10,-r),o=Ks[8+r/3];return function(t){return n(i*t)+o}}}};function Js(t){return Hs=Xs(t),Ws=Hs.format,Vs=Hs.formatPrefix,Hs}Js({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Zs=function(t){return Math.max(0,-Rs(Math.abs(t)))},tu=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Rs(e)/3)))-Rs(Math.abs(t)))},eu=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Rs(e)-Rs(t))+1},nu=function(){return new ru};function ru(){this.reset()}ru.prototype={constructor:ru,reset:function(){this.s=this.t=0},add:function(t){ou(iu,t,this.t),ou(this,iu.s,this.s),this.s?this.t+=iu.t:this.s=iu.t},valueOf:function(){return this.s}};var iu=new ru;function ou(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var au=1e-6,su=Math.PI,uu=su/2,cu=su/4,lu=2*su,fu=180/su,hu=su/180,du=Math.abs,pu=Math.atan,mu=Math.atan2,yu=Math.cos,gu=Math.ceil,vu=Math.exp,bu=(Math.floor,Math.log),wu=Math.pow,xu=Math.sin,_u=Math.sign||function(t){return t>0?1:t<0?-1:0},Su=Math.sqrt,Nu=Math.tan;function ku(t){return t>1?0:t<-1?su:Math.acos(t)}function Au(t){return t>1?uu:t<-1?-uu:Math.asin(t)}function Ou(t){return(t=xu(t/2))*t}function Eu(){}function Cu(t,e){t&&Tu.hasOwnProperty(t.type)&&Tu[t.type](t,e)}var Lu={Feature:function(t,e){Cu(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,o=yu(e=(e*=hu)/2+cu),a=xu(e),s=Ru*a,u=Du*o+s*yu(i),c=s*r*xu(i);Bu.add(mu(c,u)),Fu=t,Du=o,Ru=a}var $u=function(t){return Uu.reset(),zu(t,qu),2*Uu};function Yu(t){return[mu(t[1],t[0]),Au(t[2])]}function Qu(t){var e=t[0],n=t[1],r=yu(n);return[r*yu(e),r*xu(e),xu(n)]}function Ku(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Xu(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 Ju(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Zu(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function tc(t){var e=Su(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ec,nc,rc,ic,oc,ac,sc,uc,cc,lc,fc=nu(),hc={point:dc,lineStart:mc,lineEnd:yc,polygonStart:function(){hc.point=gc,hc.lineStart=vc,hc.lineEnd=bc,fc.reset(),qu.polygonStart()},polygonEnd:function(){qu.polygonEnd(),hc.point=dc,hc.lineStart=mc,hc.lineEnd=yc,Bu<0?(ec=-(rc=180),nc=-(ic=90)):fc>au?ic=90:fc<-au&&(nc=-90),lc[0]=ec,lc[1]=rc}};function dc(t,e){cc.push(lc=[ec=t,rc=t]),eic&&(ic=e)}function pc(t,e){var n=Qu([t*hu,e*hu]);if(uc){var r=Xu(uc,n),i=Xu([r[1],-r[0],0],r);tc(i),i=Yu(i);var o,a=t-oc,s=a>0?1:-1,u=i[0]*fu*s,c=du(a)>180;c^(s*ocic&&(ic=o):c^(s*oc<(u=(u+360)%360-180)&&uic&&(ic=e)),c?twc(ec,rc)&&(rc=t):wc(t,rc)>wc(ec,rc)&&(ec=t):rc>=ec?(trc&&(rc=t)):t>oc?wc(ec,t)>wc(ec,rc)&&(rc=t):wc(t,rc)>wc(ec,rc)&&(ec=t)}else cc.push(lc=[ec=t,rc=t]);eic&&(ic=e),uc=n,oc=t}function mc(){hc.point=pc}function yc(){lc[0]=ec,lc[1]=rc,hc.point=dc,uc=null}function gc(t,e){if(uc){var n=t-oc;fc.add(du(n)>180?n+(n>0?360:-360):n)}else ac=t,sc=e;qu.point(t,e),pc(t,e)}function vc(){qu.lineStart()}function bc(){gc(ac,sc),qu.lineEnd(),du(fc)>au&&(ec=-(rc=180)),lc[0]=ec,lc[1]=rc,uc=null}function wc(t,e){return(e-=t)<0?e+360:e}function xc(t,e){return t[0]-e[0]}function _c(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:ewc(r[0],r[1])&&(r[1]=i[1]),wc(i[0],r[1])>wc(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],(s=wc(r[1],i[0]))>a&&(a=s,ec=i[0],rc=r[1])}return cc=lc=null,ec===1/0||nc===1/0?[[NaN,NaN],[NaN,NaN]]:[[ec,nc],[rc,ic]]},Bc={sphere:Eu,point:Uc,lineStart:Hc,lineEnd:Gc,polygonStart:function(){Bc.lineStart=$c,Bc.lineEnd=Yc},polygonEnd:function(){Bc.lineStart=Hc,Bc.lineEnd=Gc}};function Uc(t,e){t*=hu;var n=yu(e*=hu);qc(n*yu(t),n*xu(t),xu(e))}function qc(t,e,n){kc+=(t-kc)/++Sc,Ac+=(e-Ac)/Sc,Oc+=(n-Oc)/Sc}function Hc(){Bc.point=Wc}function Wc(t,e){t*=hu;var n=yu(e*=hu);Fc=n*yu(t),Dc=n*xu(t),Rc=xu(e),Bc.point=Vc,qc(Fc,Dc,Rc)}function Vc(t,e){t*=hu;var n=yu(e*=hu),r=n*yu(t),i=n*xu(t),o=xu(e),a=mu(Su((a=Dc*o-Rc*i)*a+(a=Rc*r-Fc*o)*a+(a=Fc*i-Dc*r)*a),Fc*r+Dc*i+Rc*o);Nc+=a,Ec+=a*(Fc+(Fc=r)),Cc+=a*(Dc+(Dc=i)),Lc+=a*(Rc+(Rc=o)),qc(Fc,Dc,Rc)}function Gc(){Bc.point=Uc}function $c(){Bc.point=Qc}function Yc(){Kc(Mc,Ic),Bc.point=Uc}function Qc(t,e){Mc=t,Ic=e,t*=hu,e*=hu,Bc.point=Kc;var n=yu(e);Fc=n*yu(t),Dc=n*xu(t),Rc=xu(e),qc(Fc,Dc,Rc)}function Kc(t,e){t*=hu;var n=yu(e*=hu),r=n*yu(t),i=n*xu(t),o=xu(e),a=Dc*o-Rc*i,s=Rc*r-Fc*o,u=Fc*i-Dc*r,c=Su(a*a+s*s+u*u),l=Au(c),f=c&&-l/c;Tc+=f*a,Pc+=f*s,jc+=f*u,Nc+=l,Ec+=l*(Fc+(Fc=r)),Cc+=l*(Dc+(Dc=i)),Lc+=l*(Rc+(Rc=o)),qc(Fc,Dc,Rc)}var Xc=function(t){Sc=Nc=kc=Ac=Oc=Ec=Cc=Lc=Tc=Pc=jc=0,zu(t,Bc);var e=Tc,n=Pc,r=jc,i=e*e+n*n+r*r;return i<1e-12&&(e=Ec,n=Cc,r=Lc,Ncsu?t+Math.round(-t/lu)*lu:t,e]}function el(t,e,n){return(t%=lu)?e||n?Zc(rl(t),il(e,n)):rl(t):e||n?il(e,n):tl}function nl(t){return function(e,n){return[(e+=t)>su?e-lu:e<-su?e+lu:e,n]}}function rl(t){var e=nl(t);return e.invert=nl(-t),e}function il(t,e){var n=yu(t),r=xu(t),i=yu(e),o=xu(e);function a(t,e){var a=yu(e),s=yu(t)*a,u=xu(t)*a,c=xu(e),l=c*n+s*r;return[mu(u*i-l*o,s*n-c*r),Au(l*i+u*o)]}return a.invert=function(t,e){var a=yu(e),s=yu(t)*a,u=xu(t)*a,c=xu(e),l=c*i-u*o;return[mu(u*i+c*o,s*n+l*r),Au(l*n-s*r)]},a}tl.invert=tl;var ol=function(t){function e(e){return(e=t(e[0]*hu,e[1]*hu))[0]*=fu,e[1]*=fu,e}return t=el(t[0]*hu,t[1]*hu,t.length>2?t[2]*hu:0),e.invert=function(e){return(e=t.invert(e[0]*hu,e[1]*hu))[0]*=fu,e[1]*=fu,e},e};function al(t,e,n,r,i,o){if(n){var a=yu(e),s=xu(e),u=r*n;null==i?(i=e+r*lu,o=e-u/2):(i=sl(a,i),o=sl(a,o),(r>0?io)&&(i+=r*lu));for(var c,l=i;r>0?l>o:l1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},ll=function(t,e){return du(t[0]-e[0])=0;--o)i.point((l=c[o])[0],l[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function dl(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,k=N*S,A=k>su,O=m*x;if(pl.add(mu(O*N*xu(k),y*_+O*yu(k))),a+=A?S+N*lu:S,A^d>=n^b>=n){var E=Xu(Qu(h),Qu(v));tc(E);var C=Xu(o,E);tc(C);var L=(A^S>=0?-1:1)*Au(C[2]);(r>L||r===L&&(E[0]||E[1]))&&(s+=A^S>=0?1:-1)}}return(a<-au||a0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&u&&h.push(h.pop().concat(h.shift())),a.push(h.filter(gl))}return h}};function gl(t){return t.length>1}function vl(t,e){return((t=t.x)[0]<0?t[1]-uu-au:uu-t[1])-((e=e.x)[0]<0?e[1]-uu-au:uu-e[1])}var bl=yl(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 s=o>0?su:-su,u=du(o-n);du(u-su)0?uu:-uu),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(o,r),e=0):i!==s&&u>=su&&(du(n-i)au?pu((xu(e)*(o=yu(r))*xu(n)-xu(r)*(i=yu(e))*xu(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=o,r=a),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*uu,r.point(-su,i),r.point(0,i),r.point(su,i),r.point(su,0),r.point(su,-i),r.point(0,-i),r.point(-su,-i),r.point(-su,0),r.point(-su,i);else if(du(t[0]-e[0])>au){var o=t[0]0,i=du(e)>au;function o(t,n){return yu(t)*yu(n)>e}function a(t,n,r){var i=[1,0,0],o=Xu(Qu(t),Qu(n)),a=Ku(o,o),s=o[0],u=a-s*s;if(!u)return!r&&t;var c=e*a/u,l=-e*s/u,f=Xu(i,o),h=Zu(i,c);Ju(h,Zu(o,l));var d=f,p=Ku(h,d),m=Ku(d,d),y=p*p-m*(Ku(h,h)-1);if(!(y<0)){var g=Su(y),v=Zu(d,(-p-g)/m);if(Ju(v,h),v=Yu(v),!r)return v;var b,w=t[0],x=n[0],_=t[1],S=n[1];x0^v[1]<(du(v[0]-w)su^(w<=v[0]&&v[0]<=x)){var A=Zu(d,(-p+g)/m);return Ju(A,h),[v,Yu(A)]}}}function s(e,n){var i=r?t:su-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return yl(o,function(t){var e,n,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(f,h){var d,p=[f,h],m=o(f,h),y=r?m?0:s(f,h):m?s(f+(f<0?su:-su),h):0;if(!e&&(c=u=m)&&t.lineStart(),m!==u&&(!(d=a(e,p))||ll(e,d)||ll(p,d))&&(p[0]+=au,p[1]+=au,m=o(p[0],p[1])),m!==u)l=0,m?(t.lineStart(),d=a(p,e),t.point(d[0],d[1])):(d=a(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(i&&e&&r^m){var g;y&n||!(g=a(p,e,!0))||(l=0,r?(t.lineStart(),t.point(g[0][0],g[0][1]),t.point(g[1][0],g[1][1]),t.lineEnd()):(t.point(g[1][0],g[1][1]),t.lineEnd(),t.lineStart(),t.point(g[0][0],g[0][1])))}!m||e&&ll(e,p)||t.point(p[0],p[1]),e=p,u=m,n=y},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return l|(c&&u)<<1}}},function(e,r,i,o){al(o,t,n,i,e,r)},r?[0,-t]:[-su,t-su])},xl=function(t,e,n,r,i,o){var a,s=t[0],u=t[1],c=0,l=1,f=e[0]-s,h=e[1]-u;if(a=n-s,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>l)return;a>c&&(c=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>c&&(c=a)}else if(f>0){if(a0)){if(a/=h,h<0){if(a0){if(a>l)return;a>c&&(c=a)}if(a=o-u,h||!(a<0)){if(a/=h,h<0){if(a>l)return;a>c&&(c=a)}else if(h>0){if(a0&&(t[0]=s+c*f,t[1]=u+c*h),l<1&&(e[0]=s+l*f,e[1]=u+l*h),!0}}}}},_l=1e9,Sl=-_l;function Nl(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,s,c){var l=0,f=0;if(null==i||(l=a(i,s))!==(f=a(o,s))||u(i,o)<0^s>0)do{c.point(0===l||3===l?t:n,l>1?r:e)}while((l=(l+s+4)%4)!==f);else c.point(o[0],o[1])}function a(r,i){return du(r[0]-t)0?0:3:du(r[0]-n)0?2:1:du(r[1]-e)0?1:0:i>0?3:2}function s(t,e){return u(t.x,e.x)}function u(t,e){var n=a(t,1),r=a(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(a){var u,c,l,f,h,d,p,m,y,g,v,b=a,w=cl(),x={point:_,lineStart:function(){x.point=S,c&&c.push(l=[]);g=!0,y=!1,p=m=NaN},lineEnd:function(){u&&(S(f,h),d&&y&&w.rejoin(),u.push(w.result()));x.point=_,y&&b.lineEnd()},polygonStart:function(){b=w,u=[],c=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=c.length;nr&&(h-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--e;return e}(),n=v&&e,i=(u=D(u)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&hl(u,s,e,o,a),a.polygonEnd());b=a,u=c=l=null}};function _(t,e){i(t,e)&&b.point(t,e)}function S(o,a){var s=i(o,a);if(c&&l.push([o,a]),g)f=o,h=a,d=s,g=!1,s&&(b.lineStart(),b.point(o,a));else if(s&&y)b.point(o,a);else{var u=[p=Math.max(Sl,Math.min(_l,p)),m=Math.max(Sl,Math.min(_l,m))],w=[o=Math.max(Sl,Math.min(_l,o)),a=Math.max(Sl,Math.min(_l,a))];xl(u,w,t,e,n,r)?(y||(b.lineStart(),b.point(u[0],u[1])),b.point(w[0],w[1]),s||b.lineEnd(),v=!1):s&&(b.lineStart(),b.point(o,a),v=!1)}p=o,m=a,y=s}return x}}var kl,Al,Ol,El=function(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=Nl(r,i,o,a)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[r,i],[o,a]]}}},Cl=nu(),Ll={sphere:Eu,point:Eu,lineStart:function(){Ll.point=Pl,Ll.lineEnd=Tl},lineEnd:Eu,polygonStart:Eu,polygonEnd:Eu};function Tl(){Ll.point=Ll.lineEnd=Eu}function Pl(t,e){kl=t*=hu,Al=xu(e*=hu),Ol=yu(e),Ll.point=jl}function jl(t,e){t*=hu;var n=xu(e*=hu),r=yu(e),i=du(t-kl),o=yu(i),a=r*xu(i),s=Ol*n-Al*r*o,u=Al*n+Ol*r*o;Cl.add(mu(Su(a*a+s*s),u)),kl=t,Al=n,Ol=r}var Ml=function(t){return Cl.reset(),zu(t,Ll),+Cl},Il=[null,null],Fl={type:"LineString",coordinates:Il},Dl=function(t,e){return Il[0]=t,Il[1]=e,Ml(Fl)},Rl={Feature:function(t,e){return Bl(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rau}).map(u)).concat(_(gu(o/d)*d,i,d).filter(function(t){return du(t%m)>au}).map(c))}return g.lines=function(){return v().map(function(t){return{type:"LineString",coordinates:t}})},g.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(f(a).slice(1),l(n).reverse().slice(1),f(s).reverse().slice(1))]}},g.extent=function(t){return arguments.length?g.extentMajor(t).extentMinor(t):g.extentMinor()},g.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),s>a&&(t=s,s=a,a=t),g.precision(y)):[[r,s],[n,a]]},g.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),o>i&&(n=o,o=i,i=n),g.precision(y)):[[e,o],[t,i]]},g.step=function(t){return arguments.length?g.stepMajor(t).stepMinor(t):g.stepMinor()},g.stepMajor=function(t){return arguments.length?(p=+t[0],m=+t[1],g):[p,m]},g.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],g):[h,d]},g.precision=function(h){return arguments.length?(y=+h,u=$l(o,i,90),c=Yl(e,t,y),l=$l(s,a,90),f=Yl(r,n,y),g):y},g.extentMajor([[-180,-90+au],[180,90-au]]).extentMinor([[-180,-80-au],[180,80+au]])}function Kl(){return Ql()()}var Xl,Jl,Zl,tf,ef=function(t,e){var n=t[0]*hu,r=t[1]*hu,i=e[0]*hu,o=e[1]*hu,a=yu(r),s=xu(r),u=yu(o),c=xu(o),l=a*yu(n),f=a*xu(n),h=u*yu(i),d=u*xu(i),p=2*Au(Su(Ou(o-r)+a*u*Ou(i-n))),m=xu(p),y=p?function(t){var e=xu(t*=p)/m,n=xu(p-t)/m,r=n*l+e*h,i=n*f+e*d,o=n*s+e*c;return[mu(i,r)*fu,mu(o,Su(r*r+i*i))*fu]}:function(){return[n*fu,r*fu]};return y.distance=p,y},nf=function(t){return t},rf=nu(),of=nu(),af={point:Eu,lineStart:Eu,lineEnd:Eu,polygonStart:function(){af.lineStart=sf,af.lineEnd=lf},polygonEnd:function(){af.lineStart=af.lineEnd=af.point=Eu,rf.add(du(of)),of.reset()},result:function(){var t=rf/2;return rf.reset(),t}};function sf(){af.point=uf}function uf(t,e){af.point=cf,Xl=Zl=t,Jl=tf=e}function cf(t,e){of.add(tf*t-Zl*e),Zl=t,tf=e}function lf(){cf(Xl,Jl)}var ff=af,hf=1/0,df=hf,pf=-hf,mf=pf;var yf,gf,vf,bf,wf={point:function(t,e){tpf&&(pf=t);emf&&(mf=e)},lineStart:Eu,lineEnd:Eu,polygonStart:Eu,polygonEnd:Eu,result:function(){var t=[[hf,df],[pf,mf]];return pf=mf=-(df=hf=1/0),t}},xf=0,_f=0,Sf=0,Nf=0,kf=0,Af=0,Of=0,Ef=0,Cf=0,Lf={point:Tf,lineStart:Pf,lineEnd:If,polygonStart:function(){Lf.lineStart=Ff,Lf.lineEnd=Df},polygonEnd:function(){Lf.point=Tf,Lf.lineStart=Pf,Lf.lineEnd=If},result:function(){var t=Cf?[Of/Cf,Ef/Cf]:Af?[Nf/Af,kf/Af]:Sf?[xf/Sf,_f/Sf]:[NaN,NaN];return xf=_f=Sf=Nf=kf=Af=Of=Ef=Cf=0,t}};function Tf(t,e){xf+=t,_f+=e,++Sf}function Pf(){Lf.point=jf}function jf(t,e){Lf.point=Mf,Tf(vf=t,bf=e)}function Mf(t,e){var n=t-vf,r=e-bf,i=Su(n*n+r*r);Nf+=i*(vf+t)/2,kf+=i*(bf+e)/2,Af+=i,Tf(vf=t,bf=e)}function If(){Lf.point=Tf}function Ff(){Lf.point=Rf}function Df(){zf(yf,gf)}function Rf(t,e){Lf.point=zf,Tf(yf=vf=t,gf=bf=e)}function zf(t,e){var n=t-vf,r=e-bf,i=Su(n*n+r*r);Nf+=i*(vf+t)/2,kf+=i*(bf+e)/2,Af+=i,Of+=(i=bf*t-vf*e)*(vf+t),Ef+=i*(bf+e),Cf+=3*i,Tf(vf=t,bf=e)}var Bf=Lf;function Uf(t){this._context=t}Uf.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,lu)}},result:Eu};var qf,Hf,Wf,Vf,Gf,$f=nu(),Yf={point:Eu,lineStart:function(){Yf.point=Qf},lineEnd:function(){qf&&Kf(Hf,Wf),Yf.point=Eu},polygonStart:function(){qf=!0},polygonEnd:function(){qf=null},result:function(){var t=+$f;return $f.reset(),t}};function Qf(t,e){Yf.point=Kf,Hf=Vf=t,Wf=Gf=e}function Kf(t,e){Vf-=t,Gf-=e,$f.add(Su(Vf*Vf+Gf*Gf)),Vf=t,Gf=e}var Xf=Yf;function Jf(){this._string=[]}function Zf(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Jf.prototype={_radius:4.5,_circle:Zf(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=Zf(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 th=function(t,e){var n,r,i=4.5;function o(t){return t&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),zu(t,n(r))),r.result()}return o.area=function(t){return zu(t,n(ff)),ff.result()},o.measure=function(t){return zu(t,n(Xf)),Xf.result()},o.bounds=function(t){return zu(t,n(wf)),wf.result()},o.centroid=function(t){return zu(t,n(Bf)),Bf.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,nf):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new Jf):new Uf(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)},eh=function(t){return{stream:nh(t)}};function nh(t){return function(e){var n=new rh;for(var r in t)n[r]=t[r];return n.stream=e,n}}function rh(){}function ih(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),zu(n,t.stream(wf)),e(wf.result()),null!=r&&t.clipExtent(r),t}function oh(t,e,n){return ih(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,s=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])},n)}function ah(t,e,n){return oh(t,[[0,0],e],n)}function sh(t,e,n){return ih(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 uh(t,e,n){return ih(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)}rh.prototype={constructor:rh,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 ch=16,lh=yu(30*hu),fh=function(t,e){return+e?function(t,e){function n(r,i,o,a,s,u,c,l,f,h,d,p,m,y){var g=c-r,v=l-i,b=g*g+v*v;if(b>4*e&&m--){var w=a+h,x=s+d,_=u+p,S=Su(w*w+x*x+_*_),N=Au(_/=S),k=du(du(_)-1)e||du((g*C+v*L)/b-.5)>.3||a*h+s*d+u*p2?t[2]%360*hu:0,O()):[y*fu,g*fu,v*fu]},k.angle=function(t){return arguments.length?(b=t%360*hu,O()):b*fu},k.precision=function(t){return arguments.length?(a=fh(s,N=t*t),E()):Su(N)},k.fitExtent=function(t,e){return oh(k,t,e)},k.fitSize=function(t,e){return ah(k,t,e)},k.fitWidth=function(t,e){return sh(k,t,e)},k.fitHeight=function(t,e){return uh(k,t,e)},function(){return e=t.apply(this,arguments),k.invert=e.invert&&A,O()}}function yh(t){var e=0,n=su/3,r=mh(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*hu,n=t[1]*hu):[e*fu,n*fu]},i}function gh(t,e){var n=xu(t),r=(n+xu(e))/2;if(du(r)=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:a).invert(t)},l.stream=function(n){return t&&e===n?t:t=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i0?e<-uu+au&&(e=-uu+au):e>uu-au&&(e=uu-au);var n=i/wu(Lh(e),r);return[n*xu(r*t),i-n*yu(r*t)]}return o.invert=function(t,e){var n=i-e,o=_u(r)*Su(t*t+n*n);return[mu(t,du(n))/r*_u(n),2*pu(wu(i/o,1/r))-uu]},o}var Ph=function(){return yh(Th).scale(109.5).parallels([30,30])};function jh(t,e){return[t,e]}jh.invert=jh;var Mh=function(){return ph(jh).scale(152.63)};function Ih(t,e){var n=yu(t),r=t===e?xu(t):(n-yu(e))/(e-t),i=n/r+t;if(du(r)au&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var Qh=function(){return ph(Yh).scale(175.295)};function Kh(t,e){return[yu(e)*xu(t),xu(e)]}Kh.invert=_h(Au);var Xh=function(){return ph(Kh).scale(249.5).clipAngle(90+au)};function Jh(t,e){var n=yu(e),r=1+yu(t)*n;return[n*xu(t)/r,xu(e)/r]}Jh.invert=_h(function(t){return 2*pu(t)});var Zh=function(){return ph(Jh).scale(250).clipAngle(142)};function td(t,e){return[bu(Nu((uu+e)/2)),-t]}td.invert=function(t,e){return[-e,2*pu(vu(t))-uu]};var ed=function(){var t=Ch(td),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)},nd=n(120),rd=function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n1&&od(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}var ud=function(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)c.push(t[r[o[e]][2]]);for(e=+s;es!==c>s&&a<(u-n)*(s-r)/(c-r)+n&&(l=!l),u=n,c=r;return l},ld=function(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],s=o[1],u=0;++r1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(fd),pd=function t(e){function n(){var t=dd.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(fd),md=function t(e){function n(t){return function(){for(var n=0,r=0;rr&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function jd(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i2?Md:jd,i=o=null,f}function f(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return f.invert=function(n){return c(e((o||(o=r(s,a.map(t),zn)))(n)))},f.domain=function(t){return arguments.length?(a=xd.call(t,Ed),c===Ld||(c=Pd(a)),l()):a.slice()},f.range=function(t){return arguments.length?(s=_d.call(t),l()):s.slice()},f.rangeRound=function(t){return s=_d.call(t),u=Xn,l()},f.clamp=function(t){return arguments.length?(c=t?Pd(a):Ld,f):c!==Ld},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function Dd(t,e){return Fd()(t,e)}var Rd=function(t,e,n,r){var i,o=E(t,e,n);switch((r=Bs(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=tu(o,a))||(r.precision=i),Vs(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=eu(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Zs(o))||(r.precision=i-2*("%"===r.type))}return Ws(r)};function zd(t){var e=t.domain;return t.ticks=function(t){var n=e();return A(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Rd(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],u=i[a];return u0?r=O(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=O(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,e(i)),t},t}function Bd(){var t=Dd(Ld,Ld);return t.copy=function(){return Id(t,Bd())},vd.apply(t,arguments),zd(t)}function Ud(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=xd.call(e,Ed),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Ud(t).unknown(e)},t=arguments.length?xd.call(t,Ed):[0,1],zd(n)}var qd=function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;hu)break;m.push(f)}}else for(;h=1;--l)if(!((f=c*l)u)break;m.push(f)}}else m=A(h,d,Math.min(d-h,p)).map(n);return r?m.reverse():m},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=Ws(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o0?i[r-1]:e[0],r=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return up().domain([e,n]).range(o).unknown(t)},vd.apply(zd(a),arguments)}function cp(){var t,e=[.5],n=[0,1],r=1;function i(i){return i<=i?n[u(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=_d.call(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=_d.call(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return cp().domain(e).range(n).unknown(t)},vd.apply(i,arguments)}var lp=new Date,fp=new Date;function hp(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=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&&(i.count=function(e,r){return lp.setTime(+e),fp.setTime(+r),t(lp),t(fp),Math.floor(n(lp,fp))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var dp=hp(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});dp.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?hp(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):dp:null};var pp=dp,mp=dp.range,yp=6e4,gp=6048e5,vp=hp(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),bp=vp,wp=vp.range,xp=hp(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+e*yp)},function(t,e){return(e-t)/yp},function(t){return t.getMinutes()}),_p=xp,Sp=xp.range,Np=hp(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*yp)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),kp=Np,Ap=Np.range,Op=hp(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())*yp)/864e5},function(t){return t.getDate()-1}),Ep=Op,Cp=Op.range;function Lp(t){return hp(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())*yp)/gp})}var Tp=Lp(0),Pp=Lp(1),jp=Lp(2),Mp=Lp(3),Ip=Lp(4),Fp=Lp(5),Dp=Lp(6),Rp=Tp.range,zp=Pp.range,Bp=jp.range,Up=Mp.range,qp=Ip.range,Hp=Fp.range,Wp=Dp.range,Vp=hp(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()}),Gp=Vp,$p=Vp.range,Yp=hp(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()});Yp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hp(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var Qp=Yp,Kp=Yp.range,Xp=hp(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*yp)},function(t,e){return(e-t)/yp},function(t){return t.getUTCMinutes()}),Jp=Xp,Zp=Xp.range,tm=hp(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),em=tm,nm=tm.range,rm=hp(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}),im=rm,om=rm.range;function am(t){return hp(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)/gp})}var sm=am(0),um=am(1),cm=am(2),lm=am(3),fm=am(4),hm=am(5),dm=am(6),pm=sm.range,mm=um.range,ym=cm.range,gm=lm.range,vm=fm.range,bm=hm.range,wm=dm.range,xm=hp(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()}),_m=xm,Sm=xm.range,Nm=hp(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()});Nm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hp(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var km=Nm,Am=Nm.range;function Om(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 Em(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 Cm(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Lm(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=qm(i),l=Hm(i),f=qm(o),h=Hm(o),d=qm(a),p=Hm(a),m=qm(s),y=Hm(s),g=qm(u),v=Hm(u),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:cy,e:cy,f:py,H:ly,I:fy,j:hy,L:dy,m:my,M:yy,p:function(t){return i[+(t.getHours()>=12)]},Q:Wy,s:Vy,S:gy,u:vy,U:by,V:wy,w:xy,W:_y,x:null,X:null,y:Sy,Y:Ny,Z:ky,"%":Hy},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Ay,e:Ay,f:Ty,H:Oy,I:Ey,j:Cy,L:Ly,m:Py,M:jy,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Wy,s:Vy,S:My,u:Iy,U:Fy,V:Dy,w:Ry,W:zy,x:null,X:null,y:By,Y:Uy,Z:qy,"%":Hy},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return N(t,e,n,r)},d:Zm,e:Zm,f:oy,H:ey,I:ey,j:ty,L:iy,m:Jm,M:ny,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:sy,s:uy,S:ry,u:Vm,U:Gm,V:$m,w:Wm,W:Ym,x:function(t,e,r){return N(t,n,e,r)},X:function(t,e,n){return N(t,r,e,n)},y:Km,Y:Qm,Z:Xm,"%":ay};function _(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Em(Cm(o.y))).getUTCDay(),r=i>4||0===i?um.ceil(r):um(r),r=im.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=e(Cm(o.y))).getDay(),r=i>4||0===i?Pp.ceil(r):Pp(r),r=Ep.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Em(Cm(o.y)).getUTCDay():e(Cm(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Em(o)):e(o)}}function N(t,e,n,r){for(var i,o,a=0,s=e.length,u=n.length;a=u)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in Fm?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(e,b),w.x=_(n,w),w.X=_(r,w),w.c=_(e,w),{format:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",Om);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t,Em);return e.toString=function(){return t},e}}}var Tm,Pm,jm,Mm,Im,Fm={"-":"",_:" ",0:"0"},Dm=/^\s*\d+/,Rm=/^%/,zm=/[\\^$*+?|[\]().{}]/g;function Bm(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function Xm(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 Jm(t,e,n){var r=Dm.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Zm(t,e,n){var r=Dm.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ty(t,e,n){var r=Dm.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ey(t,e,n){var r=Dm.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ny(t,e,n){var r=Dm.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ry(t,e,n){var r=Dm.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function iy(t,e,n){var r=Dm.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function oy(t,e,n){var r=Dm.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ay(t,e,n){var r=Rm.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function sy(t,e,n){var r=Dm.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function uy(t,e,n){var r=Dm.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function cy(t,e){return Bm(t.getDate(),e,2)}function ly(t,e){return Bm(t.getHours(),e,2)}function fy(t,e){return Bm(t.getHours()%12||12,e,2)}function hy(t,e){return Bm(1+Ep.count(Qp(t),t),e,3)}function dy(t,e){return Bm(t.getMilliseconds(),e,3)}function py(t,e){return dy(t,e)+"000"}function my(t,e){return Bm(t.getMonth()+1,e,2)}function yy(t,e){return Bm(t.getMinutes(),e,2)}function gy(t,e){return Bm(t.getSeconds(),e,2)}function vy(t){var e=t.getDay();return 0===e?7:e}function by(t,e){return Bm(Tp.count(Qp(t),t),e,2)}function wy(t,e){var n=t.getDay();return t=n>=4||0===n?Ip(t):Ip.ceil(t),Bm(Ip.count(Qp(t),t)+(4===Qp(t).getDay()),e,2)}function xy(t){return t.getDay()}function _y(t,e){return Bm(Pp.count(Qp(t),t),e,2)}function Sy(t,e){return Bm(t.getFullYear()%100,e,2)}function Ny(t,e){return Bm(t.getFullYear()%1e4,e,4)}function ky(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Bm(e/60|0,"0",2)+Bm(e%60,"0",2)}function Ay(t,e){return Bm(t.getUTCDate(),e,2)}function Oy(t,e){return Bm(t.getUTCHours(),e,2)}function Ey(t,e){return Bm(t.getUTCHours()%12||12,e,2)}function Cy(t,e){return Bm(1+im.count(km(t),t),e,3)}function Ly(t,e){return Bm(t.getUTCMilliseconds(),e,3)}function Ty(t,e){return Ly(t,e)+"000"}function Py(t,e){return Bm(t.getUTCMonth()+1,e,2)}function jy(t,e){return Bm(t.getUTCMinutes(),e,2)}function My(t,e){return Bm(t.getUTCSeconds(),e,2)}function Iy(t){var e=t.getUTCDay();return 0===e?7:e}function Fy(t,e){return Bm(sm.count(km(t),t),e,2)}function Dy(t,e){var n=t.getUTCDay();return t=n>=4||0===n?fm(t):fm.ceil(t),Bm(fm.count(km(t),t)+(4===km(t).getUTCDay()),e,2)}function Ry(t){return t.getUTCDay()}function zy(t,e){return Bm(um.count(km(t),t),e,2)}function By(t,e){return Bm(t.getUTCFullYear()%100,e,2)}function Uy(t,e){return Bm(t.getUTCFullYear()%1e4,e,4)}function qy(){return"+0000"}function Hy(){return"%"}function Wy(t){return+t}function Vy(t){return Math.floor(+t/1e3)}function Gy(t){return Tm=Lm(t),Pm=Tm.format,jm=Tm.parse,Mm=Tm.utcFormat,Im=Tm.utcParse,Tm}Gy({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var $y=Date.prototype.toISOString?function(t){return t.toISOString()}:Mm("%Y-%m-%dT%H:%M:%S.%LZ");var Yy=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:Im("%Y-%m-%dT%H:%M:%S.%LZ"),Qy=1e3,Ky=60*Qy,Xy=60*Ky,Jy=24*Xy,Zy=7*Jy,tg=30*Jy,eg=365*Jy;function ng(t){return new Date(t)}function rg(t){return t instanceof Date?+t:+new Date(+t)}function ig(t,e,n,r,o,a,s,u,c){var l=Dd(Ld,Ld),f=l.invert,h=l.domain,d=c(".%L"),p=c(":%S"),m=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),v=c("%b %d"),b=c("%B"),w=c("%Y"),x=[[s,1,Qy],[s,5,5*Qy],[s,15,15*Qy],[s,30,30*Qy],[a,1,Ky],[a,5,5*Ky],[a,15,15*Ky],[a,30,30*Ky],[o,1,Xy],[o,3,3*Xy],[o,6,6*Xy],[o,12,12*Xy],[r,1,Jy],[r,2,2*Jy],[n,1,Zy],[e,1,tg],[e,3,3*tg],[t,1,eg]];function _(i){return(s(i)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return Iv.h=360*t-100,Iv.s=1.5-1.5*e,Iv.l=.8-.9*e,Iv+""},Dv=qe(),Rv=Math.PI/3,zv=2*Math.PI/3,Bv=function(t){var e;return t=(.5-t)*Math.PI,Dv.r=255*(e=Math.sin(t))*e,Dv.g=255*(e=Math.sin(t+Rv))*e,Dv.b=255*(e=Math.sin(t+zv))*e,Dv+""};function Uv(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var qv=Uv(xg("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Hv=Uv(xg("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Wv=Uv(xg("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Vv=Uv(xg("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Gv=function(t){return function(){return t}},$v=Math.abs,Yv=Math.atan2,Qv=Math.cos,Kv=Math.max,Xv=Math.min,Jv=Math.sin,Zv=Math.sqrt,tb=1e-12,eb=Math.PI,nb=eb/2,rb=2*eb;function ib(t){return t>=1?nb:t<=-1?-nb:Math.asin(t)}function ob(t){return t.innerRadius}function ab(t){return t.outerRadius}function sb(t){return t.startAngle}function ub(t){return t.endAngle}function cb(t){return t&&t.padAngle}function lb(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/Zv(s*s+u*u),l=c*u,f=-c*s,h=t+l,d=e+f,p=n+l,m=r+f,y=(h+p)/2,g=(d+m)/2,v=p-h,b=m-d,w=v*v+b*b,x=i-o,_=h*m-p*d,S=(b<0?-1:1)*Zv(Kv(0,x*x*w-_*_)),N=(_*b-v*S)/w,k=(-_*v-b*S)/w,A=(_*b+v*S)/w,O=(-_*v+b*S)/w,E=N-y,C=k-g,L=A-y,T=O-g;return E*E+C*C>L*L+T*T&&(N=A,k=O),{cx:N,cy:k,x01:-l,y01:-f,x11:N*(i/x-1),y11:k*(i/x-1)}}var fb=function(){var t=ob,e=ab,n=Gv(0),r=null,i=sb,o=ub,a=cb,s=null;function u(){var u,c,l,f=+t.apply(this,arguments),h=+e.apply(this,arguments),d=i.apply(this,arguments)-nb,p=o.apply(this,arguments)-nb,m=$v(p-d),y=p>d;if(s||(s=u=Uo()),htb)if(m>rb-tb)s.moveTo(h*Qv(d),h*Jv(d)),s.arc(0,0,h,d,p,!y),f>tb&&(s.moveTo(f*Qv(p),f*Jv(p)),s.arc(0,0,f,p,d,y));else{var g,v,b=d,w=p,x=d,_=p,S=m,N=m,k=a.apply(this,arguments)/2,A=k>tb&&(r?+r.apply(this,arguments):Zv(f*f+h*h)),O=Xv($v(h-f)/2,+n.apply(this,arguments)),E=O,C=O;if(A>tb){var L=ib(A/f*Jv(k)),T=ib(A/h*Jv(k));(S-=2*L)>tb?(x+=L*=y?1:-1,_-=L):(S=0,x=_=(d+p)/2),(N-=2*T)>tb?(b+=T*=y?1:-1,w-=T):(N=0,b=w=(d+p)/2)}var P=h*Qv(b),j=h*Jv(b),M=f*Qv(_),I=f*Jv(_);if(O>tb){var F,D=h*Qv(w),R=h*Jv(w),z=f*Qv(x),B=f*Jv(x);if(m1?0:l<-1?eb:Math.acos(l))/2),G=Zv(F[0]*F[0]+F[1]*F[1]);E=Xv(O,(f-G)/(V-1)),C=Xv(O,(h-G)/(V+1))}}N>tb?C>tb?(g=lb(z,B,P,j,h,C,y),v=lb(D,R,M,I,h,C,y),s.moveTo(g.cx+g.x01,g.cy+g.y01),Ctb&&S>tb?E>tb?(g=lb(M,I,D,R,f,-E,y),v=lb(P,j,z,B,f,-E,y),s.lineTo(g.cx+g.x01,g.cy+g.y01),E=l;--f)s.point(y[f],g[f]);s.lineEnd(),s.areaEnd()}m&&(y[c]=+t(h,c,u),g[c]=+n(h,c,u),s.point(e?+e(h,c,u):y[c],r?+r(h,c,u):g[c]))}if(d)return s=null,d+""||null}function c(){return yb().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"===typeof n?n:Gv(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:Gv(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:Gv(+t),u):e},u.y=function(t){return arguments.length?(n="function"===typeof t?t:Gv(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"===typeof t?t:Gv(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:Gv(+t),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(n)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(e).y(n)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:Gv(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u},vb=function(t,e){return et?1:e>=t?0:NaN},bb=function(t){return t},wb=function(){var t=bb,e=vb,n=null,r=Gv(0),i=Gv(rb),o=Gv(0);function a(a){var s,u,c,l,f,h=a.length,d=0,p=new Array(h),m=new Array(h),y=+r.apply(this,arguments),g=Math.min(rb,Math.max(-rb,i.apply(this,arguments)-y)),v=Math.min(Math.abs(g)/h,o.apply(this,arguments)),b=v*(g<0?-1:1);for(s=0;s0&&(d+=f);for(null!=e?p.sort(function(t,n){return e(m[t],m[n])}):null!=n&&p.sort(function(t,e){return n(a[t],a[e])}),s=0,c=d?(g-h*b)/d:0;s0?f*c:0)+b,m[u]={data:a[u],index:s,value:f,startAngle:y,endAngle:l,padAngle:v};return m}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:Gv(+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:Gv(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:Gv(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:Gv(+t),a):o},a},xb=Sb(db);function _b(t){this._curve=t}function Sb(t){function e(e){return new _b(t(e))}return e._curve=t,e}function Nb(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(Sb(t)):e()._curve},t}_b.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 kb=function(){return Nb(yb().curve(xb))},Ab=function(){var t=gb().curve(xb),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 Nb(n())},delete t.lineX0,t.lineEndAngle=function(){return Nb(r())},delete t.lineX1,t.lineInnerRadius=function(){return Nb(i())},delete t.lineY0,t.lineOuterRadius=function(){return Nb(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Sb(t)):e()._curve},t},Ob=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},Eb=Array.prototype.slice;function Cb(t){return t.source}function Lb(t){return t.target}function Tb(t){var e=Cb,n=Lb,r=pb,i=mb,o=null;function a(){var a,s=Eb.call(arguments),u=e.apply(this,s),c=n.apply(this,s);if(o||(o=a=Uo()),t(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),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:Gv(+t),a):r},a.y=function(t){return arguments.length?(i="function"===typeof t?t:Gv(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function Pb(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function jb(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Mb(t,e,n,r,i){var o=Ob(e,n),a=Ob(e,n=(n+i)/2),s=Ob(r,n),u=Ob(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function Ib(){return Tb(Pb)}function Fb(){return Tb(jb)}function Db(){var t=Tb(Mb);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var Rb={draw:function(t,e){var n=Math.sqrt(e/eb);t.moveTo(n,0),t.arc(0,0,n,0,rb)}},zb={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()}},Bb=Math.sqrt(1/3),Ub=2*Bb,qb={draw:function(t,e){var n=Math.sqrt(e/Ub),r=n*Bb;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},Hb=Math.sin(eb/10)/Math.sin(7*eb/10),Wb=Math.sin(rb/10)*Hb,Vb=-Math.cos(rb/10)*Hb,Gb={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Wb*n,i=Vb*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=rb*o/5,s=Math.cos(a),u=Math.sin(a);t.lineTo(u*n,-s*n),t.lineTo(s*r-u*i,u*r+s*i)}t.closePath()}},$b={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},Yb=Math.sqrt(3),Qb={draw:function(t,e){var n=-Math.sqrt(e/(3*Yb));t.moveTo(0,2*n),t.lineTo(-Yb*n,-n),t.lineTo(Yb*n,-n),t.closePath()}},Kb=Math.sqrt(3)/2,Xb=1/Math.sqrt(12),Jb=3*(Xb/2+1),Zb={draw:function(t,e){var n=Math.sqrt(e/Jb),r=n/2,i=n*Xb,o=r,a=n*Xb+n,s=-o,u=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,u),t.lineTo(-.5*r-Kb*i,Kb*r+-.5*i),t.lineTo(-.5*o-Kb*a,Kb*o+-.5*a),t.lineTo(-.5*s-Kb*u,Kb*s+-.5*u),t.lineTo(-.5*r+Kb*i,-.5*i-Kb*r),t.lineTo(-.5*o+Kb*a,-.5*a-Kb*o),t.lineTo(-.5*s+Kb*u,-.5*u-Kb*s),t.closePath()}},tw=[Rb,zb,qb,$b,Gb,Qb,Zb],ew=function(){var t=Gv(Rb),e=Gv(64),n=null;function r(){var r;if(n||(n=r=Uo()),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:Gv(e),r):t},r.size=function(t){return arguments.length?(e="function"===typeof t?t:Gv(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r},nw=function(){};function rw(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 iw(t){this._context=t}iw.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:rw(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:rw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var ow=function(t){return new iw(t)};function aw(t){this._context=t}aw.prototype={areaStart:nw,areaEnd:nw,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:rw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var sw=function(t){return new aw(t)};function uw(t){this._context=t}uw.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:rw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var cw=function(t){return new uw(t)};function lw(t,e){this._basis=new iw(t),this._beta=e}lw.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,s=e[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var fw=function t(e){function n(t){return 1===e?new iw(t):new lw(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function hw(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 dw(t,e){this._context=t,this._k=(1-e)/6}dw.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:hw(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:hw(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 pw=function t(e){function n(t){return new dw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function mw(t,e){this._context=t,this._k=(1-e)/6}mw.prototype={areaStart:nw,areaEnd:nw,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:hw(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 yw=function t(e){function n(t){return new mw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function gw(t,e){this._context=t,this._k=(1-e)/6}gw.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:hw(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 vw=function t(e){function n(t){return new gw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function bw(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>tb){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>tb){var c=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*c+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function ww(t,e){this._context=t,this._alpha=e}ww.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:bw(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 xw=function t(e){function n(t){return e?new ww(t,e):new dw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function _w(t,e){this._context=t,this._alpha=e}_w.prototype={areaStart:nw,areaEnd:nw,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:bw(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 Sw=function t(e){function n(t){return e?new _w(t,e):new mw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Nw(t,e){this._context=t,this._alpha=e}Nw.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:bw(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 kw=function t(e){function n(t){return e?new Nw(t,e):new gw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Aw(t){this._context=t}Aw.prototype={areaStart:nw,areaEnd:nw,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 Ow=function(t){return new Aw(t)};function Ew(t){return t<0?-1:1}function Cw(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),s=(o*i+a*r)/(r+i);return(Ew(o)+Ew(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Lw(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Tw(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function Pw(t){this._context=t}function jw(t){this._context=new Mw(t)}function Mw(t){this._context=t}function Iw(t){return new Pw(t)}function Fw(t){return new jw(t)}function Dw(t){this._context=t}function Rw(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=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e=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 Uw=function(t){return new Bw(t,.5)};function qw(t){return new Bw(t,0)}function Hw(t){return new Bw(t,1)}var Ww=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o=0;)n[e]=e;return n};function Gw(t,e){return t[e]}var $w=function(){var t=Gv([]),e=Vw,n=Ww,r=Gw;function i(i){var o,a,s=t.apply(this,arguments),u=i.length,c=s.length,l=new Array(c);for(o=0;o0){for(var n,r,i,o=0,a=t[0].length;o1)for(var n,r,i,o,a,s,u=0,c=t[e[0]].length;u=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o},Kw=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;ao&&(o=e,r=n);return r}var tx=function(t){var e=t.map(ex);return Vw(t).sort(function(t,n){return e[t]-e[n]})};function ex(t){for(var e,n=0,r=-1,i=t.length;++r0)){if(o/=h,h<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=r-u,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>l&&(l=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=i-c,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>l&&(l=o)}else if(d>0){if(o0||f<1)||(l>0&&(t[0]=[u+l*h,c+l*d]),f<1&&(t[1]=[u+f*h,c+f*d]),!0)}}}}}function vx(t,e,n,r,i){var o=t[1];if(o)return!0;var a,s,u=t[0],c=t.left,l=t.right,f=c[0],h=c[1],d=l[0],p=l[1],m=(f+d)/2,y=(h+p)/2;if(p===h){if(m=r)return;if(f>d){if(u){if(u[1]>=i)return}else u=[m,n];o=[m,i]}else{if(u){if(u[1]1)if(f>d){if(u){if(u[1]>=i)return}else u=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(u){if(u[1]=r)return}else u=[e,a*e+s];o=[r,a*r+s]}else{if(u){if(u[0]=-Bx)){var d=u*u+c*c,p=l*l+f*f,m=(f*d-c*p)/h,y=(u*p-l*d)/h,g=Sx.pop()||new Nx;g.arc=t,g.site=i,g.x=m+a,g.y=(g.cy=y+s)+Math.sqrt(m*m+y*y),t.circle=g;for(var v=null,b=Dx._;b;)if(g.yzx)s=s.L;else{if(!((i=o-Mx(s,a))>zx)){r>-zx?(e=s.P,n=s):i>-zx?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){Fx[t.index]={site:t,halfedges:[]}}(t);var u=Cx(t);if(Ix.insert(e,u),e||n){if(e===n)return Ax(e),n=Cx(e.site),Ix.insert(u,n),u.edge=n.edge=px(e.site,u.site),kx(e),void kx(n);if(n){Ax(e),Ax(n);var c=e.site,l=c[0],f=c[1],h=t[0]-l,d=t[1]-f,p=n.site,m=p[0]-l,y=p[1]-f,g=2*(h*y-d*m),v=h*h+d*d,b=m*m+y*y,w=[(y*v-d*b)/g+l,(h*b-m*v)/g+f];yx(n.edge,c,p,w),u.edge=px(c,t,null,w),n.edge=px(t,p,null,w),kx(e),kx(n)}else u.edge=px(e.site,u.site)}}function jx(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 s=(n=a.site)[0],u=n[1],c=u-e;if(!c)return s;var l=s-r,f=1/o-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-u+c/2+i-o/2)))/f+r:(r+s)/2}function Mx(t,e){var n=t.N;if(n)return jx(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var Ix,Fx,Dx,Rx,zx=1e-6,Bx=1e-12;function Ux(t,e){return e[1]-t[1]||e[0]-t[0]}function qx(t,e){var n,r,i,o=t.sort(Ux).pop();for(Rx=[],Fx=new Array(t.length),Ix=new dx,Dx=new dx;;)if(i=_x,o&&(!i||o[1]zx||Math.abs(i[0][1]-i[1][1])>zx)||delete Rx[o]}(a,s,u,c),function(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p,m,y=Fx.length,g=!0;for(i=0;izx||Math.abs(m-h)>zx)&&(u.splice(s,0,Rx.push(mx(a,d,Math.abs(p-t)zx?[t,Math.abs(f-t)zx?[Math.abs(h-r)zx?[n,Math.abs(f-n)zx?[Math.abs(h-e)=s)return null;var u=t-i.site[0],c=e-i.site[1],l=u*u+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach(function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var u=t-s[0],c=e-s[1],f=u*u+c*c;fr?(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 r_=function(){var t,e,n=Xx,r=Jx,i=n_,o=t_,a=e_,s=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],c=250,l=ar,f=[],h=ht("start","zoom","end"),d=500,p=150,m=0;function y(t){t.property("__zoom",Zx).on("wheel.zoom",S).on("mousedown.zoom",N).on("dblclick.zoom",k).filter(a).on("touchstart.zoom",A).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new Gx(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 Gx(t.k,r,i)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function w(t,e,n){t.on("start.zoom",function(){x(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).end()}).tween("zoom",function(){var t=arguments,i=x(this,t),o=r.apply(this,t),a=n||b(o),s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=this.__zoom,c="function"===typeof e?e.apply(this,t):e,f=l(u.invert(a).concat(s/u.k),c.invert(a).concat(s/c.k));return function(t){if(1===t)t=c;else{var e=f(t),n=s/e[2];t=new Gx(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}})}function x(t,e){for(var n,r=0,i=f.length;rm}t.zoom("mouse",i(v(t.that.__zoom,t.mouse[0]=ue(t.that),t.mouse[1]),t.extent,u))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),me(Wt.view,t.moved),Kx(),t.end()},!0),o=ue(this),a=Wt.clientX,s=Wt.clientY;pe(Wt.view),Qx(),t.mouse=[o,this.__zoom.invert(o)],Zr(this),t.start()}}function k(){if(n.apply(this,arguments)){var t=this.__zoom,e=ue(this),o=t.invert(e),a=t.k*(Wt.shiftKey?.5:2),s=i(v(g(t,a),e,o),r.apply(this,arguments),u);Kx(),c>0?ee(this).transition().duration(c).call(w,s,e):ee(this).call(y.transform,s)}}function A(){if(n.apply(this,arguments)){var e,r,i,o,a=x(this,arguments),s=Wt.changedTouches,u=s.length;for(Qx(),r=0;r1&&void 0!==arguments[1]?arguments[1]:"";if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&"equal"===t)return"equal width";var n=i()(t);return"string"!==n&&"number"!==n||!e?Object(o.a)(t):"".concat(Object(o.a)(t)," ").concat(e)}},function(t,e,n){"use strict";for(var r=function(t){return null!==t&&!Array.isArray(t)&&"object"===typeof t},i={3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"},o=0;o<24;o+=1)i[112+o]="F"+(o+1);for(var a=0;a<26;a+=1){var s=a+65;i[s]=[String.fromCharCode(s+32),String.fromCharCode(s)]}var u={codes:i,getCode:function(t){return r(t)?t.keyCode||t.which||this[t.key]:this[t]},getKey:function(t){var e=r(t);if(e&&t.key)return t.key;var n=i[e?t.keyCode||t.which:t];return Array.isArray(n)&&(n=e?n[t.shiftKey?1:0]:n[0]),n},Cancel:3,Help:6,Backspace:8,Tab:9,Clear:12,Enter:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Accept:30,ModeChange:31," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,0:48,")":48,1:49,"!":49,2:50,"@":50,3:51,"#":51,4:52,$:52,5:53,"%":53,6:54,"^":54,7:55,"&":55,8:56,"*":56,9:57,"(":57,a:65,A:65,b:66,B:66,c:67,C:67,d:68,D:68,e:69,E:69,f:70,F:70,g:71,G:71,h:72,H:72,i:73,I:73,j:74,J:74,k:75,K:75,l:76,L:76,m:77,M:77,n:78,N:78,o:79,O:79,p:80,P:80,q:81,Q:81,r:82,R:82,s:83,S:83,t:84,T:84,u:85,U:85,v:86,V:86,w:87,W:87,x:88,X:88,y:89,Y:89,z:90,Z:90,OS:91,ContextMenu:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,VolumeMute:181,VolumeDown:182,VolumeUp:183,";":186,":":186,"=":187,"+":187,",":188,"<":188,"-":189,_:189,".":190,">":190,"/":191,"?":191,"`":192,"~":192,"[":219,"{":219,"\\":220,"|":220,"]":221,"}":221,"'":222,'"':222,Meta:224,AltGraph:225,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251};u.Spacebar=u[" "],u.Digit0=u[0],u.Digit1=u[1],u.Digit2=u[2],u.Digit3=u[3],u.Digit4=u[4],u.Digit5=u[5],u.Digit6=u[6],u.Digit7=u[7],u.Digit8=u[8],u.Digit9=u[9],u.Tilde=u["~"],u.GraveAccent=u["`"],u.ExclamationPoint=u["!"],u.AtSign=u["@"],u.PoundSign=u["#"],u.PercentSign=u["%"],u.Caret=u["^"],u.Ampersand=u["&"],u.PlusSign=u["+"],u.MinusSign=u["-"],u.EqualsSign=u["="],u.DivisionSign=u["/"],u.MultiplicationSign=u["*"],u.Comma=u[","],u.Decimal=u["."],u.Colon=u[":"],u.Semicolon=u[";"],u.Pipe=u["|"],u.BackSlash=u["\\"],u.QuestionMark=u["?"],u.SingleQuote=u["'"],u.DoubleQuote=u['"'],u.LeftCurlyBrace=u["{"],u.RightCurlyBrace=u["}"],u.LeftParenthesis=u["("],u.RightParenthesis=u[")"],u.LeftAngleBracket=u["<"],u.RightAngleBracket=u[">"],u.LeftSquareBracket=u["["],u.RightSquareBracket=u["]"],t.exports=u},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(60),i=n(47),o=n(444),a=n(21);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i,o,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],l=0;(u=new Error(e.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(t,e,n){var r=n(98);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){"use strict";t.exports=function(){}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n-1:!!l&&r(t,e,n)>-1}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(107),i=n(49),o=n(104),a=n(21),s=n(35),u=n(105),c=n(108),l=n(149),f="[object Map]",h="[object Set]",d=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||o(t)))return!t.length;var e=i(t);if(e==f||e==h)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&s(t),o=e&&s(e),a=i||o;if(t&&s(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var l=r[r.length-1];c="."===l||".."===l||""===l}else c=!1;for(var f=0,h=r.length;h>=0;h--){var d=r[h];"."===d?u(r,h):".."===d?(u(r,h),f++):f&&(u(r,h),f--)}if(!a)for(;f--;f)r.unshift("..");!a||""===r[0]||r[0]&&s(r[0])||r.unshift("");var p=r.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p},l="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};var f=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every(function(e,r){return t(e,n[r])});var r="undefined"===typeof e?"undefined":l(e);if(r!==("undefined"===typeof n?"undefined":l(n)))return!1;if("object"===r){var i=e.valueOf(),o=n.valueOf();if(i!==e||o!==n)return t(i,o);var a=Object.keys(e),s=Object.keys(n);return a.length===s.length&&a.every(function(r){return t(e[r],n[r])})}return!1},h=function(t){return"/"===t.charAt(0)?t:"/"+t},d=function(t){return"/"===t.charAt(0)?t.substr(1):t},p=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},m=function(t,e){return p(t,e)?t.substr(e.length):t},y=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},g=function(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},v=Object.assign||function(t){for(var e=1;e=0?e:0)+"#"+t)},L=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(_,"Hash history needs a DOM");var e=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=t.getUserConfirmation,o=void 0===r?k:r,s=t.hashType,u=void 0===s?"slash":s,c=t.basename?y(h(t.basename)):"",l=O[u],f=l.encodePath,d=l.decodePath,v=function(){var t=d(E());return i()(!c||p(t,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+c+'".'),c&&(t=m(t,c)),b(t)},L=x(),T=function(t){A(V,t),V.length=e.length,L.notifyListeners(V.location,V.action)},P=!1,j=null,M=function(){var t=E(),e=f(t);if(t!==e)C(e);else{var n=v(),r=V.location;if(!P&&w(r,n))return;if(j===g(n))return;j=null,I(n)}},I=function(t){P?(P=!1,T()):L.confirmTransitionTo(t,"POP",o,function(e){e?T({action:"POP",location:t}):F(t)})},F=function(t){var e=V.location,n=B.lastIndexOf(g(e));-1===n&&(n=0);var r=B.lastIndexOf(g(t));-1===r&&(r=0);var i=n-r;i&&(P=!0,U(i))},D=E(),R=f(D);D!==R&&C(R);var z=v(),B=[g(z)],U=function(t){i()(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},q=0,H=function(t){1===(q+=t)?S(window,"hashchange",M):0===q&&N(window,"hashchange",M)},W=!1,V={length:e.length,action:"POP",location:z,createHref:function(t){return"#"+f(c+g(t))},push:function(t,e){i()(void 0===e,"Hash history cannot push state; it is ignored");var n=b(t,void 0,void 0,V.location);L.confirmTransitionTo(n,"PUSH",o,function(t){if(t){var e=g(n),r=f(c+e);if(E()!==r){j=e,function(t){window.location.hash=t}(r);var o=B.lastIndexOf(g(V.location)),a=B.slice(0,-1===o?0:o+1);a.push(e),B=a,T({action:"PUSH",location:n})}else i()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),T()}})},replace:function(t,e){i()(void 0===e,"Hash history cannot replace state; it is ignored");var n=b(t,void 0,void 0,V.location);L.confirmTransitionTo(n,"REPLACE",o,function(t){if(t){var e=g(n),r=f(c+e);E()!==r&&(j=e,C(r));var i=B.indexOf(g(V.location));-1!==i&&(B[i]=e),T({action:"REPLACE",location:n})}})},go:U,goBack:function(){return U(-1)},goForward:function(){return U(1)},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=L.setPrompt(t);return W||(H(1),W=!0),function(){return W&&(W=!1,H(-1)),e()}},listen:function(t){var e=L.appendListener(t);return H(1),function(){H(-1),e()}}};return V};"function"===typeof Symbol&&Symbol.iterator,Object.assign;n.d(e,"a",function(){return L}),n.d(e,"b",function(){return b}),n.d(e,"c",function(){return w})},function(t,e,n){"use strict";var r=n(302).default;n(309),(e=t.exports=r).default=e},function(t,e){t.exports=function(t,e,n,r){var i=n?n.call(r,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!==typeof t||!t||"object"!==typeof e||!e)return!1;var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),u=0;ut.parent.data.generation?[t.data,t.parent.data]:[t.parent.data,t.data],n=e[0],r=e[1];return n.additionalMarriage?n.id+":A":r.id+":"+n.id}e.linkId=a,e.getChartInfo=function(t){var e=r.min(t,function(t){return t.x-t.data.width/2})-o,n=r.min(t,function(t){return t.y-t.data.height/2})-o;return{size:[r.max(t,function(t){return t.x+t.data.width/2})+o-e,r.max(t,function(t){return t.y+t.data.height/2})+o-n],origin:[-e,-n]}},e.getChartInfoWithoutMargin=function(t){var e=r.min(t,function(t){return t.x-t.data.width/2}),n=r.min(t,function(t){return t.y-t.data.height/2});return{size:[r.max(t,function(t){return t.x+t.data.width/2})-e,r.max(t,function(t){return t.y+t.data.height/2})-n],origin:[-e,-n]}};var s=function(){function t(t){this.options=t}return t.prototype.linkHorizontal=function(t,e){var n=this.options.renderer.getFamilyAnchor(t.data),r=t.id===e.data.spouseParentNodeId?this.options.renderer.getSpouseAnchor(e.data):this.options.renderer.getIndiAnchor(e.data),i=[t.x+n[0],t.y+n[1]],o=i[0],a=i[1],s=[e.x+r[0],e.y+r[1]],u=s[0],c=s[1],l=(t.x+t.data.width/2+e.x-e.data.width/2)/2;return"M "+o+" "+a+"\n L "+l+" "+a+",\n "+l+" "+c+",\n "+u+" "+c},t.prototype.linkVertical=function(t,n){var r=this.options.renderer.getFamilyAnchor(t.data),i=t.id===n.data.spouseParentNodeId?this.options.renderer.getSpouseAnchor(n.data):this.options.renderer.getIndiAnchor(n.data),o=[t.x+r[0],t.y+r[1]],a=o[0],s=o[1],u=[n.x+i[0],n.y+i[1]],c=u[0],l=u[1],f=t.y+t.data.height/2+e.V_SPACING/2;return"M "+a+" "+s+"\n L "+a+" "+f+",\n "+c+" "+f+",\n "+c+" "+l},t.prototype.linkAdditionalMarriage=function(t){var e=t.parent.children.findIndex(function(e){return e.data.id===t.data.id}),n=t.parent.children[e-1],r=this.options.renderer.getIndiAnchor(t.data),i=this.options.renderer.getIndiAnchor(n.data),o=[t.x+r[0],t.y+r[1]],a=o[0],s=o[1],u=[n.x+i[0],n.y+i[1]];return"M "+a+", "+s+"\n L "+u[0]+", "+u[1]},t.prototype.updateSvgDimensions=function(t){var e=r.select(this.options.svgSelector).select("g");(this.options.animate?e.transition().delay(200).duration(500):e).attr("transform","translate("+t.origin[0]+", "+t.origin[1]+")")},t.prototype.layOutChart=function(t,n){var o=this;void 0===n&&(n={});var a=r.select(this.options.svgSelector);a.select("style").empty()&&a.append("style").text(this.options.renderer.getCss()),t.each(function(t){t.data.generation=t.depth*(n.flipVertically?-1:1)+(o.options.baseGeneration||0)}),this.options.renderer.updateNodes(t.descendants());var s=new Map;t.each(function(t){var e=t.depth,n=r.max([o.options.horizontal?t.data.width:t.data.height,s.get(e)]);s.set(e,n)}),t.each(function(t){var e=s.get(t.depth);o.options.horizontal?t.data.width=e:t.data.height=e});var u=void 0!==n.vSpacing?n.vSpacing:e.V_SPACING,c=void 0!==n.hSpacing?n.hSpacing:e.H_SPACING,l=i.flextree().nodeSize(function(t){if(o.options.horizontal){var e=r.max(t.children||[],function(t){return t.data.width})||0;return[t.data.height,(e+t.data.width)/2+u]}var n=r.max(t.children||[],function(t){return t.data.height})||0;return[t.data.width,(n+t.data.height)/2+u]}).spacing(function(t,e){return c})(t).descendants();return l.forEach(function(t){var e;n.flipVertically&&(t.y=-t.y),o.options.horizontal&&(e=[t.y,t.x],t.x=e[0],t.y=e[1])}),l},t.prototype.renderChart=function(t){var e=this.getSvgForRendering(),n=this.renderNodes(t,e),r=this.renderLinks(t,e);return Promise.all([n,r])},t.prototype.renderNodes=function(t,e){var n=this;return new Promise(function(r){var i=e.select("g").selectAll("g.node").data(t,function(t){return t.id}),o=i.enter().append("g"),a=i.exit().size()+i.size()+o.size(),s=function(){0===--a&&r()};n.options.animate||r(),o.merge(i).attr("class",function(t){return"node generation"+t.data.generation}),o.attr("transform",function(t){return"translate("+(t.x-t.data.width/2)+", "+(t.y-t.data.height/2)+")"}),n.options.animate&&o.style("opacity",0).transition().delay(700).duration(200).style("opacity",1).on("end",s),(n.options.animate?i.transition().delay(200).duration(500).on("end",s):i).attr("transform",function(t){return"translate("+(t.x-t.data.width/2)+", "+(t.y-t.data.height/2)+")"}),n.options.renderer.render(o,i),n.options.animate?i.exit().transition().duration(200).style("opacity",0).remove().on("end",s):i.exit().remove()})},t.prototype.renderLinks=function(t,e){var n=this;return new Promise(function(r){var i=function(t,e){if(e.data.additionalMarriage)return n.linkAdditionalMarriage(e);var r=t.data.generation>e.data.generation;return n.options.horizontal?r?n.linkHorizontal(e,t):n.linkHorizontal(t,e):r?n.linkVertical(e,t):n.linkVertical(t,e)},o=t.filter(function(t){return!!t.parent||t.data.additionalMarriage}),s=e.select("g").selectAll("path.link").data(o,a),u=s.enter().insert("path","g").attr("class",function(t){return t.data.additionalMarriage?"link additional-marriage":"link"}).attr("d",function(t){return i(t.parent,t)}),c=s.exit().size()+s.size()+u.size(),l=function(){0===--c&&r()};n.options.animate||r(),(n.options.animate?s.transition().delay(200).duration(500).on("end",l):s).attr("d",function(t){return i(t.parent,t)}),n.options.animate&&u.style("opacity",0).transition().delay(900).duration(0).style("opacity",1).on("end",l),n.options.animate?s.exit().transition().duration(0).style("opacity",0).remove().on("end",l):s.exit().remove()})},t.prototype.getSvgForRendering=function(){var t=r.select(this.options.svgSelector);return t.select("g").empty()&&t.append("g"),t},t}();e.ChartUtil=s},function(t,e,n){var r=n(29).Symbol;t.exports=r},function(t,e,n){var r=n(347),i=n(350);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n1&&void 0!==arguments[1]?arguments[1]:{},n=e.htmlProps,r=void 0===n?u:n,o=e.includeAria,s=void 0===o||o,c={},l={};return a()(t,function(t,e){var n=s&&(/^aria-.*$/.test(e)||"role"===e);(i()(r,e)||n?c:l)[e]=t}),[c,l]}},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(e){console.error(e)}}(),t.exports=n(299)},function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";var r=n(3),i=n.n(r),o=n(9),a=n.n(o),s=n(10),u=n.n(s),c=n(11),l=n.n(c),f=n(8),h=n.n(f),d=n(12),p=n.n(d),m=n(2),y=n.n(m),g=n(13),v=n.n(g),b=(n(30),n(6)),w=n.n(b),x=(n(4),n(0)),_=n.n(x),S=n(19),N=n(122),k=n(121),A=n(125),O=n(5);function E(t){var e=t.children,n=t.className,r=t.content,o=t.size,a=w()(o,"icons",n),s=Object(N.a)(E,t),u=Object(k.a)(E,t);return _.a.createElement(u,i()({},s,{className:a}),O.a.isNil(e)?r:e)}E.handledProps=["as","children","className","content","size"],E.propTypes={},E.defaultProps={as:"i"};var C=E,L=function(t){function e(){return a()(this,e),l()(this,h()(e).apply(this,arguments))}return p()(e,t),u()(e,[{key:"getIconAriaOptions",value:function(){var t={},e=this.props,n=e["aria-label"],r=e["aria-hidden"];return v()(n)?t["aria-hidden"]="true":t["aria-label"]=n,v()(r)||(t["aria-hidden"]=r),t}},{key:"render",value:function(){var t=this.props,n=t.bordered,r=t.circular,o=t.className,a=t.color,s=t.corner,u=t.disabled,c=t.fitted,l=t.flipped,f=t.inverted,h=t.link,d=t.loading,p=t.name,m=t.rotated,y=t.size,g=w()(a,p,y,Object(S.a)(n,"bordered"),Object(S.a)(r,"circular"),Object(S.a)(u,"disabled"),Object(S.a)(c,"fitted"),Object(S.a)(f,"inverted"),Object(S.a)(h,"link"),Object(S.a)(d,"loading"),Object(S.b)(s,"corner"),Object(S.e)(l,"flipped"),Object(S.e)(m,"rotated"),"icon",o),v=Object(N.a)(e,this.props),b=Object(k.a)(e,this.props),x=this.getIconAriaOptions();return _.a.createElement(b,i()({},v,x,{className:g}))}}]),e}(x.PureComponent);y()(L,"defaultProps",{as:"i"}),y()(L,"Group",C),y()(L,"handledProps",["aria-hidden","aria-label","as","bordered","circular","className","color","corner","disabled","fitted","flipped","inverted","link","loading","name","rotated","size"]),L.propTypes={},L.create=Object(A.f)(L,function(t){return{name:t}});e.a=L},function(t,e,n){"use strict";(e=t.exports=n(318).default).default=e},function(t,e,n){var r=n(62),i=n(188),o=n(141);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(222);t.exports=function(t){var e=r(t),n=e%1;return e===e?n?e-n:e:0}},function(t,e,n){var r=n(421),i=n(424)(r);t.exports=i},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(36),i=n.n(r),o={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};function a(t){var e=i()(t);return"string"===e||"number"===e?o[t]||t:""}},function(t,e,n){var r=n(109),i=n(71),o=n(431),a=n(21);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},function(t,e,n){"use strict";var r=n(36),i=n.n(r);e.a=function(t,e){"function"!==typeof t?null!==t&&"object"===i()(t)&&(t.current=e):t(e)}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var r=n(234),i=n(71),o=n(47),a=n(454),s=n(21);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";var r=n(310).default;n(315),(e=t.exports=r).default=e},function(t,e,n){var r=n(21),i=n(136),o=n(186),a=n(46);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,n){var r=n(34),i=n(26),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&r(t)==o}},function(t,e,n){"use strict";var r=n(372);t.exports=Function.prototype.bind||r},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?n:e)&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t1){var s={id:e.DUMMY_ROOT_NODE_ID,height:1,width:1};n.push(s),i.forEach(function(t){return t.parentId=s.id})}n.push.apply(n,i);var u=[];i.forEach(function(t){t.family&&u.push(t)});for(var c=function(){var e=u.pop();l.options.data.getFam(e.family.id).getChildren().forEach(function(r){var i=t.getNodes(r);i.forEach(function(t){t.parentId=e.id,t.family&&(t.id=""+a.getId(t.family.id),u.push(t))}),n.push.apply(n,i)})},l=this;u.length;)c();return r.stratify()(n)},t.prototype.render=function(){var t=this.createHierarchy(),e=a(this.util.layOutChart(t)),n=this.util.renderChart(e),r=i.getChartInfo(e);return this.util.updateSvgDimensions(r),Object.assign(r,{animationPromise:n})},t}();e.DescendantChart=s},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(59)(Object,"create");t.exports=r},function(t,e,n){var r=n(355),i=n(356),o=n(357),a=n(358),s=n(359);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e1&&"boolean"!==typeof e)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+t;if(!(n in u))throw new SyntaxError("intrinsic "+t+" does not exist!");if("undefined"===typeof u[n]&&!e)throw new TypeError("intrinsic "+t+" exists, but is not available. Please file an issue!");return u[n]}},function(t,e,n){var r=n(137),i=n(404),o=n(405);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e-1}},function(t,e,n){var r=n(146),i=n(434);t.exports=function t(e,n,o,a,s){var u=-1,c=e.length;for(o||(o=i),s||(s=[]);++u0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(t,e,n){var r=n(35),i=n(26);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){var r=n(445),i=n(446),o=n(447);t.exports=function(t){return r(t)||i(t)||o()}},function(t,e,n){var r=n(235),i=n(459),o=n(460),a=n(237),s=n(469),u=n(158),c=n(470),l=n(243),f=n(244),h=n(70),d="Expected a function",p=1,m=2,y=8,g=16,v=32,b=64,w=Math.max;t.exports=function(t,e,n,x,_,S,N,k){var A=e&m;if(!A&&"function"!=typeof t)throw new TypeError(d);var O=x?x.length:0;if(O||(e&=~(v|b),x=_=void 0),N=void 0===N?N:w(h(N),0),k=void 0===k?k:h(k),O-=_?_.length:0,e&b){var E=x,C=_;x=_=void 0}var L=A?void 0:u(t),T=[t,e,n,x,_,E,C,S,N,k];if(L&&c(T,L),t=T[0],e=T[1],n=T[2],x=T[3],_=T[4],!(k=T[9]=void 0===T[9]?A?0:t.length:w(T[9]-O,0))&&e&(y|g)&&(e&=~(y|g)),e&&e!=p)P=e==y||e==g?o(t,e,k):e!=v&&e!=(p|v)||_.length?a.apply(void 0,T):s(t,e,n,x);else var P=i(t,e,n);return f((L?r:l)(P,T),t,e)}},function(t,e,n){var r=n(116),i=n(42);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=r(t.prototype),o=t.apply(n,e);return i(o)?o:n}}},function(t,e,n){var r=n(42),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e){var n="__lodash_placeholder__";t.exports=function(t,e){for(var r=-1,i=t.length,o=0,a=[];++r=0;)e+=n[r].value;else e=1;t.value=e}function u(t,e){var n,r,i,o,a,s=new h(t),u=+t.value&&(s.value=t.value),l=[s];for(null==e&&(e=c);n=l.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)l.push(r=n.children[o]=new h(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(f)}function c(t){return t.children}function l(t){t.data=t.data.data}function f(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function h(t){this.data=t,this.depth=this.height=0,this.parent=null}h.prototype=u.prototype={constructor:h,count:function(){return this.eachAfter(s)},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=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 u(this).eachBefore(l)}};var d=Array.prototype.slice;var p=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}(d.call(t))).length,o=[];r0&&n*n>r*r+i*i}function v(t,e){for(var n=0;n(a*=a)?(r=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function S(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 N(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 k(t){this._=t,this.next=null,this.previous=null}function A(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,s,u,c,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;_(n,e,r=t[2]),e=new k(e),n=new k(n),r=new k(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=E(e),n):t},n.parentId=function(t){return arguments.length?(e=E(t),n):e},n};function V(t,e){return t.parent===e.parent?1:2}function G(t){var e=t.children;return e?e[0]:t.t}function $(t){var e=t.children;return e?e[e.length-1]:t.t}function Y(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 Q(t,e,n){return t.a.parent===e.parent?t.a:n}function K(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}K.prototype=Object.create(h.prototype);var X=function(){var t=V,e=1,n=1,r=null;function i(i){var u=function(t){for(var e,n,r,i,o,a=new K(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new K(r[i],i)),n.parent=e;return(a.parent=new K(null,0)).children=[a],a}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(a),r)i.eachBefore(s);else{var c=i,l=i,f=i;i.eachBefore(function(t){t.xl.x&&(l=t),t.depth>f.depth&&(f=t)});var h=c===l?1:t(c,l)/2,d=h-c.x,p=e/(l.x+h+d),m=n/(f.depth||1);i.eachBefore(function(t){t.x=(t.x+d)*p,t.y=t.depth*m})}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,s=n,u=o.parent.children[0],c=o.m,l=a.m,f=s.m,h=u.m;s=$(s),o=G(o),s&&o;)u=G(u),(a=$(a)).a=e,(i=s.z+f-o.z-c+t(s._,o._))>0&&(Y(Q(s,e,r),e,i),c+=i,l+=i),f+=s.m,c+=o.m,h+=u.m,l+=a.m;s&&!$(a)&&(a.t=s,a.m+=f-l),o&&!G(u)&&(u.t=o,u.m+=c-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 s(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},J=function(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(i-n)/t.value;++sh&&(h=s),y=l*l*m,(d=Math.max(h/y,y/f))>p){l-=s;break}p=d}g.push(a={value:l,dice:u1?e:1)},n}(Z),nt=function(){var t=et,e=!1,n=1,r=1,i=[0],o=C,a=C,s=C,u=C,c=C;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(F),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=n-1){var l=s[e];return l.x0=i,l.y0=o,l.x1=a,void(l.y1=u)}var f=c[e],h=r/2+f,d=e+1,p=n-1;for(;d>>1;c[m]u-o){var v=(i*g+a*y)/r;t(e,d,y,i,o,v,u),t(d,n,g,v,o,a,u)}else{var b=(o*g+u*y)/r;t(e,d,y,i,o,a,b),t(d,n,g,i,b,a,u)}}(0,u,t.value,e,n,r,i)},it=function(t,e,n,r,i){(1&t.depth?J:D)(t,e,n,r,i)},ot=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,u,c,l,f=-1,h=a.length,d=t.value;++f1?e:1)},n}(Z);n.d(e,"a",function(){return a}),n.d(e,"b",function(){return u}),n.d(e,"c",function(){return P}),n.d(e,"e",function(){return O}),n.d(e,"d",function(){return p}),n.d(e,"f",function(){return R}),n.d(e,"g",function(){return W}),n.d(e,"h",function(){return X}),n.d(e,"i",function(){return nt}),n.d(e,"j",function(){return rt}),n.d(e,"k",function(){return D}),n.d(e,"m",function(){return J}),n.d(e,"n",function(){return it}),n.d(e,"o",function(){return et}),n.d(e,"l",function(){return ot})},function(t,e,n){"use strict";e.a=function(t,e,n){var r=t.defaultProps,i=void 0===r?{}:r;if(e.as&&e.as!==i.as)return e.as;if(n){var o=n();if(o)return o}return e.href?"a":i.as||"div"}},function(t,e,n){"use strict";e.a=function(t,e){var n=t.handledProps,r=void 0===n?[]:n;return Object.keys(e).reduce(function(t,n){return"childKey"===n?t:(-1===r.indexOf(n)&&(t[n]=e[n]),t)},{})}},function(t,e,n){var r=n(395)(n(165));t.exports=r},function(t,e,n){var r=n(228),i=n(111),o=n(68),a=n(112),s=o(function(t,e){return a(t)?r(t,i(e,1,a,!0)):[]});t.exports=s},function(t,e,n){"use strict";n.d(e,"e",function(){return k}),n.d(e,"f",function(){return A}),n.d(e,"a",function(){return O}),n.d(e,"b",function(){return E}),n.d(e,"c",function(){return C}),n.d(e,"d",function(){return L});var r=n(15),i=n.n(r),o=(n(36),n(166)),a=n.n(o),s=n(21),u=n.n(s),c=n(167),l=n.n(c),f=n(51),h=n.n(f),d=n(262),p=n.n(d),m=n(84),y=n.n(m),g=n(263),v=n.n(g),b=n(13),w=n.n(b),x=n(6),_=n.n(x),S=n(0),N=n.n(S);function k(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("function"!==typeof t&&"string"!==typeof t)throw new Error("createShorthand() Component must be a string or function.");if(w()(n)||v()(n))return null;var o=y()(n),s=p()(n),c=h()(n),f=Object(S.isValidElement)(n),d=l()(n),m=o||s||u()(n);if(!c&&!f&&!d&&!m)return null;var g=r.defaultProps,b=void 0===g?{}:g,x=f&&n.props||d&&n||m&&e(n),k=r.overrideProps,A=void 0===k?{}:k;A=h()(A)?A(i()({},b,x)):A;var O=i()({},b,x,A);if(b.className||A.className||x.className){var E=_()(b.className,A.className,x.className);O.className=a()(E.split(" ")).join(" ")}if((b.style||A.style||x.style)&&(O.style=i()({},b.style,x.style,A.style)),w()(O.key)){var C=O.childKey,L=r.autoGenerateKey,T=void 0===L||L;w()(C)?T&&(o||s)&&(O.key=n):(O.key="function"===typeof C?C(O):C,delete O.childKey)}return f?Object(S.cloneElement)(n,O):m||d?N.a.createElement(t,O):c?n(t,O,O.children):void 0}function A(t,e){if("function"!==typeof t&&"string"!==typeof t)throw new Error("createShorthandFactory() Component must be a string or function.");return function(n,r){return k(t,e,n,r)}}k.handledProps=[];A("div",function(t){return{children:t}}),A("iframe",function(t){return{src:t}});var O=A("img",function(t){return{src:t}}),E=A("input",function(t){return{type:t}}),C=A("label",function(t){return{children:t}}),L=A("p",function(t){return{children:t}})},function(t,e,n){var r=n(450),i=n(155)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},function(t,e,n){n(8);var r=n(506);function i(e,n,o){return"undefined"!==typeof Reflect&&Reflect.get?t.exports=i=Reflect.get:t.exports=i=function(t,e,n){var i=r(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}},i(e,n,o||e)}t.exports=i},function(t,e,n){var r=n(509),i=n(46),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,r).replace(a,"")}},function(t,e,n){"use strict";var r=n(130),i=n.n(r),o={},a=0;e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"===typeof e&&(e={path:e});var r=e,s=r.path,u=r.exact,c=void 0!==u&&u,l=r.strict,f=void 0!==l&&l,h=r.sensitive;if(null==s)return n;var d=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=o[n]||(o[n]={});if(r[t])return r[t];var s=[],u={re:i()(t,s,e),keys:s};return a<1e4&&(r[t]=u,a++),u}(s,{end:c,strict:f,sensitive:void 0!==h&&h}),p=d.re,m=d.keys,y=p.exec(t);if(!y)return null;var g=y[0],v=y.slice(1),b=t===g;return c&&!b?null:{path:s,url:"/"===s&&""===g?"/":g,isExact:b,params:m.reduce(function(t,e,n){return t[e.name]=v[n],t},{})}}},function(t,e,n){var r=n(523);t.exports=d,t.exports.parse=o,t.exports.compile=function(t,e){return s(o(t,e))},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var n,r=[],o=0,a=0,s="",l=e&&e.delimiter||"/";null!=(n=i.exec(t));){var f=n[0],h=n[1],d=n.index;if(s+=t.slice(a,d),a=d+f.length,h)s+=h[1];else{var p=t[a],m=n[2],y=n[3],g=n[4],v=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var x=null!=m&&null!=p&&p!==m,_="+"===b||"*"===b,S="?"===b||"*"===b,N=n[2]||l,k=g||v;r.push({name:y||o++,prefix:m||"",delimiter:N,optional:S,repeat:_,partial:x,asterisk:!!w,pattern:k?c(k):w?".*":"[^"+u(N)+"]+?"})}}return a1&&i.children&&i.children.length>1&&(i.children.pop(),i.data.spouseParentNodeId=void 0),i};var s=function(){function t(t){this.options=t,this.util=new o.ChartUtil(t)}return t.prototype.createHierarchy=function(){var t=[],e=[],n=this.options.idGenerator||new a.IdGenerator;if(this.options.startIndi){var r=(f=this.options.data.getIndi(this.options.startIndi).getFamilyAsChild())?n.getId(f):void 0;f&&e.push({id:f,parentId:this.options.startIndi,family:{id:f}}),t.push({id:this.options.startIndi,indi:{id:this.options.startIndi},indiParentNodeId:r})}else e.push({id:n.getId(this.options.startFam),family:{id:this.options.startFam}});for(;e.length;){var o=e.pop(),s=this.options.data.getFam(o.family.id);if(s){var u=o.family.id===this.options.startFam&&this.options.swapStartSpouses?[s.getMother(),s.getFather()]:[s.getFather(),s.getMother()],c=u[0],l=u[1];if(c||l){var f;if(l)if(o.spouse={id:l},f=this.options.data.getIndi(l).getFamilyAsChild()){r=n.getId(f);o.spouseParentNodeId=r,e.push({id:r,parentId:o.id,family:{id:f}})}if(c)if(o.indi={id:c},f=this.options.data.getIndi(c).getFamilyAsChild()){r=n.getId(f);o.indiParentNodeId=r,e.push({id:r,parentId:o.id,family:{id:f}})}t.push(o)}}}return i.stratify()(t)},t.prototype.render=function(){var t=this.createHierarchy(),e=this.util.layOutChart(t,{flipVertically:!0}),n=this.util.renderChart(e),r=o.getChartInfo(e);return this.util.updateSvgDimensions(r),Object.assign(r,{animationPromise:n})},t}();e.AncestorChart=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=function(){function t(t){this.options=t}return t.prototype.getPreferredFamSize=function(t){return[0,0]},t.prototype.setPreferredIndiSize=function(t){var e;t&&(e=this.getPreferredIndiSize(t.id),t.width=e[0],t.height=e[1])},t.prototype.updateNodes=function(t){var e=this,n=new Map;t.forEach(function(t){var i;e.setPreferredIndiSize(t.data.indi),e.setPreferredIndiSize(t.data.spouse);var o=t.data.family;o&&(i=e.getPreferredFamSize(o.id),o.width=i[0],o.height=i[1]);var a=t.depth,u=r.max([s(t.data,!!e.options.horizontal),n.get(a)]);n.set(a,u)}),t.forEach(function(t){var i;e.options.horizontal?(t.data.indi&&(t.data.indi.width=n.get(t.depth)),t.data.spouse&&(t.data.spouse.width=n.get(t.depth))):(t.data.indi&&(t.data.indi.height=n.get(t.depth)),t.data.spouse&&(t.data.spouse.height=n.get(t.depth)));var o=function(t,e){return s(t,e)+function(t,e){if(e)return t.family?t.family.width:0;return t.family?t.family.height:0}(t,e)}(t.data,!!e.options.horizontal),a=function(t,e){if(e)return(t.indi?t.indi.height:0)+(t.spouse?t.spouse.height:0);var n=(t.indi?t.indi.width:0)+(t.spouse?t.spouse.width:0);return r.max([n,t.family?t.family.width:0])}(t.data,!!e.options.horizontal);i=e.options.horizontal?[o,a]:[a,o],t.data.width=i[0],t.data.height=i[1]})},t.prototype.getFamilyAnchor=function(t){if(this.options.horizontal){var e=-t.width/2+s(t,this.options.horizontal)/2,n=t.family?r.max([-a(t),0]):0;return[e,-(t.indi&&t.spouse?t.height/2-t.indi.height:0)+n]}var i=t.family?r.max([-o(t),0]):0;return[-(t.indi&&t.spouse?t.width/2-t.indi.width:0)+i,-t.height/2+s(t,this.options.horizontal)/2]},t.prototype.getSpouseAnchor=function(t){return this.options.horizontal?[-t.width/2+s(t,this.options.horizontal)/2,t.indi?t.indi.height/2:0]:[t.indi?t.indi.width/2:0,-t.height/2+s(t,!!this.options.horizontal)/2]},t.prototype.getIndiAnchor=function(t){return this.options.horizontal?[-t.width/2+s(t,this.options.horizontal)/2,t.spouse?-t.spouse.height/2:0]:[t.spouse?-t.spouse.width/2:0,-t.height/2+s(t,!!this.options.horizontal)/2]},t}();function o(t){var e=t.indi?t.indi.width:0,n=t.spouse?t.spouse.width:0,r=t.family.width;return!t.indi||!t.spouse||e+n<=r?(e+n-r)/2:r/2>=n?e+n-r:r/2>=e?0:e-r/2}function a(t){var e=t.indi?t.indi.height:0,n=t.spouse?t.spouse.height:0,r=t.family.height;return t.indi&&t.spouse?e-r/2:(e+n-r)/2}function s(t,e){return e?r.max([t.indi?t.indi.width:0,t.spouse?t.spouse.width:0]):r.max([t.indi?t.indi.height:0,t.spouse?t.spouse.height:0])}e.CompositeRenderer=i,e.getFamPositionVertical=o,e.getFamPositionHorizontal=a},function(t,e,n){var r=n(21),i=n(80),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(344),i=n(360),o=n(362),a=n(363),s=n(364);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++ei?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r-1&&t%1==0&&t<=n}},function(t,e,n){var r=n(96),i=n(35),o=n(82),a=n(42);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++rt.level){var n=t.pointer;t.pointer=t.pointer.tree[t.pointer.tree.length-1],t.pointer.tree.push(e),t.pointer.up=n,t.level=e.level}else if(e.level=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype?function(t,n,a){var s=o.URL||o.webkitURL,u=document.createElement("a");n=n||t.name||"download",u.download=n,u.rel="noopener","string"==typeof t?(u.href=t,u.origin===location.origin?i(u):r(u.href)?e(t,n,a):i(u,u.target="_blank")):(u.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(u.href)},4e4),setTimeout(function(){i(u)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),n);else if(r(t))e(t,n,o);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){i(a)})}}:function(t,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,r);var a="application/octet-stream"===t.type,s=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&s)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var l=o.URL||o.webkitURL,f=l.createObjectURL(t);i?i.location=f:location.href=f,i=null,setTimeout(function(){l.revokeObjectURL(f)},4e4)}});o.saveAs=a.saveAs=a,t.exports=a})?r.apply(e,i):r)||(t.exports=o)}).call(this,n(89))},function(t,e,n){!function(){var e=n(448),r=n(232).utf8,i=n(449),o=n(232).bin,a=function t(n,a){n.constructor==String?n=a&&"binary"===a.encoding?o.stringToBytes(n):r.stringToBytes(n):i(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||(n=n.toString());for(var s=e.bytesToWords(n),u=8*n.length,c=1732584193,l=-271733879,f=-1732584194,h=271733878,d=0;d>>24)|4278255360&(s[d]<<24|s[d]>>>8);s[u>>>5]|=128<>>9<<4)]=u;var p=t._ff,m=t._gg,y=t._hh,g=t._ii;for(d=0;d>>0,l=l+b>>>0,f=f+w>>>0,h=h+x>>>0}return e.endian([c,l,f,h])};a._ff=function(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+(i>>>0)+a;return(s<>>32-o)+e},a._gg=function(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+(i>>>0)+a;return(s<>>32-o)+e},a._hh=function(t,e,n,r,i,o,a){var s=t+(e^n^r)+(i>>>0)+a;return(s<>>32-o)+e},a._ii=function(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+(i>>>0)+a;return(s<>>32-o)+e},a._blocksize=16,a._digestsize=16,t.exports=function(t,n){if(void 0===t||null===t)throw new Error("Illegal argument "+t);var r=e.wordsToBytes(a(t,n));return n&&n.asBytes?r:n&&n.asString?o.bytesToString(r):e.bytesToHex(r)}}()},function(t,e,n){var r=n(111),i=n(68),o=n(230),a=n(112),s=i(function(t){return o(r(t,1,a,!0))});t.exports=s},function(t,e,n){var r=n(522);t.exports=function(t,e){if(null==t)return{};var n,i,o=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}},,,,,,,,,function(t,e,n){"use strict";e.extend=function(t){var e,n,i,o,a=Array.prototype.slice.call(arguments,1);for(e=0,n=a.length;e0&&this.json.images[0].url||null},t.prototype.getImages=function(){return this.json.images||null},t.prototype.getNotes=function(){return this.json.notes||null},t.prototype.getEvents=function(){return this.json.events||null},t}(),i=function(){function t(t){this.json=t}return t.prototype.getId=function(){return this.json.id},t.prototype.getFather=function(){return this.json.husb||null},t.prototype.getMother=function(){return this.json.wife||null},t.prototype.getChildren=function(){return this.json.children||[]},t.prototype.getMarriageDate=function(){return this.json.marriage||null},t.prototype.getMarriagePlace=function(){return this.json.marriage&&this.json.marriage.place||null},t}(),o=function(){function t(t){var e=this;this.json=t,this.indis=new Map,this.fams=new Map,t.indis.forEach(function(t){return e.indis.set(t.id,new r(t))}),t.fams.forEach(function(t){return e.fams.set(t.id,new i(t))})}return t.prototype.getIndi=function(t){return this.indis.get(t)||null},t.prototype.getFam=function(t){return this.fams.get(t)||null},t}();e.JsonDataProvider=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=new Map([[1,"Jan"],[2,"Feb"],[3,"Mar"],[4,"Apr"],[5,"May"],[6,"Jun"],[7,"Jul"],[8,"Aug"],[9,"Sep"],[10,"Oct"],[11,"Nov"],[12,"Dec"]]),i=new Map([["pl",new Map([["cal","wyl."],["abt","ok."],["est","szac."]])]]),o=new Map;function a(t,e){if(!Intl||!Intl.DateTimeFormat)return r.get(t);var n=t+"|"+(e||"");if(o.has(n))return o.get(n);var i=new Intl.DateTimeFormat(e,{month:"short"}).format(new Date(2e3,t-1));return o.set(n,i),i}function s(t,e){var n=e&&e.split(/[-_]/)[0],r=n&&i.get(n);return r?r.get(t):t}e.formatDate=function(t,e){return[t.qualifier&&s(t.qualifier,e),t.day,t.month&&a(t.month,e),t.year,t.text].join(" ")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t){void 0===t&&(t={}),this.indiParents=[],this.indiSiblings=[],this.spouseParents=[],this.spouseSiblings=[],this.children=[],Object.assign(this,t)}return t.prototype.get=function(t){switch(t){case r.IndiParents:return this.indiParents;case r.IndiSiblings:return this.indiSiblings;case r.SpouseParents:return this.spouseParents;case r.SpouseSiblings:return this.spouseSiblings;case r.Children:return this.children}},t.prototype.getAll=function(){return[].concat(this.indiSiblings,this.indiParents,this.children,this.spouseParents,this.spouseSiblings)},t.EMPTY=new t,t}();e.ChildNodes=i,function(t){t[t.IndiParents=0]="IndiParents",t[t.IndiSiblings=1]="IndiSiblings",t[t.SpouseParents=2]="SpouseParents",t[t.SpouseSiblings=3]="SpouseSiblings",t[t.Children=4]="Children"}(r=e.LinkType||(e.LinkType={})),e.otherSideLinkType=function(t){switch(t){case r.IndiParents:return r.Children;case r.IndiSiblings:return r.IndiSiblings;case r.SpouseParents:return r.Children;case r.SpouseSiblings:return r.IndiSiblings;case r.Children:return r.IndiParents}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nonEmpty=function(t){return!(!t||!t.length)},e.last=function(t){return t[t.length-1]},e.zip=function(t,e){return t.map(function(t,n){return[t,e[n]]})},e.points2pathd=function(t){for(var e="M "+t[0].x+" "+t[0].y+" L",n=0,r=t.slice(1);n0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){"use strict";var r=n(257);e.a=r.instance},function(t,e,n){"use strict";var r=n(36),i=n.n(r),o=n(13),a=n.n(o),s="object"===("undefined"===typeof document?"undefined":i()(document))&&null!==document,u="object"===("undefined"===typeof window?"undefined":i()(window))&&null!==window&&window.self===window;e.a=function t(){return a()(t.override)?s&&u:t.override}},function(t,e,n){"use strict";var r=n(194),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=s&&function(){var t={};try{for(var e in s(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(n){return!1}}(),c=function(t,e,n,r){var i;e in t&&("function"!==typeof(i=r)||"[object Function]"!==o.call(i)||!r())||(u?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},l=function(t,e){var n=arguments.length>2?arguments[2]:{},o=r(e);i&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e,n){"use strict";var r=n(373),i=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;t.exports=function(t){var e,n=r.ToObject(this),o=r.ToLength(r.Get(n,"length"));if(!r.IsCallable(t))throw new TypeError("callback must be a function");arguments.length>1&&(e=arguments[1]);var a=r.ArraySpeciesCreate(n,0);return function t(e,n,o,a,s){var u,c=a,l=0;for(arguments.length>5&&(u=arguments[5]);l0&&(d=r.IsArray(h)),d)c=t(e,h,r.ToLength(r.Get(h,"length")),c,s-1);else{if(c>=i)throw new TypeError("index too large");r.CreateDataPropertyOrThrow(e,r.ToString(c),h),c+=1}}l+=1}return c}(a,n,o,0,1,t,e),a}},function(t,e){t.exports=function(t){return null===t||"function"!==typeof t&&"object"!==typeof t}},function(t,e,n){"use strict";var r=n(100),i=r("%TypeError%"),o=r("%SyntaxError%"),a=n(99),s={"Property Descriptor":function(t,e){if("Object"!==t.Type(e))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in e)if(a(e,r)&&!n[r])return!1;var o=a(e,"[[Value]]"),s=a(e,"[[Get]]")||a(e,"[[Set]]");if(o&&s)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0}};t.exports=function(t,e,n,r){var a=s[e];if("function"!==typeof a)throw new o("unknown record type: "+e);if(!a(t,r))throw new i(n+" must be a "+e);console.log(a(t,r),r)}},function(t,e){t.exports=Number.isNaN||function(t){return t!==t}},function(t,e){var n=Number.isNaN||function(t){return t!==t};t.exports=Number.isFinite||function(t){return"number"===typeof t&&!n(t)&&t!==1/0&&t!==-1/0}},function(t,e){t.exports=function(t){return t>=0?1:-1}},function(t,e){t.exports=function(t,e){var n=t%e;return Math.floor(n>=0?n:n+e)}},function(t,e,n){"use strict";var r=n(196);t.exports=function(){return Array.prototype.flatMap||r}},function(t,e,n){var r=n(101),i=n(205),o=n(102),a=1,s=2;t.exports=function(t,e,n,u,c,l){var f=n&a,h=t.length,d=e.length;if(h!=d&&!(f&&d>h))return!1;var p=l.get(t);if(p&&l.get(e))return p==e;var m=-1,y=!0,g=n&s?new r:void 0;for(l.set(t,e),l.set(e,t);++m3&&void 0!==arguments[3]&&arguments[3],o=e[t];if(void 0!==o)return o;if(i){var a=e[(r=t,"default".concat(r[0].toUpperCase()+r.slice(1)))];if(void 0!==a)return a;if(n){var s=n[t];if(void 0!==s)return s}}return"checked"!==t&&("value"===t?e.multiple?[]:"":void 0)},k=function(t){function e(){var t,n;a()(this,e);for(var r=arguments.length,o=new Array(r),s=0;s0&&n.setState(o)});var u=n.constructor.autoControlledProps,c=_()(y()(y()(n)),"getInitialAutoControlledState",n.props)||{},f=u.reduce(function(t,e){return t[e]=N(e,n.props,c,!0),t},{});return n.state=i()({},c,f),n}return p()(e,t),u()(e,[{key:"componentWillReceiveProps",value:function(t){var e=this.constructor.autoControlledProps.reduce(function(e,n){return!w()(t[n])&&(e[n]=t[n]),e},{});Object.keys(e).length>0&&this.setState(e)}}]),e}(S.Component)},function(t,e,n){var r=n(101),i=n(110),o=n(152),a=n(60),s=n(69),u=n(102),c=200;t.exports=function(t,e,n,l){var f=-1,h=i,d=!0,p=t.length,m=[],y=e.length;if(!p)return m;n&&(e=a(e,s(n))),l?(h=o,d=!1):e.length>=c&&(h=u,d=!1,e=new r(e));t:for(;++f=c){var y=e?null:s(t);if(y)return u(y);d=!1,f=a,m=new r}else m=e?[]:p;t:for(;++l1&&p.reverse(),A&&N=i?t:r(t,e,n)}},function(t,e,n){t.exports=function(){"use strict";return[{locale:"en",pluralRuleFunction:function(t,e){var n=String(t).split("."),r=!n[1],i=Number(n[0])==t,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return e?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==t&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}},{locale:"en-001",parentLocale:"en",fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}}}},{locale:"en-150",parentLocale:"en-001"},{locale:"en-AG",parentLocale:"en-001"},{locale:"en-AI",parentLocale:"en-001"},{locale:"en-AS",parentLocale:"en"},{locale:"en-AT",parentLocale:"en-150"},{locale:"en-AU",parentLocale:"en-001",fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"h",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}}}}},{locale:"en-BB",parentLocale:"en-001"},{locale:"en-BE",parentLocale:"en-001"},{locale:"en-BI",parentLocale:"en"},{locale:"en-BM",parentLocale:"en-001"},{locale:"en-BS",parentLocale:"en-001"},{locale:"en-BW",parentLocale:"en-001"},{locale:"en-BZ",parentLocale:"en-001"},{locale:"en-CA",parentLocale:"en-001",fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}}}}},{locale:"en-CC",parentLocale:"en-001"},{locale:"en-CH",parentLocale:"en-150"},{locale:"en-CK",parentLocale:"en-001"},{locale:"en-CM",parentLocale:"en-001"},{locale:"en-CX",parentLocale:"en-001"},{locale:"en-CY",parentLocale:"en-001"},{locale:"en-DE",parentLocale:"en-150"},{locale:"en-DG",parentLocale:"en-001"},{locale:"en-DK",parentLocale:"en-150"},{locale:"en-DM",parentLocale:"en-001"},{locale:"en-Dsrt",pluralRuleFunction:function(t,e){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},"year-short":{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},"month-short":{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},"day-short":{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relative:{0:"this hour"},relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},"hour-short":{displayName:"Hour",relative:{0:"this hour"},relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relative:{0:"this minute"},relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},"minute-short":{displayName:"Minute",relative:{0:"this minute"},relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}},"second-short":{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}},{locale:"en-ER",parentLocale:"en-001"},{locale:"en-FI",parentLocale:"en-150"},{locale:"en-FJ",parentLocale:"en-001"},{locale:"en-FK",parentLocale:"en-001"},{locale:"en-FM",parentLocale:"en-001"},{locale:"en-GB",parentLocale:"en-001"},{locale:"en-GD",parentLocale:"en-001"},{locale:"en-GG",parentLocale:"en-001"},{locale:"en-GH",parentLocale:"en-001"},{locale:"en-GI",parentLocale:"en-001"},{locale:"en-GM",parentLocale:"en-001"},{locale:"en-GU",parentLocale:"en"},{locale:"en-GY",parentLocale:"en-001"},{locale:"en-HK",parentLocale:"en-001"},{locale:"en-IE",parentLocale:"en-001"},{locale:"en-IL",parentLocale:"en-001"},{locale:"en-IM",parentLocale:"en-001"},{locale:"en-IN",parentLocale:"en-001"},{locale:"en-IO",parentLocale:"en-001"},{locale:"en-JE",parentLocale:"en-001"},{locale:"en-JM",parentLocale:"en-001"},{locale:"en-KE",parentLocale:"en-001"},{locale:"en-KI",parentLocale:"en-001"},{locale:"en-KN",parentLocale:"en-001"},{locale:"en-KY",parentLocale:"en-001"},{locale:"en-LC",parentLocale:"en-001"},{locale:"en-LR",parentLocale:"en-001"},{locale:"en-LS",parentLocale:"en-001"},{locale:"en-MG",parentLocale:"en-001"},{locale:"en-MH",parentLocale:"en"},{locale:"en-MO",parentLocale:"en-001"},{locale:"en-MP",parentLocale:"en"},{locale:"en-MS",parentLocale:"en-001"},{locale:"en-MT",parentLocale:"en-001"},{locale:"en-MU",parentLocale:"en-001"},{locale:"en-MW",parentLocale:"en-001"},{locale:"en-MY",parentLocale:"en-001"},{locale:"en-NA",parentLocale:"en-001"},{locale:"en-NF",parentLocale:"en-001"},{locale:"en-NG",parentLocale:"en-001"},{locale:"en-NL",parentLocale:"en-150"},{locale:"en-NR",parentLocale:"en-001"},{locale:"en-NU",parentLocale:"en-001"},{locale:"en-NZ",parentLocale:"en-001"},{locale:"en-PG",parentLocale:"en-001"},{locale:"en-PH",parentLocale:"en-001"},{locale:"en-PK",parentLocale:"en-001"},{locale:"en-PN",parentLocale:"en-001"},{locale:"en-PR",parentLocale:"en"},{locale:"en-PW",parentLocale:"en-001"},{locale:"en-RW",parentLocale:"en-001"},{locale:"en-SB",parentLocale:"en-001"},{locale:"en-SC",parentLocale:"en-001"},{locale:"en-SD",parentLocale:"en-001"},{locale:"en-SE",parentLocale:"en-150"},{locale:"en-SG",parentLocale:"en-001",fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr",relative:{0:"this yr",1:"next yr","-1":"last yr"},relativeTime:{future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mth",relative:{0:"this mth",1:"next mth","-1":"last mth"},relativeTime:{future:{one:"in {0} mth",other:"in {0} mth"},past:{one:"{0} mth ago",other:"{0} mth ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}}}},{locale:"en-SH",parentLocale:"en-001"},{locale:"en-SI",parentLocale:"en-150"},{locale:"en-SL",parentLocale:"en-001"},{locale:"en-SS",parentLocale:"en-001"},{locale:"en-SX",parentLocale:"en-001"},{locale:"en-SZ",parentLocale:"en-001"},{locale:"en-Shaw",pluralRuleFunction:function(t,e){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},"year-short":{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},"month-short":{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},"day-short":{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relative:{0:"this hour"},relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},"hour-short":{displayName:"Hour",relative:{0:"this hour"},relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relative:{0:"this minute"},relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},"minute-short":{displayName:"Minute",relative:{0:"this minute"},relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}},"second-short":{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}},{locale:"en-TC",parentLocale:"en-001"},{locale:"en-TK",parentLocale:"en-001"},{locale:"en-TO",parentLocale:"en-001"},{locale:"en-TT",parentLocale:"en-001"},{locale:"en-TV",parentLocale:"en-001"},{locale:"en-TZ",parentLocale:"en-001"},{locale:"en-UG",parentLocale:"en-001"},{locale:"en-UM",parentLocale:"en"},{locale:"en-US",parentLocale:"en"},{locale:"en-VC",parentLocale:"en-001"},{locale:"en-VG",parentLocale:"en-001"},{locale:"en-VI",parentLocale:"en"},{locale:"en-VU",parentLocale:"en-001"},{locale:"en-WS",parentLocale:"en-001"},{locale:"en-ZA",parentLocale:"en-001"},{locale:"en-ZM",parentLocale:"en-001"},{locale:"en-ZW",parentLocale:"en-001"}]}()},function(t,e,n){t.exports=function(){"use strict";return[{locale:"pl",pluralRuleFunction:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return e?"other":1==t&&i?"one":i&&o>=2&&o<=4&&(a<12||a>14)?"few":i&&1!=r&&(0==o||1==o)||i&&o>=5&&o<=9||i&&a>=12&&a<=14?"many":"other"},fields:{year:{displayName:"rok",relative:{0:"w tym roku",1:"w przysz\u0142ym roku","-1":"w zesz\u0142ym roku"},relativeTime:{future:{one:"za {0} rok",few:"za {0} lata",many:"za {0} lat",other:"za {0} roku"},past:{one:"{0} rok temu",few:"{0} lata temu",many:"{0} lat temu",other:"{0} roku temu"}}},"year-short":{displayName:"r.",relative:{0:"w tym roku",1:"w przysz\u0142ym roku","-1":"w zesz\u0142ym roku"},relativeTime:{future:{one:"za {0} rok",few:"za {0} lata",many:"za {0} lat",other:"za {0} roku"},past:{one:"{0} rok temu",few:"{0} lata temu",many:"{0} lat temu",other:"{0} roku temu"}}},month:{displayName:"miesi\u0105c",relative:{0:"w tym miesi\u0105cu",1:"w przysz\u0142ym miesi\u0105cu","-1":"w zesz\u0142ym miesi\u0105cu"},relativeTime:{future:{one:"za {0} miesi\u0105c",few:"za {0} miesi\u0105ce",many:"za {0} miesi\u0119cy",other:"za {0} miesi\u0105ca"},past:{one:"{0} miesi\u0105c temu",few:"{0} miesi\u0105ce temu",many:"{0} miesi\u0119cy temu",other:"{0} miesi\u0105ca temu"}}},"month-short":{displayName:"mies.",relative:{0:"w tym miesi\u0105cu",1:"w przysz\u0142ym miesi\u0105cu","-1":"w zesz\u0142ym miesi\u0105cu"},relativeTime:{future:{one:"za {0} mies.",few:"za {0} mies.",many:"za {0} mies.",other:"za {0} mies."},past:{one:"{0} mies. temu",few:"{0} mies. temu",many:"{0} mies. temu",other:"{0} mies. temu"}}},day:{displayName:"dzie\u0144",relative:{0:"dzisiaj",1:"jutro",2:"pojutrze","-2":"przedwczoraj","-1":"wczoraj"},relativeTime:{future:{one:"za {0} dzie\u0144",few:"za {0} dni",many:"za {0} dni",other:"za {0} dnia"},past:{one:"{0} dzie\u0144 temu",few:"{0} dni temu",many:"{0} dni temu",other:"{0} dnia temu"}}},"day-short":{displayName:"dzie\u0144",relative:{0:"dzisiaj",1:"jutro",2:"pojutrze","-2":"przedwczoraj","-1":"wczoraj"},relativeTime:{future:{one:"za {0} dzie\u0144",few:"za {0} dni",many:"za {0} dni",other:"za {0} dnia"},past:{one:"{0} dzie\u0144 temu",few:"{0} dni temu",many:"{0} dni temu",other:"{0} dnia temu"}}},hour:{displayName:"godzina",relative:{0:"ta godzina"},relativeTime:{future:{one:"za {0} godzin\u0119",few:"za {0} godziny",many:"za {0} godzin",other:"za {0} godziny"},past:{one:"{0} godzin\u0119 temu",few:"{0} godziny temu",many:"{0} godzin temu",other:"{0} godziny temu"}}},"hour-short":{displayName:"godz.",relative:{0:"ta godzina"},relativeTime:{future:{one:"za {0} godz.",few:"za {0} godz.",many:"za {0} godz.",other:"za {0} godz."},past:{one:"{0} godz. temu",few:"{0} godz. temu",many:"{0} godz. temu",other:"{0} godz. temu"}}},minute:{displayName:"minuta",relative:{0:"ta minuta"},relativeTime:{future:{one:"za {0} minut\u0119",few:"za {0} minuty",many:"za {0} minut",other:"za {0} minuty"},past:{one:"{0} minut\u0119 temu",few:"{0} minuty temu",many:"{0} minut temu",other:"{0} minuty temu"}}},"minute-short":{displayName:"min",relative:{0:"ta minuta"},relativeTime:{future:{one:"za {0} min",few:"za {0} min",many:"za {0} min",other:"za {0} min"},past:{one:"{0} min temu",few:"{0} min temu",many:"{0} min temu",other:"{0} min temu"}}},second:{displayName:"sekunda",relative:{0:"teraz"},relativeTime:{future:{one:"za {0} sekund\u0119",few:"za {0} sekundy",many:"za {0} sekund",other:"za {0} sekundy"},past:{one:"{0} sekund\u0119 temu",few:"{0} sekundy temu",many:"{0} sekund temu",other:"{0} sekundy temu"}}},"second-short":{displayName:"sek.",relative:{0:"teraz"},relativeTime:{future:{one:"za {0} sek.",few:"za {0} sek.",many:"za {0} sek.",other:"za {0} sek."},past:{one:"{0} sek. temu",few:"{0} sek. temu",many:"{0} sek. temu",other:"{0} sek. temu"}}}}}]}()},,,function(t,e,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,l=c&&c(Object);t.exports=function t(e,n,f){if("string"!==typeof n){if(l){var h=c(n);h&&h!==l&&t(e,h,f)}var d=a(n);s&&(d=d.concat(s(n)));for(var p=0;p>18&63,n=o>>12&63,r=o>>6&63,i=63&o,c[s++]=h.charAt(e)+h.charAt(n)+h.charAt(r)+h.charAt(i),a>16&255,n=a>>8&255,r=255&a,c[u++]=64==i?String.fromCharCode(e):64==o?String.fromCharCode(e,n):String.fromCharCode(e,n,r),s>>0,r=new Array(n),i=1>>0,i=0;i>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i>16&255,r=c>>8&255,o=255&c}if(void 0===r||void 0===a&&n===r&&r===o)if("string"==typeof n)e=n+" "+s[0];else switch(t.precision){case 2:e=b(n/255)+" "+s[0];break;case 3:default:e=w(n/255)+" "+s[0]}else if(void 0===a||"object"===i(a)){if(a&&!isNaN(a.a)&&0===a.a)return e=["1.000","1.000","1.000",s[1]].join(" ");if("string"==typeof n)e=[n,r,o,s[1]].join(" ");else switch(t.precision){case 2:e=[b(n/255),b(r/255),b(o/255),s[1]].join(" ");break;default:case 3:e=[w(n/255),w(r/255),w(o/255),s[1]].join(" ")}}else if("string"==typeof n)e=[n,r,o,a,s[2]].join(" ");else switch(t.precision){case 2:e=[b(n/255),b(r/255),b(o/255),b(a/255),s[2]].join(" ");break;case 3:default:e=[w(n/255),w(r/255),w(o/255),w(a/255),s[2]].join(" ")}return e},mt=d.__private__.getFilters=function(){return c},yt=d.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||mt(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],c=(a=void 0!==s.API.processDataByFilters?s.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());0!==a.data.length&&(u.push({key:"Length",value:a.data.length}),!0===i&&u.push({key:"Length1",value:o})),0!=c.length&&(c.split("/").length-1==1?u.push({key:"Filter",value:c}):u.push({key:"Filter",value:"["+c+"]"})),U("<<");for(var l=0;l>"),0!==a.data.length&&(U("stream"),U(a.data),U("endstream"))},gt=d.__private__.putPage=function(t){t.mediaBox;var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;ct(r,!0),rt[E].mediaBox.topRightX,rt[E].mediaBox.bottomLeftX,rt[E].mediaBox.topRightY,rt[E].mediaBox.bottomLeftY,U("<>"),U("endobj");var o=n.join("\n");return ct(i,!0),yt({data:o,filters:mt()}),U("endobj"),r},vt=d.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=nt;t++)rt[t].objId=ut(),rt[t].contentsObjId=ut();for(t=1;t<=nt;t++)n.push(gt({number:t,data:R[t],objId:rt[t].objId,contentsObjId:rt[t].contentsObjId,mediaBox:rt[t].mediaBox,cropBox:rt[t].cropBox,bleedBox:rt[t].bleedBox,trimBox:rt[t].trimBox,artBox:rt[t].artBox,userUnit:rt[t].userUnit,rootDictionaryObjId:ft,resourceDictionaryObjId:ht}));ct(ft,!0),U("<>"),U("endobj"),ot.publish("postPutPages")},bt=function(t,e,n){et.hasOwnProperty(e)||(et[e]={}),et[e][n]=t},wt=function(t,e,n,r,i){i=i||!1;var o="F"+(Object.keys(tt).length+1).toString(10),a={id:o,postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i,metadata:{}};return ot.publish("addFont",{font:a,instance:this}),void 0!==o&&(tt[o]=a,bt(o,e,n)),o},xt=d.__private__.pdfEscape=d.pdfEscape=function(t,e){return function(t,e){var n,r,i,o,a,s,u,c,l;if(i=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&tt[j].metadata&&tt[j].metadata[i]&&tt[j].metadata[i].encoding&&(o=tt[j].metadata[i].encoding,!a&&tt[j].encoding&&(a=tt[j].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(u=!1,s=[],n=0,r=t.length;n>8&&(u=!0);t=s.join("")}for(n=t.length;void 0===u&&0!==n;)t.charCodeAt(n-1)>>8&&(u=!0),n--;if(!u)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(c-(l<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},_t=d.__private__.beginPage=function(t,e){var r,i="string"==typeof e&&e.toLowerCase();if("string"==typeof t&&(r=g(t.toLowerCase()))&&(t=r[0],e=r[1]),Array.isArray(t)&&(e=t[1],t=t[0]),(isNaN(t)||isNaN(e))&&(t=n[0],e=n[1]),i){switch(i.substr(0,1)){case"l":t>"),U("endobj")},Et=d.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||ft;switch(st(),U("<<"),U("/Type /Catalog"),U("/Pages "+e+" 0 R"),L||(L="fullwidth"),L){case"fullwidth":U("/OpenAction [3 0 R /FitH null]");break;case"fullheight":U("/OpenAction [3 0 R /FitV null]");break;case"fullpage":U("/OpenAction [3 0 R /Fit]");break;case"original":U("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+L;"%"===n.substr(n.length-1)&&(L=parseInt(L)/100),"number"==typeof L&&U("/OpenAction [3 0 R /XYZ null null "+b(L)+"]")}switch(P||(P="continuous"),P){case"continuous":U("/PageLayout /OneColumn");break;case"single":U("/PageLayout /SinglePage");break;case"two":case"twoleft":U("/PageLayout /TwoColumnLeft");break;case"tworight":U("/PageLayout /TwoColumnRight")}T&&U("/PageMode /"+T),ot.publish("putCatalog"),U(">>"),U("endobj")},Ct=d.__private__.putTrailer=function(){U("trailer"),U("<<"),U("/Size "+(J+1)),U("/Root "+J+" 0 R"),U("/Info "+(J-1)+" 0 R"),U("/ID [ <"+x+"> <"+x+"> ]"),U(">>")},Tt=d.__private__.putHeader=function(){U("%PDF-"+p),U("%\xba\xdf\xac\xe0")},Pt=d.__private__.putXRef=function(){var t=1,e="0000000000";for(U("xref"),U("0 "+(J+1)),U("0000000000 65535 f "),t=1;t<=J;t++)"function"==typeof Z[t]?U((e+Z[t]()).slice(-10)+" 00000 n "):void 0!==Z[t]?U((e+Z[t]).slice(-10)+" 00000 n "):U("0000000000 00000 n ")},jt=d.__private__.buildDocument=function(){D=!1,B=J=0,z=[],Z=[],it=[],ft=ut(),ht=ut(),ot.publish("buildDocument"),Tt(),vt(),function(){ot.publish("putAdditionalObjects");for(var t=0;t>"),U("endobj")));var e}(),ot.publish("putResources"),ct(ht,!0),U("<<"),function(){for(var t in U("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),U("/Font <<"),tt)tt.hasOwnProperty(t)&&(!1===f||!0===f&&h.hasOwnProperty(t))&&U("/"+t+" "+tt[t].objectNumber+" 0 R");U(">>"),U("/XObject <<"),ot.publish("putXobjectDict"),U(">>")}(),U(">>"),U("endobj"),ot.publish("postPutResources"),Ot(),Et();var t=B;return Pt(),Ct(),U("startxref"),U(""+t),U("%%EOF"),D=!0,z.join("\n")},Mt=d.__private__.getBlob=function(t){return new Blob([H(t)],{type:"application/pdf"})},It=d.output=d.__private__.output=((I=function(t,e){e=e||{};var n=jt();switch("string"==typeof e?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return n;case"save":d.save(e.filename);break;case"arraybuffer":return H(n);case"blob":return Mt(n);case"bloburi":case"bloburl":if(void 0!==r.URL&&"function"==typeof r.URL.createObjectURL)return r.URL&&r.URL.createObjectURL(Mt(n))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+e.filename+";base64,"+btoa(n);case"dataurlnewwindow":var i='',o=r.open();if(null!==o&&o.document.write(i),o||"undefined"==typeof safari)return o;case"datauri":case"dataurl":return r.document.location.href="data:application/pdf;filename="+e.filename+";base64,"+btoa(n);default:return null}}).foo=function(){try{return I.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!r.console)throw new Error(n);r.console.error(n,t),r.alert&&alert(n)}},(I.foo.bar=I).foo),Ft=function(t){return!0===Array.isArray(at)&&-1":")"),et=1):(X=Yt(e),J=Qt(n),Z=(c?"<":"(")+_[K]+(c?">":")")),void 0!==H&&void 0!==H[K]&&(nt=H[K]+" Tw\n"),0!==C.length&&0===K?t.push(nt+C.join(" ")+" "+X.toFixed(2)+" "+J.toFixed(2)+" Tm\n"+Z):1===et||0===et&&0===K?t.push(nt+X.toFixed(2)+" "+J.toFixed(2)+" Td\n"+Z):t.push(nt+Z);t=0===et?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var rt="BT\n/"+j+" "+V+" Tf\n"+(V*f).toFixed(2)+" TL\n"+te+"\n";return rt+=l,rt+=t,U(rt+="ET"),h[j]=!0,d},d.__private__.lstext=d.lstext=function(t,e,n,r){return console.warn("jsPDF.lstext is deprecated"),this.text(t,e,n,{charSpace:r})},d.__private__.clip=d.clip=function(t){U("evenodd"===t?"W*":"W"),U("n")},d.__private__.clip_fixed=d.clip_fixed=function(t){console.log("clip_fixed is deprecated"),d.clip(t)};var Bt=d.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(t)&&(e=!0),e},Ut=d.__private__.getStyle=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e};d.__private__.line=d.line=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[n-t,r-e]],t,e)},d.__private__.lines=d.lines=function(t,e,n,r,i,o){var a,s,u,c,l,f,h,d,p,m,y,g;if("number"==typeof t&&(g=n,n=e,e=t,t=g),r=r||[1,1],o=o||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!Bt(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(U(w(Yt(e))+" "+w(Qt(n))+" m "),a=r[0],s=r[1],c=t.length,m=e,y=n,u=0;u=a.length-1;if(N&&!k){b+=" ";continue}if(N||k){if(k)g=S;else if(t.multiline&&c<(h+2)*(w+2)+2)continue t}else{if(!t.multiline)continue t;if(c<(h+2)*(w+2)+2)continue t;g=S}for(var A="",O=y;O<=g;O++)A+=a[O]+" ";switch(A=" "==A.substr(A.length-1)?A.substr(0,A.length-1):A,v=_(A,t,u).width,t.textAlign){case"right":p=l-v-2;break;case"center":p=(l-v)/2;break;case"left":default:p=2}e+=s(p)+" "+s(m)+" Td\n",e+="("+o(A)+") Tj\n",e+=-s(p)+" 0 Td\n",m=-(u+2),v=0,y=g+1,w++,b=""}break}return i.text=e,i.fontSize=u,i},_=function(t,e,r){var i=n.internal.getFont(e.fontName,e.fontStyle),o=n.getStringUnitWidth(t,{font:i,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:n.getStringUnitWidth("3",{font:i,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:o}},S={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},N=function(){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];r.objId=void 0,r.hasAnnotation&&k.call(n,r)}},k=function(t){var e={type:"reference",object:t};void 0===n.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===e.type&&t.object===e.object})&&n.internal.getPageInfo(t.page).pageContext.annotations.push(e)},A=function(){if(void 0===n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},O=function(){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0},E=function(t){var e=!t;for(var r in t||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var o=t[r],a=[],s=o.Rect;if(o.Rect&&(o.Rect=b.call(this,o.Rect)),n.internal.newObjectDeferredBegin(o.objId,!0),o.DA=Y.createDefaultAppearanceStream(o),"object"===i(o)&&"function"==typeof o.getKeyValueListForStream&&(a=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var u=w.call(this,o);a.push({key:"AP",value:"<>"}),n.internal.acroformPlugin.xForms.push(u)}if(o.appearanceStreamContent){var c="";for(var l in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(l)){var f=o.appearanceStreamContent[l];if(c+="/"+l+" ",c+="<<",1<=Object.keys(f).length||Array.isArray(f))for(var r in f){var h;f.hasOwnProperty(r)&&("function"==typeof(h=f[r])&&(h=h.call(this,o)),c+="/"+r+" "+h+" ",0<=n.internal.acroformPlugin.xForms.indexOf(h)||n.internal.acroformPlugin.xForms.push(h))}else"function"==typeof(h=f)&&(h=h.call(this,o)),c+="/"+r+" "+h,0<=n.internal.acroformPlugin.xForms.indexOf(h)||n.internal.acroformPlugin.xForms.push(h);c+=">>"}a.push({key:"AP",value:"<<\n"+c+">>"})}n.internal.putStream({additionalKeyValues:a}),n.internal.out("endobj")}e&&C.call(this,n.internal.acroformPlugin.xForms)},C=function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=e,o=t[e];n.internal.newObjectDeferredBegin(o&&o.objId,!0),"object"===i(o)&&"function"==typeof o.putStream&&o.putStream(),delete t[r]}},L=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(n=this,F.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(S)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");r=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new I,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",O),n.internal.events.subscribe("buildDocument",N),n.internal.events.subscribe("putCatalog",A),n.internal.events.subscribe("postPutPages",E),n.internal.acroformPlugin.isInitialized=!0}},T=t.__acroform__.arrayToPdfArray=function(t){if(Array.isArray(t)){for(var e="[",n=0;n>"),n.join("\n")}},set:function(t){"object"===i(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};c(U,F);var q=function(){U.call(this),this.pushButton=!0};c(q,U);var H=function(){U.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};c(H,U);var W=function(){var t,e;F.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t,e=[];for(t in e.push("<<"),r)e.push("/"+t+" ("+r[t]+")");return e.push(">>"),e.join("\n")},set:function(t){"object"===i(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=Y.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};c(W,F),H.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t&&"getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},H.prototype.createOption=function(t){this.Kids.length;var e=new W;return e.Parent=this,e.optionName=t,this.Kids.push(e),Q.call(this,e),e};var V=function(){U.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Y.CheckBox.createAppearanceStream()};c(V,U);var G=function(){F.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(y(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=g(this.Ff,13):this.Ff=v(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(y(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=g(this.Ff,21):this.Ff=v(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(y(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=g(this.Ff,23):this.Ff=v(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(y(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=g(this.Ff,24):this.Ff=v(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(y(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=g(this.Ff,25):this.Ff=v(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(y(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=g(this.Ff,26):this.Ff=v(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};c(G,F);var $=function(){G.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(y(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=g(this.Ff,14):this.Ff=v(this.Ff,14)}}),this.password=!0};c($,G);var Y={CheckBox:{createAppearanceStream:function(){return{N:{On:Y.CheckBox.YesNormal},D:{On:Y.CheckBox.YesPushDown,Off:Y.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=h(t),r=[],i=n.internal.getFont(t.fontName,t.fontStyle).id,o=n.__private__.encodeColorString(t.color),a=x(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+s(Y.internal.getWidth(t))+" "+s(Y.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+i+" "+s(a.fontSize)+" Tf "+o),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=h(t),r=n.internal.getFont(t.fontName,t.fontStyle).id,i=n.__private__.encodeColorString(t.color),o=[],a=Y.internal.getHeight(t),u=Y.internal.getWidth(t),c=x(t,t.caption);return o.push("1 g"),o.push("0 0 "+s(u)+" "+s(a)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+s(u-1)+" "+s(a-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+r+" "+s(c.fontSize)+" Tf "+i),o.push(c.text),o.push("ET"),o.push("Q"),e.stream=o.join("\n"),e},OffPushDown:function(t){var e=h(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(Y.internal.getWidth(t))+" "+s(Y.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Y.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Y.RadioButton.Circle.YesNormal,e.D[t]=Y.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=h(t),n=[],r=Y.internal.getWidth(t)<=Y.internal.getHeight(t)?Y.internal.getWidth(t)/4:Y.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Y.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+u(Y.internal.getWidth(t)/2)+" "+u(Y.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=h(t),n=[],r=Y.internal.getWidth(t)<=Y.internal.getHeight(t)?Y.internal.getWidth(t)/4:Y.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*Y.internal.Bezier_C).toFixed(5)),a=Number((r*Y.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+u(Y.internal.getWidth(t)/2)+" "+u(Y.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+u(Y.internal.getWidth(t)/2)+" "+u(Y.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=h(t),n=[],r=Y.internal.getWidth(t)<=Y.internal.getHeight(t)?Y.internal.getWidth(t)/4:Y.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*Y.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+u(Y.internal.getWidth(t)/2)+" "+u(Y.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Y.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Y.RadioButton.Cross.YesNormal,e.D[t]=Y.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=h(t),n=[],r=Y.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+s(Y.internal.getWidth(t)-2)+" "+s(Y.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(s(r.x1.x)+" "+s(r.x1.y)+" m"),n.push(s(r.x2.x)+" "+s(r.x2.y)+" l"),n.push(s(r.x4.x)+" "+s(r.x4.y)+" m"),n.push(s(r.x3.x)+" "+s(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=h(t),n=Y.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(Y.internal.getWidth(t))+" "+s(Y.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+s(Y.internal.getWidth(t)-2)+" "+s(Y.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(s(n.x1.x)+" "+s(n.x1.y)+" m"),r.push(s(n.x2.x)+" "+s(n.x2.y)+" l"),r.push(s(n.x4.x)+" "+s(n.x4.y)+" m"),r.push(s(n.x3.x)+" "+s(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=h(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(Y.internal.getWidth(t))+" "+s(Y.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=n.internal.getFont(t.fontName,t.fontStyle).id,r=n.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};Y.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Y.internal.getWidth(t),n=Y.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},Y.internal.getWidth=function(t){var e=0;return"object"===i(t)&&(e=l(t.Rect[2])),e},Y.internal.getHeight=function(t){var e=0;return"object"===i(t)&&(e=l(t.Rect[3])),e};var Q=t.addField=function(t){if(L.call(this),!(t instanceof F))throw new Error("Invalid argument passed to jsPDF.addField.");return function(t){n.internal.acroformPlugin.printedOut&&(n.internal.acroformPlugin.printedOut=!1,n.internal.acroformPlugin.acroFormDictionaryRoot=null),n.internal.acroformPlugin.acroFormDictionaryRoot||L.call(n),n.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)}.call(this,t),t.page=n.internal.getCurrentPageInfo().pageNumber,this};t.addButton=function(t){if(t instanceof U==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return Q.call(this,t)},t.addTextField=function(t){if(t instanceof G==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return Q.call(this,t)},t.addChoiceField=function(t){if(t instanceof D==0)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return Q.call(this,t)},"object"==i(e)&&void 0===e.ChoiceField&&void 0===e.ListBox&&void 0===e.ComboBox&&void 0===e.EditBox&&void 0===e.Button&&void 0===e.PushButton&&void 0===e.RadioButton&&void 0===e.CheckBox&&void 0===e.TextField&&void 0===e.PasswordField?(e.ChoiceField=D,e.ListBox=R,e.ComboBox=z,e.EditBox=B,e.Button=U,e.PushButton=q,e.RadioButton=H,e.CheckBox=V,e.TextField=G,e.PasswordField=$,e.AcroForm={Appearance:Y}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),t.AcroFormChoiceField=D,t.AcroFormListBox=R,t.AcroFormComboBox=z,t.AcroFormEditBox=B,t.AcroFormButton=U,t.AcroFormPushButton=q,t.AcroFormRadioButton=H,t.AcroFormCheckBox=V,t.AcroFormTextField=G,t.AcroFormPasswordField=$,t.AcroFormAppearance=Y,t.AcroForm={ChoiceField:D,ListBox:R,ComboBox:z,EditBox:B,Button:U,PushButton:q,RadioButton:H,CheckBox:V,TextField:G,PasswordField:$,Appearance:Y}})((window.tmp=pt).API,"undefined"!=typeof window&&window||"undefined"!=typeof r&&r),function(t){var e="addImage_",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.getImageFileTypeByImageData=function(e,r){var i,o;r=r||"UNKNOWN";var a,s,u,c="UNKNOWN";for(u in t.isArrayBufferView(e)&&(e=t.arrayBufferToBinaryString(e)),n)for(a=n[u],i=0;i>"}),"trns"in e&&e.trns.constructor==Array){for(var s="",u=0,c=e.trns.length;u>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1==a?n+=r[(252&(e=i[s]))>>2]+r[(3&e)<<4]+"==":2==a&&(n+=r[(64512&(e=i[s]<<8|i[s+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),n},t.createImageInfo=function(t,e,n,r,i,o,a,s,u,c,l,f,h){var d={alias:s,w:e,h:n,cs:r,bpc:i,i:a,data:t};return o&&(d.f=o),u&&(d.dp=u),c&&(d.trns=c),l&&(d.pal=l),f&&(d.smask=f),h&&(d.p=h),d},t.addImage=function(n,r,o,h,d,p,m,y,g){var v="";if("string"!=typeof r){var b=p;p=d,d=h,h=o,o=r,r=b}if("object"===i(n)&&!c(n)&&"imageData"in n){var w=n;n=w.imageData,r=w.format||r||"UNKNOWN",o=w.x||o||0,h=w.y||h||0,d=w.w||d,p=w.h||p,m=w.alias||m,y=w.compression||y,g=w.rotation||w.angle||g}var x=this.internal.getFilters();if(void 0===y&&-1!==x.indexOf("FlateEncode")&&(y="SLOW"),"string"==typeof n&&(n=unescape(n)),isNaN(o)||isNaN(h))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var _,S,N,k,A,O,E,C=function(){var t=this.internal.collections[e+"images"];return t||(this.internal.collections[e+"images"]=t={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s)),t}.call(this);if(!((_=f(n,C))||(c(n)&&(n=l(n,r)),(null==(E=m)||0===E.length)&&(m="string"==typeof(O=n)?t.sHashCode(O):t.isArrayBufferView(O)?t.sHashCode(t.arrayBufferToBinaryString(O)):null),_=f(m,C)))){if(this.isString(n)&&(""!==(v=this.convertStringToImageData(n))?n=v:void 0!==(v=t.loadFile(n))&&(n=v)),r=this.getImageFileTypeByImageData(n,r),!u(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(n instanceof Uint8Array||(S=n,n=this.binaryStringToUint8Array(n))),!(_=this["process"+r.toUpperCase()](n,(A=0,(k=C)&&(A=Object.keys?Object.keys(k).length:function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;return e}(k)),A),m,((N=y)&&"string"==typeof N&&(N=N.toUpperCase()),N in t.image_compression?N:t.image_compression.NONE),S)))throw new Error("An unknown error occurred whilst processing the image")}return function(t,e,n,r,i,o,a,s){var u=function(t,e,n){return t||e||(e=t=-96),t<0&&(t=-1*n.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.h*72/e/this.internal.scaleFactor),0===t&&(t=e*n.w/n.h),0===e&&(e=t*n.h/n.w),[t,e]}.call(this,n,r,i),c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;if(n=u[0],r=u[1],a[o]=i,s){s*=Math.PI/180;var f=Math.cos(s),h=Math.sin(s),d=function(t){return t.toFixed(4)},p=[d(f),d(h),d(-1*h),d(f),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,c(t),l(e+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([c(n),"0","0",c(r),"0","0","cm"].join(" "))):this.internal.write([c(n),"0","0",c(r),c(t),l(e+r),"cm"].join(" ")),this.internal.write("/I"+i.i+" Do"),this.internal.write("Q")}.call(this,o,h,d,p,_,_.i,C,g),this},t.convertStringToImageData=function(e){var n,r="";if(this.isString(e)){var i;n=null!==(i=this.extractImageFromDataUrl(e))?i.data:e;try{r=atob(n)}catch(e){throw t.validateStringAsBase64(n)?new Error("atob-Error in jsPDF.convertStringToImageData "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return r};var h=function(t,e){return t.subarray(e,e+5)};t.processJPEG=function(t,e,n,i,o,a){var s,u=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(s=function(t){var e;if("JPEG"!==r(t))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*t.charCodeAt(4)+t.charCodeAt(5),i=4,o=t.length;i>",c.content=y;var h=c.objId+" 0 R";y="<>";else if(u.options.pageNumber)switch(y="<>",this.internal.write(y))}}this.internal.write("]")}}]),a.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},a.link=function(t,e,n,r,i){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:t,y:e,w:n,h:r,options:i,type:"link"})},a.textWithLink=function(t,e,n,r){var i=this.getTextWidth(t),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,n),n+=.2*o,this.link(e,n-o,i,o,r),i},a.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},a=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length<=2},u=t.__arabicParser__.isArabicAlfLetter=function(t){return a(t)&&0<=i.indexOf(t.charCodeAt(0))},c=(t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&o(t)&&1<=e[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&o(t)&&2<=e[t.charCodeAt(0)].length}),l=(t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&o(t)&&3<=e[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasMedialForm=function(t){return a(t)&&o(t)&&4==e[t.charCodeAt(0)].length}),f=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i=0,o="",a=0;for(e=0;e>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},s=pt.API,(u=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return(this.pdf.context2d._canvas=this).pdf.context2d},u.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},s.events.push(["initialized",function(){this.canvas=new u,this.canvas.pdf=this}]),c=pt.API,f={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},h=1,d=function(t,e,n,r,i){f={x:t,y:e,w:n,h:r,ln:i}},p=function(){return f},m={left:0,top:0,bottom:0},c.setHeaderFunction=function(t){l=t},c.getTextDimensions=function(t,e){var n=this.table_font_size||this.internal.getFontSize(),r=(this.internal.getFont().fontStyle,(e=e||{}).scaleFactor||this.internal.scaleFactor),i=0,o=0,a=0;if("string"==typeof t)0!=(i=this.getStringUnitWidth(t)*n)&&(o=1);else{if("[object Array]"!==Object.prototype.toString.call(t))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var s=0;s=this.internal.pageSize.getHeight()-c.bottom&&(this.cellAddPage(),u=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),e=p().y+p().h,u&&(e=23)}if(void 0!==i[0])if(this.printingHeaderRow?this.rect(t,e,n,r,"FD"):this.rect(t,e,n,r),"right"===a){i instanceof Array||(i=[i]);for(var l=0;l=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:o})},c.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},c.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},c.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},c.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");h.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},c.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},c.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n"},v=function(t){var e,n,r,i,o,a=String,s="length",u="charCodeAt",c="slice",l="replace";for(t[c](-2),t=t[c](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),r=[],i=0,o=(t+=e="uuuuu"[c](t[s]%5||5))[s];i>24,255&n>>16,255&n>>8,255&n);return function(t,n){for(var r=e[s];0")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",r=0;r>8&255,n>>16&255,n>>24&255]),t.length+2),t=String.fromCharCode.apply(null,i)},y.processDataByFilters=function(t,e){var n=0,r=t||"",i=[];for("string"==typeof(e=e||[])&&(e=[e]),n=0;n>"),this.internal.out("endobj"),C=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+L+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==E&&void 0!==C&&this.internal.out("/Names <>")}),this},(T=pt.API).events.push(["postPutResources",function(){var t=this,e=/^(\d+) 0 obj$/;if(0> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r>","endobj"),t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),T.events.push(["putCatalog",function(){0> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n>>24&255,h[f++]=s>>>16&255,h[f++]=s>>>8&255,h[f++]=255&s,P.arrayBufferToBinaryString(h)},I=function(t,e){var n=Math.LOG2E*Math.log(32768)-8<<4|8,r=n<<8;return r|=Math.min(3,(e-1&255)>>1)<<6,r|=0,[n,255&(r+=31-r%31)]},F=function(t,e){for(var n,r=1,i=0,o=t.length,a=0;0>>0},D=function(t,e,n,r){for(var i,o,a,s=t.length/e,u=new Uint8Array(t.length+s),c=W(),l=0;l>>1)&255;return o},q=function(t,e,n){var r,i,o,a,s=[],u=0,c=t.length;for(s[0]=4;u>>p&255,p+=o.bits;g[b]=x>>>p&255}if(16===o.bits){m=(A=new Uint32Array(o.decodePixels().buffer)).length,y=new Uint8Array(m*(32/o.pixelBitlength)*o.colors),g=new Uint8Array(m*(32/o.pixelBitlength));for(var x,_=1>>0&255,_&&(y[w++]=x>>>16&255,x=A[b++],y[w++]=x>>>0&255),g[S++]=x>>>16&255;d=8}r!==P.image_compression.NONE&&j()?(t=M(y,o.width*o.colors,o.colors,r),l=M(g,o.width,1,r)):(t=y,l=g,h=null)}if(3===o.colorType&&(f=this.color_spaces.INDEXED,c=o.palette,o.transparency.indexed)){var N=o.transparency.indexed,k=0;for(b=0,m=N.length;br&&(i.push(t.slice(u,o)),s=0,u=o),s+=e[o],o++;return u!==o&&i.push(t.slice(u,o)),i},tt=function(t,e,n){n||(n={});var r,i,o,a,s,u,c=[],l=[c],f=n.textIndent||0,h=0,d=0,p=t.split(" "),m=K.apply(this,[" ",n])[0];if(u=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var y=Array(u).join(" "),g=[];p.map(function(t){1<(t=t.split(/\s*\n/)).length?g=g.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):g.push(t[0])}),p=g,u=J.apply(this,[y,n])}for(o=0,a=p.length;o>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},ut=pt.API,ft=lt=ct="",ut.addMetadata=function(t,e){return lt=e||"http://jspdf.default.namespaceuri/",ct=t,this.internal.events.subscribe("postPutResources",function(){if(ct){var t='',e=unescape(encodeURIComponent('')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(ct)),i=unescape(encodeURIComponent("")),o=unescape(encodeURIComponent("")),a=n.length+r.length+i.length+e.length+o.length;ft=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+o),this.internal.write("endstream"),this.internal.write("endobj")}else ft=""}),this.internal.events.subscribe("putCatalog",function(){ft&&this.internal.write("/Metadata "+ft+" 0 R")}),this},function(t,e){var n=t.API,r=n.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<"+i+">");return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};n.events.push(["putFont",function(e){!function(e,n,r,o){if(e.metadata instanceof t.API.TTFFont&&"Identity-H"===e.encoding){for(var a=e.metadata.Unicode.widths,s=e.metadata.subset.encode(e.metadata.glyIdsUsed,1),u="",c=0;c>"),n("endobj");var d=r();n("<<"),n("/Type /Font"),n("/BaseFont /"+e.fontName),n("/FontDescriptor "+h+" 0 R"),n("/W "+t.API.PDFObject.convert(a)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+e.encoding+")"),n(">>"),n(">>"),n("endobj"),e.objectNumber=r(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+f+" 0 R"),n("/BaseFont /"+e.fontName),n("/Encoding /"+e.encoding),n("/DescendantFonts ["+d+" 0 R]"),n(">>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]),n.events.push(["putFont",function(e){!function(e,n,r,o){if(e.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===e.encoding){e.metadata.Unicode.widths;for(var a=e.metadata.rawData,s="",u=0;u>"),n("endobj"),e.objectNumber=r(),u=0;u>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]);var o=function(t){var e,n,i=t.text||"",o=t.x,a=t.y,s=t.options||{},u=t.mutex||{},c=u.pdfEscape,l=u.activeFontKey,f=u.fonts,h=(u.activeFontSize,""),d=0,p="",m=f[n=l].encoding;if("Identity-H"!==f[n].encoding)return{text:i,x:o,y:a,options:s,mutex:u};for(p=i,n=l,"[object Array]"===Object.prototype.toString.call(i)&&(p=i[0]),d=0;du-c.top-c.bottom&&r.pagesplit){var p=function(t,e,n,i,o){var a=document.createElement("canvas");a.height=o,a.width=i;var s=a.getContext("2d");return s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.fillStyle=r.backgroundColor||"#ffffff",s.fillRect(0,0,i,o),s.drawImage(t,e,n,i,o,0,0,i,o),a},m=function(){for(var r,o,l=0,m=0,y={},g=!1;;){var v;if(m=0,y.top=0!==l?c.top:n,y.left=0!==l?c.left:e,g=(s-c.left-c.right)*a=t.width)break;this.addPage()}else b=[v=p(t,0,l,r,o),y.left,y.top,v.width/a,v.height/a,h,null,d],this.addImage.apply(this,b);if((l+=o)>=t.height)break;this.addPage()}i(f,l,null,b)}.bind(this);if("CANVAS"===t.nodeName){var y=new Image;y.onload=m,y.src=t.toDataURL("image/png"),t=y}else m()}else{var g=Math.random().toString(35),v=[t,e,n,f,l,h,g,d];this.addImage.apply(this,v),i(f,l,g,v)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(t,r);if("undefined"==typeof rasterizeHTML)return null;var c="drawDocument";return"string"==typeof t&&(c=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||s*a,rasterizeHTML[c](t,void 0,r).then(function(t){r.onrendered(t.image)},function(t){i(null,t)})},function(t){var e,n,r,o,a,s,u,c,l,f,h,d,p,m,y,g,v,b,w,x;e=function(){return function(e){return t.prototype=e,new t};function t(){}}(),f=function(t){var e,n,r,i,o,a,s;for(n=0,r=t.length,e=void 0,a=i=!1;!i&&n!==r;)(e=t[n]=t[n].trimLeft())&&(i=!0),n++;for(n=r-1;r&&!a&&-1!==n;)(e=t[n]=t[n].trimRight())&&(a=!0),n--;for(o=/\s+$/g,s=!0,n=0;n!==r;)"\u2028"!=t[n]&&(e=t[n].replace(/\s+/g," "),s&&(e=e.trimLeft()),e&&(s=o.test(e)),t[n]=e),n++;return t},d=function(t){var e,n,i;for(e=void 0,n=(i=t.split(",")).shift();!e&&n;)e=r[n.trim().toLowerCase()],n=i.shift();return e},p=function(t){var e;return-1<(t="auto"===t?"0px":t).indexOf("em")&&!isNaN(Number(t.replace("em","")))&&(t=18.719*Number(t.replace("em",""))+"px"),-1r.pdf.margins_doc.top&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top,r.executeWatchFunctions(a));var C=l(a),L=r.x,T=12/r.pdf.internal.scaleFactor,P=(C["margin-left"]+C["padding-left"])*T,j=(C["margin-right"]+C["padding-right"])*T,M=(C["margin-top"]+C["padding-top"])*T,I=(C["margin-bottom"]+C["padding-bottom"])*T;void 0!==C.float&&"right"===C.float?L+=r.settings.width-a.width-j:L+=P,r.pdf.addImage(O,L,r.y+M,a.width,a.height),O=void 0,"right"===C.float||"left"===C.float?(r.watchFunctions.push(function(t,e,n,i){return r.y>=e?(r.x+=t,r.settings.width+=n,!0):!!(i&&1===i.nodeType&&!_[i.nodeName]&&r.x+i.width>r.pdf.margins_doc.left+r.pdf.margins_doc.width)&&(r.x+=t,r.y=e,r.settings.width+=n,!0)}.bind(this,"left"===C.float?-a.width-P-j:0,r.y+a.height+M+I,a.width)),r.watchFunctions.push(function(t,e,n){return!(r.y]*?>/gi,""),l="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(c=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",c.innerHTML='