text: !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.vega=t.vega||{})}(this,function(t){"use strict";function e(t){var e,n,r,i,a,o,u,s,f=t.maxbins||20,c=t.base||10,l=Math.log(c),h=t.divide||[5,2],d=t.extent[0],p=t.extent[1],g=p-d;if(t.step)e=t.step;else if(t.steps){for(a=g/f,o=0,u=t.steps.length;o<u&&t.steps[o]<a;++o);e=t.steps[Math.max(0,o-1)]}else{for(n=Math.ceil(Math.log(f)/l),r=t.minstep||0,e=Math.max(r,Math.pow(c,Math.round(Math.log(g)/l)-n));Math.ceil(g/e)>f;)e*=c;for(o=0,u=h.length;o<u;++o)a=e/h[o],a>=r&&g/a<=f&&(e=a)}return a=Math.log(e),i=a>=0?0:~~(-a/l)+1,s=Math.pow(c,-i-1),(t.nice||void 0===t.nice)&&(d=Math.min(d,Math.floor(d/e+s)*e),p=Math.ceil(p/e)*e),{start:d,stop:p,step:e}}function n(t,e){var n,i=[],a=t.length,o=-1;if(null==e)for(;++o<a;)isNaN(n=r(t[o]))||i.push(n);else for(;++o<a;)isNaN(n=r(e(t[o],o,t)))||i.push(n);return i}function r(t){return null===t?NaN:+t}function i(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function a(t){return 1===t.length&&(t=o(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}function o(t){return function(e,n){return i(t(e),n)}}function u(t){return null===t?NaN:+t}function s(t,e){var n,r,i=t.length,a=0,o=0,s=-1,f=0;if(null==e)for(;++s<i;)isNaN(n=u(t[s]))||(r=n-a,a+=r/++f,o+=r*(n-a));else for(;++s<i;)isNaN(n=u(e(t[s],s,t)))||(r=n-a,a+=r/++f,o+=r*(n-a));if(f>1)return o/(f-1)}function f(t,e){var n,r,i,a=-1,o=t.length;if(null==e){for(;++a<o;)if(null!=(r=t[a])&&r>=r){n=i=r;break}for(;++a<o;)null!=(r=t[a])&&(n>r&&(n=r),i<r&&(i=r))}else{for(;++a<o;)if(null!=(r=e(t[a],a,t))&&r>=r){n=i=r;break}for(;++a<o;)null!=(r=e(t[a],a,t))&&(n>r&&(n=r),i<r&&(i=r))}return[n,i]}function c(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++r<i;)a[r]=t+r*n;return a}function l(t,e,n){var r=h(t,e,n);return c(Math.ceil(t/r)*r,Math.floor(e/r)*r+r/2,r)}function h(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Dw?i*=10:a>=Pw?i*=5:a>=qw&&(i*=2),e<t?-i:i}function d(t,e,n){if(null==n&&(n=u),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}}function p(t,e){var n,r,i=-1,a=t.length;if(null==e){for(;++i<a;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<a;)null!=(r=t[i])&&r>n&&(n=r)}else{for(;++i<a;)if(null!=(r=e(t[i],i,t))&&r>=r){n=r;break}for(;++i<a;)null!=(r=e(t[i],i,t))&&r>n&&(n=r)}return n}function g(t,e){var n,r=0,i=t.length,a=-1,o=i;if(null==e)for(;++a<i;)isNaN(n=u(t[a]))?--o:r+=n;else for(;++a<i;)isNaN(n=u(e(t[a],a,t)))?--o:r+=n;if(o)return r/o}function v(t,e){var n,r=[],a=t.length,o=-1;if(null==e)for(;++o<a;)isNaN(n=u(t[o]))||r.push(n);else for(;++o<a;)isNaN(n=u(e(t[o],o,t)))||r.push(n);return d(r.sort(i),.5)}function m(t){for(var e,n,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(n=new Array(o);--i>=0;)for(r=t[i],e=r.length;--e>=0;)n[--o]=r[e];return n}function y(t,e){var n,r,i=-1,a=t.length;if(null==e){for(;++i<a;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<a;)null!=(r=t[i])&&n>r&&(n=r)}else{for(;++i<a;)if(null!=(r=e(t[i],i,t))&&r>=r){n=r;break}for(;++i<a;)null!=(r=e(t[i],i,t))&&n>r&&(n=r)}return n}function b(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function _(t,e){var n,r=0,i=t.length,a=-1;if(null==e)for(;++a<i;)(n=+t[a])&&(r+=n);else for(;++a<i;)(n=+e(t[a],a,t))&&(r+=n);return r}function x(t,e,r,a){var o,u,s,f,c=n(t,a),l=c.length,h=e;for(s=0,f=Array(h);s<h;++s){for(o=0,u=0;u<l;++u)o+=c[~~(Math.random()*l)];f[s]=o/l}return[d(f.sort(i),r/2),d(f,1-r/2)]}function w(t,e){null==e&&(e=t,t=0);var n,r,i,a={};return a.min=function(t){return arguments.length?(n=t||0,i=r-n,a):n},a.max=function(t){return arguments.length?(r=t||0,i=r-n,a):r},a.sample=function(){return n+Math.floor(i*Math.random())},a.pdf=function(t){return t===Math.floor(t)&&t>=n&&t<r?1/i:0},a.cdf=function(t){var e=Math.floor(t);return e<n?0:e>=r?1:(e-n+1)/i},a.icdf=function(t){return t>=0&&t<=1?n-1+Math.floor(t*i):NaN},a.min(t).max(e)}function M(t,e){var n,r,i=NaN,a={};return a.mean=function(t){return arguments.length?(n=t||0,i=NaN,a):n},a.stdev=function(t){return arguments.length?(r=null==t?1:t,i=NaN,a):r},a.sample=function(){var t,e,a=0,o=0;if(i===i)return a=i,i=NaN,a;do a=2*Math.random()-1,o=2*Math.random()-1,t=a*a+o*o;while(0===t||t>1);return e=Math.sqrt(-2*Math.log(t)/t),i=n+o*e*r,n+a*e*r},a.pdf=function(t){var e=Math.exp(Math.pow(t-n,2)/(-2*Math.pow(r,2)));return 1/(r*Math.sqrt(2*Math.PI))*e},a.cdf=function(t){var e,i=(t-n)/r,a=Math.abs(i);if(a>37)e=0;else{var o,u=Math.exp(-a*a/2);a<7.07106781186547?(o=.0352624965998911*a+.700383064443688,o=o*a+6.37396220353165,o=o*a+33.912866078383,o=o*a+112.079291497871,o=o*a+221.213596169931,o=o*a+220.206867912376,e=u*o,o=.0883883476483184*a+1.75566716318264,o=o*a+16.064177579207,o=o*a+86.7807322029461,o=o*a+296.564248779674,o=o*a+637.333633378831,o=o*a+793.826512519948,o=o*a+440.413735824752,e/=o):(o=a+.65,o=a+4/o,o=a+3/o,o=a+2/o,o=a+1/o,e=u/o/2.506628274631)}return i>0?1-e:e},a.icdf=function(t){if(t<=0||t>=1)return NaN;var e=2*t-1,i=8*(Math.PI-3)/(3*Math.PI*(4-Math.PI)),a=2/(Math.PI*i)+Math.log(1-Math.pow(e,2))/2,o=Math.log(1-e*e)/i,u=(e>0?1:-1)*Math.sqrt(Math.sqrt(a*a-o)-a);return n+r*Math.SQRT2*u},a.mean(t).stdev(e)}function k(t,e){var r=n(t,e);return[d(r.sort(i),.25),d(r,.5),d(r,.75)]}function E(t,e){var n=M(),r={},i=0;return r.data=function(n){return arguments.length?(t=n,i=n?n.length:0,r.bandwidth(e)):t},r.bandwidth=function(n){return arguments.length?(e=n,!e&&t&&(e=S(t)),r):e},r.sample=function(){return t[~~(Math.random()*i)]+e*n.sample()},r.pdf=function(r){for(var a=0,o=0;o<i;++o)a+=n.pdf((r-t[o])/e);return a/e/i},r.cdf=function(r){for(var a=0,o=0;o<i;++o)a+=n.cdf((r-t[o])/e);return a/i},r.icdf=function(){throw Error("KDE icdf not supported.")},r.data(t)}function S(t){var e=t.length,n=k(t),r=(n[2]-n[0])/1.34;return 1.06*Math.min(Math.sqrt(s(t)),r)*Math.pow(e,-.2)}function C(t,e){function n(t){var e,n=[],r=0;for(e=0;e<a;++e)r+=n[e]=null==t[e]?1:+t[e];for(e=0;e<a;++e)n[e]/=r;return n}var r,i={},a=0;return i.weights=function(t){return arguments.length?(r=n(e=t||[]),i):e},i.distributions=function(n){return arguments.length?(n?(a=n.length,t=n):(a=0,t=[]),i.weights(e)):t},i.sample=function(){for(var e=Math.random(),n=t[a-1],i=r[0],o=0;o<a-1;i+=r[++o])if(e<i){n=t[o];break}return n.sample()},i.pdf=function(e){for(var n=0,i=0;i<a;++i)n+=r[i]*t[i].pdf(e);return n},i.cdf=function(e){for(var n=0,i=0;i<a;++i)n+=r[i]*t[i].cdf(e);return n},i.icdf=function(){throw Error("Mixture icdf not supported.")},i.distributions(t).weights(e)}function A(t,e){null==e&&(e=null==t?1:t,t=0);var n,r,i,a={};return a.min=function(t){return arguments.length?(n=t||0,i=r-n,a):n},a.max=function(t){return arguments.length?(r=t||0,i=r-n,a):r},a.sample=function(){return n+i*Math.random()},a.pdf=function(t){return t>=n&&t<=r?1/i:0},a.cdf=function(t){return t<n?0:t>r?1:(t-n)/i},a.icdf=function(t){return t>=0&&t<=1?n+t*i:NaN},a.min(t).max(e)}function T(t,e,n){return t.fields=e||[],t.fname=n,t}function N(t){return null==t?null:t.fname}function z(t){return null==t?null:t.fields}function R(t){throw Error(t)}function O(t){function e(){a.push(f+t.substring(n,r)),f="",n=r+1}var n,r,i,a=[],o=null,u=0,s=t.length,f="";for(t+="",n=r=0;r<s;++r)if(i=t[r],"\\"===i)f+=t.substring(n,r),n=++r;else if(i===o)e(),o=null,u=-1;else{if(o)continue;n===u&&'"'===i?(n=r+1,o=i):n===u&&"'"===i?(n=r+1,o=i):"."!==i||u?"["===i?(r>n&&e(),u=n=r+1):"]"===i&&(u||R("Access path missing open bracket: "+t),u>0&&e(),u=0,n=r+1):r>n?e():n=r+1}return u&&R("Access path missing closing bracket: "+t),o&&R("Access path missing closing quote: "+t),r>n&&(++r,e()),a}function D(t){return t===Object(t)}function P(t){return"string"==typeof t}function q(t){return Lw(t)?"["+t.map(q)+"]":D(t)||P(t)?JSON.stringify(t).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):t}function L(t,e){var n=O(t),r="return _["+n.map(q).join("][")+"];";return T(Function("_",r),[t=1===n.length?n[0]:t],e||t)}function U(t,e,n){var r=[e].concat([].slice.call(n));console[t].apply(console,r)}function F(t){var e=t||Gw;return{level:function(t){return arguments.length?(e=+t,this):e},warn:function(){return e>=Ww&&U("warn","WARN",arguments),this},info:function(){return e>=Hw&&U("log","INFO",arguments),this},debug:function(){return e>=Xw&&U("log","DEBUG",arguments),this}}}function j(t){return null!=t?Lw(t)?t:[t]:[]}function I(t,e){var n,r,i,a,o,u,s,f,c=[],l=(t=j(t)).map(function(t,e){return null==t?null:(c.push(e),O(t).map(q).join("]["))}),h=c.length-1,d=j(e),p="var u,v;return ";if(h<0)return null;for(r=0;r<=h;++r)n=c[r],i=l[n],a="(u=a["+i+"])",o="(v=b["+i+"])",u="((v=v instanceof Date?+v:v),(u=u instanceof Date?+u:u))",s="descending"!==d[n]?(f=1,-1):(f=-1,1),p+="("+a+"<"+o+"||u==null)&&v!=null?"+s+":(u>v||v==null)&&u!=null?"+f+":"+u+"!==u&&v===v?"+s+":v!==v&&u===u?"+f+(n<h?":":":0");return T(Function("a","b",p+";"),t.filter(function(t){return null!=t}))}function $(t){return"function"==typeof t}function B(t){return $(t)?t:function(){return t}}function Y(t){for(var e,n,r=1,i=arguments.length;r<i;++r){e=arguments[r];for(n in e)t[n]=e[n]}return t}function G(t,e){var n,r,i,a,o,u=-1,s=t.length;if(null==e){for(;++u<s;)if(null!=(r=t[u])&&r>=r){n=i=r;break}for(a=o=u;++u<s;)null!=(r=t[u])&&(n>r&&(n=r,a=u),i<r&&(i=r,o=u))}else{for(;++u<s;)if(null!=(r=e(t[u],u,t))&&r>=r){n=i=r;break}for(a=o=u;++u<s;)null!=(r=e(t[u],u,t))&&(n>r&&(n=r,a=u),i<r&&(i=r,o=u))}return[a,o]}function W(t){function e(t){return i.hasOwnProperty(t)&&i[t]!==Vw}var n,r,i={};return n={size:0,empty:0,object:i,has:e,get:function(t){return e(t)?i[t]:void 0},set:function(t,r){return e(t)||(++n.size,i[t]===Vw&&--n.empty),i[t]=r,this},delete:function(t){return e(t)&&(--n.size,++n.empty,i[t]=Vw),this},clear:function(){n.size=n.empty=0,n.object=i={}},test:function(t){return arguments.length?(r=t,n):r},clean:function(){var t,e,a={},o=0;for(t in i)e=i[t],e===Vw||r&&r(e)||(a[t]=e,++o);n.size=o,n.empty=0,n.object=i=a}},t&&Object.keys(t).forEach(function(e){n.set(e,t[e])}),n}function H(t,e){var n=t.prototype=Object.create(e.prototype);return n.constructor=t,n}function X(t){return"number"==typeof t}function V(t){return t=t?j(t):t,T(t&&t.length?Function("_","return ''+"+t.map(function(t){return"_["+O(t).map(q).join("][")+"]"}).join("+'|'+")+";"):function(){return""},t,"key")}function J(t,e,n,r){var i=e.length,a=n.length;if(!a)return e;if(!i)return n;for(var o=r||new e.constructor(i+a),u=0,s=0,f=0;u<i&&s<a;++f)o[f]=t(e[u],n[s])>0?n[s++]:e[u++];for(;u<i;++u,++f)o[f]=e[u];for(;s<a;++s,++f)o[f]=n[s];return o}function Z(t,e){for(var n="";--e>=0;)n+=t;return n}function Q(t,e,n,r){var i=n||" ",a=t+"",o=e-a.length;return o<=0?a:"left"===r?Z(i,o)+a:"center"===r?Z(i,~~(o/2))+a+Z(i,Math.ceil(o/2)):a+Z(i,o)}function K(t){return t[t.length-1]}function tt(t){for(var e={},n=0,r=t.length;n<r;++n)e[t[n]]=1;return e}function et(t,e,n,r){var i=null!=r?r:"…",a=t+"",o=a.length,u=Math.max(0,e-i.length);return o<=e?a:"left"===n?i+a.slice(o-u):"center"===n?a.slice(0,Math.ceil(u/2))+i+a.slice(o-~~(u/2)):a.slice(0,u)+i}function nt(t,e,n){if(t){var r,i=0,a=t.length;if(e)for(;i<a;++i)(r=e(t[i]))&&n(r,i,t);else t.forEach(n)}}function rt(){}function it(t,e){var n=new rt;if(t instanceof rt)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i<a;)n.set(i,t[i]);else for(;++i<a;)n.set(e(r=t[i],i,t),r)}else if(t)for(var o in t)n.set(o,t[o]);return n}function at(){function t(e,i,o,u){if(i>=a.length)return null!=r?r(e):null!=n?e.sort(n):e;for(var s,f,c,l=-1,h=e.length,d=a[i++],p=it(),g=o();++l<h;)(c=p.get(s=d(f=e[l])+""))?c.push(f):p.set(s,[f]);return p.each(function(e,n){u(g,n,t(e,i,o,u))}),g}function e(t,n){if(++n>a.length)return t;var i,u=o[n-1];return null!=r&&n>=a.length?i=t.entries():(i=[],t.each(function(t,r){i.push({key:r,values:e(t,n)})})),null!=u?i.sort(function(t,e){return u(t.key,e.key)}):i}var n,r,i,a=[],o=[];return i={object:function(e){return t(e,0,ot,ut)},map:function(e){return t(e,0,st,ft)},entries:function(n){return e(t(n,0,st,ft),0)},key:function(t){return a.push(t),i},sortKeys:function(t){return o[a.length-1]=t,i},sortValues:function(t){return n=t,i},rollup:function(t){return r=t,i}}}function ot(){return{}}function ut(t,e,n){t[e]=n}function st(){return it()}function ft(t,e,n){t.set(e,n)}function ct(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new lt(r)}function lt(t){this._=t}function ht(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function dt(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function pt(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Zw,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}function gt(t,e){function n(t){var e,n=f.status;if(!n&&mt(f)||n>=200&&n<300||304===n){if(a)try{e=a.call(r,f)}catch(t){return void u.call("error",r,t)}else e=f;u.call("load",r,e)}else u.call("error",r,t)}var r,i,a,o,u=ct("beforesend","progress","load","error"),s=it(),f=new XMLHttpRequest,c=null,l=null,h=0;if("undefined"==typeof XDomainRequest||"withCredentials"in f||!/^(http(s)?:)?\/\//.test(t)||(f=new XDomainRequest),"onload"in f?f.onload=f.onerror=f.ontimeout=n:f.onreadystatechange=function(t){f.readyState>3&&n(t)},f.onprogress=function(t){u.call("progress",r,t)},r={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?s.get(t):(null==e?s.remove(t):s.set(t,e+""),r)},mimeType:function(t){return arguments.length?(i=null==t?null:t+"",r):i},responseType:function(t){return arguments.length?(o=t,r):o},timeout:function(t){return arguments.length?(h=+t,r):h},user:function(t){return arguments.length<1?c:(c=null==t?null:t+"",r)},password:function(t){return arguments.length<1?l:(l=null==t?null:t+"",r)},response:function(t){return a=t,r},get:function(t,e){return r.send("GET",t,e)},post:function(t,e){return r.send("POST",t,e)},send:function(e,n,a){return f.open(e,t,!0,c,l),null==i||s.has("accept")||s.set("accept",i+",*/*"),f.setRequestHeader&&s.each(function(t,e){f.setRequestHeader(e,t)}),null!=i&&f.overrideMimeType&&f.overrideMimeType(i),null!=o&&(f.responseType=o),h>0&&(f.timeout=h),null==a&&"function"==typeof n&&(a=n,n=null),null!=a&&1===a.length&&(a=vt(a)),null!=a&&r.on("error",a).on("load",function(t){a(null,t)}),u.call("beforesend",r,f),f.send(null==n?null:n),r},abort:function(){return f.abort(),r},on:function(){var t=u.on.apply(u,arguments);return t===u?r:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return r.get(e)}return r}function vt(t){return function(e,n){t(null==e?n:null)}}function mt(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function yt(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}function bt(t,e){var n=yt(t);return function(r,i){return e(n(r),i,t)}}function _t(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 xt(t){function e(t,e){var r,i,a=n(t,function(t,n){if(r)return r(t,n-1);i=t,r=e?bt(t,e):yt(t)});return a.columns=i,a}function n(t,e){function n(){if(c>=f)return o;if(i)return i=!1,a;var e,n=c;if(34===t.charCodeAt(n)){for(var r=n;r++<f;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,e=t.charCodeAt(r+1),13===e?(i=!0,10===t.charCodeAt(r+2)&&++c):10===e&&(i=!0),t.slice(n+1,r).replace(/""/g,'"')}for(;c<f;){var u=1;if(e=t.charCodeAt(c++),10===e)i=!0;else if(13===e)i=!0,10===t.charCodeAt(c)&&(++c,++u);else if(e!==s)continue;return t.slice(n,c-u)}return t.slice(n)}for(var r,i,a={},o={},u=[],f=t.length,c=0,l=0;(r=n())!==o;){for(var h=[];r!==a&&r!==o;)h.push(r),r=n();e&&null==(h=e(h,l++))||u.push(h)}return u}function r(e,n){return null==n&&(n=_t(e)),[n.map(o).join(t)].concat(e.map(function(e){return n.map(function(t){return o(e[t])}).join(t)})).join("\n")}function i(t){return t.map(a).join("\n")}function a(e){return e.map(o).join(t)}function o(t){return null==t?"":u.test(t+="")?'"'+t.replace(/\"/g,'""')+'"':t}var u=new RegExp('["'+t+"\n\r]"),s=t.charCodeAt(0);return{parse:e,parseRows:n,format:r,formatRows:i}}function wt(t){return{options:t||{},sanitize:Et,load:kt,file:Ct,http:St}}function Mt(t,e){return Y({},t.options,e)}function kt(t,e){var n=this;return n.sanitize(t,e).then(function(t){var r=t.href;return Tt(r,Kw)?n.file(r.slice(Kw.length)):n.http(r,e)})}function Et(t,e){return e=Mt(this,e),new Promise(function(n,r){var i,a,o,u;if(null==t||"string"!=typeof t)return void r("Sanitize failure, invalid URI: "+q(t));a=Qw.test(t),(u=e.baseURL)&&!a&&(Tt(t,"/")||"/"===u[u.length-1]||(t="/"+t),t=u+t),o=(i=Tt(t,Kw))||"file"===e.mode||"http"!==e.mode&&!a&&At(),o?t=(i?"":Kw)+t:Tt(t,"//")&&(t=(e.defaultProtocol||"http")+":"+t),n({href:t})})}function St(t,e){return e=Mt(this,e),new Promise(function(n,r){var i,a=gt(t);for(i in e.headers)a.header(i,e.headers[i]);tM.forEach(function(t){e[t]&&a[t](e[t])}),a.on("error",function(e){r(e||"Error loading URL: "+t)}).on("load",function(t){var e=t&&t.responseText;t&&0!==t.status?n(e):r(e||"Error")}).get()})}function Ct(t){return new Promise(function(e,n){var r=At();r?r.readFile(t,function(t,r){t?n(t):e(r)}):n("No file system access for "+t)})}function At(){var t="function"==typeof require&&require("fs");return t&&$(t.readFile)?t:null}function Tt(t,e){return null!=t&&0===t.lastIndexOf(e,0)}function Nt(t,e){var n,r,i,a,o=nM.slice();for(r=0,i=t.length;r<i;++r){for(n=e?t[r][e]:t[r],a=0;a<o.length;++a)qt(n)&&!o[a](n)&&(o.splice(a,1),--a);if(0===o.length)return"string"}return rM[nM.indexOf(o[0])]}function zt(t,e){return e.reduce(function(e,n){return e[n]=Nt(t,n),e},{})}function Rt(t){return null==t||""===t?null:+t}function Ot(t){return null==t||""===t?null:!(!t||"false"===t)&&!!t}function Dt(t,e){return null==t||""===t?null:e?e(t):Date.parse(t)}function Pt(t){return null==t||""===t?null:t+""}function qt(t){return null!=t&&t===t}function Lt(t){return"true"===t||"false"===t||t===!0||t===!1}function Ut(t){return!isNaN(Date.parse(t))}function Ft(t){return!(isNaN(+t)||t instanceof Date)}function jt(t){return Ft(t)&&(t=+t)===~~t}function It(t){return function(e,n){var r={delimiter:t};return $t(e,n?Y(n,r):r)}}function $t(t,e){return e.header&&(t=e.header.map(q).join(e.delimiter)+"\n"+t),xt(e.delimiter).parse(t+"")}function Bt(t){return!("function"!=typeof Buffer||!$(Buffer.isBuffer))&&Buffer.isBuffer(t)}function Yt(t,e){return t=D(t)&&!Bt(t)?t:JSON.parse(t),e&&e.property?L(e.property)(t):t}function Gt(){}function Wt(t){if(!t)return Gt;var e,n,r=t.scale[0],i=t.scale[1],a=t.translate[0],o=t.translate[1];return function(t,u){u||(e=n=0),t[0]=(e+=t[0])*r+a,t[1]=(n+=t[1])*i+o}}function Ht(t,e){for(var n,r=t.length,i=r-e;i<--r;)n=t[i],t[i++]=t[r],t[r]=n}function Xt(t,e){return"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map(function(e){return Vt(t,e)})}:Vt(t,e)}function Vt(t,e){var n={type:"Feature",id:e.id,properties:e.properties||{},geometry:Jt(t,e)};return null==e.id&&delete n.id,n}function Jt(t,e){function n(t,e){e.length&&e.pop();for(var n,r=f[t<0?~t:t],i=0,a=r.length;i<a;++i)e.push(n=r[i].slice()),s(n,i);t<0&&Ht(e,a)}function r(t){return t=t.slice(),s(t,0),t}function i(t){for(var e=[],r=0,i=t.length;r<i;++r)n(t[r],e);return e.length<2&&e.push(e[0].slice()),e}function a(t){for(var e=i(t);e.length<4;)e.push(e[0].slice());return e}function o(t){return t.map(a)}function u(t){var e=t.type;return"GeometryCollection"===e?{type:e,geometries:t.geometries.map(u)}:e in c?{type:e,coordinates:c[e](t)}:null}var s=Wt(t.transform),f=t.arcs,c={Point:function(t){return r(t.coordinates)},MultiPoint:function(t){return t.coordinates.map(r)},LineString:function(t){return i(t.arcs)},MultiLineString:function(t){return t.arcs.map(i)},Polygon:function(t){return o(t.arcs)},MultiPolygon:function(t){return t.arcs.map(o)}};return u(e)}function Zt(t,e){function n(e){var n,r=t.arcs[e<0?~e:e],i=r[0];return t.transform?(n=[0,0],r.forEach(function(t){n[0]+=t[0],n[1]+=t[1]})):n=r[r.length-1],e<0?[n,i]:[i,n]}function r(t,e){for(var n in t){var r=t[n];delete e[r.start],delete r.start,delete r.end,r.forEach(function(t){i[t<0?~t:t]=1}),u.push(r)}}var i={},a={},o={},u=[],s=-1;return e.forEach(function(n,r){var i,a=t.arcs[n<0?~n:n];a.length<3&&!a[1][0]&&!a[1][1]&&(i=e[++s],e[s]=n,e[r]=i)}),e.forEach(function(t){var e,r,i=n(t),u=i[0],s=i[1];if(e=o[u])if(delete o[e.end],e.push(t),e.end=s,r=a[s]){delete a[r.start];var f=r===e?e:e.concat(r);a[f.start=e.start]=o[f.end=r.end]=f}else a[e.start]=o[e.end]=e;else if(e=a[s])if(delete a[e.start],e.unshift(t),e.start=u,r=o[u]){delete o[r.end];var c=r===e?e:r.concat(e);a[c.start=r.start]=o[c.end=e.end]=c}else a[e.start]=o[e.end]=e;else e=[t],a[e.start=u]=o[e.end=s]=e}),r(o,a),r(a,o),e.forEach(function(t){i[t<0?~t:t]||u.push([t])}),u}function Qt(t){return Jt(t,Kt.apply(this,arguments))}function Kt(t,e,n){function r(t){var e=t<0?~t:t;(f[e]||(f[e]=[])).push({i:t,g:s})}function i(t){t.forEach(r)}function a(t){t.forEach(i)}function o(t){"GeometryCollection"===t.type?t.geometries.forEach(o):t.type in c&&(s=t,c[t.type](t.arcs))}var u=[];if(arguments.length>1){var s,f=[],c={LineString:i,MultiLineString:a,Polygon:a,MultiPolygon:function(t){t.forEach(a)}};o(e),f.forEach(arguments.length<3?function(t){u.push(t[0].i)}:function(t){n(t[0].g,t[t.length-1].g)&&u.push(t[0].i)})}else for(var l=0,h=t.arcs.length;l<h;++l)u.push(l);return{type:"MultiLineString",arcs:Zt(t,u)}}function te(t,e){var n,r;return t=Yt(t,e),e&&(r=e.feature)?(n=t.objects[r])?Xt(t,n).features:R("Invalid TopoJSON object: "+r):e&&(r=e.mesh)?(n=t.objects[r])?[Qt(t,n)]:R("Invalid TopoJSON object: "+r):void R("Missing TopoJSON feature or mesh parameter.")}function ee(t,e){return arguments.length>1?(iM[t]=e,this):iM.hasOwnProperty(t)?iM[t]:null}function ne(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-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return o;do o.push(new Date(+n));while(e(n,a),t(n),n<r);return o},i.filter=function(n){return ne(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return aM.setTime(+e),oM.setTime(+r),t(aM),t(oM),Math.floor(n(aM,oM))},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}function re(t){return ne(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())*fM)/hM})}function ie(t){return ne(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)/hM})}function ae(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 oe(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 ue(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function se(t){function e(t,e){return function(n){var r,i,a,o=[],u=-1,s=0,f=t.length;for(n instanceof Date||(n=new Date(+n));++u<f;)37===t.charCodeAt(u)&&(o.push(t.slice(s,u)),null!=(i=OM[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),s=u+1);return o.push(t.slice(s,u)),o.join("")}}function n(t,e){return function(n){var i=ue(1900);if(r(i,t,n+="",0)!=n.length)return null;if("p"in i&&(i.H=i.H%12+12*i.p),"W"in i||"U"in i){"w"in i||(i.w="W"in i?1:0);var a="Z"in i?oe(ue(i.y)).getUTCDay():e(ue(i.y)).getDay();i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(a+5)%7:i.w+7*i.U-(a+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,oe(i)):e(i)}}function r(t,e,n,r){for(var i,a,o=0,u=e.length,s=n.length;o<u;){if(r>=s)return-1;if(i=e.charCodeAt(o++),37===i){if(i=e.charAt(o++),a=$[i in OM?e.charAt(o++):i],!a||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function i(t,e,n){var r=N.exec(e.slice(n));return r?(t.p=z[r[0].toLowerCase()],n+r[0].length):-1}function a(t,e,n){var r=D.exec(e.slice(n));return r?(t.w=P[r[0].toLowerCase()],n+r[0].length):-1}function o(t,e,n){var r=R.exec(e.slice(n));return r?(t.w=O[r[0].toLowerCase()],n+r[0].length):-1}function u(t,e,n){var r=U.exec(e.slice(n));return r?(t.m=F[r[0].toLowerCase()],n+r[0].length):-1}function s(t,e,n){var r=q.exec(e.slice(n));return r?(t.m=L[r[0].toLowerCase()],n+r[0].length):-1}function f(t,e,n){return r(t,w,e,n)}function c(t,e,n){return r(t,M,e,n)}function l(t,e,n){return r(t,k,e,n)}function h(t){return C[t.getDay()]}function d(t){return S[t.getDay()]}function p(t){return T[t.getMonth()]}function g(t){return A[t.getMonth()]}function v(t){return E[+(t.getHours()>=12)]}function m(t){return C[t.getUTCDay()]}function y(t){return S[t.getUTCDay()]}function b(t){return T[t.getUTCMonth()]}function _(t){return A[t.getUTCMonth()]}function x(t){return E[+(t.getUTCHours()>=12)]}var w=t.dateTime,M=t.date,k=t.time,E=t.periods,S=t.days,C=t.shortDays,A=t.months,T=t.shortMonths,N=le(E),z=he(E),R=le(S),O=he(S),D=le(C),P=he(C),q=le(A),L=he(A),U=le(T),F=he(T),j={a:h,A:d,b:p,B:g,c:null,d:Ce,e:Ce,H:Ae,I:Te,j:Ne,L:ze,m:Re,M:Oe,p:v,S:De,U:Pe,w:qe,W:Le,x:null,X:null,y:Ue,Y:Fe,Z:je,"%":en},I={a:m,A:y,b:b,B:_,c:null,d:Ie,e:Ie,H:$e,I:Be,j:Ye,L:Ge,m:We,M:He,p:x,S:Xe,U:Ve,w:Je,W:Ze,x:null,X:null,y:Qe,Y:Ke,Z:tn,"%":en},$={a:a,A:o,b:u,B:s,c:f,d:_e,e:_e,H:we,I:we,j:xe,L:Ee,m:be,M:Me,p:i,S:ke,U:pe,w:de,W:ge,x:c,X:l,y:me,Y:ve,Z:ye,"%":Se};return j.x=e(M,j),j.X=e(k,j),j.c=e(w,j),I.x=e(M,I),I.X=e(k,I),I.c=e(w,I),{format:function(t){var n=e(t+="",j);return n.toString=function(){return t},n},parse:function(t){var e=n(t+="",ae);return e.toString=function(){return t},e},utcFormat:function(t){var n=e(t+="",I);return n.toString=function(){return t},n},utcParse:function(t){var e=n(t,oe);return e.toString=function(){return t},e}}}function fe(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function ce(t){return t.replace(qM,"\\$&")}function le(t){return new RegExp("^(?:"+t.map(ce).join("|")+")","i")}function he(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function de(t,e,n){var r=DM.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function pe(t,e,n){var r=DM.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function ge(t,e,n){var r=DM.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function ve(t,e,n){var r=DM.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function me(t,e,n){var r=DM.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ye(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 be(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 _e(t,e,n){var r=DM.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function xe(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 we(t,e,n){var r=DM.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Me(t,e,n){var r=DM.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ke(t,e,n){var r=DM.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=DM.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Se(t,e,n){var r=PM.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Ce(t,e){return fe(t.getDate(),e,2)}function Ae(t,e){return fe(t.getHours(),e,2)}function Te(t,e){return fe(t.getHours()%12||12,e,2)}function Ne(t,e){return fe(1+vM.count(_M(t),t),e,3)}function ze(t,e){return fe(t.getMilliseconds(),e,3)}function Re(t,e){return fe(t.getMonth()+1,e,2)}function Oe(t,e){return fe(t.getMinutes(),e,2)}function De(t,e){return fe(t.getSeconds(),e,2)}function Pe(t,e){return fe(mM.count(_M(t),t),e,2)}function qe(t){return t.getDay()}function Le(t,e){return fe(yM.count(_M(t),t),e,2)}function Ue(t,e){return fe(t.getFullYear()%100,e,2)}function Fe(t,e){return fe(t.getFullYear()%1e4,e,4)}function je(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+fe(e/60|0,"0",2)+fe(e%60,"0",2)}function Ie(t,e){return fe(t.getUTCDate(),e,2)}function $e(t,e){return fe(t.getUTCHours(),e,2)}function Be(t,e){return fe(t.getUTCHours()%12||12,e,2)}function Ye(t,e){return fe(1+MM.count(CM(t),t),e,3)}function Ge(t,e){return fe(t.getUTCMilliseconds(),e,3)}function We(t,e){return fe(t.getUTCMonth()+1,e,2)}function He(t,e){return fe(t.getUTCMinutes(),e,2)}function Xe(t,e){return fe(t.getUTCSeconds(),e,2)}function Ve(t,e){return fe(kM.count(CM(t),t),e,2)}function Je(t){return t.getUTCDay()}function Ze(t,e){return fe(EM.count(CM(t),t),e,2)}function Qe(t,e){return fe(t.getUTCFullYear()%100,e,2)}function Ke(t,e){return fe(t.getUTCFullYear()%1e4,e,4)}function tn(){return"+0000"}function en(){return"%"}function nn(t){return AM=se(t),TM=AM.format,NM=AM.parse,zM=AM.utcFormat,RM=AM.utcParse,AM}function rn(t){return t.toISOString()}function an(t){var e=new Date(t);return isNaN(e)?null:e}function on(t,e,n){e=e||{};var r=ee(e.type||"json");return r||R("Unknown data format type: "+e.type),t=r(t,e),e.parse&&un(t,e.parse,n),t.hasOwnProperty("columns")&&delete t.columns,t}function un(t,e,n){n=n||NM;var r,i,a,o,u,s,f,c=t.columns||Object.keys(t[0]);for("auto"===e&&(e=zt(t,c)),c=Object.keys(e),r=c.map(function(t){var r,i,a=e[t];if(a&&0===a.indexOf("date:"))return r=a.split(/:(.+)?/,2),i=r[1],("'"===i[0]&&"'"===i[i.length-1]||'"'===i[0]&&'"'===i[i.length-1])&&(i=i.slice(1,-1)),n(i);if(!eM[a])throw Error("Illegal format pattern: "+t+":"+a);return eM[a]}),o=0,s=t.length,f=c.length;o<s;++o)for(i=t[o],u=0;u<f;++u)a=c[u],i[a]=r[u](i[a])}function sn(t){this.clear(),t&&this.union(t)}function fn(t,e){var n,r=[];return n={id:"gradient_"+FM++,x1:t?t[0]:0,y1:t?t[1]:0,x2:e?e[0]:1,y2:e?e[1]:0,stops:r,stop:function(t,e){return r.push({offset:t,color:e}),n}}}function cn(t){this.mark=t,this.bounds=this.bounds||new sn,this.bounds_prev=this.bounds_prev||new sn}function ln(t){cn.call(this,t),this.items=this.items||[]}function hn(t,e,n){return!t&&"undefined"!=typeof document&&document.createElement&&(t=document),t?n?t.createElementNS(n,e):t.createElement(e):null}function dn(t,e){e=e.toLowerCase();for(var n=t.childNodes,r=0,i=n.length;r<i;++r)if(n[r].tagName.toLowerCase()===e)return n[r]}function pn(t,e,n,r){var i,a=t.childNodes[e];return a&&a.tagName.toLowerCase()===n.toLowerCase()||(i=a||null,a=hn(t.ownerDocument,n,r),t.insertBefore(a,i)),a}function gn(t,e){for(var n=t.childNodes,r=n.length;r>e;)t.removeChild(n[--r]);return t}function vn(t){return"mark-"+t.marktype+(t.role?" role-"+t.role:"")+(t.name?" "+t.name:"")}function mn(t,e){var n=hn(null,"canvas");return n?(n.width=t,n.height=e):jM&&(n=new jM(t,e)),n}function yn(t){this._pending=0,this._loader=t||wt()}function bn(t){t._pending+=1}function _n(t){t._pending-=1}function xn(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function wn(){return new xn}function Mn(t){return function(){return t}}function kn(t){return t.innerRadius}function En(t){return t.outerRadius}function Sn(t){
  return t.startAngle}function Cn(t){return t.endAngle}function An(t){return t&&t.padAngle}function Tn(t){return t>=1?VM:t<=-1?-VM:Math.asin(t)}function Nn(t,e,n,r,i,a,o,u){var s=n-t,f=r-e,c=o-i,l=u-a,h=(c*(e-a)-l*(t-i))/(l*s-c*f);return[t+h*s,e+h*f]}function zn(t,e,n,r,i,a,o){var u=t-n,s=e-r,f=(o?a:-a)/Math.sqrt(u*u+s*s),c=f*s,l=-f*u,h=t+c,d=e+l,p=n+c,g=r+l,v=(h+p)/2,m=(d+g)/2,y=p-h,b=g-d,_=y*y+b*b,x=i-a,w=h*g-p*d,M=(b<0?-1:1)*Math.sqrt(Math.max(0,x*x*_-w*w)),k=(w*b-y*M)/_,E=(-w*y-b*M)/_,S=(w*b+y*M)/_,C=(-w*y+b*M)/_,A=k-v,T=E-m,N=S-v,z=C-m;return A*A+T*T>N*N+z*z&&(k=S,E=C),{cx:k,cy:E,x01:-c,y01:-l,x11:k*(i/x-1),y11:E*(i/x-1)}}function Rn(){function t(){var t,f,c=+e.apply(this,arguments),l=+n.apply(this,arguments),h=a.apply(this,arguments)-VM,d=o.apply(this,arguments)-VM,p=Math.abs(d-h),g=d>h;if(s||(s=t=wn()),l<c&&(f=l,l=c,c=f),l>HM)if(p>JM-HM)s.moveTo(l*Math.cos(h),l*Math.sin(h)),s.arc(0,0,l,h,d,!g),c>HM&&(s.moveTo(c*Math.cos(d),c*Math.sin(d)),s.arc(0,0,c,d,h,g));else{var v,m,y=h,b=d,_=h,x=d,w=p,M=p,k=u.apply(this,arguments)/2,E=k>HM&&(i?+i.apply(this,arguments):Math.sqrt(c*c+l*l)),S=Math.min(Math.abs(l-c)/2,+r.apply(this,arguments)),C=S,A=S;if(E>HM){var T=Tn(E/c*Math.sin(k)),N=Tn(E/l*Math.sin(k));(w-=2*T)>HM?(T*=g?1:-1,_+=T,x-=T):(w=0,_=x=(h+d)/2),(M-=2*N)>HM?(N*=g?1:-1,y+=N,b-=N):(M=0,y=b=(h+d)/2)}var z=l*Math.cos(y),R=l*Math.sin(y),O=c*Math.cos(x),D=c*Math.sin(x);if(S>HM){var P=l*Math.cos(b),q=l*Math.sin(b),L=c*Math.cos(_),U=c*Math.sin(_);if(p<XM){var F=w>HM?Nn(z,R,L,U,P,q,O,D):[O,D],j=z-F[0],I=R-F[1],$=P-F[0],B=q-F[1],Y=1/Math.sin(Math.acos((j*$+I*B)/(Math.sqrt(j*j+I*I)*Math.sqrt($*$+B*B)))/2),G=Math.sqrt(F[0]*F[0]+F[1]*F[1]);C=Math.min(S,(c-G)/(Y-1)),A=Math.min(S,(l-G)/(Y+1))}}M>HM?A>HM?(v=zn(L,U,z,R,l,A,g),m=zn(P,q,O,D,l,A,g),s.moveTo(v.cx+v.x01,v.cy+v.y01),A<S?s.arc(v.cx,v.cy,A,Math.atan2(v.y01,v.x01),Math.atan2(m.y01,m.x01),!g):(s.arc(v.cx,v.cy,A,Math.atan2(v.y01,v.x01),Math.atan2(v.y11,v.x11),!g),s.arc(0,0,l,Math.atan2(v.cy+v.y11,v.cx+v.x11),Math.atan2(m.cy+m.y11,m.cx+m.x11),!g),s.arc(m.cx,m.cy,A,Math.atan2(m.y11,m.x11),Math.atan2(m.y01,m.x01),!g))):(s.moveTo(z,R),s.arc(0,0,l,y,b,!g)):s.moveTo(z,R),c>HM&&w>HM?C>HM?(v=zn(O,D,P,q,c,-C,g),m=zn(z,R,L,U,c,-C,g),s.lineTo(v.cx+v.x01,v.cy+v.y01),C<S?s.arc(v.cx,v.cy,C,Math.atan2(v.y01,v.x01),Math.atan2(m.y01,m.x01),!g):(s.arc(v.cx,v.cy,C,Math.atan2(v.y01,v.x01),Math.atan2(v.y11,v.x11),!g),s.arc(0,0,c,Math.atan2(v.cy+v.y11,v.cx+v.x11),Math.atan2(m.cy+m.y11,m.cx+m.x11),g),s.arc(m.cx,m.cy,C,Math.atan2(m.y11,m.x11),Math.atan2(m.y01,m.x01),!g))):s.arc(0,0,c,x,_,g):s.lineTo(O,D)}else s.moveTo(0,0);if(s.closePath(),t)return s=null,t+""||null}var e=kn,n=En,r=Mn(0),i=null,a=Sn,o=Cn,u=An,s=null;return t.centroid=function(){var t=(+e.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-XM/2;return[Math.cos(r)*t,Math.sin(r)*t]},t.innerRadius=function(n){return arguments.length?(e="function"==typeof n?n:Mn(+n),t):e},t.outerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Mn(+e),t):n},t.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:Mn(+e),t):r},t.padRadius=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:Mn(+e),t):i},t.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:Mn(+e),t):a},t.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Mn(+e),t):o},t.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:Mn(+e),t):u},t.context=function(e){return arguments.length?(s=null==e?null:e,t):s},t}function On(t){this._context=t}function Dn(t){return new On(t)}function Pn(t){return t[0]}function qn(t){return t[1]}function Ln(){function t(t){var u,s,f,c=t.length,l=!1;for(null==i&&(o=a(f=wn())),u=0;u<=c;++u)!(u<c&&r(s=t[u],u,t))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+e(s,u,t),+n(s,u,t));if(f)return o=null,f+""||null}var e=Pn,n=qn,r=Mn(!0),i=null,a=Dn,o=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:Mn(+n),t):e},t.y=function(e){return arguments.length?(n="function"==typeof e?e:Mn(+e),t):n},t.defined=function(e){return arguments.length?(r="function"==typeof e?e:Mn(!!e),t):r},t.curve=function(e){return arguments.length?(a=e,null!=i&&(o=a(i)),t):a},t.context=function(e){return arguments.length?(null==e?i=o=null:o=a(i=e),t):i},t}function Un(){function t(t){var e,c,l,h,d,p=t.length,g=!1,v=new Array(p),m=new Array(p);for(null==u&&(f=s(d=wn())),e=0;e<=p;++e){if(!(e<p&&o(h=t[e],e,t))===g)if(g=!g)c=e,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),l=e-1;l>=c;--l)f.point(v[l],m[l]);f.lineEnd(),f.areaEnd()}g&&(v[e]=+n(h,e,t),m[e]=+i(h,e,t),f.point(r?+r(h,e,t):v[e],a?+a(h,e,t):m[e]))}if(d)return f=null,d+""||null}function e(){return Ln().defined(o).curve(s).context(u)}var n=Pn,r=null,i=Mn(0),a=qn,o=Mn(!0),u=null,s=Dn,f=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:Mn(+e),r=null,t):n},t.x0=function(e){return arguments.length?(n="function"==typeof e?e:Mn(+e),t):n},t.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Mn(+e),t):r},t.y=function(e){return arguments.length?(i="function"==typeof e?e:Mn(+e),a=null,t):i},t.y0=function(e){return arguments.length?(i="function"==typeof e?e:Mn(+e),t):i},t.y1=function(e){return arguments.length?(a=null==e?null:"function"==typeof e?e:Mn(+e),t):a},t.lineX0=t.lineY0=function(){return e().x(n).y(i)},t.lineY1=function(){return e().x(n).y(a)},t.lineX1=function(){return e().x(r).y(i)},t.defined=function(e){return arguments.length?(o="function"==typeof e?e:Mn(!!e),t):o},t.curve=function(e){return arguments.length?(s=e,null!=u&&(f=s(u)),t):s},t.context=function(e){return arguments.length?(null==e?u=f=null:f=s(u=e),t):u},t}function Fn(){function t(){var t;if(r||(r=t=wn()),e.apply(this,arguments).draw(r,+n.apply(this,arguments)),t)return r=null,t+""||null}var e=Mn(ZM),n=Mn(64),r=null;return t.type=function(n){return arguments.length?(e="function"==typeof n?n:Mn(n),t):e},t.size=function(e){return arguments.length?(n="function"==typeof e?e:Mn(+e),t):n},t.context=function(e){return arguments.length?(r=null==e?null:e,t):r},t}function jn(){}function In(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 $n(t){this._context=t}function Bn(t){return new $n(t)}function Yn(t,e){this._basis=new $n(t),this._beta=e}function Gn(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 Wn(t,e){this._context=t,this._k=(1-e)/6}function Hn(t,e){this._context=t,this._k=(1-e)/6}function Xn(t,e){this._context=t,this._k=(1-e)/6}function Vn(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>HM){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>HM){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*f+t._x1*t._l23_2a-e*t._l12_2a)/c,o=(o*f+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function Jn(t,e){this._context=t,this._alpha=e}function Zn(t,e){this._context=t,this._alpha=e}function Qn(t,e){this._context=t,this._alpha=e}function Kn(t){return t<0?-1:1}function tr(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return(Kn(a)+Kn(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function er(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function nr(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,u=(a-r)/3;t._context.bezierCurveTo(r+u,i+u*e,a-u,o-u*n,a,o)}function rr(t){this._context=t}function ir(t){this._context=new ar(t)}function ar(t){this._context=t}function or(t){return new rr(t)}function ur(t){return new ir(t)}function sr(t){this._context=t}function fr(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function cr(t){return new sr(t)}function lr(t,e){this._context=t,this._t=e}function hr(t){return new lr(t,.5)}function dr(t){return new lr(t,0)}function pr(t){return new lr(t,1)}function gr(t,e,n){var r=rk.hasOwnProperty(t)&&rk[t],i=null;return r&&(i=r.curve||r[e||"vertical"],r.tension&&null!=n&&(i=i[r.tension](n))),i}function vr(t){var e,n,r,i,a,o,u,s,f,c,l,h=[];for(e=t.slice().replace(ak[0],"###$1").split(ak[1]).slice(1),s=0,c=e.length;s<c;++s){for(n=e[s],r=n.slice(1).trim().replace(ak[2],"$1###$2").split(ak[3]),o=n.charAt(0),i=[o],f=0,l=r.length;f<l;++f)(a=+r[f])===a&&i.push(a);if(u=ik[o.toLowerCase()],i.length-1>u)for(f=1,l=i.length;f<l;f+=u)h.push([o].concat(i.slice(f,f+u)));else h.push(i)}return h}function mr(t,e,n,r,i,a,o,u,s){var f=sk.call(arguments);if(ok[f])return ok[f];var c=o*(Math.PI/180),l=Math.sin(c),h=Math.cos(c);n=Math.abs(n),r=Math.abs(r);var d=h*(u-t)*.5+l*(s-e)*.5,p=h*(s-e)*.5-l*(u-t)*.5,g=d*d/(n*n)+p*p/(r*r);g>1&&(g=Math.sqrt(g),n*=g,r*=g);var v=h/n,m=l/n,y=-l/r,b=h/r,_=v*u+m*s,x=y*u+b*s,w=v*t+m*e,M=y*t+b*e,k=(w-_)*(w-_)+(M-x)*(M-x),E=1/k-.25;E<0&&(E=0);var S=Math.sqrt(E);a==i&&(S=-S);var C=.5*(_+w)-S*(M-x),A=.5*(x+M)+S*(w-_),T=Math.atan2(x-A,_-C),N=Math.atan2(M-A,w-C),z=N-T;z<0&&1===a?z+=2*Math.PI:z>0&&0===a&&(z-=2*Math.PI);for(var R=Math.ceil(Math.abs(z/(.5*Math.PI+.001))),O=[],D=0;D<R;++D){var P=T+D*z/R,q=T+(D+1)*z/R;O[D]=[C,A,P,q,n,r,l,h]}return ok[f]=O}function yr(t){var e=sk.call(t);if(uk[e])return uk[e];var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],u=t[5],s=t[6],f=t[7],c=f*o,l=-s*u,h=s*o,d=f*u,p=Math.cos(i),g=Math.sin(i),v=Math.cos(a),m=Math.sin(a),y=.5*(a-i),b=Math.sin(.5*y),_=8/3*b*b/Math.sin(y),x=n+p-_*g,w=r+g+_*p,M=n+v,k=r+m,E=M+_*m,S=k-_*v;return uk[e]=[c*x+l*w,h*x+d*w,c*E+l*S,h*E+d*S,c*M+l*k,h*M+d*k]}function br(t,e){var n=fk[0]=t[0];if("a"===n||"A"===n)fk[1]=e*t[1],fk[2]=e*t[2],fk[6]=e*t[6],fk[7]=e*t[7];else for(var r=1,i=t.length;r<i;++r)fk[r]=e*t[r];return fk}function _r(t,e,n,r,i){var a,o,u,s,f,c=null,l=0,h=0,d=0,p=0;null==n&&(n=0),null==r&&(r=0),null==i&&(i=1),t.beginPath&&t.beginPath();for(var g=0,v=e.length;g<v;++g){switch(a=e[g],1!==i&&(a=br(a,i)),a[0]){case"l":l+=a[1],h+=a[2],t.lineTo(l+n,h+r);break;case"L":l=a[1],h=a[2],t.lineTo(l+n,h+r);break;case"h":l+=a[1],t.lineTo(l+n,h+r);break;case"H":l=a[1],t.lineTo(l+n,h+r);break;case"v":h+=a[1],t.lineTo(l+n,h+r);break;case"V":h=a[1],t.lineTo(l+n,h+r);break;case"m":l+=a[1],h+=a[2],t.moveTo(l+n,h+r);break;case"M":l=a[1],h=a[2],t.moveTo(l+n,h+r);break;case"c":o=l+a[5],u=h+a[6],d=l+a[3],p=h+a[4],t.bezierCurveTo(l+a[1]+n,h+a[2]+r,d+n,p+r,o+n,u+r),l=o,h=u;break;case"C":l=a[5],h=a[6],d=a[3],p=a[4],t.bezierCurveTo(a[1]+n,a[2]+r,d+n,p+r,l+n,h+r);break;case"s":o=l+a[3],u=h+a[4],d=2*l-d,p=2*h-p,t.bezierCurveTo(d+n,p+r,l+a[1]+n,h+a[2]+r,o+n,u+r),d=l+a[1],p=h+a[2],l=o,h=u;break;case"S":o=a[3],u=a[4],d=2*l-d,p=2*h-p,t.bezierCurveTo(d+n,p+r,a[1]+n,a[2]+r,o+n,u+r),l=o,h=u,d=a[1],p=a[2];break;case"q":o=l+a[3],u=h+a[4],d=l+a[1],p=h+a[2],t.quadraticCurveTo(d+n,p+r,o+n,u+r),l=o,h=u;break;case"Q":o=a[3],u=a[4],t.quadraticCurveTo(a[1]+n,a[2]+r,o+n,u+r),l=o,h=u,d=a[1],p=a[2];break;case"t":o=l+a[1],u=h+a[2],null===c[0].match(/[QqTt]/)?(d=l,p=h):"t"===c[0]?(d=2*l-s,p=2*h-f):"q"===c[0]&&(d=2*l-d,p=2*h-p),s=d,f=p,t.quadraticCurveTo(d+n,p+r,o+n,u+r),l=o,h=u,d=l+a[1],p=h+a[2];break;case"T":o=a[1],u=a[2],d=2*l-d,p=2*h-p,t.quadraticCurveTo(d+n,p+r,o+n,u+r),l=o,h=u;break;case"a":xr(t,l+n,h+r,[a[1],a[2],a[3],a[4],a[5],a[6]+l+n,a[7]+h+r]),l+=a[6],h+=a[7];break;case"A":xr(t,l+n,h+r,[a[1],a[2],a[3],a[4],a[5],a[6]+n,a[7]+r]),l=a[6],h=a[7];break;case"z":case"Z":t.closePath()}c=a}}function xr(t,e,n,r){for(var i=mr(r[5],r[6],r[0],r[1],r[3],r[4],r[2],e,n),a=0;a<i.length;++a){var o=yr(i[a]);t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}}function wr(t){return hk.hasOwnProperty(t)?hk[t]:Mr(t)}function Mr(t){if(!dk.hasOwnProperty(t)){var e=vr(t);dk[t]={draw:function(t,n){_r(t,e,0,0,Math.sqrt(n)/2)}}}return dk[t]}function kr(t){return t.x}function Er(t){return t.y}function Sr(t){return t.width}function Cr(t){return t.height}function Ar(t){return function(){return t}}function Tr(){function t(t,u,s){var f,c=null!=u?u:+e.call(this,t),l=null!=s?s:+n.call(this,t),h=+r.call(this,t),d=+i.call(this,t),p=+a.call(this,t);if(o||(o=f=wn()),p<=0)o.rect(c,l,h,d);else{var g=c+h,v=l+d;o.moveTo(c+p,l),o.lineTo(g-p,l),o.quadraticCurveTo(g,l,g,l+p),o.lineTo(g,v-p),o.quadraticCurveTo(g,v,g-p,v),o.lineTo(c+p,v),o.quadraticCurveTo(c,v,c,v-p),o.lineTo(c,l+p),o.quadraticCurveTo(c,l,c+p,l),o.closePath()}if(f)return o=null,f+""||null}var e=kr,n=Er,r=Sr,i=Cr,a=Ar(0),o=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:Ar(+n),t):e},t.y=function(e){return arguments.length?(n="function"==typeof e?e:Ar(+e),t):n},t.width=function(e){return arguments.length?(r="function"==typeof e?e:Ar(+e),t):r},t.height=function(e){return arguments.length?(i="function"==typeof e?e:Ar(+e),t):i},t.cornerRadius=function(e){return arguments.length?(a="function"==typeof e?e:Ar(+e),t):a},t.context=function(e){return arguments.length?(o=null==e?null:e,t):o},t}function Nr(){function t(t,e,n){var r=n/2;if(o){var i=s-e,a=t-u,l=Math.sqrt(i*i+a*a),h=(i/=l)*f,d=(a/=l)*f,p=Math.atan2(a,i);c.moveTo(u-h,s-d),c.lineTo(t-i*r,e-a*r),c.arc(t,e,r,p-pk,p),c.lineTo(u+h,s+d),c.arc(u,s,f,p,p+pk),c.closePath()}else o=1;u=t,s=e,f=r}function e(e){var u,s,f,l=e.length,h=!1;for(null==c&&(c=f=wn()),u=0;u<=l;++u)!(u<l&&a(s=e[u],u,e))===h&&(h=!h)&&(o=0),h&&t(+n(s,u,e),+r(s,u,e),+i(s,u,e));if(f)return c=null,f+""||null}var n,r,i,a,o,u,s,f,c=null;return e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e.size=function(t){return arguments.length?(i=t,e):i},e.defined=function(t){return arguments.length?(a=t,e):a},e.context=function(t){return arguments.length?(c=null==t?null:t,e):c},e}function zr(t){return t.x||0}function Rr(t){return t.y||0}function Or(t){return t.width||0}function Dr(t){return t.size||1}function Pr(t){return t.height||0}function qr(t){return(t.x||0)+(t.width||0)}function Lr(t){return(t.y||0)+(t.height||0)}function Ur(t){return t.cornerRadius||0}function Fr(t){return t.padAngle||0}function jr(t){return!(t.defined===!1)}function Ir(t){return null==t.size?64:t.size}function $r(t){return wr(t.shape||"circle")}function Br(t,e){return gk.context(t)(e)}function Yr(t,e){var n=e[0],r=n.interpolate||"linear";return("horizontal"===n.orient?mk:vk).curve(gr(r,n.orient,n.tension)).context(t)(e)}function Gr(t,e){var n=e[0],r=n.interpolate||"linear";return yk.curve(gr(r,n.orient,n.tension)).context(t)(e)}function Wr(t,e,n,r){return bk.context(t)(e,n,r)}function Hr(t,e){return(e.mark.shape||e.shape).context(t)(e)}function Xr(t,e){return _k.context(t)(e)}function Vr(t,e){return xk.context(t)(e)}function Jr(t,e){return e.stroke&&0!==e.opacity&&0!==e.strokeOpacity&&t.expand(null!=e.strokeWidth?+e.strokeWidth:1),t}function Zr(t){return nk=t,Zr}function Qr(){}function Kr(t,e){nk.add(t,e)}function ti(t,e,n){for(var r=n.width(),i=n.height(),a=n.x1+e.x1*r,o=n.y1+e.y1*i,u=n.x1+e.x2*r,s=n.y1+e.y2*i,f=e.stops,c=0,l=f.length,h=t.createLinearGradient(a,o,u,s);c<l;++c)h.addColorStop(f[c].offset,f[c].color);return h}function ei(t,e,n){return n.id?ti(t,n,e.bounds):n}function ni(t,e,n){return n*=null==e.fillOpacity?1:e.fillOpacity,n>0&&(t.globalAlpha=n,t.fillStyle=ei(t,e,e.fill),!0)}function ri(t,e,n){var r,i=null!=(i=e.strokeWidth)?i:1;return!(i<=0)&&(n*=null==e.strokeOpacity?1:e.strokeOpacity,n>0&&(t.globalAlpha=n,t.strokeStyle=ei(t,e,e.stroke),t.lineWidth=i,t.lineCap=null!=(r=e.strokeCap)?r:"butt",t.setLineDash&&(t.setLineDash(e.strokeDash||Ck),t.lineDashOffset=e.strokeDashOffset||0),!0))}function ii(t,e){return t.zindex-e.zindex||t.index-e.index}function ai(t){if(!t.zdirty)return t.zitems;var e,n,r,i=t.items,a=[];for(n=0,r=i.length;n<r;++n)e=i[n],e.index=n,e.zindex&&a.push(e);return t.zdirty=!1,t.zitems=a.sort(ii)}function oi(t,e){var n,r,i=t.items;if(i&&i.length){var a=ai(t);if(a&&a.length){for(n=0,r=i.length;n<r;++n)i[n].zindex||e(i[n]);i=a}for(n=0,r=i.length;n<r;++n)e(i[n])}}function ui(t,e){var n,r,i=t.items;if(!i||!i.length)return null;var a=ai(t);for(a&&a.length&&(i=a),r=i.length;--r>=0;)if(n=e(i[r]))return n;if(i===a)for(i=t.items,r=i.length;--r>=0;)if(!i[r].zindex&&(n=e(i[r])))return n;return null}function si(t){return function(e,n,r){oi(n,function(n){r&&!r.intersects(n.bounds)||ci(t,e,n,n)})}}function fi(t){return function(e,n,r){!n.items.length||r&&!r.intersects(n.bounds)||ci(t,e,n.items[0],n.items)}}function ci(t,e,n,r){var i=null==n.opacity?1:n.opacity;0!==i&&(t(e,r)||(n.fill&&ni(e,n,i)&&e.fill(),n.stroke&&ri(e,n,i)&&e.stroke()))}function li(t){return t||(t=Ak),function(e,n,r,i,a,o){return e.pixelRatio>1&&(r*=e.pixelRatio,i*=e.pixelRatio),ui(n,function(n){var u=n.bounds;if((!u||u.contains(a,o))&&u)return t(e,n,r,i,a,o)?n:void 0})}}function hi(t,e){return function(n,r,i,a){var o,u,s=Array.isArray(r)?r[0]:r,f=null==e?s.fill:e,c=s.stroke&&n.isPointInStroke;return c&&(o=s.strokeWidth,u=s.strokeCap,n.lineWidth=null!=o?o:1,n.lineCap=null!=u?u:"butt"),!t(n,r)&&(f&&n.isPointInPath(i,a)||c&&n.isPointInStroke(i,a))}}function di(t){return li(hi(t))}function pi(t,e){return"translate("+t+","+e+")"}function gi(t){return pi(t.x||0,t.y||0)}function vi(t,e){function n(t,n){t("transform",gi(n)),t("d",e(null,n))}function r(t,n){return e(Zr(t),n),Jr(t,n).translate(n.x||0,n.y||0)}function i(t,n){var r=n.x||0,i=n.y||0;t.translate(r,i),t.beginPath(),e(t,n),t.translate(-r,-i)}return{type:t,tag:"path",nested:!1,attr:n,bound:r,draw:si(i),pick:di(i)}}function mi(t,e){function n(t,n){var r=n.mark.items;r.length&&t("d",e(null,r))}function r(t,n){var r=n.items;return 0===r.length?t:(e(Zr(t),r),Jr(t,r[0]))}function i(t,n){t.beginPath(),e(t,n)}function a(t,e,n,r,i,a){var u=e.items,s=e.bounds;return!u||!u.length||s&&!s.contains(i,a)?null:(t.pixelRatio>1&&(n*=t.pixelRatio,r*=t.pixelRatio),o(t,u,n,r)?u[0]:null)}var o=hi(i);return{type:t,tag:"path",nested:!0,attr:n,bound:r,draw:fi(i),pick:a}}function yi(t,e){t("transform",gi(e))}function bi(t,e){var n=e.stroke?.5:0;t("class","background"),t("d",Wr(null,e,n,n))}function _i(t,e,n){if(e.clip){var r=n._defs,i=e.clip_id||(e.clip_id="clip"+r.clip_id++),a=r.clipping[i]||(r.clipping[i]={id:i});a.width=e.width||0,a.height=e.height||0}t("clip-path",i?"url(#"+i+")":null)}function xi(t,e){if(!e.clip&&e.items)for(var n=e.items,r=0,i=n.length;r<i;++r)t.union(n[r].bounds);return(e.clip||e.width||e.height)&&Jr(t.add(0,0).add(e.width||0,e.height||0),e),t.translate(e.x||0,e.y||0)}function wi(t,e,n){var r=this;oi(e,function(e){var i,a,o=e.x||0,u=e.y||0,s=e.width||0,f=e.height||0;t.save(),t.translate(o,u),(e.stroke||e.fill)&&(a=null==e.opacity?1:e.opacity,a>0&&(t.beginPath(),i=e.stroke?.5:0,Wr(t,e,i,i),e.fill&&ni(t,e,a)&&t.fill(),e.stroke&&ri(t,e,a)&&t.stroke())),e.clip&&(t.beginPath(),t.rect(0,0,s,f),t.clip()),n&&n.translate(-o,-u),oi(e,function(e){r.draw(t,e,n)}),n&&n.translate(o,u),t.restore()})}function Mi(t,e,n,r,i,a){if(e.bounds&&!e.bounds.contains(i,a)||!e.items)return null;var o=this;return ui(e,function(u){var s,f,c,l;if(l=u.bounds,!l||l.contains(i,a))return f=u.x||0,c=u.y||0,t.save(),t.translate(f,c),f=i-f,c=a-c,s=ui(u,function(t){return t.interactive!==!1||"group"===t.marktype?o.pick(t,n,r,f,c):null}),t.restore(),s?s:(s=e.interactive!==!1&&(u.fill||u.stroke)&&f>=0&&f<=u.width&&c>=0&&c<=u.height,s?u:null)})}function ki(t,e){var n=t.image;return n&&n.url===t.url||(n={loaded:!1,width:0,height:0},e.loadImage(t.url).then(function(e){t.image=e,t.image.url=t.url})),n}function Ei(t,e){return"center"===t?e/2:"right"===t?e:0}function Si(t,e){return"middle"===t?e/2:"bottom"===t?e:0}function Ci(t,e,n){var r=ki(e,n),i=e.x||0,a=e.y||0,o=(null!=e.width?e.width:r.width)||0,u=(null!=e.height?e.height:r.height)||0,s=e.aspect===!1?"none":"xMidYMid";i-=Ei(e.align,o),a-=Si(e.baseline,u),t("href",r.src||"","http://www.w3.org/1999/xlink","xlink:href"),t("transform",pi(i,a)),t("width",o),t("height",u),t("preserveAspectRatio",s)}function Ai(t,e){var n=e.image,r=e.x||0,i=e.y||0,a=(null!=e.width?e.width:n&&n.width)||0,o=(null!=e.height?e.height:n&&n.height)||0;return r-=Ei(e.align,a),i-=Si(e.baseline,o),t.set(r,i,r+a,i+o)}function Ti(t,e,n){var r=this;oi(e,function(e){if(!n||n.intersects(e.bounds)){var i,a,o,u,s=ki(e,r),f=e.x||0,c=e.y||0,l=(null!=e.width?e.width:s.width)||0,h=(null!=e.height?e.height:s.height)||0;f-=Ei(e.align,l),c-=Si(e.baseline,h),e.aspect!==!1&&(a=s.width/s.height,o=e.width/e.height,a===a&&o===o&&a!==o&&(o<a?(u=l/a,c+=(h-u)/2,h=u):(u=h*a,f+=(l-u)/2,l=u))),s.loaded&&(t.globalAlpha=null!=(i=e.opacity)?i:1,t.drawImage(s,f,c,l,h))}})}function Ni(t,e){t("transform",gi(e)),t("d",e.path)}function zi(t,e){var n=e.path;if(null==n)return!0;var r=e.pathCache;r&&r.path===n||((e.pathCache=r=vr(n)).path=n),_r(t,r,e.x,e.y)}function Ri(t,e){return zi(Zr(t),e)?t.set(0,0,0,0):Jr(t,e)}function Oi(t,e){t("d",Wr(null,e))}function Di(t,e){var n,r;return Jr(t.set(n=e.x||0,r=e.y||0,n+e.width||0,r+e.height||0),e)}function Pi(t,e){t.beginPath(),Wr(t,e)}function qi(t,e){t("transform",gi(e)),t("x2",null!=e.x2?e.x2-(e.x||0):0),t("y2",null!=e.y2?e.y2-(e.y||0):0)}function Li(t,e){var n,r;return Jr(t.set(n=e.x||0,r=e.y||0,null!=e.x2?e.x2:n,null!=e.y2?e.y2:r),e)}function Ui(t,e,n){var r,i,a,o;return!(!e.stroke||!ri(t,e,n))&&(r=e.x||0,i=e.y||0,a=null!=e.x2?e.x2:r,o=null!=e.y2?e.y2:i,t.beginPath(),t.moveTo(r,i),t.lineTo(a,o),!0)}function Fi(t,e,n){oi(e,function(e){if(!n||n.intersects(e.bounds)){var r=null==e.opacity?1:e.opacity;r&&Ui(t,e,r)&&t.stroke()}})}function ji(t,e,n,r){return!!t.isPointInStroke&&(Ui(t,e,1)&&t.isPointInStroke(n,r))}function Ii(t){return Sk=Gi(t),$i(Hi(t))}function $i(t){return~~(.8*t.length*Sk)}function Bi(t){return Ek.font=Vi(t),Yi(Hi(t))}function Yi(t){return Ek.measureText(t).width}function Gi(t){return null!=t.fontSize?t.fontSize:11}function Wi(t){Ek=t&&(Ek=mn(1,1))?Ek.getContext("2d"):null,Fk.width=Ek?Bi:Ii}function Hi(t){var e=t.text;return null==e?"":t.limit>0?Xi(t):e+""}function Xi(t){var e=+t.limit,n=t.text+"",r=Ek?(Ek.font=Vi(t),Yi):(Sk=Gi(t),$i);if(r(n)<e)return n;var i,a=t.ellipsis||"…",o="rtl"===t.dir,u=0,s=n.length;if(e-=r(a),o){for(;u<s;)i=u+s>>>1,r(n.slice(i))>e?u=i+1:s=i;return a+n.slice(u)}for(;u<s;)i=1+(u+s>>>1),r(n.slice(0,i))<e?u=i:s=i-1;return n.slice(0,u)+a}function Vi(t,e){var n=t.font;return e&&n&&(n=String(n).replace(/\"/g,"'")),""+(t.fontStyle?t.fontStyle+" ":"")+(t.fontVariant?t.fontVariant+" ":"")+(t.fontWeight?t.fontWeight+" ":"")+Gi(t)+"px "+(n||"sans-serif")}function Ji(t){var e=t.baseline,n=Gi(t);return Math.round("top"===e?.93*n:"middle"===e?.3*n:"bottom"===e?-.21*n:0)}function Zi(t,e){var n,r=e.dx||0,i=(e.dy||0)+Ji(e),a=e.x||0,o=e.y||0,u=e.angle||0,s=e.radius||0;s&&(n=(e.theta||0)-Math.PI/2,a+=s*Math.cos(n),o+=s*Math.sin(n)),t("text-anchor",jk[e.align]||"start"),u?(n=pi(a,o)+" rotate("+u+")",(r||i)&&(n+=" "+pi(r,i))):n=pi(a+r,o+i),t("transform",n)}function Qi(t,e,n){var r,i,a=Fk.height(e),o=e.align,u=e.radius||0,s=e.x||0,f=e.y||0,c=e.dx||0,l=(e.dy||0)+Ji(e)-Math.round(.8*a);return u&&(i=(e.theta||0)-Math.PI/2,s+=u*Math.cos(i),f+=u*Math.sin(i)),r=Fk.width(e),"center"===o?c-=r/2:"right"===o&&(c-=r),t.set(c+=s,l+=f,c+r,l+a),e.angle&&!n&&t.rotate(e.angle*Math.PI/180,s,f),t.expand(n?0:1)}function Ki(t,e,n){oi(e,function(e){var r,i,a,o,u,s;n&&!n.intersects(e.bounds)||(s=Hi(e))&&(r=null==e.opacity?1:e.opacity,0!==r&&(t.font=Vi(e),t.textAlign=e.align||"left",i=e.x||0,a=e.y||0,(o=e.radius)&&(u=(e.theta||0)-Math.PI/2,i+=o*Math.cos(u),a+=o*Math.sin(u)),e.angle&&(t.save(),t.translate(i,a),t.rotate(e.angle*Math.PI/180),i=a=0),i+=e.dx||0,a+=(e.dy||0)+Ji(e),e.fill&&ni(t,e,r)&&t.fillText(s,i,a),e.stroke&&ri(t,e,r)&&t.strokeText(s,i,a),e.angle&&t.restore()))})}function ta(t,e,n,r,i,a){if(e.fontSize<=0)return!1;if(!e.angle)return!0;var o=Qi(Ik,e,!0),u=-e.angle*Math.PI/180,s=Math.cos(u),f=Math.sin(u),c=e.x,l=e.y,h=s*i-f*a+(c-c*s+l*f),d=f*i+s*a+(l-c*f-l*s);return o.contains(h,d)}function ea(t,e,n){var r=Yk[t.mark.marktype],i=e||r.bound;r.nested&&(t=t.mark);var a=t.bounds,o=t.bounds_prev||(t.bounds_prev=new sn);return a?(o.clear().union(a),a.clear()):t.bounds=new sn,i(t.bounds,t,n),a||o.clear().union(t.bounds),t.bounds}function na(t,e,n){var r,i,a,o,u=Yk[t.marktype],s=u.bound,f=t.items,c=f&&f.length;if(u.nested)return a=c?f[0]:(Gk.mark=t,Gk),o=ea(a,s,n),e=e&&e.union(o)||o;if(e=e||t.bounds&&t.bounds.clear()||new sn,c)for(r=0,i=f.length;r<i;++r)e.union(ea(f[r],s,n));return t.bounds=e}function ra(t,e){return JSON.stringify(t,Wk,e)}function ia(t){return aa("string"==typeof t?JSON.parse(t):t)}function aa(t){var e,n,r,i=t.marktype,a=t.items;if(a)for(n=0,r=a.length;n<r;++n)e=i?"mark":"group",a[n][e]=t,a[n].zindex&&(a[n][e].zdirty=!0),"group"===(i||e)&&aa(a[n]);return i&&na(t),t}function oa(t){arguments.length?this.root=ia(t):(this.root=ua({marktype:"group",name:"root",role:"frame"}),this.root.items=[new ln(this.root)])}function ua(t,e){return{bounds:new sn,bounds_prev:new sn,clip:!!t.clip,group:e,interactive:t.interactive!==!1,items:[],marktype:t.marktype,name:t.name||void 0,role:t.role||void 0,zindex:t.zindex||0}}function sa(t){this._active=null,this._handlers={},this._loader=t||wt()}function fa(t){this._el=null,this._bgcolor=null,this._loader=new yn(t)}function ca(t,e){var n=e.getBoundingClientRect();return[t.clientX-n.left-(e.clientLeft||0),t.clientY-n.top-(e.clientTop||0)]}function la(t){sa.call(this,t),this._down=null,this._touch=null,this._first=!0}function ha(t,e,n){return function(r){var i=this._active,a=this.pickEvent(r);a===i?this.fire(t,r):(i&&i.exit||this.fire(n,r),this._active=a,this.fire(e,r),this.fire(t,r))}}function da(t){return function(e){this.fire(t,e),this._active=null}}function pa(t,e,n,r){var i="undefined"!=typeof HTMLElement&&t instanceof HTMLElement&&null!=t.parentNode,a=t.getContext("2d"),o=i?Zk:1;return t.width=e*o,t.height=n*o,1!==o&&(t.style.width=e+"px",t.style.height=n+"px"),a.pixelRatio=o,a.setTransform(o,0,0,o,o*r[0],o*r[1]),t}function ga(t){fa.call(this,t),this._redraw=!1}function va(t,e){var n,r,i,a,o,u=new sn;for(n=0,r=e.length;n<r;++n)i=e[n],a=i.mark,o=a.group,i=Yk[a.marktype].nested?a:i,u.union(ma(i.bounds,o)),i.bounds_prev&&u.union(ma(i.bounds_prev,o));return u.expand(1).round(),t.beginPath(),t.rect(u.x1,u.y1,u.width(),u.height()),t.clip(),u}function ma(t,e){if(null==e)return t;for(var n=tE.clear().union(t);null!=e;e=e.mark.group)n.translate(e.x||0,e.y||0);return n}function ya(t){sa.call(this,t);var e=this;e._hrefHandler=ba(e,function(t,n){n&&n.href&&e.handleHref(t,n,n.href)}),e._tooltipHandler=ba(e,function(t,n){n&&n.tooltip&&e.handleTooltip(t,n,"mouseover"===t.type?n.tooltip:null)})}function ba(t,e){return function(n){var r=n.target,i=r.__data__;n.vegaType=n.type,i=Array.isArray(i)?i[0]:i,e.call(t._obj,n,i)}}function _a(t,e,n){var r,i,a="<"+t;if(e)for(r in e)i=e[r],null!=i&&(a+=" "+r+'="'+i+'"');return n&&(a+=" "+n),a+">"}function xa(t){return"</"+t+">"}function wa(t){fa.call(this,t),this._dirtyID=0,this._svg=null,this._root=null,this._defs=null}function Ma(t,e,n){var r,i,a;for(t=pn(t,n,"linearGradient",aE),t.setAttribute("id",e.id),t.setAttribute("x1",e.x1),t.setAttribute("x2",e.x2),t.setAttribute("y1",e.y1),t.setAttribute("y2",e.y2),r=0,i=e.stops.length;r<i;++r)a=pn(t,r,"stop",aE),a.setAttribute("offset",e.stops[r].offset),a.setAttribute("stop-color",e.stops[r].color);gn(t,r)}function ka(t,e,n){var r;t=pn(t,n,"clipPath",aE),t.setAttribute("id",e.id),r=pn(t,0,"rect",aE),r.setAttribute("x",0),r.setAttribute("y",0),r.setAttribute("width",e.width),r.setAttribute("height",e.height)}function Ea(t,e){for(;t&&t.dirty!==e;t=t.mark.group){if(t.dirty=e,!t.mark||t.mark.dirty===e)return;t.mark.dirty=e}}function Sa(t,e,n){e=e.lastChild;var r,i=0;oi(n,function(n){r=t.draw(e,n,r),++i}),gn(e,1+i)}function Ca(t,e,n,r){var i,a=t._svg;if(!a&&(i=e.ownerDocument,a=hn(i,r,aE),t._svg=a,t.mark&&(a.__data__=t,a.__values__={fill:"default"},"g"===r))){var o=hn(i,"path",aE);o.setAttribute("class","background"),a.appendChild(o),o.__data__=t;var u=hn(i,"g",aE);a.appendChild(u),u.__data__=t}return(i||a.previousSibling!==n)&&e.insertBefore(a,n?n.nextSibling:e.firstChild),a}function Aa(t,e,n){e!==fE[t]&&(null!=e?n?sE.setAttributeNS(n,t,e):sE.setAttribute(t,e):n?sE.removeAttributeNS(n,t):sE.removeAttribute(t),fE[t]=e)}function Ta(){return"undefined"!=typeof window?window.location.href:""}function Na(t){fa.call(this,t),this._text={head:"",root:"",foot:"",defs:"",body:""},this._defs={clip_id:1,gradient:{},clipping:{}}}function za(t,e,n,r){dE[r||t]=e}function Ra(t,e,n,r){if(null==t)return"";var i,a,o,u,s,f="";for("bgrect"===n&&e.interactive===!1&&(f+="pointer-events: none;"),"text"===n&&(f+="font: "+Vi(t)+";"),i=0,a=iE.length;i<a;++i)o=iE[i],u=rE[o],s=t[o],null==s?"fill"===u&&(f+=(f.length?" ":"")+"fill: none;"):(s.id&&(r.gradient[s.id]=s,s="url(#"+s.id+")"),f+=(f.length?" ":"")+u+": "+s+";");return f?'style="'+f+'"':null}function Oa(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Da(t,e){return t=String(t||"").toLowerCase(),arguments.length>1?(bE[t]=e,this):bE[t]}function Pa(t,e,n){return t===e||("path"===n?qa(t,e):t instanceof Date&&e instanceof Date?+t===+e:X(t)&&X(e)?Math.abs(t-e)<=_E:t&&e&&(D(t)||D(e))?null!=t&&null!=e&&La(t,e):t==e)}function qa(t,e){return Pa(vr(t),vr(e))}function La(t,e){var n,r,i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(i.sort(),a.sort(),r=i.length-1;r>=0;r--)if(i[r]!=a[r])return!1;for(r=i.length-1;r>=0;r--)if(n=i[r],!Pa(t[n],e[n],n))return!1;return typeof t==typeof e}function Ua(t){var e=t||jw,n=[],r={};return n.add=function(t){var i=e(t);return r[i]||(r[i]=1,n.push(t)),n},n.remove=function(t){var i,a=e(t);return r[a]&&(r[a]=0,(i=n.indexOf(t))>=0&&n.splice(i,1)),n},n}function Fa(t){return t._id}function ja(t,e){for(var n in t)"_id"!==n&&(e[n]=t[n]);return e}function Ia(t){var e=t===Object(t)?t:{data:t};return e._id||(e._id=++xE),e}function $a(t){return Ia(ja(t,{}))}function Ba(t,e){return ja(t,e)}function Ya(t,e){return e._id=t._id,e}function Ga(t){return t&&t.constructor===Wa}function Wa(){var t=[],e=[],n=[],r=[],i=[];return{constructor:Wa,insert:function(e){for(var n=j(e),r=0,i=n.length;r<i;++r)t.push(n[r]);return this},remove:function(t){for(var n=$(t)?r:e,i=j(t),a=0,o=i.length;a<o;++a)n.push(i[a]);return this},modify:function(t,e,r){var a={field:e,value:B(r)};return $(t)?(a.filter=t,i.push(a)):(a.tuple=t,n.push(a)),this},encode:function(t,e){return n.push({tuple:t,field:e}),this},pulse:function(a,o){function u(t,e,n){n?t[e]=n(t):a.encode=e,s[t._id]=t}var s,f,c,l,h,d,p;for(f=0,c=t.length;f<c;++f)a.add.push(Ia(t[f]));for(s={},f=0,c=e.length;f<c;++f)d=e[f],s[d._id]=d;for(f=0,c=r.length;f<c;++f)h=r[f],o.forEach(function(t){h(t)&&(s[t._id]=t)});for(p in s)a.rem.push(s[p]);for(s={},f=0,c=n.length;f<c;++f)l=n[f],u(l.tuple,l.field,l.value),a.modifies(l.field);for(f=0,c=i.length;f<c;++f)l=i[f],h=l.filter,o.forEach(function(t){h(t)&&u(t,l.field,l.value)}),a.modifies(l.field);for(p in s)a.mod.push(s[p]);return a}}}function Ha(){Object.defineProperty(this,wE,{writable:!0,value:{}})}function Xa(t,e,n,r){this.id=++kE,this.value=t,this.stamp=-1,this.rank=-1,this.qrank=-1,this.flags=0,e&&(this._update=e),n&&this.parameters(n,r)}function Va(t){return function(e){var n=this.flags;return 0===arguments.length?!!(n&t):(this.flags=e?n|t:n&~t,this)}}function Ja(t,e,n,r){var i=1,a=t instanceof Xa?t:t&&t.prototype instanceof Xa?new t:$(t)?new Xa(null,t):(i=0,new Xa(t,e));return this.rank(a),i&&(r=n,n=e),n&&this.connect(a,a.parameters(n,r)),this.touch(a),a}function Za(t,e){var n,r,i=t.rank;for(n=0,r=e.length;n<r;++n)if(i<e[n].rank)return void this.rerank(t)}function Qa(t,e,n){this.id=++CE,
  this.value=null,n&&(this.receive=n),t&&(this._filter=t),e&&(this._apply=e)}function Ka(t,e,n){return new Qa(t,e,n)}function to(t,e,n,r){var i,a=this,o=Ka(n,r),u=function(t){t.dataflow=a,o.receive(t),a.run()};i="string"==typeof t&&"undefined"!=typeof document?document.querySelectorAll(t):j(t);for(var s=0,f=i.length;s<f;++s)i[s].addEventListener(e,u);return o}function eo(t,e,n,r,i){return(t instanceof Xa?ro:no)(this,t,e,n,r,i),this}function no(t,e,n,r,i,a){var o,u,s=Y({},a,TE);$(n)||(n=B(n)),void 0===r?o=function(e){t.touch(n(e))}:$(r)?(u=new Xa(null,r,i,!1),o=function(e){var r=n(e),i=(u.evaluate(e),u.value);Ga(i)?t.pulse(r,i,a):t.update(r,i,s)}):o=function(e){t.update(n(e),r,s)},e.apply(o)}function ro(t,e,n,r,i,a){var o,u;void 0===r?u=n:(o=$(r)?r:B(r),r=n?function(t,e){var r=o(t,e);return n.skip()?r:n.skip(!0).value=r}:o,u=new Xa(null,r,i,!1),u.modified(a&&a.force),u.rank=0,n&&(u.skip(!0),u.value=n.value,u.targets().add(n))),e.targets().add(u)}function io(t){t.rank=++this._rank}function ao(t){for(var e,n,r,i=[t];i.length;)if(this.rank(e=i.pop()),n=e._targets)for(r=n.length;--r>=0;)i.push(n[r])}function oo(t,e,n){this.dataflow=t,this.stamp=null==e?-1:e,this.add=[],this.rem=[],this.mod=[],this.fields=null,this.encode=n||null}function uo(t,e){return t?function(n,r){return t(n,r)&&e(n,r)}:e}function so(t,e){var n={};return t.visit(e,function(t){n[t._id]=1}),function(t){return n[t._id]?null:t}}function fo(t,e){var n=e||$E;return this._pulse?this._enqueue(t):this._touched.add(t),n.skip&&t.skip(!0),this}function co(t,e,n){var r=n||$E;return(t.set(e)||r.force)&&this.touch(t,r),this}function lo(t,e,n){var r=new oo(this,this._clock+(this._pulse?0:1));return r.target=t,this._pulses[t.id]=e.pulse(r,t.value),this.touch(t,n||$E)}function ho(t,e,n){return this.pulse(t,this.changeset().insert(on(e,n)))}function po(t){var e,n,r=new Promise(function(t,r){e=t,n=r});return r.requests=0,r.done=function(){0===--r.requests&&t.runAfter(function(){t._pending=null;try{t.run(),e(t)}catch(t){n(t)}})},t._pending=r}function go(t,e,n){var r=this,i=r._pending||po(r);i.requests+=1,r.loader().load(e,{context:"dataflow"}).then(function(e){r.ingest(t,e,n)},function(t){r.warn("Loading failed: "+e,t),i.done()}).then(i.done).catch(function(t){r.warn(t)})}function vo(t,e,n,r){var i,a,o,u,s,f=this,c=0;for(this.dataflow=t,this.stamp=e,this.fields=null,this.encode=r||null,this.pulses=n,o=0,u=n.length;o<u;++o)if(i=n[o],i.stamp===e){if(i.fields){a=f.fields||(f.fields={});for(s in i.fields)a[s]=1}i.changed(f.ADD)&&(c|=f.ADD),i.changed(f.REM)&&(c|=f.REM),i.changed(f.MOD)&&(c|=f.MOD)}this.changes=c}function mo(t){if(!this._touched.length)return 0;if(this._pending)return this.info("Awaiting requests, delaying dataflow run."),0;var e,n,r,i=this,a=0,o=i.logLevel();i._pulse=new oo(i,++i._clock,t),o>=Hw&&(r=Date.now(),i.debug("-- START PROPAGATION ("+i._clock+") -----")),i._touched.forEach(function(t){i._enqueue(t,!0)}),i._touched=Ua(Fw);try{for(;i._heap.size()>0;)e=i._heap.pop(),e.rank===e.qrank?(n=e.run(i._getPulse(e,t)),o>=Xw&&i.debug(e.id,n===NE?"STOP":n,e),n!==NE&&(i._pulse=n,e._targets&&e._targets.forEach(function(t){i._enqueue(t)})),++a):i._enqueue(e,!0)}catch(t){i.error(t)}if(i._pulses={},i._pulse=null,o>=Hw&&(r=Date.now()-r,i.info("> Pulse "+i._clock+": "+a+" operators; "+r+"ms")),i._postrun.length){var u=i._postrun;i._postrun=[],u.forEach(function(t){try{t(i)}catch(t){i.error(t)}})}return a}function yo(){return this._pending||Promise.resolve(this.run())}function bo(t){if(this._pulse)this._postrun.push(t);else try{t(this)}catch(t){this.error(t)}}function _o(t,e){var n=!this._pulses[t.id];n&&(this._pulses[t.id]=this._pulse),(n||e)&&(t.qrank=t.rank,this._heap.push(t))}function xo(t,e){var n,r=t.source,i=this._clock;return r&&Lw(r)?(n=r.map(function(t){return t.pulse}),new vo(this,i,n,e)):(r=r&&r.pulse,n=this._pulses[t.id],r&&r!==NE&&(r.stamp===i&&n.target!==t?n=r:n.source=r.source),n)}function wo(t){this.cmp=t,this.nodes=[]}function Mo(t,e,n,r){var i,a,o;for(i=t[n];n>e&&(o=n-1>>1,a=t[o],r(i,a)<0);)t[n]=a,n=o;return t[n]=i}function ko(t,e,n){for(var r,i=e,a=t.length,o=t[e],u=2*e+1;u<a;)r=u+1,r<a&&n(t[u],t[r])>=0&&(u=r),t[e]=t[u],e=u,u=2*e+1;return t[e]=o,Mo(t,i,e,n)}function Eo(){this._log=F(),this._clock=0,this._rank=0,this._loader=wt(),this._touched=Ua(Fw),this._pulses={},this._pulse=null,this._heap=new wo(function(t,e){return t.qrank-e.qrank}),this._postrun=[]}function So(t){return function(){return this._log[t].apply(this,arguments)}}function Co(t,e){Xa.call(this,t,null,e)}function Ao(t,e){var n=t.type;To(n,t),No(n,e)}function To(t,e){return t=t&&t.toLowerCase(),arguments.length>1?(XE[t]=e,this):XE.hasOwnProperty(t)?XE[t]:null}function No(t,e){return arguments.length>1?(HE[t]=e,this):HE.hasOwnProperty(t)?HE[t]:null}function zo(t){this._key=t||"_id",this._add=[],this._rem=[],this._ext=null,this._get=null,this._q=null}function Ro(t,e){return JE[t](e)}function Oo(t){return function(e){var n=Y({init:"",add:"",rem:"",idx:0},t);return n.out=e||t.name,n}}function Do(t,e){return t.idx-e.idx}function Po(t,e){function n(t,r){function i(e){t[e]||n(t,t[e]=JE[e]())}return r.req&&r.req.forEach(i),e&&r.str&&r.str.forEach(i),t}var r,i=t.reduce(n,t.reduce(function(t,e){return t[e.name]=e,t},{})),a=[];for(r in i)a.push(i[r]);return a.sort(Do)}function qo(t,e){var n=e||jw,r=Po(t,!0),i="this.cell = cell; this.tuple = t; this.valid = 0; this.missing = 0;",a="if(v==null){++this.missing; return;} if(v!==v) return; ++this.valid;",o="if(v==null){--this.missing; return;} if(v!==v) return; --this.valid;",u="var t = this.tuple; var cell = this.cell;";return r.forEach(function(t){t.idx<0?(i=t.init+i,a=t.add+a,o=t.rem+o):(i+=t.init,a+=t.add,o+=t.rem)}),t.slice().sort(Do).forEach(function(t){u+="t['"+t.out+"']="+t.set+";"}),u+="return t;",i=Function("cell","t",i),i.prototype.add=Function("v","t",a),i.prototype.rem=Function("v","t",o),i.prototype.set=Function(u),i.prototype.get=n,i.fields=t.map(function(t){return t.out}),i}function Lo(t){Co.call(this,null,t),this._adds=[],this._mods=[],this._alen=0,this._mlen=0,this._drop=!0,this._dims=[],this._dnames=[],this._measures=[],this._countOnly=!1,this._counts=null,this._prev=null,this._inputs=null,this._outputs=null}function Uo(t,e,n){return n||t+(e?"_"+e:"")}function Fo(t){var e,n=this._dims,r=n.length,i=String(n[0](t));for(e=1;e<r;++e)i+="|"+n[e](t);return i}function jo(t){Co.call(this,null,t)}function Io(t){Co.call(this,[],t)}function $o(t){Xa.call(this,null,Bo,t)}function Bo(t){return this.value&&!t.modified()?this.value:I(t.fields,t.orders)}function Yo(t){Co.call(this,null,t)}function Go(t,e,n){switch(e){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase()}return t.match(n)}function Wo(t){Co.call(this,null,t)}function Ho(t,e,n,r){for(var i,a,o=[],u={},s=t.length,f=0;f<s;++f)for(u[e]=a=t[f],i=0;i<s;++i)u[n]=t[i],r(u)&&(o.push(Ia(u)),u={},u[e]=a);return o}function Xo(t,e){var n=t[nS];tS.hasOwnProperty(n)||R("Unknown distribution function: "+n);var r=tS[n]();for(var i in t)i===rS?r.data((t.from||e()).map(t[i])):i===eS?r[i](t[i].map(function(t){return Xo(t,e)})):typeof r[i]===nS&&r[i](t[i]);return r}function Vo(t){Co.call(this,null,t)}function Jo(t){return function(){return t.materialize(t.SOURCE).source}}function Zo(t){Co.call(this,[+(1/0),-(1/0)],t)}function Qo(t,e){Xa.call(this,t),this.parent=e}function Ko(t){Co.call(this,{},t),this._keys=W();var e=this._targets=[];e.active=0,e.forEach=function(t){for(var n=0,r=e.active;n<r;++n)t(e[n],n,e)}}function tu(t){Xa.call(this,null,eu,t)}function eu(t){return this.value&&!t.modified()?this.value:Lw(t.name)?j(t.name).map(function(t){return L(t)}):L(t.name,t.as)}function nu(t){Co.call(this,W(),t)}function ru(t){Co.call(this,{},t)}function iu(t){return t.fields.join("|")}function au(t){Co.call(this,null,t)}function ou(t){Co.call(this,[],t)}function uu(t){Co.call(this,[],t)}function su(t){var e,n=t.method||oS.value;if(null!=oS[n])return n===oS.value?(e=void 0!==t.value?t.value:0,function(){return e}):oS[n];R("Unrecognized imputation method: "+n)}function fu(t){var e=t.field;return function(t){return t?e(t):NaN}}function cu(t,e,n){var r,i,a,o,u,s,f,c,l,h=function(t){return t(l)},d=[],p=[],g={},v={};for(s=0,c=t.length;s<c;++s)l=t[s],i=(r=n.map(h))+"",f=g[i]||(g[i]=p.push(r)),o=(a=e?e.map(h):uS)+"",(u=v[o])||(u=v[o]=[],d.push(u),u.values=a),u[f-1]=l;return d.domain=p,d}function lu(t){Xa.call(this,null,hu,t)}function hu(t){return this.value&&!t.modified()?this.value:V(t.fields)}function du(t){Co.call(this,{},t)}function pu(t){Xa.call(this,null,gu,t)}function gu(t){if(this.value&&!t.modified())return this.value;var e,n,r,i=+(1/0),a=-(1/0),o=t.extents;for(e=0,n=o.length;e<n;++e)r=o[e],r[0]<i&&(i=r[0]),r[1]>a&&(a=r[1]);return[i,a]}function vu(t){Xa.call(this,null,mu,t)}function mu(t){return this.value&&!t.modified()?this.value:t.values.reduce(function(t,e){return t.concat(e)},[])}function yu(t){Co.call(this,null,t)}function bu(t){Ko.call(this,t)}function _u(t){Co.call(this,null,t)}function xu(t){Co.call(this,null,t)}function wu(t){Co.call(this,null,t)}function Mu(t){Co.call(this,[],t),this.count=0}function ku(t){Co.call(this,[],t)}function Eu(t){Co.call(this,null,t),this.modified(!0)}function Su(t){Co.call(this,W(),t)}function Cu(t){Co.call(this,null,t)}function Au(t){return function(e){var n,r=e[0],i=e[1];return i<r&&(n=r,r=i,i=n),[t.invert(r),t.invert(i)]}}function Tu(t){return function(e){var n,r,i,a,o=t.range(),u=e[0],s=e[1],f=-1;for(s<u&&(r=u,u=s,s=r),i=0,a=o.length;i<a;++i)o[i]>=u&&o[i]<=s&&(f<0&&(f=i),n=i);if(!(f<0))return u=t.invertExtent(o[f]),s=t.invertExtent(o[n]),[void 0===u[0]?u[1]:u[0],void 0===s[1]?s[0]:s[1]]}}function Nu(t,e,n){var r=t-e+2*n;return t?r>0?r:1:0}function zu(t){function e(e){var a=e+"",o=n.get(a);if(!o){if(i!==AS)return i;n.set(a,o=r.push(e))}return t[(o-1)%t.length]}var n=it(),r=[],i=AS;return t=null==t?[]:CS.call(t),e.domain=function(t){if(!arguments.length)return r.slice();r=[],n=it();for(var i,a,o=-1,u=t.length;++o<u;)n.has(a=(i=t[o])+"")||n.set(a,r.push(i));return e},e.range=function(n){return arguments.length?(t=CS.call(n),e):t.slice()},e.unknown=function(t){return arguments.length?(i=t,e):i},e.copy=function(){return zu().domain(r).range(t).unknown(i)},e}function Ru(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ou(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Du(){}function Pu(t){var e;return t=(t+"").trim().toLowerCase(),(e=DS.exec(t))?(e=parseInt(e[1],16),new ju(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=PS.exec(t))?qu(parseInt(e[1],16)):(e=qS.exec(t))?new ju(e[1],e[2],e[3],1):(e=LS.exec(t))?new ju(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=US.exec(t))?Lu(e[1],e[2],e[3],e[4]):(e=FS.exec(t))?Lu(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=jS.exec(t))?Iu(e[1],e[2]/100,e[3]/100,1):(e=IS.exec(t))?Iu(e[1],e[2]/100,e[3]/100,e[4]):$S.hasOwnProperty(t)?qu($S[t]):"transparent"===t?new ju(NaN,NaN,NaN,0):null}function qu(t){return new ju(t>>16&255,t>>8&255,255&t,1)}function Lu(t,e,n,r){return r<=0&&(t=e=n=NaN),new ju(t,e,n,r)}function Uu(t){return t instanceof Du||(t=Pu(t)),t?(t=t.rgb(),new ju(t.r,t.g,t.b,t.opacity)):new ju}function Fu(t,e,n,r){return 1===arguments.length?Uu(t):new ju(t,e,n,null==r?1:r)}function ju(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Iu(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Yu(t,e,n,r)}function $u(t){if(t instanceof Yu)return new Yu(t.h,t.s,t.l,t.opacity);if(t instanceof Du||(t=Pu(t)),!t)return new Yu;if(t instanceof Yu)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,s=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n<r):n===a?(r-e)/u+2:(e-n)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Yu(o,u,s,t.opacity)}function Bu(t,e,n,r){return 1===arguments.length?$u(t):new Yu(t,e,n,null==r?1:r)}function Yu(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Gu(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Wu(t){if(t instanceof Xu)return new Xu(t.l,t.a,t.b,t.opacity);if(t instanceof es){var e=t.h*BS;return new Xu(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof ju||(t=Uu(t));var n=Qu(t.r),r=Qu(t.g),i=Qu(t.b),a=Vu((.4124564*n+.3575761*r+.1804375*i)/WS),o=Vu((.2126729*n+.7151522*r+.072175*i)/HS);return new Xu(116*o-16,500*(a-o),200*(o-Vu((.0193339*n+.119192*r+.9503041*i)/XS)),t.opacity)}function Hu(t,e,n,r){return 1===arguments.length?Wu(t):new Xu(t,e,n,null==r?1:r)}function Xu(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Vu(t){return t>QS?Math.pow(t,1/3):t/ZS+VS}function Ju(t){return t>JS?t*t*t:ZS*(t-VS)}function Zu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Qu(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ku(t){if(t instanceof es)return new es(t.h,t.c,t.l,t.opacity);t instanceof Xu||(t=Wu(t));var e=Math.atan2(t.b,t.a)*YS;return new es(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ts(t,e,n,r){return 1===arguments.length?Ku(t):new es(t,e,n,null==r?1:r)}function es(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function ns(t){if(t instanceof is)return new is(t.h,t.s,t.l,t.opacity);t instanceof ju||(t=Uu(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(oC*r+iC*e-aC*n)/(oC+iC-aC),a=r-i,o=(rC*(n-i)-eC*a)/nC,u=Math.sqrt(o*o+a*a)/(rC*i*(1-i)),s=u?Math.atan2(o,a)*YS-120:NaN;return new is(s<0?s+360:s,u,i,t.opacity)}function rs(t,e,n,r){return 1===arguments.length?ns(t):new is(t,e,n,null==r?1:r)}function is(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function as(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function os(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],a=t[r+1];return as((n-r/e)*e,r>0?t[r-1]:2*i-a,i,a,r<e-1?t[r+2]:2*a-i)}}function us(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e);return as((n-r/e)*e,t[(r+e-1)%e],t[r%e],t[(r+1)%e],t[(r+2)%e])}}function ss(t){return function(){return t}}function fs(t,e){return function(n){return t+n*e}}function cs(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)}}function ls(t,e){var n=e-t;return n?fs(t,n>180||n<-180?n-360*Math.round(n/360):n):ss(isNaN(t)?e:t)}function hs(t){return 1===(t=+t)?ds:function(e,n){return n-e?cs(e,n,t):ss(isNaN(e)?n:e)}}function ds(t,e){var n=e-t;return n?fs(t,n):ss(isNaN(t)?e:t)}function ps(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;n<i;++n)r=Fu(e[n]),a[n]=r.r||0,o[n]=r.g||0,u[n]=r.b||0;return a=t(a),o=t(o),u=t(u),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=u(t),r+""}}}function gs(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(r),o=new Array(r);for(n=0;n<i;++n)a[n]=ws(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function vs(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}}function ms(t,e){return t=+t,e-=t,function(n){return t+e*n}}function ys(t,e){var n,r={},i={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?r[n]=ws(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}function bs(t){return function(){return t}}function _s(t){return function(e){return t(e)+""}}function xs(t,e){var n,r,i,a=gC.lastIndex=vC.lastIndex=0,o=-1,u=[],s=[];for(t+="",e+="";(n=gC.exec(t))&&(r=vC.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:ms(n,r)})),a=vC.lastIndex;return a<e.length&&(i=e.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?s[0]?_s(s[0].x):bs(e):(e=s.length,function(t){for(var n,r=0;r<e;++r)u[(n=s[r]).i]=n.x(t);return u.join("")})}function ws(t,e){var n,r=typeof e;return null==e||"boolean"===r?ss(e):("number"===r?ms:"string"===r?(n=Pu(e))?(e=n,hC):xs:e instanceof Pu?hC:e instanceof Date?vs:Array.isArray(e)?gs:isNaN(e)?ys:ms)(t,e)}function Ms(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}function ks(t,e,n,r,i,a){var o,u,s;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),t*r<e*n&&(t=-t,e=-e,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*mC,skewX:Math.atan(s)*mC,scaleX:o,scaleY:u}}function Es(t){return"none"===t?yC:(uC||(uC=document.createElement("DIV"),sC=document.documentElement,fC=document.defaultView),uC.style.transform=t,t=fC.getComputedStyle(sC.appendChild(uC),null).getPropertyValue("transform"),sC.removeChild(uC),t=t.slice(7,-1).split(","),ks(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function Ss(t){return null==t?yC:(cC||(cC=document.createElementNS("http://www.w3.org/2000/svg","g")),cC.setAttribute("transform",t),(t=cC.transform.baseVal.consolidate())?(t=t.matrix,ks(t.a,t.b,t.c,t.d,t.e,t.f)):yC)}function Cs(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function a(t,r,i,a,o,u){if(t!==i||r!==a){var s=o.push("translate(",null,e,null,n);u.push({i:s-4,x:ms(t,i)},{i:s-2,x:ms(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}function o(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:ms(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function u(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:ms(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function s(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:ms(t,n)},{i:u-2,x:ms(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),a(e.translateX,e.translateY,n.translateX,n.translateY,r,i),o(e.rotate,n.rotate,r,i),u(e.skewX,n.skewX,r,i),s(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){for(var e,n=-1,a=i.length;++n<a;)r[(e=i[n]).i]=e.x(t);return r.join("")}}}function As(t){return((t=Math.exp(t))+1/t)/2}function Ts(t){return((t=Math.exp(t))-1/t)/2}function Ns(t){return((t=Math.exp(2*t))-1)/(t+1)}function zs(t,e){var n,r,i=t[0],a=t[1],o=t[2],u=e[0],s=e[1],f=e[2],c=u-i,l=s-a,h=c*c+l*l;if(h<kC)r=Math.log(f/o)/xC,n=function(t){return[i+t*c,a+t*l,o*Math.exp(xC*t*r)]};else{var d=Math.sqrt(h),p=(f*f-o*o+MC*h)/(2*o*wC*d),g=(f*f-o*o-MC*h)/(2*f*wC*d),v=Math.log(Math.sqrt(p*p+1)-p);r=(Math.log(Math.sqrt(g*g+1)-g)-v)/xC,n=function(t){var e=t*r,n=As(v),u=o/(wC*d)*(n*Ns(xC*e+v)-Ts(v));return[i+u*c,a+u*l,o*n/As(xC*e+v)]}}return n.duration=1e3*r,n}function Rs(t){return function(e,n){var r=t((e=Bu(e)).h,(n=Bu(n)).h),i=ds(e.s,n.s),a=ds(e.l,n.l),o=ds(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}function Os(t,e){var n=ds((t=Hu(t)).l,(e=Hu(e)).l),r=ds(t.a,e.a),i=ds(t.b,e.b),a=ds(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+""}}function Ds(t){return function(e,n){var r=t((e=ts(e)).h,(n=ts(n)).h),i=ds(e.c,n.c),a=ds(e.l,n.l),o=ds(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}function Ps(t){return function e(n){function r(e,r){var i=t((e=rs(e)).h,(r=rs(r)).h),a=ds(e.s,r.s),o=ds(e.l,r.l),u=ds(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}function qs(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}function Ls(t){return function(){return t}}function Us(t){return+t}function Fs(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Ls(e)}function js(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}function Is(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}function $s(t,e,n,r){var i=t[0],a=t[1],o=e[0],u=e[1];return a<i?(i=n(a,i),o=r(u,o)):(i=n(i,a),o=r(o,u)),function(t){return o(i(t))}}function Bs(t,e,n,r){var i=Math.min(t.length,e.length)-1,a=new Array(i),o=new Array(i),u=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++u<i;)a[u]=n(t[u],t[u+1]),o[u]=r(e[u],e[u+1]);return function(e){var n=Rw(t,e,1,i)-1;return o[n](a[n](e))}}function Ys(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function Gs(t,e){function n(){return i=Math.min(u.length,s.length)>2?Bs:$s,a=o=null,r}function r(e){return(a||(a=i(u,s,c?js(t):t,f)))(+e)}var i,a,o,u=RC,s=RC,f=ws,c=!1;return r.invert=function(t){return(o||(o=i(s,u,Fs,c?Is(e):e)))(+t)},r.domain=function(t){return arguments.length?(u=SS.call(t,Us),n()):u.slice()},r.range=function(t){return arguments.length?(s=CS.call(t),n()):s.slice()},r.rangeRound=function(t){return s=CS.call(t),f=Ms,n()},r.clamp=function(t){return arguments.length?(c=!!t,n()):c},r.interpolate=function(t){return arguments.length?(f=t,n()):f},n()}function Ws(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Hs(t){return t=Ws(Math.abs(t)),t?t[1]:NaN}function Xs(t,e){return function(n,r){for(var i=n.length,a=[],o=0,u=t[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),a.push(n.substring(i-=u,i+u)),!((s+=u+1)>r));)u=t[o=(o+1)%t.length];return a.reverse().join(e)}}function Vs(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}function Js(t,e){t=t.toPrecision(e);t:for(var n,r=t.length,i=1,a=-1;i<r;++i)switch(t[i]){case".":a=n=i;break;case"0":0===a&&(a=i),n=i;break;case"e":break t;default:a>0&&(a=0)}return a>0?t.slice(0,a)+t.slice(n+1):t}function Zs(t,e){var n=Ws(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(lC=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Ws(t,Math.max(0,e+a-1))[0]}function Qs(t,e){var n=Ws(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")}function Ks(t){return new tf(t)}function tf(t){if(!(e=DC.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",a=e[4]||"",o=!!e[5],u=e[6]&&+e[6],s=!!e[7],f=e[8]&&+e[8].slice(1),c=e[9]||"";"n"===c?(s=!0,c="g"):OC[c]||(c=""),(o||"0"===n&&"="===r)&&(o=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=a,this.zero=o,this.width=u,this.comma=s,this.precision=f,this.type=c}function ef(t){return t}function nf(t){function e(t){function e(t){var e,i,f,b=g,_=v;if("c"===p)_=m(t)+_,t="";else{t=+t;var x=t<0;if(t=m(Math.abs(t),d),x&&0===+t&&(x=!1),b=(x?"("===s?s:"-":"-"===s||"("===s?"":s)+b,_=_+("s"===p?UC[8+lC/3]:"")+(x&&"("===s?")":""),y)for(e=-1,i=t.length;++e<i;)if(f=t.charCodeAt(e),48>f||f>57){_=(46===f?a+t.slice(e+1):t.slice(e))+_,t=t.slice(0,e);break}}h&&!c&&(t=r(t,1/0));var w=b.length+t.length+_.length,M=w<l?new Array(l-w+1).join(n):"";switch(h&&c&&(t=r(M+t,M.length?l-_.length:1/0),M=""),u){case"<":t=b+t+_+M;break;case"=":t=b+M+t+_;break;case"^":t=M.slice(0,w=M.length>>1)+b+t+_+M.slice(w);break;default:t=M+b+t+_}return o(t)}t=Ks(t);var n=t.fill,u=t.align,s=t.sign,f=t.symbol,c=t.zero,l=t.width,h=t.comma,d=t.precision,p=t.type,g="$"===f?i[0]:"#"===f&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",v="$"===f?i[1]:/[%p]/.test(p)?"%":"",m=OC[p],y=!p||/[defgprs%]/.test(p);return d=null==d?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),e.toString=function(){return t+""},e}function n(t,n){var r=e((t=Ks(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Hs(n)/3))),a=Math.pow(10,-i),o=UC[8+i/3];return function(t){return r(a*t)+o}}var r=t.grouping&&t.thousands?Xs(t.grouping,t.thousands):ef,i=t.currency,a=t.decimal,o=t.numerals?Vs(t.numerals):ef;return{format:e,formatPrefix:n}}function rf(t){return PC=nf(t),qC=PC.format,LC=PC.formatPrefix,PC}function af(t){return Math.max(0,-Hs(Math.abs(t)))}function of(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Hs(e)/3)))-Hs(Math.abs(t)))}function uf(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Hs(e)-Hs(t))+1}function sf(t,e,n){var r,i=t[0],a=t[t.length-1],o=h(i,a,null==e?10:e);switch(n=Ks(null==n?",f":n),n.type){case"s":var u=Math.max(Math.abs(i),Math.abs(a));return null!=n.precision||isNaN(r=of(o,u))||(n.precision=r),LC(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=uf(o,Math.max(Math.abs(i),Math.abs(a))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=af(o))||(n.precision=r-2*("%"===n.type))}return qC(n)}function ff(t){var e=t.domain;return t.ticks=function(t){var n=e();return l(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return sf(e(),t,n)},t.nice=function(n){var r=e(),i=r.length-1,a=null==n?10:n,o=r[0],u=r[i],s=h(o,u,a);return s&&(s=h(Math.floor(o/s)*s,Math.ceil(u/s)*s,a),r[0]=Math.floor(o/s)*s,r[i]=Math.ceil(u/s)*s,e(r)),t},t}function cf(){var t=Gs(Fs,ms);return t.copy=function(){return Ys(t,cf())},ff(t)}function lf(){function t(t){return+t}var e=[0,1];return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=SS.call(n,Us),t):e.slice()},t.copy=function(){return lf().domain(e)},ff(t)}function hf(t,e){t=t.slice();var n,r=0,i=t.length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function df(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:Ls(e)}function pf(t,e){return t<0?function(n){return-Math.pow(-e,n)*Math.pow(-t,1-n)}:function(n){return Math.pow(e,n)*Math.pow(t,1-n)}}function gf(t){return isFinite(t)?+("1e"+t):t<0?0:t}function vf(t){return 10===t?gf:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function mf(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function yf(t){return function(e){return-t(-e)}}function bf(){function t(){return i=mf(r),a=vf(r),n()[0]<0&&(i=yf(i),a=yf(a)),e}var e=Gs(df,pf).domain([1,10]),n=e.domain,r=10,i=mf(10),a=vf(10);return e.base=function(e){return arguments.length?(r=+e,t()):r},e.domain=function(e){return arguments.length?(n(e),t()):n()},e.ticks=function(t){var e,o=n(),u=o[0],s=o[o.length-1];(e=s<u)&&(d=u,u=s,s=d);var f,c,h,d=i(u),p=i(s),g=null==t?10:+t,v=[];if(!(r%1)&&p-d<g){if(d=Math.round(d)-1,p=Math.round(p)+1,u>0){for(;d<p;++d)for(c=1,f=a(d);c<r;++c)if(h=f*c,!(h<u)){if(h>s)break;v.push(h)}}else for(;d<p;++d)for(c=r-1,f=a(d);c>=1;--c)if(h=f*c,!(h<u)){if(h>s)break;v.push(h)}}else v=l(d,p,Math.min(p-d,g)).map(a);return e?v.reverse():v},e.tickFormat=function(t,n){if(null==n&&(n=10===r?".0e":","),"function"!=typeof n&&(n=qC(n)),t===1/0)return n;null==t&&(t=10);var o=Math.max(1,r*t/e.ticks().length);return function(t){var e=t/a(Math.round(i(t)));return e*r<r-.5&&(e*=r),e<=o?n(t):""}},e.nice=function(){return n(hf(n(),{floor:function(t){return a(Math.floor(i(t)))},ceil:function(t){return a(Math.ceil(i(t)))}}))},e.copy=function(){return Ys(e,bf().base(r))},e}function _f(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function xf(){function t(t,e){return(e=_f(e,n)-(t=_f(t,n)))?function(r){return(_f(r,n)-t)/e}:Ls(e)}function e(t,e){return e=_f(e,n)-(t=_f(t,n)),function(r){return _f(t+e*r,1/n)}}var n=1,r=Gs(t,e),i=r.domain;return r.exponent=function(t){return arguments.length?(n=+t,i(i())):n},r.copy=function(){return Ys(r,xf().exponent(n))},ff(r)}function wf(){return xf().exponent(.5)}function Mf(){function t(){var t=0,i=Math.max(1,r.length);for(a=new Array(i-1);++t<i;)a[t-1]=d(n,t/i);return e}function e(t){if(!isNaN(t=+t))return r[Rw(a,t)]}var n=[],r=[],a=[];return e.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[e>0?a[e-1]:n[0],e<a.length?a[e]:n[n.length-1]]},e.domain=function(e){if(!arguments.length)return n.slice();n=[];for(var r,a=0,o=e.length;a<o;++a)r=e[a],null==r||isNaN(r=+r)||n.push(r);return n.sort(i),t()},e.range=function(e){return arguments.length?(r=CS.call(e),t()):r.slice()},e.quantiles=function(){return a.slice()},e.copy=function(){return Mf().domain(n).range(r)},e}function kf(){function t(t){if(t<=t)return o[Rw(a,t,0,i)]}function e(){var e=-1;for(a=new Array(i);++e<i;)a[e]=((e+1)*r-(e-i)*n)/(i+1);return t}var n=0,r=1,i=1,a=[.5],o=[0,1];return t.domain=function(t){return arguments.length?(n=+t[0],r=+t[1],e()):[n,r]},t.range=function(t){return arguments.length?(i=(o=CS.call(t)).length-1,e()):o.slice()},t.invertExtent=function(t){var e=o.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,a[0]]:e>=i?[a[i-1],r]:[a[e-1],a[e]]},t.copy=function(){return kf().domain([n,r]).range(o)},ff(t)}function Ef(){function t(t){if(t<=t)return n[Rw(e,t,0,r)]}var e=[.5],n=[0,1],r=1;return t.domain=function(i){return arguments.length?(e=CS.call(i),r=Math.min(e.length,n.length-1),t):e.slice()},t.range=function(i){return arguments.length?(n=CS.call(i),r=Math.min(e.length,n.length-1),t):n.slice()},t.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},t.copy=function(){return Ef().domain(e).range(n)},t}function Sf(t){return new Date(t)}function Cf(t){return t instanceof Date?+t:+new Date(+t)}function Af(t,e,n,r,i,o,u,s,f){function c(a){return(u(a)<a?v:o(a)<a?m:i(a)<a?y:r(a)<a?b:e(a)<a?n(a)<a?_:x:t(a)<a?w:M)(a)}function l(e,n,r,i){if(null==e&&(e=10),"number"==typeof e){var o=Math.abs(r-n)/e,u=a(function(t){return t[2]}).right(k,o);u===k.length?(i=h(n/GC,r/GC,e),e=t):u?(u=k[o/k[u-1][2]<k[u][2]/o?u-1:u],i=u[1],e=u[0]):(i=h(n,r,e),e=s)}return null==i?e:e.every(i)}var d=Gs(Fs,ms),p=d.invert,g=d.domain,v=f(".%L"),m=f(":%S"),y=f("%I:%M"),b=f("%I %p"),_=f("%a %d"),x=f("%b %d"),w=f("%B"),M=f("%Y"),k=[[u,1,FC],[u,5,5*FC],[u,15,15*FC],[u,30,30*FC],[o,1,jC],[o,5,5*jC],[o,15,15*jC],[o,30,30*jC],[i,1,IC],[i,3,3*IC],[i,6,6*IC],[i,12,12*IC],[r,1,$C],[r,2,2*$C],[n,1,BC],[e,1,YC],[e,3,3*YC],[t,1,GC]];return d.invert=function(t){return new Date(p(t))},d.domain=function(t){return arguments.length?g(SS.call(t,Cf)):g().map(Sf)},d.ticks=function(t,e){var n,r=g(),i=r[0],a=r[r.length-1],o=a<i;return o&&(n=i,i=a,a=n),n=l(t,i,a,e),n=n?n.range(i,a+1):[],o?n.reverse():n},d.tickFormat=function(t,e){return null==e?c:f(e)},d.nice=function(t,e){var n=g();return(t=l(t,n[0],n[n.length-1],e))?g(hf(n,t)):d},d.copy=function(){return Ys(d,Af(t,e,n,r,i,o,u,s,f))},d}function Tf(){return Af(_M,bM,mM,vM,gM,pM,dM,uM,TM).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function Nf(){return Af(CM,SM,kM,MM,wM,xM,dM,uM,zM).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function zf(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}function Rf(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function Of(){function t(){var t=i().length,r=o[1]<o[0],h=o[r-0],d=o[1-r];e=(d-h)/(Nu(t,s,f)||1),u&&(e=Math.floor(e)),h+=(d-h-e*(t-s))*l,n=e*(1-s),u&&(h=Math.round(h),n=Math.round(n));var p=c(t).map(function(t){return h+e*t});return a(r?p.reverse():p)}var e,n,r=zu().unknown(void 0),i=r.domain,a=r.range,o=[0,1],u=!1,s=0,f=0,l=.5;return delete r.unknown,r.domain=function(e){return arguments.length?(i(e),t()):i()},r.range=function(e){return arguments.length?(o=[+e[0],+e[1]],t()):o.slice()},r.rangeRound=function(e){return o=[+e[0],+e[1]],u=!0,t()},r.bandwidth=function(){return n},r.step=function(){return e},r.round=function(e){return arguments.length?(u=!!e,t()):u},r.padding=function(e){return arguments.length?(s=f=Math.max(0,Math.min(1,e)),t()):s},r.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),t()):s},r.paddingOuter=function(e){return arguments.length?(f=Math.max(0,Math.min(1,e)),t()):f},r.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),t()):l},r.invertRange=function(t){var e,r,u,s=+t[0],f=+t[1],c=o[1]<o[0],l=c?a().reverse():a(),h=l.length-1;if(f<s&&(u=s,s=f,f=u),!(f<l[0]||s>o[1-c]))return e=Math.max(0,Rw(l,s)-1),r=s===f?e:Rw(l,f)-1,s-l[e]>n+1e-10&&++e,c&&(u=e,e=h-r,r=h-u),e>r?void 0:i().slice(e,r+1)},r.invert=function(t){var e=r.invertRange([t,t]);return e?e[0]:e},r.copy=function(){return Of().domain(i()).range(o).round(u).paddingInner(s).paddingOuter(f).align(l)},t()}function Df(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,
  t.copy=function(){return Df(e())},t}function Pf(){return Df(Of().paddingInner(1))}function qf(t){return tA.call(t,function(t){return+t})}function Lf(){function t(t){return null==t||t!==t?void 0:n(r[Math.max(Rw(r,t),1)-1])}function e(t){r=qf(t),n.domain([r[0],K(r)])}var n=cf(),r=[];return t.domain=function(n){return arguments.length?(e(n),t):r.slice()},t.range=function(e){return arguments.length?(n.range(e),t):n.range()},t.rangeRound=function(e){return arguments.length?(n.rangeRound(e),t):n.rangeRound()},t.interpolate=function(e){return arguments.length?(n.interpolate(e),t):n.interpolate()},t.ticks=function(e){var n=r.length,i=~~(n/(e||n));return i<2?t.domain():r.filter(function(t,e){return!(e%i)})},t.tickFormat=function(){return n.tickFormat.apply(n,arguments)},t.copy=function(){return Lf().domain(t.domain()).range(t.range())},t}function Uf(){function t(t){return null==t||t!==t?void 0:n[(Rw(e,t)-1)%n.length]}var e=[],n=[];return t.domain=function(n){return arguments.length?(e=qf(n),t):e.slice()},t.range=function(e){return arguments.length?(n=eA.call(e),t):n.slice()},t.copy=function(){return Uf().domain(t.domain()).range(t.range())},t}function Ff(t){function e(){var t=r.domain();i=t[0],a=K(t)-i}function n(e){var n=(e-i)/a;return t(o?Math.max(0,Math.min(1,n)):n)}var r=cf(),i=0,a=1,o=!1;return n.clamp=function(t){return arguments.length?(o=!!t,n):o},n.domain=function(t){return arguments.length?(r.domain(t),e(),n):r.domain()},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Ff().domain(r.domain()).clamp(o).interpolator(t)},n.ticks=function(t){return r.ticks(t)},n.tickFormat=function(t,e){return r.tickFormat(t,e)},n.nice=function(t){return r.nice(t),e(),n},n}function jf(t,e){return function(){var n=e();return n.invertRange||(n.invertRange=n.invert?Au(n):n.invertExtent?Tu(n):void 0),n.type=t,n}}function If(t,e){return arguments.length>1?(nA[t]=jf(t,e),this):nA.hasOwnProperty(t)?nA[t]:void 0}function $f(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}function Bf(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}function Yf(t){return dC(t[t.length-1])}function Gf(t,e){mT[t]=gT["interpolate"+e],vT[t]=gT["scheme"+e]}function Wf(t,e){if(arguments.length>1)return mT[t]=e,this;var n=t.split("-");return t=n[0],n=+n[1]+1,n&&vT.hasOwnProperty(t)?vT[t][n-1]:!n&&mT.hasOwnProperty(t)?mT[t]:void 0}function Hf(t,e){var n=e[0],r=K(e)-n;return function(e){return t(n+e*r)}}function Xf(t,e,n){return"linear"===t.type||"sequential"===t.type?function(t){return(t-e)/(n-e)}:t.copy().domain([e,n]).range([0,1]).interpolate(Vf)}function Vf(t,e){var n=e-t;return function(e){return t+e*n}}function Jf(t,e){var n=zC[Zf(t)];return null!=e&&n&&n.gamma?n.gamma(e):n}function Zf(t){return"interpolate"+t.toLowerCase().split("-").map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("")}function Qf(t){Co.call(this,null,t)}function Kf(t){Co.call(this,null,t)}function tc(t){Co.call(this,null,t)}function ec(t,e){var n=function(n){return t(e(n))};return n.context=function(e){return t.context(e),n},n}function nc(){return new rc}function rc(){this.reset()}function ic(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}function ac(t){return t>1?0:t<-1?AT:Math.acos(t)}function oc(t){return t>1?TT:t<-1?-TT:Math.asin(t)}function uc(){}function sc(t,e){t&&HT.hasOwnProperty(t.type)&&HT[t.type](t,e)}function fc(t,e,n){var r,i=-1,a=t.length-n;for(e.lineStart();++i<a;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function cc(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)fc(t[n],e,1);e.polygonEnd()}function lc(t,e){t&&WT.hasOwnProperty(t.type)?WT[t.type](t,e):sc(t,e)}function hc(t){return[qT(t[1],t[0]),oc(t[2])]}function dc(t){var e=t[0],n=t[1],r=LT(n);return[r*LT(e),r*$T(e),$T(n)]}function pc(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function gc(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 vc(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function mc(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function yc(t){var e=YT(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function bc(t,e){return(e-=t)<0?e+360:e}function _c(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return n=e.invert(n,r),n&&t.invert(n[0],n[1])}),n}function xc(t,e){return[t>AT?t-zT:t<-AT?t+zT:t,e]}function wc(t,e,n){return(t%=zT)?e||n?_c(kc(t),Ec(e,n)):kc(t):e||n?Ec(e,n):xc}function Mc(t){return function(e,n){return e+=t,[e>AT?e-zT:e<-AT?e+zT:e,n]}}function kc(t){var e=Mc(t);return e.invert=Mc(-t),e}function Ec(t,e){function n(t,e){var n=LT(e),u=LT(t)*n,s=$T(t)*n,f=$T(e),c=f*r+u*i;return[qT(s*a-c*o,u*r-f*i),oc(c*a+s*o)]}var r=LT(t),i=$T(t),a=LT(e),o=$T(e);return n.invert=function(t,e){var n=LT(e),u=LT(t)*n,s=$T(t)*n,f=$T(e),c=f*a-s*o;return[qT(s*a+f*o,u*r+c*i),oc(c*r-u*i)]},n}function Sc(t,e,n,r,i,a){if(n){var o=LT(e),u=$T(e),s=r*n;null==i?(i=e+r*zT,a=e-s/2):(i=Cc(o,i),a=Cc(o,a),(r>0?i<a:i>a)&&(i+=r*zT));for(var f,c=i;r>0?c>a:c<a;c-=s)f=hc([o,-u*LT(c),-u*$T(c)]),t.point(f[0],f[1])}}function Cc(t,e){e=dc(e),e[0]-=t,yc(e);var n=ac(-e[1]);return((-e[2]<0?-n:n)+zT-CT)%zT}function Ac(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:uc,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Tc(t,e,n,r,i,a){var o,u=t[0],s=t[1],f=e[0],c=e[1],l=0,h=1,d=f-u,p=c-s;if(o=n-u,d||!(o>0)){if(o/=d,d<0){if(o<l)return;o<h&&(h=o)}else if(d>0){if(o>h)return;o>l&&(l=o)}if(o=i-u,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>l&&(l=o)}else if(d>0){if(o<l)return;o<h&&(h=o)}if(o=r-s,p||!(o>0)){if(o/=p,p<0){if(o<l)return;o<h&&(h=o)}else if(p>0){if(o>h)return;o>l&&(l=o)}if(o=a-s,p||!(o<0)){if(o/=p,p<0){if(o>h)return;o>l&&(l=o)}else if(p>0){if(o<l)return;o<h&&(h=o)}return l>0&&(t[0]=u+l*d,t[1]=s+l*p),h<1&&(e[0]=u+h*d,e[1]=s+h*p),!0}}}}}function Nc(t,e){return DT(t[0]-e[0])<CT&&DT(t[1]-e[1])<CT}function zc(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Rc(t,e,n,r,i){var a,o,u=[],s=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],o=t[e];if(Nc(r,o)){for(i.lineStart(),a=0;a<e;++a)i.point((r=t[a])[0],r[1]);return void i.lineEnd()}u.push(n=new zc(r,t,null,!0)),s.push(n.o=new zc(r,null,n,!1)),u.push(n=new zc(o,t,null,!1)),s.push(n.o=new zc(o,null,n,!0))}}),u.length){for(s.sort(e),Oc(u),Oc(s),a=0,o=s.length;a<o;++a)s[a].e=n=!n;for(var f,c,l=u[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;f=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(a=0,o=f.length;a<o;++a)i.point((c=f[a])[0],c[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(f=h.p.z,a=f.length-1;a>=0;--a)i.point((c=f[a])[0],c[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,f=h.z,d=!d}while(!h.v);i.lineEnd()}}}function Oc(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function Dc(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,u,f){var c=0,l=0;if(null==i||(c=o(i,u))!==(l=o(a,u))||s(i,a)<0^u>0){do f.point(0===c||3===c?t:n,c>1?r:e);while((c=(c+u+4)%4)!==l)}else f.point(a[0],a[1])}function o(r,i){return DT(r[0]-t)<CT?i>0?0:3:DT(r[0]-n)<CT?i>0?2:1:DT(r[1]-e)<CT?i>0?1:0:i>0?3:2}function u(t,e){return s(t.x,e.x)}function s(t,e){var n=o(t,1),r=o(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(o){function s(t,e){i(t,e)&&C.point(t,e)}function f(){for(var e=0,n=0,i=v.length;n<i;++n)for(var a,o,u=v[n],s=1,f=u.length,c=u[0],l=c[0],h=c[1];s<f;++s)a=l,o=h,c=u[s],l=c[0],h=c[1],o<=r?h>r&&(l-a)*(r-o)>(h-o)*(t-a)&&++e:h<=r&&(l-a)*(r-o)<(h-o)*(t-a)&&--e;return e}function c(){C=A,g=[],v=[],S=!0}function l(){var t=f(),e=S&&t,n=(g=m(g)).length;(e||n)&&(o.polygonStart(),e&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),n&&Rc(g,u,t,a,o),o.polygonEnd()),C=o,g=v=y=null}function h(){T.point=p,v&&v.push(y=[]),E=!0,k=!1,w=M=NaN}function d(){g&&(p(b,_),x&&k&&A.rejoin(),g.push(A.result())),T.point=s,k&&C.lineEnd()}function p(a,o){var u=i(a,o);if(v&&y.push([a,o]),E)b=a,_=o,x=u,E=!1,u&&(C.lineStart(),C.point(a,o));else if(u&&k)C.point(a,o);else{var s=[w=Math.max(rN,Math.min(nN,w)),M=Math.max(rN,Math.min(nN,M))],f=[a=Math.max(rN,Math.min(nN,a)),o=Math.max(rN,Math.min(nN,o))];Tc(s,f,t,e,n,r)?(k||(C.lineStart(),C.point(s[0],s[1])),C.point(f[0],f[1]),u||C.lineEnd(),S=!1):u&&(C.lineStart(),C.point(a,o),S=!1)}w=a,M=o,k=u}var g,v,y,b,_,x,w,M,k,E,S,C=o,A=Ac(),T={point:s,lineStart:h,lineEnd:d,polygonStart:c,polygonEnd:l};return T}}function Pc(t,e){var n=e[0],r=e[1],i=[$T(n),-LT(n),0],a=0,o=0;iN.reset();for(var u=0,s=t.length;u<s;++u)if(c=(f=t[u]).length)for(var f,c,l=f[c-1],h=l[0],d=l[1]/2+NT,p=$T(d),g=LT(d),v=0;v<c;++v,h=y,p=_,g=x,l=m){var m=f[v],y=m[0],b=m[1]/2+NT,_=$T(b),x=LT(b),w=y-h,M=w>=0?1:-1,k=M*w,E=k>AT,S=p*_;if(iN.add(qT(S*M*$T(k),g*x+S*LT(k))),a+=E?w+M*zT:w,E^h>=n^y>=n){var C=gc(dc(l),dc(m));yc(C);var A=gc(i,C);yc(A);var T=(E^w>=0?-1:1)*oc(A[2]);(r>T||r===T&&(C[0]||C[1]))&&(o+=E^w>=0?1:-1)}}return(a<-CT||a<CT&&iN<-CT)^1&o}function qc(t,e,n){var r=c(t,e-CT,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function Lc(t,e,n){var r=c(t,e-CT,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function Uc(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return c(UT(a/m)*m,i,m).map(d).concat(c(UT(f/y)*y,s,y).map(p)).concat(c(UT(r/g)*g,n,g).filter(function(t){return DT(t%m)>CT}).map(l)).concat(c(UT(u/v)*v,o,v).filter(function(t){return DT(t%y)>CT}).map(h))}var n,r,i,a,o,u,s,f,l,h,d,p,g=10,v=g,m=90,y=360,b=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[d(a).concat(p(s).slice(1),d(i).reverse().slice(1),p(f).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.extentMajor(e).extentMinor(e):t.extentMinor()},t.extentMajor=function(e){return arguments.length?(a=+e[0][0],i=+e[1][0],f=+e[0][1],s=+e[1][1],a>i&&(e=a,a=i,i=e),f>s&&(e=f,f=s,s=e),t.precision(b)):[[a,f],[i,s]]},t.extentMinor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],o=+e[1][1],r>n&&(e=r,r=n,n=e),u>o&&(e=u,u=o,o=e),t.precision(b)):[[r,u],[n,o]]},t.step=function(e){return arguments.length?t.stepMajor(e).stepMinor(e):t.stepMinor()},t.stepMajor=function(e){return arguments.length?(m=+e[0],y=+e[1],t):[m,y]},t.stepMinor=function(e){return arguments.length?(g=+e[0],v=+e[1],t):[g,v]},t.precision=function(e){return arguments.length?(b=+e,l=qc(u,o,90),h=Lc(r,n,b),d=qc(f,s,90),p=Lc(a,i,b),t):b},t.extentMajor([[-180,-90+CT],[180,90-CT]]).extentMinor([[-180,-80-CT],[180,80+CT]])}function Fc(t){return t}function jc(){uN.point=Ic}function Ic(t,e){uN.point=$c,XT=JT=t,VT=ZT=e}function $c(t,e){oN.add(ZT*t-JT*e),JT=t,ZT=e}function Bc(){$c(XT,VT)}function Yc(t,e){t<sN&&(sN=t),t>cN&&(cN=t),e<fN&&(fN=e),e>lN&&(lN=e)}function Gc(t,e){dN+=t,pN+=e,++gN}function Wc(){wN.point=Hc}function Hc(t,e){wN.point=Xc,Gc(tN=t,eN=e)}function Xc(t,e){var n=t-tN,r=e-eN,i=YT(n*n+r*r);vN+=i*(tN+t)/2,mN+=i*(eN+e)/2,yN+=i,Gc(tN=t,eN=e)}function Vc(){wN.point=Gc}function Jc(){wN.point=Qc}function Zc(){Kc(QT,KT)}function Qc(t,e){wN.point=Kc,Gc(QT=tN=t,KT=eN=e)}function Kc(t,e){var n=t-tN,r=e-eN,i=YT(n*n+r*r);vN+=i*(tN+t)/2,mN+=i*(eN+e)/2,yN+=i,i=eN*t-tN*e,bN+=i*(tN+t),_N+=i*(eN+e),xN+=3*i,Gc(tN=t,eN=e)}function tl(t){this._context=t}function el(t,e){TN.point=nl,kN=SN=t,EN=CN=e}function nl(t,e){SN-=t,CN-=e,AN.add(YT(SN*SN+CN*CN)),SN=t,CN=e}function rl(){this._string=[]}function il(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function al(t,e){function n(t){return t&&("function"==typeof a&&i.pointRadius(+a.apply(this,arguments)),lc(t,r(i))),i.result()}var r,i,a=4.5;return n.area=function(t){return lc(t,r(uN)),uN.result()},n.measure=function(t){return lc(t,r(TN)),TN.result()},n.bounds=function(t){return lc(t,r(hN)),hN.result()},n.centroid=function(t){return lc(t,r(wN)),wN.result()},n.projection=function(e){return arguments.length?(r=null==e?(t=null,Fc):(t=e).stream,n):t},n.context=function(t){return arguments.length?(i=null==t?(e=null,new rl):new tl(e=t),"function"!=typeof a&&i.pointRadius(a),n):e},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(i.pointRadius(+t),+t),n):a},n.projection(t).context(e)}function ol(t,e,n,r){return function(i,a){function o(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&a.point(e,n)}function u(t,e){var n=i(t,e);v.point(n[0],n[1])}function s(){w.point=u,v.lineStart()}function f(){w.point=o,v.lineEnd()}function c(t,e){g.push([t,e]);var n=i(t,e);_.point(n[0],n[1])}function l(){_.lineStart(),g=[]}function h(){c(g[0][0],g[0][1]),_.lineEnd();var t,e,n,r,i=_.clean(),o=b.result(),u=o.length;if(g.pop(),d.push(g),g=null,u)if(1&i){if(n=o[0],(e=n.length-1)>0){for(x||(a.polygonStart(),x=!0),a.lineStart(),t=0;t<e;++t)a.point((r=n[t])[0],r[1]);a.lineEnd()}}else u>1&&2&i&&o.push(o.pop().concat(o.shift())),p.push(o.filter(ul))}var d,p,g,v=e(a),y=i.invert(r[0],r[1]),b=Ac(),_=e(b),x=!1,w={point:o,lineStart:s,lineEnd:f,polygonStart:function(){w.point=c,w.lineStart=l,w.lineEnd=h,p=[],d=[]},polygonEnd:function(){w.point=o,w.lineStart=s,w.lineEnd=f,p=m(p);var t=Pc(d,y);p.length?(x||(a.polygonStart(),x=!0),Rc(p,sl,t,n,a)):t&&(x||(a.polygonStart(),x=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),x&&(a.polygonEnd(),x=!1),p=d=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}};return w}}function ul(t){return t.length>1}function sl(t,e){return((t=t.x)[0]<0?t[1]-TT-CT:TT-t[1])-((e=e.x)[0]<0?e[1]-TT-CT:TT-e[1])}function fl(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var u=a>0?AT:-AT,s=DT(a-n);DT(s-AT)<CT?(t.point(n,r=(r+o)/2>0?TT:-TT),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),e=0):i!==u&&s>=AT&&(DT(n-i)<CT&&(n-=i*CT),DT(a-u)<CT&&(a-=u*CT),r=cl(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=a,r=o),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}function cl(t,e,n,r){var i,a,o=$T(t-n);return DT(o)>CT?PT(($T(e)*(a=LT(r))*$T(n)-$T(r)*(i=LT(e))*$T(t))/(i*a*o)):(e+r)/2}function ll(t,e,n,r){var i;if(null==t)i=n*TT,r.point(-AT,i),r.point(0,i),r.point(AT,i),r.point(AT,0),r.point(AT,-i),r.point(0,-i),r.point(-AT,-i),r.point(-AT,0),r.point(-AT,i);else if(DT(t[0]-e[0])>CT){var a=t[0]<e[0]?AT:-AT;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(e[0],e[1])}function hl(t,e){function n(n,r,i,a){Sc(a,t,e,i,n,r)}function r(t,e){return LT(t)*LT(e)>u}function i(t){var e,n,i,u,c;return{lineStart:function(){u=i=!1,c=1},point:function(l,h){var d,p=[l,h],g=r(l,h),v=s?g?0:o(l,h):g?o(l+(l<0?AT:-AT),h):0;if(!e&&(u=i=g)&&t.lineStart(),g!==i&&(d=a(e,p),(Nc(e,d)||Nc(p,d))&&(p[0]+=CT,p[1]+=CT,g=r(p[0],p[1]))),g!==i)c=0,g?(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(f&&e&&s^g){var m;v&n||!(m=a(p,e,!0))||(c=0,s?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||e&&Nc(e,p)||t.point(p[0],p[1]),e=p,i=g,n=v},lineEnd:function(){i&&t.lineEnd(),e=null},clean:function(){return c|(u&&i)<<1}}}function a(t,e,n){var r=dc(t),i=dc(e),a=[1,0,0],o=gc(r,i),s=pc(o,o),f=o[0],c=s-f*f;if(!c)return!n&&t;var l=u*s/c,h=-u*f/c,d=gc(a,o),p=mc(a,l);vc(p,mc(o,h));var g=d,v=pc(p,g),m=pc(g,g),y=v*v-m*(pc(p,p)-1);if(!(y<0)){var b=YT(y),_=mc(g,(-v-b)/m);if(vc(_,p),_=hc(_),!n)return _;var x,w=t[0],M=e[0],k=t[1],E=e[1];M<w&&(x=w,w=M,M=x);var S=M-w,C=DT(S-AT)<CT,A=C||S<CT;if(!C&&E<k&&(x=k,k=E,E=x),A?C?k+E>0^_[1]<(DT(_[0]-w)<CT?k:E):k<=_[1]&&_[1]<=E:S>AT^(w<=_[0]&&_[0]<=M)){var T=mc(g,(-v+b)/m);return vc(T,p),[_,hc(T)]}}}function o(e,n){var r=s?t:AT-t,i=0;return e<-r?i|=1:e>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}var u=LT(t),s=u>0,f=DT(u)>CT;return ol(r,i,n,s?[0,-t]:[-AT,t-AT])}function dl(t){return function(e){var n=new pl;for(var r in t)n[r]=t[r];return n.stream=e,n}}function pl(){}function gl(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=a&&t.clipExtent(null),lc(n,t.stream(hN));var o=hN.result(),u=Math.min(r/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),s=+e[0][0]+(r-u*(o[1][0]+o[0][0]))/2,f=+e[0][1]+(i-u*(o[1][1]+o[0][1]))/2;return null!=a&&t.clipExtent(a),t.scale(150*u).translate([s,f])}function vl(t,e,n){return gl(t,[[0,0],e],n)}function ml(t,e){return+e?bl(t,e):yl(t)}function yl(t){return dl({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function bl(t,e){function n(r,i,a,o,u,s,f,c,l,h,d,p,g,v){var m=f-r,y=c-i,b=m*m+y*y;if(b>4*e&&g--){var _=o+h,x=u+d,w=s+p,M=YT(_*_+x*x+w*w),k=oc(w/=M),E=DT(DT(w)-1)<CT||DT(a-l)<CT?(a+l)/2:qT(x,_),S=t(E,k),C=S[0],A=S[1],T=C-r,N=A-i,z=y*T-m*N;(z*z/b>e||DT((m*T+y*N)/b-.5)>.3||o*h+u*d+s*p<RN)&&(n(r,i,a,o,u,s,C,A,E,_/=M,x/=M,w,g,v),v.point(C,A),n(C,A,E,_,x,w,f,c,l,h,d,p,g,v))}}return function(e){function r(n,r){n=t(n,r),e.point(n[0],n[1])}function i(){m=NaN,w.point=a,e.lineStart()}function a(r,i){var a=dc([r,i]),o=t(r,i);n(m,y,v,b,_,x,m=o[0],y=o[1],v=r,b=a[0],_=a[1],x=a[2],zN,e),e.point(m,y)}function o(){w.point=r,e.lineEnd()}function u(){i(),w.point=s,w.lineEnd=f}function s(t,e){a(c=t,e),l=m,h=y,d=b,p=_,g=x,w.point=a}function f(){n(m,y,v,b,_,x,l,h,c,d,p,g,zN,e),w.lineEnd=o,o()}var c,l,h,d,p,g,v,m,y,b,_,x,w={point:r,lineStart:i,lineEnd:o,polygonStart:function(){e.polygonStart(),w.lineStart=u},polygonEnd:function(){e.polygonEnd(),w.lineStart=i}};return w}}function _l(t){return xl(function(){return t})()}function xl(t){function e(t){return t=c(t[0]*OT,t[1]*OT),[t[0]*v+u,s-t[1]*v]}function n(t){return t=c.invert((t[0]-u)/v,(s-t[1])/v),t&&[t[0]*RT,t[1]*RT]}function r(t,e){return t=o(t,e),[t[0]*v+u,s-t[1]*v]}function i(){c=_c(f=wc(x,w,M),o);var t=o(b,_);return u=m-t[0]*v,s=y+t[1]*v,a()}function a(){return p=g=null,e}var o,u,s,f,c,l,h,d,p,g,v=150,m=480,y=250,b=0,_=0,x=0,w=0,M=0,k=null,E=NN,S=null,C=Fc,A=.5,T=ml(r,A);return e.stream=function(t){return p&&g===t?p:p=ON(E(f,T(C(g=t))))},e.clipAngle=function(t){return arguments.length?(E=+t?hl(k=t*OT,6*OT):(k=null,NN),a()):k*RT},e.clipExtent=function(t){return arguments.length?(C=null==t?(S=l=h=d=null,Fc):Dc(S=+t[0][0],l=+t[0][1],h=+t[1][0],d=+t[1][1]),a()):null==S?null:[[S,l],[h,d]]},e.scale=function(t){return arguments.length?(v=+t,i()):v},e.translate=function(t){return arguments.length?(m=+t[0],y=+t[1],i()):[m,y]},e.center=function(t){return arguments.length?(b=t[0]%360*OT,_=t[1]%360*OT,i()):[b*RT,_*RT]},e.rotate=function(t){return arguments.length?(x=t[0]%360*OT,w=t[1]%360*OT,M=t.length>2?t[2]%360*OT:0,i()):[x*RT,w*RT,M*RT]},e.precision=function(t){return arguments.length?(T=ml(r,A=t*t),a()):YT(A)},e.fitExtent=function(t,n){return gl(e,t,n)},e.fitSize=function(t,n){return vl(e,t,n)},function(){return o=t.apply(this,arguments),e.invert=o.invert&&n,i()}}function wl(t){var e=0,n=AT/3,r=xl(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*OT,n=t[1]*OT):[e*RT,n*RT]},i}function Ml(t){function e(t,e){return[t*n,$T(e)/n]}var n=LT(t);return e.invert=function(t,e){return[t/n,oc(e*n)]},e}function kl(t,e){function n(t,e){var n=YT(a-2*i*$T(e))/i;return[n*$T(t*=i),o-n*LT(t)]}var r=$T(t),i=(r+$T(e))/2;if(DT(i)<CT)return Ml(t);var a=1+r*(2*i-r),o=YT(a)/i;return n.invert=function(t,e){var n=o-e;return[qT(t,DT(n))/i*BT(n),oc((a-(t*t+n*n)*i*i)/(2*i))]},n}function El(){return wl(kl).scale(155.424).center([0,33.6442])}function Sl(){return El().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Cl(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i<e;)t[i].point(n,r)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}function Al(){function t(t){var e=t[0],n=t[1];return u=null,i.point(e,n),u||(a.point(e,n),u)||(o.point(e,n),u)}function e(){return n=r=null,t}var n,r,i,a,o,u,s=Sl(),f=El().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=El().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,e){u=[t,e]}};return t.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?f:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:s).invert(t)},t.stream=function(t){return n&&r===t?n:n=Cl([s.stream(r=t),f.stream(t),c.stream(t)])},t.precision=function(t){return arguments.length?(s.precision(t),f.precision(t),c.precision(t),e()):s.precision()},t.scale=function(e){return arguments.length?(s.scale(e),f.scale(.35*e),c.scale(e),t.translate(s.translate())):s.scale()},t.translate=function(t){if(!arguments.length)return s.translate();var n=s.scale(),r=+t[0],u=+t[1];return i=s.translate(t).clipExtent([[r-.455*n,u-.238*n],[r+.455*n,u+.238*n]]).stream(l),a=f.translate([r-.307*n,u+.201*n]).clipExtent([[r-.425*n+CT,u+.12*n+CT],[r-.214*n-CT,u+.234*n-CT]]).stream(l),o=c.translate([r-.205*n,u+.212*n]).clipExtent([[r-.214*n+CT,u+.166*n+CT],[r-.115*n-CT,u+.234*n-CT]]).stream(l),e()},t.fitExtent=function(e,n){return gl(t,e,n)},t.fitSize=function(e,n){return vl(t,e,n)},t.scale(1070)}function Tl(t){return function(e,n){var r=LT(e),i=LT(n),a=t(r*i);return[a*i*$T(e),a*$T(n)]}}function Nl(t){return function(e,n){var r=YT(e*e+n*n),i=t(r),a=$T(i);return[qT(e*a,r*LT(i)),oc(r&&n*a/r)]}}function zl(){return _l(DN).scale(124.75).clipAngle(179.999)}function Rl(){return _l(PN).scale(79.4188).clipAngle(179.999)}function Ol(t,e){return[t,jT(GT((TT+e)/2))]}function Dl(){return Pl(Ol).scale(961/zT)}function Pl(t){var e,n=_l(t),r=n.scale,i=n.translate,a=n.clipExtent;return n.scale=function(t){return arguments.length?(r(t),e&&n.clipExtent(null),n):r()},n.translate=function(t){return arguments.length?(i(t),e&&n.clipExtent(null),n):i()},n.clipExtent=function(t){if(!arguments.length)return e?null:a();if(e=null==t){var o=AT*r(),u=i();t=[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]}return a(t),n},n.clipExtent(null)}function ql(t){return GT((TT+t)/2)}function Ll(t,e){function n(t,e){a>0?e<-TT+CT&&(e=-TT+CT):e>TT-CT&&(e=TT-CT);var n=a/IT(ql(e),i);return[n*$T(i*t),a-n*LT(i*t)]}var r=LT(t),i=t===e?$T(t):jT(r/LT(e))/jT(ql(e)/ql(t)),a=r*IT(ql(t),i)/i;return i?(n.invert=function(t,e){var n=a-e,r=BT(i)*YT(t*t+n*n);return[qT(t,DT(n))/i*BT(n),2*PT(IT(a/r,1/i))-TT]},n):Ol}function Ul(){return wl(Ll).scale(109.5).parallels([30,30])}function Fl(t,e){return[t,e]}function jl(){return _l(Fl).scale(152.63)}function Il(t,e){function n(t,e){var n=a-e,r=i*t;return[n*$T(r),a-n*LT(r)]}var r=LT(t),i=t===e?$T(t):(r-LT(e))/(e-t),a=r/i+t;return DT(i)<CT?Fl:(n.invert=function(t,e){var n=a-e;return[qT(t,DT(n))/i*BT(n),a-BT(i)*YT(t*t+n*n)]},n)}function $l(){return wl(Il).scale(131.154).center([0,13.9389])}function Bl(t,e){var n=LT(e),r=LT(t)*n;return[n*$T(t)/r,$T(e)/r]}function Yl(){return _l(Bl).scale(144.049).clipAngle(60)}function Gl(t,e){return[LT(e)*$T(t),$T(e)]}function Wl(){return _l(Gl).scale(249.5).clipAngle(90+CT)}function Hl(t,e){var n=LT(e),r=1+LT(t)*n;return[n*$T(t)/r,$T(e)/r]}function Xl(){return _l(Hl).scale(250).clipAngle(142)}function Vl(t,e){return[jT(GT((TT+e)/2)),-t]}function Jl(){var t=Pl(Vl),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90]).scale(159.155)}function Zl(t){Co.call(this,[],t),this.generator=Uc()}function Ql(t,e){return function n(){var r=e();return r.type=t,r.path=al().projection(r),r.copy=r.copy||function(){var t=n();return qN.forEach(function(e){r.hasOwnProperty(e)&&t[e](r[e]())}),t.path.pointRadius(r.path.pointRadius()),t},r}}function Kl(t,e){return arguments.length>1?(LN[t]=Ql(t,e),this):LN.hasOwnProperty(t)?LN[t]:null}function th(t){Co.call(this,null,t),this.modified(!0)}function eh(t){var e=Kl((t||"mercator").toLowerCase());return e||R("Unrecognized projection type: "+t),e()}function nh(t,e,n){$(t[e])&&t[e](n)}function rh(t,e){return t.ticks?t.ticks(e):t.domain()}function ih(t,e,n){var r=t.tickFormat?t.tickFormat(e,n):String;return t.type===BN?ah(r,oh(n)):r}function ah(t,e){return function(n){return t(n)?e(n):""}}function oh(t){var e=Ks(t||",");if(null==e.precision){switch(e.precision=12,e.type){case"%":e.precision-=2;break;case"e":e.precision-=1}return uh(qC(e),qC(".1f")(1)[1])}return qC(e)}function uh(t,e){return function(n){var r,i,a=t(n),o=a.indexOf(e);if(o<0)return a;for(r=sh(a,o),i=r<a.length?a.slice(r):"";--r>o;)if("0"!==a[r]){++r;break}return a.slice(0,r)+i}}function sh(t,e){var n,r=t.lastIndexOf("e");if(r>0)return r;for(r=t.length;--r>e;)if(n=t.charCodeAt(r),n>=48&&n<=57)return r+1}function fh(t){Co.call(this,[],t)}function ch(t){Co.call(this,null,t)}function lh(){return Ia({})}function hh(t){return t.exit}function dh(t){Co.call(this,null,t)}function ph(t,e,n){if(n)return t.domain();var r=nz[t.type];return r?r(t):rh(t,e)}function gh(t){var e=t.domain(),n=e[0],r=K(e),i=t.range().length,a=new Array(i),o=0;for(a[0]=n;++o<i;)a[o]=(o*r-(o-i)*n)/i;return a.max=r,a}function vh(t){var e=t.domain(),n=[e[0]].concat(t.quantiles());return n.max=K(e),n}function mh(t){var e=[-(1/0)].concat(t.domain());return e.max=+(1/0),e}function yh(t){var e=t.domain();return e.max=e.pop(),e}function bh(t,e){return nz[t.type]?_h(e):wh(e)}function _h(t){return function(e,n,r){var i=r[n+1]||r.max||+(1/0),a=xh(e,t),o=xh(i,t);return a&&o?a+"–"+o:o?"< "+o:"≥ "+a}}function xh(t,e){return isFinite(t)?e(t):null}function wh(t){return function(e){return t(e)}}function Mh(t){Co.call(this,[],t)}function kh(t){return t.source.x}function Eh(t){return t.source.y}function Sh(t){return t.target.x}function Ch(t){return t.target.y}function Ah(t){Co.call(this,{},t)}function Th(t,e,n,r){return"M"+t+","+e+"L"+n+","+r}function Nh(t,e,n,r){return Th(e*Math.cos(t),e*Math.sin(t),r*Math.cos(n),r*Math.sin(n))}function zh(t,e,n,r){var i=n-t,a=r-e,o=.2*(i+a),u=.2*(a-i);return"M"+t+","+e+"C"+(t+o)+","+(e+u)+" "+(n+u)+","+(r-o)+" "+n+","+r}function Rh(t,e,n,r){return zh(e*Math.cos(t),e*Math.sin(t),r*Math.cos(n),r*Math.sin(n))}function Oh(t,e,n,r){return"M"+t+","+e+"V"+r+"H"+n}function Dh(t,e,n,r){return"M"+t+","+e+"H"+n+"V"+r}function Ph(t,e,n,r){var i=Math.cos(t),a=Math.sin(t),o=Math.cos(n),u=Math.sin(n);return"M"+e*i+","+e*a+"A"+e+","+e+" 0 0,"+((Math.abs(n-t)>Math.PI?n<=t:n>t)?1:0)+" "+e*o+","+e*u+"L"+r*o+","+r*u}function qh(t,e,n,r){var i=(t+n)/2;return"M"+t+","+e+"C"+i+","+e+" "+i+","+r+" "+n+","+r}function Lh(t,e,n,r){var i=(e+r)/2;return"M"+t+","+e+"C"+t+","+i+" "+n+","+i+" "+n+","+r}function Uh(t,e,n,r){var i=Math.cos(t),a=Math.sin(t),o=Math.cos(n),u=Math.sin(n),s=(e+r)/2;return"M"+e*i+","+e*a+"C"+s*i+","+s*a+" "+s*o+","+s*u+" "+r*o+","+r*u}function Fh(t){Co.call(this,null,t)}function jh(t){Co.call(this,null,t),this.modified(!0)}function Ih(t,e,n){var r=$h(t,e.domainRaw);if(r>-1)return r;var i,a,o=e.domain,u=e.zero||void 0===e.zero&&az[t.type];return o?((u||null!=e.domainMin||null!=e.domainMax||null!=e.domainMid)&&(i=(o=o.slice()).length-1||1,u&&(o[0]>0&&(o[0]=0),o[i]<0&&(o[i]=0)),null!=e.domainMin&&(o[0]=e.domainMin),null!=e.domainMax&&(o[i]=e.domainMax),null!=e.domainMid&&(a=e.domainMid,(a<o[0]||a>o[i])&&n.warn("Scale domainMid exceeds domain min or max.",a),o.splice(i,0,a))),t.domain(o),e.nice&&t.nice&&t.nice(e.nice!==!0&&+e.nice||null),o.length):0}function $h(t,e){return e?(t.domain(e),e.length):-1}function Bh(t,e,n){var r=e.round||!1,i=e.range;if(null!=e.rangeStep)i=Yh(t.type,e,n);else if(e.scheme){if(i=Gh(t.type,e,n),$(i))return t.interpolator(i)}else if(i&&t.type===ez)return t.interpolator(dC(Hh(i,e.reverse)));i&&e.interpolate&&t.interpolate?t.interpolate(Jf(e.interpolate,e.interpolateGamma)):$(t.round)?t.round(r):$(t.rangeRound)&&t.interpolate(r?Ms:ws),i&&t.range(Hh(i,e.reverse))}function Yh(t,e,n){t!==WN&&t!==HN&&R("Only band and point scales support rangeStep.");var r=(null!=e.paddingOuter?e.paddingOuter:e.padding)||0,i=t===HN?1:(null!=e.paddingInner?e.paddingInner:e.padding)||0;return[0,e.rangeStep*Nu(n,i,r)]}function Gh(t,e,n){var r,i=e.scheme.toLowerCase(),a=Wf(i),o=e.schemeExtent;return a||R("Unrecognized scheme name: "+e.scheme),n=t===QN?n+1:t===tz?n-1:t===JN||t===ZN?+e.schemeCount||iz:n,t===ez?Wh(a,o,e.reverse):!o&&(r=Wf(i+"-"+n))?r:$(a)?Xh(Wh(a,o),n):t===VN?a:a.slice(0,n)}function Wh(t,e,n){return $(t)&&(e||n)?Hf(t,Hh(e||[0,1],n)):t}function Hh(t,e){return e?t.slice().reverse():t}function Xh(t,e){for(var n=new Array(e),r=e-1||1,i=0;i<e;++i)n[i]=t(i/r);return n}function Vh(t){Co.call(this,null,t)}function Jh(t,e,n,r){var i,a,o,u,s,f,c,l,h,d=[],p=function(t){return t(s)};if(null==e)d.push(t.slice());else for(i={},a=0,o=t.length;a<o;++a)s=t[a],f=e.map(p),c=i[f]||(d.push(i[f]=[]),i[f]),c.push(s);for(f=0,h=0,u=d.length;f<u;++f){for(c=d[f],a=0,l=0,o=c.length;a<o;++a)l+=r(c[a]);c.sum=l,l>h&&(h=l),n&&c.sort(n)}return d.max=h,d}function Zh(t,e){function n(){var n,i,a=r.length,o=0,u=0;for(n=0;n<a;++n)i=r[n],o+=i.x,u+=i.y;for(o=o/a-t,u=u/a-e,n=0;n<a;++n)i=r[n],i.x-=o,i.y-=u}var r;return null==t&&(t=0),null==e&&(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n}function Qh(t){return function(){return t}}function Kh(){return 1e-6*(Math.random()-.5)}function td(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return ed(this.cover(e,n),e,n,t)}function ed(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a,o,u,s,f,c,l,h,d=t._root,p={data:r},g=t._x0,v=t._y0,m=t._x1,y=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((f=e>=(a=(g+m)/2))?g=a:m=a,(c=n>=(o=(v+y)/2))?v=o:y=o,i=d,!(d=d[l=c<<1|f]))return i[l]=p,t;if(u=+t._x.call(null,d.data),s=+t._y.call(null,d.data),e===u&&n===s)return p.next=d,i?i[l]=p:t._root=p,t;do i=i?i[l]=new Array(4):t._root=new Array(4),(f=e>=(a=(g+m)/2))?g=a:m=a,(c=n>=(o=(v+y)/2))?v=o:y=o;while((l=c<<1|f)===(h=(s>=o)<<1|u>=a));return i[h]=d,i[l]=p,t}function nd(t){var e,n,r,i,a=t.length,o=new Array(a),u=new Array(a),s=1/0,f=1/0,c=-(1/0),l=-(1/0);for(n=0;n<a;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(o[n]=r,u[n]=i,r<s&&(s=r),r>c&&(c=r),i<f&&(f=i),i>l&&(l=i));for(c<s&&(s=this._x0,c=this._x1),l<f&&(f=this._y0,l=this._y1),this.cover(s,f).cover(c,l),n=0;n<a;++n)ed(this,o[n],u[n],t[n]);return this}function rd(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,a=(r=Math.floor(e))+1;else{if(!(n>t||t>i||r>e||e>a))return this;var o,u,s=i-n,f=this._root;switch(u=(e<(r+a)/2)<<1|t<(n+i)/2){case 0:do o=new Array(4),o[u]=f,f=o;while(s*=2,i=n+s,a=r+s,t>i||e>a);break;case 1:do o=new Array(4),o[u]=f,f=o;while(s*=2,n=i-s,a=r+s,n>t||e>a);break;case 2:do o=new Array(4),o[u]=f,f=o;while(s*=2,i=n+s,r=a-s,t>i||r>e);break;case 3:do o=new Array(4),o[u]=f,f=o;while(s*=2,n=i-s,r=a-s,n>t||r>e)}this._root&&this._root.length&&(this._root=f)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this}function id(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function ad(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function od(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function ud(t,e,n){var r,i,a,o,u,s,f,c=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new od(g,c,l,h,d)),null==n?n=1/0:(c=t-n,l=e-n,h=t+n,d=e+n,n*=n);s=p.pop();)if(!(!(g=s.node)||(i=s.x0)>h||(a=s.y0)>d||(o=s.x1)<c||(u=s.y1)<l))if(g.length){var v=(i+o)/2,m=(a+u)/2;p.push(new od(g[3],v,m,o,u),new od(g[2],i,m,v,u),new od(g[1],v,a,o,m),new od(g[0],i,a,v,m)),(f=(e>=m)<<1|t>=v)&&(s=p[p.length-1],p[p.length-1]=p[p.length-1-f],p[p.length-1-f]=s)}else{
  var y=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),_=y*y+b*b;if(_<n){var x=Math.sqrt(n=_);c=t-x,l=e-x,h=t+x,d=e+x,r=g.data}}return r}function sd(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,n,r,i,a,o,u,s,f,c,l,h,d=this._root,p=this._x0,g=this._y0,v=this._x1,m=this._y1;if(!d)return this;if(d.length)for(;;){if((f=a>=(u=(p+v)/2))?p=u:v=u,(c=o>=(s=(g+m)/2))?g=s:m=s,e=d,!(d=d[l=c<<1|f]))return this;if(!d.length)break;(e[l+1&3]||e[l+2&3]||e[l+3&3])&&(n=e,h=l)}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[l]=i:delete e[l],(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)}function fd(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function cd(){return this._root}function ld(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function hd(t){var e,n,r,i,a,o,u=[],s=this._root;for(s&&u.push(new od(s,this._x0,this._y0,this._x1,this._y1));e=u.pop();)if(!t(s=e.node,r=e.x0,i=e.y0,a=e.x1,o=e.y1)&&s.length){var f=(r+a)/2,c=(i+o)/2;(n=s[3])&&u.push(new od(n,f,c,a,o)),(n=s[2])&&u.push(new od(n,r,c,f,o)),(n=s[1])&&u.push(new od(n,f,i,a,c)),(n=s[0])&&u.push(new od(n,r,i,f,c))}return this}function dd(t){var e,n=[],r=[];for(this._root&&n.push(new od(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var a,o=e.x0,u=e.y0,s=e.x1,f=e.y1,c=(o+s)/2,l=(u+f)/2;(a=i[0])&&n.push(new od(a,o,u,c,l)),(a=i[1])&&n.push(new od(a,c,u,s,l)),(a=i[2])&&n.push(new od(a,o,l,c,f)),(a=i[3])&&n.push(new od(a,c,l,s,f))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this}function pd(t){return t[0]}function gd(t){return arguments.length?(this._x=t,this):this._x}function vd(t){return t[1]}function md(t){return arguments.length?(this._y=t,this):this._y}function yd(t,e,n){var r=new bd(null==e?pd:e,null==n?vd:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function bd(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function _d(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}function xd(t){return t.x+t.vx}function wd(t){return t.y+t.vy}function Md(t){function e(){function t(t,e,n,r,i){var a=t.data,u=t.r,d=l+u;{if(!a)return e>f+d||r<f-d||n>c+d||i<c-d;if(a.index>s.index){var p=f-a.x-a.vx,g=c-a.y-a.vy,v=p*p+g*g;v<d*d&&(0===p&&(p=Kh(),v+=p*p),0===g&&(g=Kh(),v+=g*g),v=(d-(v=Math.sqrt(v)))/v*o,s.vx+=(p*=v)*(d=(u*=u)/(h+u)),s.vy+=(g*=v)*d,a.vx-=p*(d=1-d),a.vy-=g*d)}}}for(var e,r,s,f,c,l,h,d=i.length,p=0;p<u;++p)for(r=yd(i,xd,wd).visitAfter(n),e=0;e<d;++e)s=i[e],l=a[s.index],h=l*l,f=s.x+s.vx,c=s.y+s.vy,r.visit(t)}function n(t){if(t.data)return t.r=a[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function r(){if(i){var e,n,r=i.length;for(a=new Array(r),e=0;e<r;++e)n=i[e],a[n.index]=+t(n,e,i)}}var i,a,o=1,u=1;return"function"!=typeof t&&(t=Qh(null==t?1:+t)),e.initialize=function(t){i=t,r()},e.iterations=function(t){return arguments.length?(u=+t,e):u},e.strength=function(t){return arguments.length?(o=+t,e):o},e.radius=function(n){return arguments.length?(t="function"==typeof n?n:Qh(+n),r(),e):t},e}function kd(t){return t.index}function Ed(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function Sd(t){function e(t){return 1/Math.min(f[t.source.index],f[t.target.index])}function n(e){for(var n=0,r=t.length;n<p;++n)for(var i,a,s,f,l,h,d,g=0;g<r;++g)i=t[g],a=i.source,s=i.target,f=s.x+s.vx-a.x-a.vx||Kh(),l=s.y+s.vy-a.y-a.vy||Kh(),h=Math.sqrt(f*f+l*l),h=(h-u[g])/h*e*o[g],f*=h,l*=h,s.vx-=f*(d=c[g]),s.vy-=l*d,a.vx+=f*(d=1-d),a.vy+=l*d}function r(){if(s){var e,n,r=s.length,h=t.length,d=it(s,l);for(e=0,f=new Array(r);e<h;++e)n=t[e],n.index=e,"object"!=typeof n.source&&(n.source=Ed(d,n.source)),"object"!=typeof n.target&&(n.target=Ed(d,n.target)),f[n.source.index]=(f[n.source.index]||0)+1,f[n.target.index]=(f[n.target.index]||0)+1;for(e=0,c=new Array(h);e<h;++e)n=t[e],c[e]=f[n.source.index]/(f[n.source.index]+f[n.target.index]);o=new Array(h),i(),u=new Array(h),a()}}function i(){if(s)for(var e=0,n=t.length;e<n;++e)o[e]=+h(t[e],e,t)}function a(){if(s)for(var e=0,n=t.length;e<n;++e)u[e]=+d(t[e],e,t)}var o,u,s,f,c,l=kd,h=e,d=Qh(30),p=1;return null==t&&(t=[]),n.initialize=function(t){s=t,r()},n.links=function(e){return arguments.length?(t=e,r(),n):t},n.id=function(t){return arguments.length?(l=t,n):l},n.iterations=function(t){return arguments.length?(p=+t,n):p},n.strength=function(t){return arguments.length?(h="function"==typeof t?t:Qh(+t),i(),n):h},n.distance=function(t){return arguments.length?(d="function"==typeof t?t:Qh(+t),a(),n):d},n}function Cd(){return yz||(xz(Ad),yz=_z.now()+bz)}function Ad(){yz=0}function Td(){this._call=this._time=this._next=null}function Nd(t,e,n){var r=new Td;return r.restart(t,e,n),r}function zd(){Cd(),++dz;for(var t,e=lz;e;)(t=yz-e._time)>=0&&e._call.call(null,t),e=e._next;--dz}function Rd(){yz=(mz=_z.now())+bz,dz=pz=0;try{zd()}finally{dz=0,Dd(),yz=0}}function Od(){var t=_z.now(),e=t-mz;e>vz&&(bz-=e,mz=t)}function Dd(){for(var t,e,n=lz,r=1/0;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:lz=e);hz=t,Pd(r)}function Pd(t){if(!dz){pz&&(pz=clearTimeout(pz));var e=t-yz;e>24?(t<1/0&&(pz=setTimeout(Rd,e)),gz&&(gz=clearInterval(gz))):(gz||(mz=yz,gz=setInterval(Od,vz)),dz=1,xz(Rd))}}function qd(t){return t.x}function Ld(t){return t.y}function Ud(t){function e(){n(),d.call("tick",a),o<u&&(h.stop(),d.call("end",a))}function n(){var e,n,r=t.length;for(o+=(f-o)*s,l.each(function(t){t(o)}),e=0;e<r;++e)n=t[e],null==n.fx?n.x+=n.vx*=c:(n.x=n.fx,n.vx=0),null==n.fy?n.y+=n.vy*=c:(n.y=n.fy,n.vy=0)}function r(){for(var e,n=0,r=t.length;n<r;++n){if(e=t[n],e.index=n,isNaN(e.x)||isNaN(e.y)){var i=wz*Math.sqrt(n),a=n*Mz;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function i(e){return e.initialize&&e.initialize(t),e}var a,o=1,u=.001,s=1-Math.pow(u,1/300),f=0,c=.6,l=it(),h=Nd(e),d=ct("tick","end");return null==t&&(t=[]),r(),a={tick:n,restart:function(){return h.restart(e),a},stop:function(){return h.stop(),a},nodes:function(e){return arguments.length?(t=e,r(),l.each(i),a):t},alpha:function(t){return arguments.length?(o=+t,a):o},alphaMin:function(t){return arguments.length?(u=+t,a):u},alphaDecay:function(t){return arguments.length?(s=+t,a):+s},alphaTarget:function(t){return arguments.length?(f=+t,a):f},velocityDecay:function(t){return arguments.length?(c=1-t,a):1-c},force:function(t,e){return arguments.length>1?(null==e?l.remove(t):l.set(t,i(e)),a):l.get(t)},find:function(e,n,r){var i,a,o,u,s,f=0,c=t.length;for(null==r?r=1/0:r*=r,f=0;f<c;++f)u=t[f],i=e-u.x,a=n-u.y,o=i*i+a*a,o<r&&(s=u,r=o);return s},on:function(t,e){return arguments.length>1?(d.on(t,e),a):d.on(t)}}}function Fd(){function t(t){var e,u=i.length,s=yd(i,qd,Ld).visitAfter(n);for(o=t,e=0;e<u;++e)a=i[e],s.visit(r)}function e(){if(i){var t,e,n=i.length;for(u=new Array(n),t=0;t<n;++t)e=i[t],u[e.index]=+s(e,t,i)}}function n(t){var e,n,r,i,a,o=0;if(t.length){for(r=i=a=0;a<4;++a)(e=t[a])&&(n=e.value)&&(o+=n,r+=n*e.x,i+=n*e.y);t.x=r/o,t.y=i/o}else{e=t,e.x=e.data.x,e.y=e.data.y;do o+=u[e.data.index];while(e=e.next)}t.value=o}function r(t,e,n,r){if(!t.value)return!0;var i=t.x-a.x,s=t.y-a.y,h=r-e,d=i*i+s*s;if(h*h/l<d)return d<c&&(0===i&&(i=Kh(),d+=i*i),0===s&&(s=Kh(),d+=s*s),d<f&&(d=Math.sqrt(f*d)),a.vx+=i*t.value*o/d,a.vy+=s*t.value*o/d),!0;if(!(t.length||d>=c)){(t.data!==a||t.next)&&(0===i&&(i=Kh(),d+=i*i),0===s&&(s=Kh(),d+=s*s),d<f&&(d=Math.sqrt(f*d)));do t.data!==a&&(h=u[t.data.index]*o/d,a.vx+=i*h,a.vy+=s*h);while(t=t.next)}}var i,a,o,u,s=Qh(-30),f=1,c=1/0,l=.81;return t.initialize=function(t){i=t,e()},t.strength=function(n){return arguments.length?(s="function"==typeof n?n:Qh(+n),e(),t):s},t.distanceMin=function(e){return arguments.length?(f=e*e,t):Math.sqrt(f)},t.distanceMax=function(e){return arguments.length?(c=e*e,t):Math.sqrt(c)},t.theta=function(e){return arguments.length?(l=e*e,t):Math.sqrt(l)},t}function jd(t){function e(t){for(var e,n=0,o=r.length;n<o;++n)e=r[n],e.vx+=(a[n]-e.x)*i[n]*t}function n(){if(r){var e,n=r.length;for(i=new Array(n),a=new Array(n),e=0;e<n;++e)i[e]=isNaN(a[e]=+t(r[e],e,r))?0:+o(r[e],e,r)}}var r,i,a,o=Qh(.1);return"function"!=typeof t&&(t=Qh(null==t?0:+t)),e.initialize=function(t){r=t,n()},e.strength=function(t){return arguments.length?(o="function"==typeof t?t:Qh(+t),n(),e):o},e.x=function(r){return arguments.length?(t="function"==typeof r?r:Qh(+r),n(),e):t},e}function Id(t){function e(t){for(var e,n=0,o=r.length;n<o;++n)e=r[n],e.vy+=(a[n]-e.y)*i[n]*t}function n(){if(r){var e,n=r.length;for(i=new Array(n),a=new Array(n),e=0;e<n;++e)i[e]=isNaN(a[e]=+t(r[e],e,r))?0:+o(r[e],e,r)}}var r,i,a,o=Qh(.1);return"function"!=typeof t&&(t=Qh(null==t?0:+t)),e.initialize=function(t){r=t,n()},e.strength=function(t){return arguments.length?(o="function"==typeof t?t:Qh(+t),n(),e):o},e.y=function(r){return arguments.length?(t="function"==typeof r?r:Qh(+r),n(),e):t},e}function $d(t){Co.call(this,null,t)}function Bd(t,e){return function(){t.touch(e).run()}}function Yd(t,e){var n=Ud(t),r=!1,i=n.stop,a=n.restart;return n.stopped=function(){return r},n.restart=function(){return r=!1,a()},n.stop=function(){return r=!0,i()},Gd(n,e,!0).on("end",function(){r=!0})}function Gd(t,e,n){var r,i,a,o=j(e.forces);for(r=0,i=Sz.length;r<i;++r)a=Sz[r],a!==Ez&&e.modified(a)&&t[a](e[a]);for(r=0,i=o.length;r<i;++r)(n||e.modified(Ez,r))&&t.force(Ez+r,Wd(o[r]));for(i=t.numForces||0;r<i;++r)t.force(Ez+r,null);return t.numForces=o.length,t}function Wd(t){var e,n;kz.hasOwnProperty(t.force)||R("Unrecognized force: "+t.force),e=kz[t.force]();for(n in t)$(e[n])&&e[n](t[n]);return e}function Hd(t,e){return t.parent===e.parent?1:2}function Xd(t){return t.reduce(Vd,0)/t.length}function Vd(t,e){return t+e.x}function Jd(t){return 1+t.reduce(Zd,0)}function Zd(t,e){return Math.max(t,e.y)}function Qd(t){for(var e;e=t.children;)t=e[0];return t}function Kd(t){for(var e;e=t.children;)t=e[e.length-1];return t}function tp(){function t(t){var a,o=0;t.eachAfter(function(t){var n=t.children;n?(t.x=Xd(n),t.y=Jd(n)):(t.x=a?o+=e(t,a):0,t.y=0,a=t)});var u=Qd(t),s=Kd(t),f=u.x-e(u,s)/2,c=s.x+e(s,u)/2;return t.eachAfter(i?function(e){e.x=(e.x-t.x)*n,e.y=(t.y-e.y)*r}:function(e){e.x=(e.x-f)/(c-f)*n,e.y=(1-(t.y?e.y/t.y:1))*r})}var e=Hd,n=1,r=1,i=!1;return t.separation=function(n){return arguments.length?(e=n,t):e},t.size=function(e){return arguments.length?(i=!1,n=+e[0],r=+e[1],t):i?null:[n,r]},t.nodeSize=function(e){return arguments.length?(i=!0,n=+e[0],r=+e[1],t):i?[n,r]:null},t}function ep(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function np(){return this.eachAfter(ep)}function rp(t){var e,n,r,i,a=this,o=[a];do for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r<i;++r)o.push(n[r]);while(o.length);return this}function ip(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this}function ap(t){for(var e,n,r,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)a.push(e[n]);for(;i=o.pop();)t(i);return this}function op(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})}function up(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function sp(t){for(var e=this,n=fp(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}function fp(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}function cp(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function lp(){var t=[];return this.each(function(e){t.push(e)}),t}function hp(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function dp(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function pp(t,e){var n,r,i,a,o,u=new bp(t),s=+t.value&&(u.value=t.value),f=[u];for(null==e&&(e=vp);n=f.pop();)if(s&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)f.push(r=n.children[a]=new bp(i[a])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(yp)}function gp(){return pp(this).eachBefore(mp)}function vp(t){return t.children}function mp(t){t.data=t.data.data}function yp(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function bp(t){this.data=t,this.depth=this.height=0,this.parent=null}function _p(t){this._=t,this.next=null}function xp(t){for(var e,n=(t=t.slice()).length,r=null,i=r;n;){var a=new _p(t[n-1]);i=i?i.next=a:r=a,t[e]=t[--n]}return{head:r,tail:i}}function wp(t){return kp(xp(t),[])}function Mp(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r-e.r;return i*i+1e-6>n*n+r*r}function kp(t,e){var n,r,i,a=null,o=t.head;switch(e.length){case 1:n=Ep(e[0]);break;case 2:n=Sp(e[0],e[1]);break;case 3:n=Cp(e[0],e[1],e[2])}for(;o;)i=o._,r=o.next,n&&Mp(n,i)?a=o:(a?(t.tail=a,a.next=null):t.head=t.tail=null,e.push(i),n=kp(t,e),e.pop(),t.head?(o.next=t.head,t.head=o):(o.next=null,t.head=t.tail=o),a=t.tail,a.next=r),o=r;return t.tail=a,n}function Ep(t){return{x:t.x,y:t.y,r:t.r}}function Sp(t,e){var n=t.x,r=t.y,i=t.r,a=e.x,o=e.y,u=e.r,s=a-n,f=o-r,c=u-i,l=Math.sqrt(s*s+f*f);return{x:(n+a+s/l*c)/2,y:(r+o+f/l*c)/2,r:(l+i+u)/2}}function Cp(t,e,n){var r=t.x,i=t.y,a=t.r,o=e.x,u=e.y,s=e.r,f=n.x,c=n.y,l=n.r,h=2*(r-o),d=2*(i-u),p=2*(s-a),g=r*r+i*i-a*a-o*o-u*u+s*s,v=2*(r-f),m=2*(i-c),y=2*(l-a),b=r*r+i*i-a*a-f*f-c*c+l*l,_=v*d-h*m,x=(d*b-m*g)/_-r,w=(m*p-d*y)/_,M=(v*g-h*b)/_-i,k=(h*y-v*p)/_,E=w*w+k*k-1,S=2*(x*w+M*k+a),C=x*x+M*M-a*a,A=(-S-Math.sqrt(S*S-4*E*C))/(2*E);return{x:x+w*A+r,y:M+k*A+i,r:A}}function Ap(t,e,n){var r=t.x,i=t.y,a=e.r+n.r,o=t.r+n.r,u=e.x-r,s=e.y-i,f=u*u+s*s;if(f){var c=.5+((o*=o)-(a*=a))/(2*f),l=Math.sqrt(Math.max(0,2*a*(o+f)-(o-=f)*o-a*a))/(2*f);n.x=r+c*u+l*s,n.y=i+c*s-l*u}else n.x=r+o,n.y=i}function Tp(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return i*i-1e-6>n*n+r*r}function Np(t,e){for(var n=t._.r;t!==e;)n+=2*(t=t.next)._.r;return n-e._.r}function zp(t,e,n){var r=t._,i=t.next._,a=r.r+i.r,o=(r.x*i.r+i.x*r.r)/a-e,u=(r.y*i.r+i.y*r.r)/a-n;return o*o+u*u}function Rp(t){this._=t,this.next=null,this.previous=null}function Op(t){if(!(i=t.length))return 0;var e,n,r,i;if(e=t[0],e.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;Ap(n,e,r=t[2]);var a,o,u,s,f,c,l,h=e.r*e.r,d=n.r*n.r,p=r.r*r.r,g=h+d+p,v=h*e.x+d*n.x+p*r.x,m=h*e.y+d*n.y+p*r.y;e=new Rp(e),n=new Rp(n),r=new Rp(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(u=3;u<i;++u){Ap(e._,n._,r=t[u]),r=new Rp(r),s=n.next,f=e.previous,c=n._.r,l=e._.r;do if(c<=l){if(Tp(s._,r._)){c+e._.r+n._.r>Np(s,n)?e=s:n=s,e.next=n,n.previous=e,--u;continue t}c+=s._.r,s=s.next}else{if(Tp(f._,r._)){Np(e,f)>l+e._.r+n._.r?e=f:n=f,e.next=n,n.previous=e,--u;continue t}l+=f._.r,f=f.previous}while(s!==f.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,g+=p=r._.r*r._.r,v+=p*r._.x,m+=p*r._.y,h=zp(e,a=v/g,o=m/g);(r=r.next)!==n;)(p=zp(r,a,o))<h&&(e=r,h=p);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=wp(e),u=0;u<i;++u)e=t[u],e.x-=r.x,e.y-=r.y;return r.r}function Dp(t){return null==t?null:Pp(t)}function Pp(t){if("function"!=typeof t)throw new Error;return t}function qp(){return 0}function Lp(t){return function(){return t}}function Up(t){return Math.sqrt(t.value)}function Fp(){function t(t){return t.x=n/2,t.y=r/2,e?t.eachBefore(jp(e)).eachAfter(Ip(i,.5)).eachBefore($p(1)):t.eachBefore(jp(Up)).eachAfter(Ip(qp,1)).eachAfter(Ip(i,t.r/Math.min(n,r))).eachBefore($p(Math.min(n,r)/(2*t.r))),t}var e=null,n=1,r=1,i=qp;return t.radius=function(n){return arguments.length?(e=Dp(n),t):e},t.size=function(e){return arguments.length?(n=+e[0],r=+e[1],t):[n,r]},t.padding=function(e){return arguments.length?(i="function"==typeof e?e:Lp(+e),t):i},t}function jp(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function Ip(t,e){return function(n){if(r=n.children){var r,i,a,o=r.length,u=t(n)*e||0;if(u)for(i=0;i<o;++i)r[i].r+=u;if(a=Op(r),u)for(i=0;i<o;++i)r[i].r-=u;n.r=a+u}}}function $p(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function Bp(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Yp(t,e,n,r,i){for(var a,o=t.children,u=-1,s=o.length,f=t.value&&(r-e)/t.value;++u<s;)a=o[u],a.y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*f}function Gp(){function t(t){var o=t.height+1;return t.x0=t.y0=i,t.x1=n,t.y1=r/o,t.eachBefore(e(r,o)),a&&t.eachBefore(Bp),t}function e(t,e){return function(n){n.children&&Yp(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var r=n.x0,a=n.y0,o=n.x1-i,u=n.y1-i;o<r&&(r=o=(r+o)/2),u<a&&(a=u=(a+u)/2),n.x0=r,n.y0=a,n.x1=o,n.y1=u}}var n=1,r=1,i=0,a=!1;return t.round=function(e){return arguments.length?(a=!!e,t):a},t.size=function(e){return arguments.length?(n=+e[0],r=+e[1],t):[n,r]},t.padding=function(e){return arguments.length?(i=+e,t):i},t}function Wp(t){return t.id}function Hp(t){return t.parentId}function Xp(){function t(t){var r,i,a,o,u,s,f,c=t.length,l=new Array(c),h={};for(i=0;i<c;++i)r=t[i],u=l[i]=new bp(r),null!=(s=e(r,i,t))&&(s+="")&&(f=Nz+(u.id=s),h[f]=f in h?Rz:u);for(i=0;i<c;++i)if(u=l[i],s=n(t[i],i,t),null!=s&&(s+="")){if(o=h[Nz+s],!o)throw new Error("missing: "+s);if(o===Rz)throw new Error("ambiguous: "+s);o.children?o.children.push(u):o.children=[u],u.parent=o}else{if(a)throw new Error("multiple roots");a=u}if(!a)throw new Error("no root");if(a.parent=zz,a.eachBefore(function(t){t.depth=t.parent.depth+1,--c}).eachBefore(yp),a.parent=null,c>0)throw new Error("cycle");return a}var e=Wp,n=Hp;return t.id=function(n){return arguments.length?(e=Pp(n),t):e},t.parentId=function(e){return arguments.length?(n=Pp(e),t):n},t}function Vp(t,e){return t.parent===e.parent?1:2}function Jp(t){var e=t.children;return e?e[0]:t.t}function Zp(t){var e=t.children;return e?e[e.length-1]:t.t}function Qp(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 Kp(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)e=i[a],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function tg(t,e,n){return t.a.parent===e.parent?t.a:n}function eg(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}function ng(t){for(var e,n,r,i,a,o=new eg(t,0),u=[o];e=u.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)u.push(n=e.children[i]=new eg(r[i],i)),n.parent=e;return(o.parent=new eg(null,0)).children=[o],o}function rg(){function t(t){var r=ng(t);if(r.eachAfter(e),r.parent.m=-r.z,r.eachBefore(n),s)t.eachBefore(i);else{var f=t,c=t,l=t;t.eachBefore(function(t){t.x<f.x&&(f=t),t.x>c.x&&(c=t),t.depth>l.depth&&(l=t)});var h=f===c?1:a(f,c)/2,d=h-f.x,p=o/(c.x+h+d),g=u/(l.depth||1);t.eachBefore(function(t){t.x=(t.x+d)*p,t.y=t.depth*g})}return t}function e(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e){Kp(t);var o=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+a(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+a(t._,i._));t.parent.A=r(t,i,t.parent.A||n[0])}function n(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t,e,n){if(e){for(var r,i=t,o=t,u=e,s=i.parent.children[0],f=i.m,c=o.m,l=u.m,h=s.m;u=Zp(u),i=Jp(i),u&&i;)s=Jp(s),o=Zp(o),o.a=t,r=u.z+l-i.z-f+a(u._,i._),r>0&&(Qp(tg(u,t,n),t,r),f+=r,c+=r),l+=u.m,f+=i.m,h+=s.m,c+=o.m;u&&!Zp(o)&&(o.t=u,o.m+=l-c),i&&!Jp(s)&&(s.t=i,s.m+=f-h,n=t)}return n}function i(t){t.x*=o,t.y=t.depth*u}var a=Vp,o=1,u=1,s=null;return t.separation=function(e){return arguments.length?(a=e,t):a},t.size=function(e){return arguments.length?(s=!1,o=+e[0],u=+e[1],t):s?null:[o,u]},t.nodeSize=function(e){return arguments.length?(s=!0,o=+e[0],u=+e[1],t):s?[o,u]:null},t}function ig(t,e,n,r,i){for(var a,o=t.children,u=-1,s=o.length,f=t.value&&(i-n)/t.value;++u<s;)a=o[u],a.x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*f}function ag(t,e,n,r,i,a){for(var o,u,s,f,c,l,h,d,p,g,v,m=[],y=e.children,b=0,_=0,x=y.length,w=e.value;b<x;){s=i-n,f=a-r;do c=y[_++].value;while(!c&&_<x);for(l=h=c,g=Math.max(f/s,s/f)/(w*t),v=c*c*g,p=Math.max(h/v,v/l);_<x;++_){if(c+=u=y[_].value,u<l&&(l=u),u>h&&(h=u),v=c*c*g,d=Math.max(h/v,v/l),d>p){c-=u;break}p=d}m.push(o={value:c,dice:s<f,children:y.slice(b,_)}),o.dice?Yp(o,n,r,i,w?r+=f*c/w:a):ig(o,n,r,w?n+=s*c/w:i,a),w-=c,b=_}return m}function og(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=a,t.eachBefore(e),o=[0],r&&t.eachBefore(Bp),t}function e(t){var e=o[t.depth],r=t.x0+e,i=t.y0+e,a=t.x1-e,h=t.y1-e;a<r&&(r=a=(r+a)/2),h<i&&(i=h=(i+h)/2),t.x0=r,t.y0=i,t.x1=a,t.y1=h,t.children&&(e=o[t.depth+1]=u(t)/2,r+=l(t)-e,i+=s(t)-e,a-=f(t)-e,h-=c(t)-e,a<r&&(r=a=(r+a)/2),h<i&&(i=h=(i+h)/2),n(t,r,i,a,h))}var n=Dz,r=!1,i=1,a=1,o=[0],u=qp,s=qp,f=qp,c=qp,l=qp;return t.round=function(e){return arguments.length?(r=!!e,t):r},t.size=function(e){return arguments.length?(i=+e[0],a=+e[1],t):[i,a]},t.tile=function(e){return arguments.length?(n=Pp(e),t):n},t.padding=function(e){return arguments.length?t.paddingInner(e).paddingOuter(e):t.paddingInner()},t.paddingInner=function(e){return arguments.length?(u="function"==typeof e?e:Lp(+e),t):u},t.paddingOuter=function(e){return arguments.length?t.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):t.paddingTop()},t.paddingTop=function(e){return arguments.length?(s="function"==typeof e?e:Lp(+e),t):s},t.paddingRight=function(e){return arguments.length?(f="function"==typeof e?e:Lp(+e),t):f},t.paddingBottom=function(e){return arguments.length?(c="function"==typeof e?e:Lp(+e),t):c},t.paddingLeft=function(e){return arguments.length?(l="function"==typeof e?e:Lp(+e),t):l},t}function ug(t,e,n,r,i){function a(t,e,n,r,i,o,u){if(t>=e-1){var f=s[t];return f.x0=r,f.y0=i,f.x1=o,f.y1=u,void 0}for(var l=c[t],h=n/2+l,d=t+1,p=e-1;d<p;){var g=d+p>>>1;c[g]<h?d=g+1:p=g}var v=c[d]-l,m=n-v;if(u-i>o-r){var y=(i*m+u*v)/n;a(t,d,v,r,i,o,y),a(d,e,m,r,y,o,u)}else{var b=(r*m+o*v)/n;a(t,d,v,r,i,b,u),a(d,e,m,b,i,o,u)}}var o,u,s=t.children,f=s.length,c=new Array(f+1);for(c[0]=u=o=0;o<f;++o)c[o+1]=u+=s[o].value;a(0,f,t.value,e,n,r,i)}function sg(t,e,n,r,i){(1&t.depth?ig:Yp)(t,e,n,r,i)}function fg(t){Co.call(this,null,t)}function cg(t){return t.values}function lg(t){Co.call(this,null,t)}function hg(t){Co.call(this,{},t)}function dg(t){var e;return t.parent&&(e=t.parent.data)&&null!=Fa(e)&&e}function pg(t){var e=t||"tidy";if(Lz.hasOwnProperty(e))return Lz[e]();R("Unrecognized Tree layout method: "+e)}function gg(){var t=og();return t.ratio=function(e){var n=t.tile();n.ratio&&t.tile(n.ratio(e))},t.method=function(e){qz.hasOwnProperty(e)?t.tile(qz[e]):R("Unrecognized Treemap layout method: "+e)},t}function vg(t){Co.call(this,null,t)}function mg(t,e,n){for(var r,i=0,a=e.length;i<a;++i)r=e[i],r in n&&t[r](n[r])}function yg(t,e,n){for(var r=t.data,i=0,a=e.length-1;i<a;++i)r[n[i]]=t[e[i]];r[n[a]]=t.children?t.children.length:0}function bg(t){vg.call(this,t)}function _g(t){vg.call(this,t)}function xg(t){vg.call(this,t)}function wg(t){vg.call(this,t)}function Mg(t){return function(){return t}}function kg(t){return t[0]}function Eg(t){return t[1]}function Sg(){this._=null}function Cg(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Ag(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Tg(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Ng(t){for(;t.L;)t=t.L;return t}function zg(t,e,n,r){var i=[null,null],a=Vz.push(i)-1;return i.left=t,i.right=e,n&&Og(i,t,e,n),r&&Og(i,e,t,r),Hz[t.index].halfedges.push(a),Hz[e.index].halfedges.push(a),i}function Rg(t,e,n){var r=[e,n];return r.left=t,r}function Og(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function Dg(t,e,n,r,i){var a,o=t[0],u=t[1],s=o[0],f=o[1],c=u[0],l=u[1],h=0,d=1,p=c-s,g=l-f;if(a=e-s,p||!(a>0)){if(a/=p,p<0){if(a<h)return;a<d&&(d=a)}else if(p>0){if(a>d)return;a>h&&(h=a)}if(a=r-s,p||!(a<0)){if(a/=p,p<0){if(a>d)return;a>h&&(h=a)}else if(p>0){if(a<h)return;a<d&&(d=a)}if(a=n-f,g||!(a>0)){if(a/=g,g<0){if(a<h)return;a<d&&(d=a)}else if(g>0){if(a>d)return;a>h&&(h=a)}if(a=i-f,g||!(a<0)){if(a/=g,g<0){if(a>d)return;a>h&&(h=a)}else if(g>0){if(a<h)return;a<d&&(d=a)}return!(h>0||d<1)||(h>0&&(t[0]=[s+h*p,f+h*g]),d<1&&(t[1]=[s+d*p,f+d*g]),!0)}}}}}function Pg(t,e,n,r,i){var a=t[1];if(a)return!0;var o,u,s=t[0],f=t.left,c=t.right,l=f[0],h=f[1],d=c[0],p=c[1],g=(l+d)/2,v=(h+p)/2;if(p===h){if(g<e||g>=r)return;if(l>d){if(s){if(s[1]>=i)return}else s=[g,n];a=[g,i]}else{if(s){if(s[1]<n)return}else s=[g,i];a=[g,n]}}else if(o=(l-d)/(p-h),u=v-o*g,o<-1||o>1)if(l>d){if(s){if(s[1]>=i)return}else s=[(n-u)/o,n];a=[(i-u)/o,i]}else{if(s){if(s[1]<n)return}else s=[(i-u)/o,i];a=[(n-u)/o,n]}else if(h<p){if(s){if(s[0]>=r)return}else s=[e,o*e+u];a=[r,o*r+u]}else{if(s){if(s[0]<e)return}else s=[r,o*r+u];a=[e,o*e+u]}return t[0]=s,t[1]=a,!0}function qg(t,e,n,r){for(var i,a=Vz.length;a--;)Pg(i=Vz[a],t,e,n,r)&&Dg(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>Qz||Math.abs(i[0][1]-i[1][1])>Qz)||delete Vz[a]}function Lg(t){return Hz[t.index]={site:t,halfedges:[]}}function Ug(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function Fg(t,e){return e[+(e.left!==t.site)]}function jg(t,e){return e[+(e.left===t.site)]}function Ig(){for(var t,e,n,r,i=0,a=Hz.length;i<a;++i)if((t=Hz[i])&&(r=(e=t.halfedges).length)){var o=new Array(r),u=new Array(r);for(n=0;n<r;++n)o[n]=n,u[n]=Ug(t,Vz[e[n]]);for(o.sort(function(t,e){return u[e]-u[t]}),n=0;n<r;++n)u[n]=e[o[n]];for(n=0;n<r;++n)e[n]=u[n]}}function $g(t,e,n,r){var i,a,o,u,s,f,c,l,h,d,p,g,v=Hz.length,m=!0;for(i=0;i<v;++i)if(a=Hz[i]){for(o=a.site,s=a.halfedges,u=s.length;u--;)Vz[s[u]]||s.splice(u,1);for(u=0,f=s.length;u<f;)d=jg(a,Vz[s[u]]),p=d[0],g=d[1],c=Fg(a,Vz[s[++u%f]]),l=c[0],h=c[1],(Math.abs(p-l)>Qz||Math.abs(g-h)>Qz)&&(s.splice(u,0,Vz.push(Rg(o,d,Math.abs(p-t)<Qz&&r-g>Qz?[t,Math.abs(l-t)<Qz?h:r]:Math.abs(g-r)<Qz&&n-p>Qz?[Math.abs(h-r)<Qz?l:n,r]:Math.abs(p-n)<Qz&&g-e>Qz?[n,Math.abs(l-n)<Qz?h:e]:Math.abs(g-e)<Qz&&p-t>Qz?[Math.abs(h-e)<Qz?l:t,e]:null))-1),++f);f&&(m=!1)}if(m){var y,b,_,x=1/0;for(i=0,m=null;i<v;++i)(a=Hz[i])&&(o=a.site,y=o[0]-t,b=o[1]-e,_=y*y+b*b,_<x&&(x=_,m=a));if(m){var w=[t,e],M=[t,r],k=[n,r],E=[n,e];m.halfedges.push(Vz.push(Rg(o=m.site,w,M))-1,Vz.push(Rg(o,M,k))-1,Vz.push(Rg(o,k,E))-1,Vz.push(Rg(o,E,w))-1)}}for(i=0;i<v;++i)(a=Hz[i])&&(a.halfedges.length||delete Hz[i])}function Bg(){Cg(this),this.x=this.y=this.arc=this.site=this.cy=null}function Yg(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,a=n.site;if(r!==a){var o=i[0],u=i[1],s=r[0]-o,f=r[1]-u,c=a[0]-o,l=a[1]-u,h=2*(s*l-f*c);if(!(h>=-Kz)){var d=s*s+f*f,p=c*c+l*l,g=(l*d-f*p)/h,v=(s*p-c*d)/h,m=Jz.pop()||new Bg;m.arc=t,m.site=i,m.x=g+o,m.y=(m.cy=v+u)+Math.sqrt(g*g+v*v),t.circle=m;for(var y=null,b=Xz._;b;)if(m.y<b.y||m.y===b.y&&m.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}Xz.insert(y,m),y||(Gz=m)}}}}function Gg(t){var e=t.circle;e&&(e.P||(Gz=e.N),Xz.remove(e),Jz.push(e),Cg(e),t.circle=null)}function Wg(){Cg(this),this.edge=this.site=this.circle=null}function Hg(t){var e=Zz.pop()||new Wg;return e.site=t,e}function Xg(t){Gg(t),Wz.remove(t),Zz.push(t),Cg(t)}function Vg(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],a=t.P,o=t.N,u=[t];Xg(t);for(var s=a;s.circle&&Math.abs(n-s.circle.x)<Qz&&Math.abs(r-s.circle.cy)<Qz;)a=s.P,u.unshift(s),Xg(s),s=a;u.unshift(s),Gg(s);for(var f=o;f.circle&&Math.abs(n-f.circle.x)<Qz&&Math.abs(r-f.circle.cy)<Qz;)o=f.N,u.push(f),Xg(f),f=o;u.push(f),Gg(f);var c,l=u.length;for(c=1;c<l;++c)f=u[c],s=u[c-1],Og(f.edge,s.site,f.site,i);s=u[0],f=u[l-1],f.edge=zg(s.site,f.site,null,i),Yg(s),Yg(f)}function Jg(t){for(var e,n,r,i,a=t[0],o=t[1],u=Wz._;u;)if(r=Zg(u,o)-a,r>Qz)u=u.L;else{if(i=a-Qg(u,o),!(i>Qz)){r>-Qz?(e=u.P,n=u):i>-Qz?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}Lg(t);var s=Hg(t);if(Wz.insert(e,s),e||n){if(e===n)return Gg(e),n=Hg(e.site),Wz.insert(s,n),s.edge=n.edge=zg(e.site,s.site),Yg(e),void Yg(n);if(!n)return void(s.edge=zg(e.site,s.site));Gg(e),Gg(n);var f=e.site,c=f[0],l=f[1],h=t[0]-c,d=t[1]-l,p=n.site,g=p[0]-c,v=p[1]-l,m=2*(h*v-d*g),y=h*h+d*d,b=g*g+v*v,_=[(v*y-d*b)/m+c,(h*b-g*y)/m+l];Og(n.edge,f,p,_),s.edge=zg(f,t,null,_),n.edge=zg(t,p,null,_),Yg(e),Yg(n)}}function Zg(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-(1/0);n=o.site;var u=n[0],s=n[1],f=s-e;if(!f)return u;var c=u-r,l=1/a-1/f,h=c/f;return l?(-h+Math.sqrt(h*h-2*l*(c*c/(-2*f)-s+f/2+i-a/2)))/l+r:(r+u)/2}function Qg(t,e){var n=t.N;if(n)return Zg(n,e);var r=t.site;return r[1]===e?r[0]:1/0}function Kg(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function tv(t,e){return e[1]-t[1]||e[0]-t[0]}function ev(t,e){var n,r,i,a=t.sort(tv).pop();for(Vz=[],Hz=new Array(t.length),Wz=new Sg,Xz=new Sg;;)if(i=Gz,a&&(!i||a[1]<i.y||a[1]===i.y&&a[0]<i.x))a[0]===n&&a[1]===r||(Jg(a),n=a[0],r=a[1]),a=t.pop();else{if(!i)break;Vg(i.arc)}if(Ig(),e){var o=+e[0][0],u=+e[0][1],s=+e[1][0],f=+e[1][1];qg(o,u,s,f),$g(o,u,s,f)}this.edges=Vz,this.cells=Hz,Wz=Xz=Vz=Hz=null}function nv(){function t(t){return new ev(t.map(function(r,i){var a=[Math.round(e(r,i,t)/Qz)*Qz,Math.round(n(r,i,t)/Qz)*Qz];return a.index=i,a.data=r,a}),r)}var e=kg,n=Eg,r=null;return t.polygons=function(e){return t(e).polygons()},t.links=function(e){return t(e).links()},t.triangles=function(e){return t(e).triangles()},t.x=function(n){return arguments.length?(e="function"==typeof n?n:Mg(+n),t):e},t.y=function(e){return arguments.length?(n="function"==typeof e?e:Mg(+e),t):n},t.extent=function(e){return arguments.length?(r=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],t):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},t.size=function(e){return arguments.length?(r=null==e?null:[[0,0],[+e[0],+e[1]]],t):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},t}function rv(t){Co.call(this,null,t)}function iv(){function t(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(nR<<5)/e,t.height=rR/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function e(t,e,n){for(var r,i,a,o=e.x,u=e.y,s=Math.sqrt(f[0]*f[0]+f[1]*f[1]),l=c(f),d=h()<.5?1:-1,p=-d;(r=l(p+=d))&&(i=~~r[0],a=~~r[1],!(Math.min(Math.abs(i),Math.abs(a))>=s));)if(e.x=o+i,e.y=u+a,!(e.x+e.x0<0||e.y+e.y0<0||e.x+e.x1>f[0]||e.y+e.y1>f[1])&&(!n||!ov(e,t,f[0]))&&(!n||sv(e,n))){for(var g,v=e.sprite,m=e.width>>5,y=f[0]>>5,b=e.x-(m<<4),_=127&b,x=32-_,w=e.y1-e.y0,M=(e.y+e.y0)*y+(b>>5),k=0;k<w;k++){g=0;for(var E=0;E<=m;E++)t[M+E]|=g<<x|(E<m?(g=v[k*m+E])>>>_:0);M+=y}return e.sprite=null,!0}return!1}var n,r,i,a,o,u,s,f=[256,256],c=fv,l=[],h=Math.random,d={},p=hv;return d.layout=function(){for(var c=t(p()),d=lv((f[0]>>5)*f[1]),g=null,v=l.length,m=-1,y=[],b=l.map(function(t){return{text:n(t),font:r(t),style:a(t),weight:o(t),rotate:u(t),size:~~i(t),padding:s(t),xoff:0,yoff:0,x1:0,y1:0,x0:0,y0:0,hasText:!1,sprite:null,datum:t}}).sort(function(t,e){return e.size-t.size});++m<v;){var _=b[m];_.x=f[0]*(h()+.5)>>1,_.y=f[1]*(h()+.5)>>1,av(c,_,b,m),_.hasText&&e(d,_,g)&&(y.push(_),g?uv(g,_):g=[{x:_.x+_.x0,y:_.y+_.y0},{x:_.x+_.x1,y:_.y+_.y1}],_.x-=f[0]>>1,_.y-=f[1]>>1)}return y},d.words=function(t){return arguments.length?(l=t,d):l},d.size=function(t){return arguments.length?(f=[+t[0],+t[1]],d):f},d.font=function(t){return arguments.length?(r=dv(t),d):r},d.fontStyle=function(t){return arguments.length?(a=dv(t),d):a},d.fontWeight=function(t){return arguments.length?(o=dv(t),d):o},d.rotate=function(t){return arguments.length?(u=dv(t),d):u},d.text=function(t){return arguments.length?(n=dv(t),d):n},d.spiral=function(t){return arguments.length?(c=iR[t]||t,d):c},d.fontSize=function(t){return arguments.length?(i=dv(t),d):i},d.padding=function(t){return arguments.length?(s=dv(t),d):s},d.random=function(t){
  return arguments.length?(h=t,d):h},d}function av(t,e,n,r){if(!e.sprite){var i=t.context,a=t.ratio;i.clearRect(0,0,(nR<<5)/a,rR/a);var o,u,s,f,c,l=0,h=0,d=0,p=n.length;for(--r;++r<p;){if(e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/a)+"px "+e.font,o=i.measureText(e.text+"m").width*a,s=e.size<<1,e.rotate){var g=Math.sin(e.rotate*eR),v=Math.cos(e.rotate*eR),m=o*v,y=o*g,b=s*v,_=s*g;o=Math.max(Math.abs(m+_),Math.abs(m-_))+31>>5<<5,s=~~Math.max(Math.abs(y+b),Math.abs(y-b))}else o=o+31>>5<<5;if(s>d&&(d=s),l+o>=nR<<5&&(l=0,h+=d,d=0),h+s>=rR)break;i.translate((l+(o>>1))/a,(h+(s>>1))/a),e.rotate&&i.rotate(e.rotate*eR),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=o,e.height=s,e.xoff=l,e.yoff=h,e.x1=o>>1,e.y1=s>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,l+=o}for(var x=i.getImageData(0,0,(nR<<5)/a,rR/a).data,w=[];--r>=0;)if(e=n[r],e.hasText){for(o=e.width,u=o>>5,s=e.y1-e.y0,f=0;f<s*u;f++)w[f]=0;if(l=e.xoff,null==l)return;h=e.yoff;var M=0,k=-1;for(c=0;c<s;c++){for(f=0;f<o;f++){var E=u*c+(f>>5),S=x[(h+c)*(nR<<5)+(l+f)<<2]?1<<31-f%32:0;w[E]|=S,M|=S}M?k=c:(e.y0++,s--,c--,h++)}e.y1=e.y0+k,e.sprite=w.slice(0,(e.y1-e.y0)*u)}}}function ov(t,e,n){n>>=5;for(var r,i=t.sprite,a=t.width>>5,o=t.x-(a<<4),u=127&o,s=32-u,f=t.y1-t.y0,c=(t.y+t.y0)*n+(o>>5),l=0;l<f;l++){r=0;for(var h=0;h<=a;h++)if((r<<s|(h<a?(r=i[l*a+h])>>>u:0))&e[c+h])return!0;c+=n}return!1}function uv(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function sv(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function fv(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function cv(t){var e=4,n=e*t[0]/t[1],r=0,i=0;return function(t){var a=t<0?-1:1;switch(Math.sqrt(1+4*a*t)-a&3){case 0:r+=n;break;case 1:i+=e;break;case 2:r-=n;break;default:i-=e}return[r,i]}}function lv(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function hv(){try{return"undefined"!=typeof document&&document.createElement?document.createElement("canvas"):new(require("canvas"))}catch(t){R("Canvas unavailable. Run in browser or install node-canvas.")}}function dv(t){return"function"==typeof t?t:function(){return t}}function pv(t){Co.call(this,iv(),t)}function gv(t,e){var n=new HE.Extent;return n.transform({field:t,modified:Bw},e),n.value}function vv(t){return new Uint8Array(t)}function mv(t){return new Uint16Array(t)}function yv(t){return new Uint32Array(t)}function bv(){var t=8,e=[],n=yv(0),r=xv(0,t),i=xv(0,t);return{data:function(){return e},seen:function(){return n=_v(n,e.length)},add:function(t){for(var n,r=0,i=e.length,a=t.length;r<a;++r)n=t[r],n._index=i++,e.push(n)},remove:function(t,n){var a,o,u,s=e.length,f=Array(s-t),c=e;for(o=0;!n[o]&&o<s;++o)f[o]=e[o],c[o]=o;for(u=o;o<s;++o)a=e[o],n[o]?c[o]=-1:(c[o]=u,r[u]=r[o],i[u]=i[o],f[u]=a,a._index=u++),r[o]=0;return e=f,c},size:function(){return e.length},curr:function(){return r},prev:function(){return i},reset:function(t){i[t]=r[t]},all:function(){return t<257?255:t<65537?65535:4294967295},set:function(t,e){r[t]|=e},clear:function(t,e){r[t]&=~e},resize:function(e,n){(e>r.length||n>t)&&(t=Math.max(n,t),r=xv(e,t,r),i=xv(e,t))}}}function _v(t,e,n){return t.length>=e?t:(n=n||new t.constructor(e),n.set(t),n)}function xv(t,e,n){var r=(e<257?vv:e<65537?mv:yv)(t);return n&&r.set(n),r}function wv(t,e,n){var r=1<<e;return{one:r,zero:~r,range:n.slice(),bisect:t.bisect,index:t.index,size:t.size,onAdd:function(t,e){var n,i=this,a=i.bisect(i.range,t.value),o=t.index,u=a[0],s=a[1],f=o.length;for(n=0;n<u;++n)e[o[n]]|=r;for(n=s;n<f;++n)e[o[n]]|=r;return i}}}function Mv(){function t(t,e,n){if(!e.length)return[];var r,u,s,f=o,c=e.length,l=Array(c),h=yv(c);for(s=0;s<c;++s)l[s]=t(e[s]),h[s]=s;if(l=kv(l,h),f)r=a,u=i,a=Array(f+c),i=yv(f+c),Ev(n,r,u,f,l,h,c,a,i);else{if(n>0)for(s=0;s<c;++s)h[s]+=n;a=l,i=h}return o=f+c,{index:h,value:l}}function e(t,e){var n,r,u,s=o;for(r=0;!e[i[r]]&&r<s;++r);for(u=r;r<s;++r)e[n=i[r]]||(i[u]=n,a[u]=a[r],++u);o=s-t}function n(t){for(var e=0,n=o;e<n;++e)i[e]=t[i[e]]}function r(t,e){var n=e?e.length:(e=a,o);return[Ow(e,t[0],0,n),Rw(e,t[1],0,n)]}var i=yv(0),a=[],o=0;return{insert:t,remove:e,bisect:r,reindex:n,index:function(){return i},size:function(){return o}}}function kv(t,e){return t.sort.call(e,function(e,n){var r=t[e],i=t[n];return r<i?-1:r>i?1:0}),b(t,e)}function Ev(t,e,n,r,i,a,o,u,s){var f,c=0,l=0;for(f=0;c<r&&l<o;++f)e[c]<i[l]?(u[f]=e[c],s[f]=n[c++]):(u[f]=i[l],s[f]=a[l++]+t);for(;c<r;++c,++f)u[f]=e[c],s[f]=n[c];for(;l<o;++l,++f)u[f]=i[l],s[f]=a[l]+t}function Sv(t){Co.call(this,bv(),t),this._indices=null,this._dims=null}function Cv(t){Co.call(this,null,t)}function Av(t){Co.call(this,null,t)}function Tv(t,e,n){return t.bounds_prev.clear().union(t.bounds),e(t.bounds.clear(),t,n)}function Nv(t){Co.call(this,null,t)}function zv(t){var e=t.groups,n=t.parent;return e&&1===e.size?e.get(Object.keys(e.object)[0]):e&&n?e.lookup(n):null}function Rv(t){Co.call(this,null,t)}function Ov(t){Co.call(this,null,t)}function Dv(t,e,n){var r,i,a,o,u,s=e.items,f=Math.max(0,e.width||0),c=Math.max(0,e.height||0),l=(new sn).set(0,0,f,c),h=l.clone(),d=[];for(o=0,u=s.length;o<u;++o)switch(r=s[o],r.role){case dR:a=Lv(t,r,f,c),(Pv(r)?h:l).union(a);break;case gR:d.push(r);break;case pR:case vR:h.union(r.bounds);break;default:l.union(r.bounds)}if(d.length)for(i={left:0,right:0,margin:n.legendMargin||8},o=0,u=d.length;o<u;++o)a=Fv(t,d[o],i,h,f,c),n.autosize&&n.autosize.type===cR?l.add(a.x1,0).add(a.x2,0):l.union(a);jv(t,e,l.union(h),n)}function Pv(t){var e=t.items[0].datum.orient;return"left"===e||"right"===e}function qv(t){var e=+t.grid;return[t.ticks?e++:-1,t.labels?e++:-1,e+ +t.domain]}function Lv(t,e,n,r){var i,a,o=e.items[0],u=o.datum,s=u.orient,f=qv(u),c=o.range,l=o.offset,h=o.position,d=o.minExtent,p=o.maxExtent,g=u.title&&o.items[f[2]].items[0],v=o.titlePadding,m=g?g.fontSize+v:0,y=o.bounds,b=0,_=0;switch(y.clear(),(i=f[0])>-1&&y.union(o.items[i].bounds),(i=f[1])>-1&&y.union(o.items[i].bounds),s){case"top":b=h||0,_=-l,a=Math.max(d,Math.min(p,-y.y1)),g&&(g.auto?(g.y=-(v+a),a+=m):y.union(g.bounds)),y.add(0,-a).add(c,0);break;case"left":b=-l,_=h||0,a=Math.max(d,Math.min(p,-y.x1)),g&&(g.auto?(g.x=-(v+a),a+=m):y.union(g.bounds)),y.add(-a,0).add(0,c);break;case"right":b=n+l,_=h||0,a=Math.max(d,Math.min(p,y.x2)),g&&(g.auto?(g.x=v+a,a+=m):y.union(g.bounds)),y.add(0,0).add(a,c);break;case"bottom":b=h||0,_=r+l,a=Math.max(d,Math.min(p,y.y2)),g&&(g.auto?(g.y=v+a,a+=m):y.union(g.bounds)),y.add(0,0).add(c,a);break;default:b=o.x,_=o.y}return Uv(o,"x",b+.5)|Uv(o,"y",_+.5)&&t.enqueue([o]),Jr(y.translate(b,_),o),o.mark.bounds.clear().union(y),y}function Uv(t,e,n){return t[e]===n?0:(t[e]=n,1)}function Fv(t,e,n,r,i,a){var o,u,s=e.items[0],f=s.datum,c=f.orient,l=s.offset,h=s.bounds.clear(),d=0,p=n[c]||0;switch(s.items.forEach(function(t){h.union(t.bounds)}),o=Math.round(h.width())+2*s.padding-1,u=Math.round(h.height())+2*s.padding-1,c){case"left":d-=o+l-Math.floor(r.x1),n.left+=u+n.margin;break;case"right":d+=l+Math.ceil(r.x2),n.right+=u+n.margin;break;case"top-left":d+=l,p+=l;break;case"top-right":d+=i-o-l,p+=l;break;case"bottom-left":d+=l,p+=a-u-l;break;case"bottom-right":d+=i-o-l,p+=a-u-l;break;default:d=s.x,p=s.y}return Uv(s,"x",d)|Uv(s,"width",o)|Uv(s,"y",p)|Uv(s,"height",u)&&t.enqueue([s]),Jr(h.set(d,p,d+o,p+u),s),s.mark.bounds.clear().union(h),h}function jv(t,e,n,r){var i=r.autosize&&r.autosize.type,a=r.autosize&&r.autosize.resize,o=t._width,u=t._height;if(!(t._autosize<1)&&i){var s=Math.max(0,e.width||0),f=Math.max(0,Math.ceil(-n.x1)),c=Math.max(0,Math.ceil(n.x2-s)),l=Math.max(0,e.height||0),h=Math.max(0,Math.ceil(-n.y1)),d=Math.max(0,Math.ceil(n.y2-l));i===hR?(o=s,u=l,f=0,h=0):i===cR?(s=Math.max(0,o-f-c),l=Math.max(0,u-h-d)):i===lR&&(o=s+f+c,u=l+h+d),t.autosize(o,u,s,l,[f,h],a)}}function Iv(t){var e=t._signals.cursor;e||(t._signals.cursor=e=t.add({user:mR,item:null})),t.on(t.events("view","mousemove"),e,function(t,n){var r=e.value,i=r?P(r)?r:r.user:mR,a=n.item&&n.item.cursor||null;return r&&i===r.user&&a==r.item?r:{user:i,item:a}}),t.add(null,function(t){var e=t.cursor,n=this.value;return P(e)||(n=e.item,e=e.user),$v(e&&e!==mR?e:n||e),n},{cursor:e})}function $v(t){"undefined"!=typeof document&&document.body&&(document.body.style.cursor=t)}function Bv(t,e){var n=t._runtime.data;return n.hasOwnProperty(e)||t.error("Unrecognized data set: "+e),n[e]}function Yv(t){return Bv(this,t).values.value}function Gv(t,e){Ga(e)||this.error("Second argument to changes must be a changeset.");var n=Bv(this,t);return n.modified=!0,this.pulse(n.input,e)}function Wv(t,e){return Gv.call(this,t,Wa().insert(e))}function Hv(t,e){return Gv.call(this,t,Wa().remove(e))}function Xv(t){var e=t.padding();return Math.max(0,t._width+e.left+e.right)}function Vv(t){var e=t.padding();return Math.max(0,t._height+e.top+e.bottom)}function Jv(t){var e=t.padding(),n=t._origin;return[e.left+n[0],e.top+n[1]]}function Zv(t){var e=Jv(t);t._renderer.background(t._background),t._renderer.resize(Xv(t),Vv(t),e),t._handler.origin(e)}function Qv(t,e,n){var r,i,a,o=t._renderer.element();return o&&(a=Jv(t),i=e.changedTouches?e.changedTouches[0]:e,r=ca(i,o),r[0]-=a[0],r[1]-=a[1]),e.vega=Kv(t,n,r),e.item=n,e}function Kv(t,e,n){function r(t){var n,r=a;if(t)for(n=e;n;n=n.mark.group)if(n.mark.name===t){r=n;break}return r&&r.mark&&r.mark.interactive?r:{}}function i(t){if(!t)return n;P(t)&&(t=r(t));for(var e=n.slice();t;)e[0]-=t.x||0,e[1]-=t.y||0,t=t.mark&&t.mark.group;return e}var a=e?"group"===e.mark.marktype?e:e.mark.group:null;return{view:B(t),item:B(e||{}),group:r,xy:i,x:function(t){return i(t)[0]},y:function(t){return i(t)[1]}}}function tm(t,e,n){var r,i=this,a=new Qa(n),o=function(e,n){i.preventDefault()&&t===yR&&e.preventDefault(),a.receive(Qv(i,e,n)),i.run()};if(t===yR)return i.addEventListener(e,o),a;if(t===bR?"undefined"!=typeof window&&(r=[window]):"undefined"!=typeof document&&(r=document.querySelectorAll(t)),!r)return i.warn("Can not resolve event source: "+t),a;for(var u=0,s=r.length;u<s;++u)r[u].addEventListener(e,o);return i._eventListeners.push({type:e,sources:r,handler:o}),a}function em(t){return t.item}function nm(t){var e=t.item.mark.source;return e.source||e}function rm(t){return function(e,n){return n.vega.view().changeset().encode(n.item,t)}}function im(t,e){return this.on(this.events("view","mouseover",em),nm,rm(t||"hover")),this.on(this.events("view","mouseout",em),nm,rm(e||"update")),this}function am(){for(var t,e,n=this._eventListeners,r=n.length;--r>=0;)for(e=n[r],t=e.sources.length;--t>=0;)e.sources[t].removeEventListener(e.type,e.handler)}function om(t,e,n){var r=document.createElement(t);for(var i in e)r.setAttribute(i,e[i]);return null!=n&&(r.textContent=n),r}function um(t,e,n){var r=n.param,i=n.state||(n.state={elements:null,set:null,update:function(e){i.source=!0,t.signal(r.signal,e).run()},active:!1});return P(e)&&(e=document.querySelector(e)),sm(i,e,r,t.signal(r.signal)),i.active||(t.on(t._signals[r.signal],null,function(){i.source?i.source=!1:i.set(t.signal(r.signal))}),i.active=!0),i}function sm(t,e,n,r){var i=om("div",{class:_R});i.appendChild(om("span",{class:xR},n.name||n.signal)),e.appendChild(i);var a=fm;switch(n.input){case"checkbox":a=cm;break;case"select":a=lm;break;case"radio":a=hm;break;case"range":a=dm}a(t,i,n,r)}function fm(t,e,n,r){var i=om("input");for(var a in n)"signal"!==a&&"element"!==a&&i.setAttribute("input"===a?"type":a,n[a]);i.setAttribute("name",n.signal),i.setAttribute("value",r),e.appendChild(i),i.addEventListener("input",function(){t.update(i.value)}),t.elements=[i],t.set=function(t){i.value=t}}function cm(t,e,n,r){var i={type:"checkbox",name:n.signal};r&&(i.checked=!0);var a=om("input",i);e.appendChild(a),a.addEventListener("change",function(){t.update(a.checked)}),t.elements=[a],t.set=function(t){a.checked=!!t||null}}function lm(t,e,n,r){var i=om("select",{name:n.signal});n.options.forEach(function(t){var e={value:t};pm(t,r)&&(e.selected=!0),i.appendChild(om("option",e,t+""))}),e.appendChild(i),i.addEventListener("change",function(){t.update(n.options[i.selectedIndex])}),t.elements=[i],t.set=function(t){for(var e=0,r=n.options.length;e<r;++e)if(pm(n.options[e],t))return void(i.selectedIndex=e)}}function hm(t,e,n,r){var i=om("span",{class:wR});e.appendChild(i),t.elements=n.options.map(function(e){var a=MR+n.signal+"-"+e,o={id:a,type:"radio",name:n.signal,value:e};pm(e,r)&&(o.checked=!0);var u=om("input",o);return u.addEventListener("change",function(){t.update(e)}),i.appendChild(u),i.appendChild(om("label",{for:a},e+"")),u}),t.set=function(e){for(var n=t.elements,r=0,i=n.length;r<i;++r)pm(n[r].value,e)&&(n[r].checked=!0)}}function dm(t,e,n,r){r=void 0!==r?r:(+n.max+ +n.min)/2;var i=n.min||Math.min(0,+r)||0,a=n.max||Math.max(100,+r)||100,o=n.step||h(i,a,100),u=om("input",{type:"range",value:r,name:n.signal,min:i,max:a,step:o}),s=om("label",{},+r);e.appendChild(u),e.appendChild(s),u.addEventListener("input",function(){s.textContent=u.value,t.update(+u.value)}),t.elements=[u],t.set=function(t){u.value=t,s.textContent=t}}function pm(t,e){return t===e||t+""==e+""}function gm(t,e,n,r){return e=e||new r(t.loader()),e.initialize(n,Xv(t),Vv(t),Jv(t)).background(t._background)}function vm(t,e,n,r){var i=(new r).scene(t.scenegraph().root).initialize(n,Jv(t),t);return e&&(i.handleTooltip=e.handleTooltip,e.handlers().forEach(function(t){i.on(t.type,t.handler)})),i}function mm(t,e){var n,r,i=this,a=i._renderType,o=Da(a);return t=i._el=t?ym(i,t):null,o||i.error("Unrecognized renderer type: "+a),n=o.handler||la,r=t?o.renderer:o.headless,i._renderer=r?gm(i,i._renderer,t,r):null,i._handler=vm(i,i._handler,t,n),t&&(e=e?ym(i,e):t.appendChild(om("div",{class:"vega-bindings"})),i._bind.forEach(function(t){um(i,t.param.element||e,t)})),i}function ym(t,e){return"string"==typeof e&&(e="undefined"!=typeof document?document.querySelector(e):t.error("DOM document instance not found.")),e.innerHTML="",e}function bm(t,e){var n=Da(e);return n&&n.headless?t.runAsync().then(function(){return gm(t,null,null,n.headless).renderAsync(t._scenegraph.root)}):Promise.reject("Unrecognized renderer type: "+e)}function _m(t){return t!==yE.Canvas&&t!==yE.SVG&&t!==yE.PNG?Promise.reject("Unrecognized image type: "+t):bm(this,t).then(function(e){return t===yE.SVG?xm(e.svg(),"image/svg+xml"):e.canvas().toDataURL("image/png")})}function xm(t,e){var n=new Blob([t],{type:e});return window.URL.createObjectURL(n)}function wm(){return bm(this,yE.Canvas).then(function(t){return t.canvas()})}function Mm(){return bm(this,yE.SVG).then(function(t){return t.svg()})}function km(t,e){return t=t||e.autosize,D(t)?t:(t=t||"pad",{type:t})}function Em(t,e){return t=t||e.padding,D(t)?t:(t=+t||0,{top:t,bottom:t,left:t,right:t})}function Sm(t,e){R(t+' for "outer" push: '+q(e))}function Cm(t,e){var n=t.name;if(t.push===kR)e.signals[n]||Sm("No prior signal definition",n),ER.forEach(function(e){void 0!==t[e]&&Sm("Invalid property ",e)});else{var r=e.addSignal(n,t.value);t.react===!1&&(r.react=!1),t.bind&&e.addBinding(n,t.bind)}}function Am(t){this.type=t}function Tm(t){switch(t.type){case"ArrayExpression":return t.elements;case"BinaryExpression":case"LogicalExpression":return[t.left,t.right];case"CallExpression":var e=t.arguments.slice();return e.unshift(t.callee),e;case"ConditionalExpression":return[t.test,t.consequent,t.alternate];case"MemberExpression":return[t.object,t.property];case"ObjectExpression":return t.properties;case"Property":return[t.key,t.value];case"UnaryExpression":return[t.argument];case"Identifier":case"Literal":case"RawCode":default:return[]}}function Nm(t,e){if(!t)throw new Error("ASSERT: "+e)}function zm(t){return t>=48&&t<=57}function Rm(t){return"0123456789abcdefABCDEF".indexOf(t)>=0}function Om(t){return"01234567".indexOf(t)>=0}function Dm(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(t)>=0}function Pm(t){return 10===t||13===t||8232===t||8233===t}function qm(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||92===t||t>=128&&uO.test(String.fromCharCode(t))}function Lm(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||92===t||t>=128&&sO.test(String.fromCharCode(t))}function Um(){for(var t;CR<AR&&(t=SR.charCodeAt(CR),Dm(t)||Pm(t));)++CR}function Fm(t){var e,n,r,i=0;for(n="u"===t?4:2,e=0;e<n;++e)CR<AR&&Rm(SR[CR])?(r=SR[CR++],i=16*i+"0123456789abcdef".indexOf(r.toLowerCase())):dy({},VR,aO);return String.fromCharCode(i)}function jm(){var t,e,n,r;for(t=SR[CR],e=0,"}"===t&&dy({},VR,aO);CR<AR&&(t=SR[CR++],Rm(t));)e=16*e+"0123456789abcdef".indexOf(t.toLowerCase());return(e>1114111||"}"!==t)&&dy({},VR,aO),e<=65535?String.fromCharCode(e):(n=(e-65536>>10)+55296,r=(e-65536&1023)+56320,String.fromCharCode(n,r))}function Im(){var t,e;for(t=SR.charCodeAt(CR++),e=String.fromCharCode(t),92===t&&(117!==SR.charCodeAt(CR)&&dy({},VR,aO),++CR,t=Fm("u"),t&&"\\"!==t&&qm(t.charCodeAt(0))||dy({},VR,aO),e=t);CR<AR&&(t=SR.charCodeAt(CR),Lm(t));)++CR,e+=String.fromCharCode(t),92===t&&(e=e.substr(0,e.length-1),117!==SR.charCodeAt(CR)&&dy({},VR,aO),++CR,t=Fm("u"),t&&"\\"!==t&&Lm(t.charCodeAt(0))||dy({},VR,aO),e+=t);return e}function $m(){var t,e;for(t=CR++;CR<AR;){if(e=SR.charCodeAt(CR),92===e)return CR=t,Im();if(!Lm(e))break;++CR}return SR.slice(t,CR)}function Bm(){var t,e,n;return t=CR,e=92===SR.charCodeAt(CR)?Im():$m(),n=1===e.length?RR:fO.hasOwnProperty(e)?OR:"null"===e?DR:"true"===e||"false"===e?NR:RR,{type:n,value:e,start:t,end:CR}}function Ym(){var t,e,n,r,i=CR,a=SR.charCodeAt(CR),o=SR[CR];switch(a){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++CR,{type:qR,value:String.fromCharCode(a),start:i,end:CR};default:if(t=SR.charCodeAt(CR+1),61===t)switch(a){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return CR+=2,{type:qR,value:String.fromCharCode(a)+String.fromCharCode(t),start:i,end:CR};case 33:case 61:return CR+=2,61===SR.charCodeAt(CR)&&++CR,{type:qR,value:SR.slice(i,CR),start:i,end:CR}}}return r=SR.substr(CR,4),">>>="===r?(CR+=4,{type:qR,value:r,start:i,end:CR}):(n=r.substr(0,3),">>>"===n||"<<="===n||">>="===n?(CR+=3,{type:qR,value:n,start:i,end:CR}):(e=n.substr(0,2),o===e[1]&&"+-<>&|".indexOf(o)>=0||"=>"===e?(CR+=2,{type:qR,value:e,start:i,end:CR}):"<>=!+-*%&|^/".indexOf(o)>=0?(++CR,{type:qR,value:o,start:i,end:CR}):void dy({},VR,aO)))}function Gm(t){for(var e="";CR<AR&&Rm(SR[CR]);)e+=SR[CR++];return 0===e.length&&dy({},VR,aO),qm(SR.charCodeAt(CR))&&dy({},VR,aO),{type:PR,value:parseInt("0x"+e,16),start:t,end:CR}}function Wm(t){for(var e="0"+SR[CR++];CR<AR&&Om(SR[CR]);)e+=SR[CR++];return(qm(SR.charCodeAt(CR))||zm(SR.charCodeAt(CR)))&&dy({},VR,aO),{type:PR,value:parseInt(e,8),octal:!0,start:t,end:CR}}function Hm(){var t,e,n;if(n=SR[CR],Nm(zm(n.charCodeAt(0))||"."===n,"Numeric literal must start with a decimal digit or a decimal point"),e=CR,t="","."!==n){if(t=SR[CR++],n=SR[CR],"0"===t){if("x"===n||"X"===n)return++CR,Gm(e);if(Om(n))return Wm(e);n&&zm(n.charCodeAt(0))&&dy({},VR,aO)}for(;zm(SR.charCodeAt(CR));)t+=SR[CR++];n=SR[CR]}if("."===n){for(t+=SR[CR++];zm(SR.charCodeAt(CR));)t+=SR[CR++];n=SR[CR]}if("e"===n||"E"===n)if(t+=SR[CR++],n=SR[CR],"+"!==n&&"-"!==n||(t+=SR[CR++]),zm(SR.charCodeAt(CR)))for(;zm(SR.charCodeAt(CR));)t+=SR[CR++];else dy({},VR,aO);return qm(SR.charCodeAt(CR))&&dy({},VR,aO),{type:PR,value:parseFloat(t),start:e,end:CR}}function Xm(){var t,e,n,r,i="",a=!1;for(t=SR[CR],Nm("'"===t||'"'===t,"String literal must starts with a quote"),e=CR,++CR;CR<AR;){if(n=SR[CR++],n===t){t="";break}if("\\"===n)if(n=SR[CR++],n&&Pm(n.charCodeAt(0)))"\r"===n&&"\n"===SR[CR]&&++CR;else switch(n){case"u":case"x":"{"===SR[CR]?(++CR,i+=jm()):i+=Fm(n);break;case"n":i+="\n";break;case"r":i+="\r";break;case"t":i+="\t";break;case"b":i+="\b";break;case"f":i+="\f";break;case"v":i+="\v";break;default:Om(n)?(r="01234567".indexOf(n),0!==r&&(a=!0),CR<AR&&Om(SR[CR])&&(a=!0,r=8*r+"01234567".indexOf(SR[CR++]),"0123".indexOf(n)>=0&&CR<AR&&Om(SR[CR])&&(r=8*r+"01234567".indexOf(SR[CR++]))),i+=String.fromCharCode(r)):i+=n}else{if(Pm(n.charCodeAt(0)))break;i+=n}}return""!==t&&dy({},VR,aO),{type:LR,value:i,octal:a,start:e,end:CR}}function Vm(t,e){var n=t;e.indexOf("u")>=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(t,e){if(parseInt(e,16)<=1114111)return"x";dy({},eO)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(n)}catch(t){dy({},eO)}try{return new RegExp(t,e)}catch(t){return null}}function Jm(){var t,e,n,r,i;for(t=SR[CR],Nm("/"===t,"Regular expression literal must start with a slash"),e=SR[CR++],n=!1,r=!1;CR<AR;)if(t=SR[CR++],e+=t,"\\"===t)t=SR[CR++],Pm(t.charCodeAt(0))&&dy({},nO),e+=t;else if(Pm(t.charCodeAt(0)))dy({},nO);else if(n)"]"===t&&(n=!1);else{if("/"===t){r=!0;break}"["===t&&(n=!0)}return r||dy({},nO),i=e.substr(1,e.length-2),{value:i,literal:e}}function Zm(){var t,e,n;for(e="",n="";CR<AR&&(t=SR[CR],Lm(t.charCodeAt(0)));)++CR,"\\"===t&&CR<AR?dy({},VR,aO):(n+=t,e+=t);return n.search(/[^gimuy]/g)>=0&&dy({},eO,n),{value:n,literal:e}}function Qm(){var t,e,n,r;return TR=null,Um(),t=CR,e=Jm(),n=Zm(),r=Vm(e.value,n.value),{literal:e.literal+n.literal,value:r,regex:{pattern:e.value,flags:n.value},start:t,end:CR}}function Km(t){return t.type===RR||t.type===OR||t.type===NR||t.type===DR}function ty(){var t;return Um(),CR>=AR?{type:zR,start:CR,end:CR}:(t=SR.charCodeAt(CR),qm(t)?Bm():40===t||41===t||59===t?Ym():39===t||34===t?Xm():46===t?zm(SR.charCodeAt(CR+1))?Hm():Ym():zm(t)?Hm():Ym())}function ey(){var t;return t=TR,CR=t.end,TR=ty(),CR=t.end,t}function ny(){var t;t=CR,TR=ty(),CR=t}function ry(t){var e=new Am(UR);return e.elements=t,e}function iy(t,e,n){var r=new Am("||"===t||"&&"===t?YR:FR);return r.operator=t,r.left=e,r.right=n,r}function ay(t,e){var n=new Am(jR);return n.callee=t,n.arguments=e,n}function oy(t,e,n){var r=new Am(IR);return r.test=t,r.consequent=e,r.alternate=n,r}function uy(t){var e=new Am($R);return e.name=t,e}function sy(t){var e=new Am(BR);return e.value=t.value,e.raw=SR.slice(t.start,t.end),t.regex&&("//"===e.raw&&(e.raw="/(?:)/"),e.regex=t.regex),e}function fy(t,e,n){var r=new Am(GR);return r.computed="["===t,r.object=e,r.property=n,r.computed||(n.member=!0),r}function cy(t){var e=new Am(WR);return e.properties=t,e}function ly(t,e,n){var r=new Am(HR);return r.key=e,r.value=n,r.kind=t,r}function hy(t,e){var n=new Am(XR);return n.operator=t,n.argument=e,n.prefix=!0,n}function dy(t,e){var n,r=Array.prototype.slice.call(arguments,2),i=e.replace(/%(\d)/g,function(t,e){return Nm(e<r.length,"Message reference must be in range"),r[e]});throw n=new Error(i),n.index=CR,n.description=i,n}function py(t){t.type===zR&&dy(t,tO),t.type===PR&&dy(t,JR),t.type===LR&&dy(t,ZR),t.type===RR&&dy(t,QR),t.type===OR&&dy(t,KR),dy(t,VR,t.value)}function gy(t){var e=ey();e.type===qR&&e.value===t||py(e)}function vy(t){return TR.type===qR&&TR.value===t}function my(t){return TR.type===OR&&TR.value===t}function yy(){var t=[];for(CR=TR.start,gy("[");!vy("]");)vy(",")?(ey(),t.push(null)):(t.push(Oy()),vy("]")||gy(","));return ey(),ry(t)}function by(){var t;return CR=TR.start,t=ey(),t.type===LR||t.type===PR?(t.octal&&dy(t,rO),sy(t)):uy(t.value)}function _y(){var t,e,n,r;return CR=TR.start,t=TR,t.type===RR?(n=by(),gy(":"),r=Oy(),ly("init",n,r)):t.type!==zR&&t.type!==qR?(e=by(),gy(":"),r=Oy(),ly("init",e,r)):void py(t)}function xy(){var t,e,n,r=[],i={},a=String;for(CR=TR.start,gy("{");!vy("}");)t=_y(),e=t.key.type===$R?t.key.name:a(t.key.value),n="$"+e,Object.prototype.hasOwnProperty.call(i,n)?dy({},iO):i[n]=!0,r.push(t),vy("}")||gy(",");return gy("}"),cy(r)}function wy(){var t;return gy("("),t=Dy(),gy(")"),t}function My(){var t,e,n;if(vy("("))return wy();if(vy("["))return yy();if(vy("{"))return xy();if(t=TR.type,CR=TR.start,t===RR||cO[TR.value])n=uy(ey().value);else if(t===LR||t===PR)TR.octal&&dy(TR,rO),n=sy(ey());else{if(t===OR)throw new Error(oO);t===NR?(e=ey(),e.value="true"===e.value,n=sy(e)):t===DR?(e=ey(),e.value=null,n=sy(e)):vy("/")||vy("/=")?(n=sy(Qm()),ny()):py(ey())}return n}function ky(){var t=[];if(gy("("),!vy(")"))for(;CR<AR&&(t.push(Oy()),!vy(")"));)gy(",");return gy(")"),t}function Ey(){var t;return CR=TR.start,t=ey(),Km(t)||py(t),uy(t.value)}function Sy(){return gy("."),Ey()}function Cy(){var t;return gy("["),t=Dy(),gy("]"),t}function Ay(){var t,e,n;for(t=My();;)if(vy("."))n=Sy(),t=fy(".",t,n);else if(vy("("))e=ky(),t=ay(t,e);else{if(!vy("["))break;n=Cy(),t=fy("[",t,n)}return t}function Ty(){var t=Ay();if(TR.type===qR&&(vy("++")||vy("--")))throw new Error(oO);return t}function Ny(){var t,e;if(TR.type!==qR&&TR.type!==OR)e=Ty();else{if(vy("++")||vy("--"))throw new Error(oO);if(vy("+")||vy("-")||vy("~")||vy("!"))t=ey(),e=Ny(),e=hy(t.value,e);else{if(my("delete")||my("void")||my("typeof"))throw new Error(oO);e=Ty()}}return e}function zy(t){var e=0;if(t.type!==qR&&t.type!==OR)return 0;switch(t.value){case"||":e=1;break;case"&&":e=2;break;case"|":e=3;break;case"^":e=4;break;case"&":e=5;break;case"==":case"!=":case"===":case"!==":e=6;break;case"<":case">":case"<=":case">=":case"instanceof":case"in":e=7;break;case"<<":case">>":case">>>":e=8;break;case"+":case"-":e=9;break;case"*":case"/":case"%":e=11}return e}function Ry(){var t,e,n,r,i,a,o,u,s,f;if(t=TR,s=Ny(),r=TR,i=zy(r),0===i)return s;for(r.prec=i,ey(),e=[t,TR],o=Ny(),a=[s,r,o];(i=zy(TR))>0;){for(;a.length>2&&i<=a[a.length-2].prec;)o=a.pop(),u=a.pop().value,s=a.pop(),e.pop(),n=iy(u,s,o),a.push(n);r=ey(),r.prec=i,a.push(r),e.push(TR),n=Ny(),a.push(n)}for(f=a.length-1,n=a[f],e.pop();f>1;)e.pop(),n=iy(a[f-1].value,a[f-2],n),f-=2;return n}function Oy(){var t,e,n;return t=Ry(),vy("?")&&(ey(),e=Oy(),gy(":"),n=Oy(),t=oy(t,e,n)),t}function Dy(){var t=Oy();if(vy(","))throw new Error(oO);return t}function Py(t){SR=t,CR=0,AR=SR.length,TR=null,ny();var e=Dy();if(TR.type!==zR)throw new Error("Unexpect token after expression.");return e}function qy(t){function e(e,n,r,i){var a=t(n[0]);return r&&(a=r+"("+a+")",0===r.lastIndexOf("new ",0)&&(a="("+a+")")),a+"."+e+(i<0?"":0===i?"()":"("+n.slice(1).map(t).join(",")+")")}function n(t,n,r){return function(i){return e(t,i,n,r)}}var r="new Date",i="String",a="RegExp";return{isNaN:"isNaN",isFinite:"isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(e){e.length<3&&R("Missing arguments to clamp function."),e.length>3&&R("Too many arguments to clamp function.");var n=e.map(t);return"Math.max("+n[1]+", Math.min("+n[2]+","+n[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:r,date:n("getDate",r,0),day:n("getDay",r,0),year:n("getFullYear",r,0),month:n("getMonth",r,0),hours:n("getHours",r,0),minutes:n("getMinutes",r,0),seconds:n("getSeconds",r,0),milliseconds:n("getMilliseconds",r,0),time:n("getTime",r,0),timezoneoffset:n("getTimezoneOffset",r,0),utcdate:n("getUTCDate",r,0),utcday:n("getUTCDay",r,0),utcyear:n("getUTCFullYear",r,0),utcmonth:n("getUTCMonth",r,0),utchours:n("getUTCHours",r,0),utcminutes:n("getUTCMinutes",r,0),utcseconds:n("getUTCSeconds",r,0),utcmilliseconds:n("getUTCMilliseconds",r,0),length:n("length",null,-1),indexof:n("indexOf",null),lastindexof:n("lastIndexOf",null),slice:n("slice",null),parseFloat:"parseFloat",parseInt:"parseInt",upper:n("toUpperCase",i,0),lower:n("toLowerCase",i,0),substring:n("substring",i),replace:n("replace",i),regexp:a,test:n("test",a),if:function(e){e.length<3&&R("Missing arguments to if function."),e.length>3&&R("Too many arguments to if function.");var n=e.map(t);return n[0]+"?"+n[1]+":"+n[2]}}}function Ly(t){function e(t){if(P(t))return t;var e=d[t.type];return null==e&&R("Unsupported type: "+t.type),e(t)}function n(t){var n={code:e(t),globals:Object.keys(f),fields:Object.keys(c)};return f={},c={},n}t=t||{};var r=t.whitelist?tt(t.whitelist):{},i=t.blacklist?tt(t.blacklist):{},a=t.constants||lO,o=(t.functions||qy)(e),u=t.globalvar,s=t.fieldvar,f={},c={},l=0,h=$(u)?u:function(t){return u+'["'+t+'"]'},d={Literal:function(t){return t.raw},Identifier:function(t){var e=t.name;return l>0?e:i.hasOwnProperty(e)?R("Illegal identifier: "+e):a.hasOwnProperty(e)?a[e]:r.hasOwnProperty(e)?e:(f[e]=1,h(e))},MemberExpression:function(t){var n=!t.computed,r=e(t.object);n&&(l+=1);var i=e(t.property);return r===s&&(c[i]=1),n&&(l-=1),r+(n?"."+i:"["+i+"]")},CallExpression:function(t){"Identifier"!==t.callee.type&&R("Illegal callee type: "+t.callee.type);var n=t.callee.name,r=t.arguments,i=o.hasOwnProperty(n)&&o[n];return i||R("Unrecognized function: "+n),$(i)?i(r):i+"("+r.map(e).join(",")+")"},ArrayExpression:function(t){return"["+t.elements.map(e).join(",")+"]"},BinaryExpression:function(t){return"("+e(t.left)+t.operator+e(t.right)+")"},UnaryExpression:function(t){return"("+t.operator+e(t.argument)+")"},ConditionalExpression:function(t){return"("+e(t.test)+"?"+e(t.consequent)+":"+e(t.alternate)+")"},LogicalExpression:function(t){return"("+e(t.left)+t.operator+e(t.right)+")"},ObjectExpression:function(t){return"{"+t.properties.map(e).join(",")+"}"},Property:function(t){l+=1;var n=e(t.key);return l-=1,n+":"+e(t.value)}};return n.functions=o,n.constants=a,n}function Uy(t){var e={};return function(n,r){return(e[r]||(e[r]=t(r)))(n)}}function Fy(t,e,n){return gO.setMonth(t),gO.setDate(e),pO(gO,n)}function jy(t){return Fy(t,1,"%B")}function Iy(t){return Fy(t,1,"%b")}function $y(t){return Fy(0,2+t,"%A")}function By(t){return Fy(0,2+t,"%a")}function Yy(t){return 1+~~(new Date(t).getMonth()/3)}function Gy(t){return 1+~~(new Date(t).getUTCMonth()/3)}function Wy(t,e,n){try{t[e].apply(t,["EXPRESSION"].concat([].slice.call(n)))}catch(e){t.warn(e)}return n[n.length-1]}function Hy(){return Wy(this.context.dataflow,"warn",arguments)}function Xy(){return Wy(this.context.dataflow,"info",arguments)}function Vy(){return Wy(this.context.dataflow,"debug",arguments)}function Jy(t){var e=this.context.group,n=!1;if(e)for(;t;){if(t===e){n=!0;break}t=t.mark.group}return n}function Zy(t,e,n){var r,i=t[0],a=t[1];return a<i&&(r=a,a=i,i=r),r=a-i,r>=n-e?[e,n]:[Math.min(Math.max(i,e),n-r),Math.min(Math.max(a,r),n)]}function Qy(){return"Math.sqrt(Math.pow(event.touches[0].clientX - event.touches[1].clientX, 2) + Math.pow(event.touches[0].clientY - event.touches[1].clientY, 2))"}function Ky(){return"Math.atan2(event.touches[1].clientY - event.touches[0].clientY,event.touches[1].clientX - event.touches[0].clientX)"}function tb(t,e){var n=this.context.dataflow;vO&&vO.open?n.loader().sanitize(t,{context:"open",name:e}).then(function(t){vO.open(t,e)}).catch(function(t){n.warn("Open url failed: "+t)}):n.warn("Open function can only be invoked in a browser.")}function eb(){return vO?vO.screen:{}}function nb(){return vO?[vO.innerWidth,vO.innerHeight]:[void 0,void 0]}function rb(t){return t[t.length-1]-t[0]||0}function ib(t,e){var n=P(t)?e.scales[t]:D(t)&&t.signal?e.signals[t.signal]:void 0;return n&&n.value}function ab(t,e,n,r){if(e[0].type===mO){t=e[0].value;var i=_O+t;if(!r.hasOwnProperty(i))try{r[i]=n.scaleRef(t)}catch(t){}}else e[0].type===yO&&(t=e[0].name,e[0]=new Am(mO),e[0].raw='{signal:"'+t+'"}')}function ob(t,e){var n=ib(t,(e||this).context);return n&&n.range?n.range():[]}function ub(t,e){var n=ib(t,(e||this).context);return n?n.domain():[]}function sb(t,e){var n=ib(t,(e||this).context);return n&&n.bandwidth?n.bandwidth():0}function fb(t,e,n){return Nu(t||0,e||0,n||0)}function cb(t,e){var n=ib(t,(e||this).context);return n?n.copy():void 0}function lb(t,e,n){var r=ib(t,(n||this).context);return r?r(e):void 0}function hb(t,e,n){var r=ib(t,(n||this).context);return r?Lw(e)?(r.invertRange||r.invert)(e):(r.invert||r.invertExtent)(e):void 0}function db(t,e,n,r){var i=fn(e,n),a=t.domain(),o=a[0],u=a[a.length-1],s=Xf(t,o,u);t.ticks&&(a=t.ticks(+r||15),
  o!==a[0]&&a.unshift(o),u!==a[a.length-1]&&a.push(u));for(var f=0,c=a.length;f<c;++f)i.stop(s(a[f]),t(a[f]));return i}function pb(t){return function(e,n,r){var i=ib(e,(r||this).context);return i&&i.path[t](n)}}function gb(t){var e=this.context.data[t];return e?e.values.value:[]}function vb(t,e,n,r){e[0].type!==mO&&R("First argument to data functions must be a string literal.");var i=e[0].value,a=xO+i;r.hasOwnProperty(a)||(r[a]=n.getData(i).tuplesRef())}function mb(t,e,n){var r=this.context.data[t]["index:"+e],i=r?r.value.get(n):void 0;return i?i.count:i}function yb(t,e,n,r){e[0].type!==mO&&R("First argument to indata must be a string literal."),e[1].type!==mO&&R("Second argument to indata must be a string literal.");var i=e[0].value,a=e[1].value,o=bO+a;r.hasOwnProperty(o)||(r[o]=n.getData(i).indataRef(n,a))}function bb(t){return t.data}function _b(t,e){var n=gb.call(e,t);return n.root&&n.root.lookup||EO}function xb(t,e,n){var r=_b(t,this),i=r[e],a=r[n];return i&&a?i.path(a).map(bb):void 0}function wb(t,e){var n=_b(t,this)[e];return n?n.ancestors().map(bb):void 0}function Mb(t,e){var n,r=e[0],i=e[e.length-1];return r>i&&(n=r,r=i,i=n),r<=t&&t<=i}function kb(t,e,n){if(t){var r=this.context.dataflow,i=t.mark.source;r.pulse(i,r.changeset().encode(t,e))}return void 0!==n?n:t}function Eb(t){return function(e){for(var n in t)if("_id"!==n&&e[n]!==t[n])return!1;return!0}}function Sb(t,e,n,r,i,a){var o,u,s=this.context.dataflow,f=this.context.data[t],c=f.input,l=f.changes,h=s.stamp();if(s._trigger===!1||!(c.value.length||e||r))return 0;if((!l||l.stamp<h)&&(f.changes=l=s.changeset(),l.stamp=h,s.runAfter(function(){f.modified=!0,s.pulse(c,l).run()})),n&&(o=n===!0?Bw:Lw(n)||null!=n._id?n:Eb(n),l.remove(o)),e&&l.insert(e),r&&(o=Eb(r),c.value.some(o)?l.remove(o):l.insert(r)),i)for(u in a)l.modify(i,u,a[u]);return 1}function Cb(t,e){for(var n=e.fields,r=e.values,i=e.getter||(e.getter=[]),a=n.length,o=0;o<a;++o)if(i[o]=i[o]||L(n[o]),i[o](t)!==r[o])return!1;return!0}function Ab(t,e){for(var n,r=e.intervals,i=r.length,a=0;a<i;++a)if(n=r[a].getter||(r[a].getter=L(r[a].field)),!Mb(n(t),r[a].extent))return!1;return!0}function Tb(t,e,n,r,i,a){for(var o,u,s=this.context.data[t],f=s?s.values.value:[],c=r!==SO,l=f.length,h=0;h<l;++h)if(o=f[h],u=e===o.unit,!(i===AO&&u||i===CO&&!u)&&(u=a(n,o),c^u))return u;return!l||c}function Nb(t,e,n,r,i){return Tb.call(this,t,e,n,r,i,Cb)}function zb(t,e,n,r,i){return Tb.call(this,t,e,n,r,i,Ab)}function Rb(t,e,n){return 1===arguments.length?TO[t]:(TO[t]=e,n&&(OO[t]=n),qO&&(qO.functions[t]=RO+t),this)}function Ob(t){var e=qy(t);NO.forEach(function(t){e[t]=zO+t});for(var n in TO)e[n]=RO+n;return e}function Db(t,e,n){var r,i,a={};try{r=Py(t)}catch(e){R("Expression parse error: "+q(t))}return r.visit(function(t){if("CallExpression"===t.type){var n=t.callee.name,r=PO.visitors[n];r&&r(n,t.arguments,e,a)}}),i=qO(r),i.globals.forEach(function(t){var n=LO+t;!a.hasOwnProperty(n)&&e.getSignal(t)&&(a[n]=e.signalRef(t))}),{$expr:n?n+"return("+i.code+");":i.code,$fields:i.fields,$params:a}}function Pb(t){return BO.hasOwnProperty(t)}function qb(t,e){return DO=e||YO,Ub(t.trim()).map(Fb)}function Lb(t,e,n,r,i){for(var a,o=0,u=t.length;e<u;++e){if(a=t[e],!o&&a===n)return e;i&&i.indexOf(a)>=0?--o:r&&r.indexOf(a)>=0&&++o}return e}function Ub(t){for(var e=[],n=0,r=t.length,i=0;i<r;)i=Lb(t,i,JO,GO+HO,WO+XO),e.push(t.substring(n,i).trim()),n=++i;if(0===e.length)throw"Empty event selector: "+t;return e}function Fb(t){return"["===t[0]?jb(t):Ib(t)}function jb(t){var e,n,r=1,i=t.length,a=1;if(a=Lb(t,a,WO,GO,WO),a===i)throw"Empty between selector: "+t;if(e=Ub(t.substring(r,a)),2!==e.length)throw"Between selector must have two elements: "+t;if(t=t.slice(a+1).trim(),t[0]!==QO)throw"Expected '>' after between selector: "+t;return e=e.map(Fb),n=Fb(t.slice(1).trim()),n.between?{between:e,stream:n}:(n.between=e,n)}function Ib(t){var e,n,r={source:DO},i=[],a=[0,0],o=0,u=0,s=t.length,f=0;if(t[s-1]===XO){if(f=t.lastIndexOf(HO),!(f>=0))throw"Unmatched right brace: "+t;try{a=$b(t.substring(f+1,s-1))}catch(e){throw"Invalid throttle specification: "+t}t=t.slice(0,f).trim(),s=t.length,f=0}if(!s)throw t;if(t[0]===ZO&&(o=++f),e=Lb(t,f,VO),e<s&&(i.push(t.substring(u,e).trim()),u=f=++e),f=Lb(t,f,GO),f===s)i.push(t.substring(u,s).trim());else if(i.push(t.substring(u,f).trim()),n=[],u=++f,u===s)throw"Unmatched left bracket: "+t;for(;f<s;){if(f=Lb(t,f,WO),f===s)throw"Unmatched left bracket: "+t;if(n.push(t.substring(u,f).trim()),f<s-1&&t[++f]!==GO)throw"Expected left bracket: "+t;u=++f}if(!(s=i.length)||KO.test(i[s-1]))throw"Invalid event selector: "+t;return s>1?(r.type=i[1],o?r.markname=i[0].slice(1):Pb(i[0])?r.marktype=i[0]:r.source=i[0]):r.type=i[0],"!"===r.type.slice(-1)&&(r.consume=!0,r.type=r.type.slice(0,-1)),null!=n&&(r.filter=n),a[0]&&(r.throttle=a[0]),a[1]&&(r.debounce=a[1]),r}function $b(t){var e=t.split(JO);if(!t.length||e.length>2)throw t;return e.map(function(e){var n=+e;if(n!==n)throw t;return n})}function Bb(t,e){return t.signal?e.getSignal(t.signal).id:Gb(t,e)}function Yb(t){return t===eD?tD:t||tD}function Gb(t,e){return(t.merge?Wb:t.stream?Hb:t.type?Xb:R("Invalid stream specification: "+q(t)))(t,e)}function Wb(t,e){var n=t.merge.map(function(t){return Gb(t,e)}),r=Vb({merge:n},t,e);return e.addStream(r).id}function Hb(t,e){var n=Gb(t.stream,e),r=Vb({stream:n},t,e);return e.addStream(r).id}function Xb(t,e){var n=e.event(Yb(t.source),t.type),r=Vb({stream:n},t,e);return 1===Object.keys(r).length?n:e.addStream(r).id}function Vb(t,e,n){var r=e.between;return r&&(2!==r.length&&R('Stream "between" parameter must have 2 entries: '+q(e)),t.between=[Gb(r[0],n),Gb(r[1],n)]),r=e.filter?j(e.filter):[],(e.marktype||e.markname||e.markrole)&&r.push(Jb(e.marktype,e.markname,e.markrole)),e.source===eD&&r.push("inScope(event.item)"),r.length&&(t.filter=Db("("+r.join(")&&(")+")").$expr),null!=(r=e.throttle)&&(t.throttle=+r),null!=(r=e.debounce)&&(t.debounce=+r),e.consume&&(t.consume=!0),t}function Jb(t,e,n){var r="event.item";return r+(t&&"*"!==t?"&&"+r+".mark.marktype==='"+t+"'":"")+(n?"&&"+r+".mark.role==='"+n+"'":"")+(e?"&&"+r+".mark.name==='"+e+"'":"")}function Zb(t,e,n){var r,i=t.events,a=t.update,o=t.encode,u=[],s="";i||R("Signal update missing events specification."),P(i)&&(i=qb(i)),i=j(i).filter(function(t){return t.signal?(u.push(t),0):1}),i.length&&u.push(i.length>1?{merge:i}:i[0]),null!=o&&(a&&R("Signal encode and update are mutually exclusive."),a="encode(item(),"+q(o)+")"),s=P(a)?Db(a,e,nD):null!=a.expr?Db(a.expr,e,nD):null!=a.value?a.value:null!=a.signal?{$expr:"_.value",$params:{value:e.signalRef(a.signal)}}:R("Invalid signal update specification."),r={target:n,update:s},t.force&&(r.options={force:!0}),u.forEach(function(t){t={source:Bb(t,e)},e.addUpdate(Y(t,r))})}function Qb(t,e){var n=e.getSignal(t.name);if(t.update){var r=Db(t.update,e);n.update=r.$expr,n.params=r.$params}t.on&&t.on.forEach(function(t){Zb(t,e,n.id)})}function Kb(t,e){var n={};for(var r in t)"name"!==r&&(n[r]=t_(t[r],e));e.addProjection(t.name,n)}function t_(t,e){return Lw(t)?t.map(function(t){return t_(t,e)}):D(t)?t.signal?e.signalRef(t.signal):R("Unsupported parameter object: "+q(t)):t}function e_(t,e){var n="";return rD[e]?n:(t.x2&&(t.x?(iD[e]&&(n+="if(o.x>o.x2)$=o.x,o.x=o.x2,o.x2=$;"),n+="o.width=o.x2-o.x;"):n+=t.width?"o.x=o.x2-o.width;":"o.x=o.x2;"),t.xc&&(n+=t.width?"o.x=o.xc-o.width/2;":"o.x=o.xc;"),t.y2&&(t.y?(iD[e]&&(n+="if(o.y>o.y2)$=o.y,o.y=o.y2,o.y2=$;"),n+="o.height=o.y2-o.y;"):n+=t.height?"o.y=o.y2-o.height;":"o.y=o.y2;"),t.yc&&(n+=t.height?"o.y=o.yc-o.height/2;":"o.y=o.yc;"),n)}function n_(t,e,n,r){function i(t,i,a,o){return"this."+t+"("+[l_(null,i,e,n,r),l_(null,a,e,n,r),l_(null,o,e,n,r)].join(",")+").toString()"}return t.c?i("hcl",t.h,t.c,t.l):t.h||t.s?i("hsl",t.h,t.s,t.l):t.l||t.a?i("lab",t.l,t.a,t.b):t.r||t.g||t.b?i("rgb",t.r,t.g,t.b):null}function r_(t,e,n,r){var i=Db(t,e);return i.$fields.forEach(function(t){r[t]=1}),Y(n,i.$params),i.$expr}function i_(t,e,n,r){return a_(D(t)?t:{datum:t},e,n,r)}function a_(t,e,n,r){var i,a,o;if(t.signal)i="datum",o=r_(t.signal,e,n,r);else if(t.group||t.parent){for(a=Math.max(1,t.level||1),i="item";a-- >0;)i+=".mark.group";t.parent?(o=t.parent,i+=".datum"):o=t.group}else t.datum?(i="datum",o=t.datum):R("Invalid field reference: "+q(t));return t.signal||(P(o)?(r[o]=1,o=O(o).map(q).join("][")):o=a_(o,e,n,r)),i+"["+o+"]"}function o_(t,e,n,r,i){var a,o,u,s=s_(t.scale,n,r,i);return null!=t.range?(a=+t.range,o=s+".range()",e=0===a?o+"[0]":"($="+o+","+(1===a?"$[$.length-1]":"$[0]+"+a+"*($[$.length-1]-$[0])")+")"):(void 0!==e&&(e=s+"("+e+")"),t.band&&(u=u_(t.scale,n))&&(o=s+".bandwidth",a=+t.band,a=o+"()"+(1===a?"":"*"+a),u<0&&(a="("+o+"?"+a+":0)"),e=(e?e+"+":"")+a,t.extra&&(e="(datum.extra?"+s+"(datum.extra.value):"+e+")")),null==e&&(e="0")),e}function u_(t,e){if(!P(t))return-1;var n=e.scaleType(t);return"band"===n||"point"===n?1:0}function s_(t,e,n,r){var i;if(P(t))i=_O+t,n.hasOwnProperty(i)||(n[i]=e.scaleRef(t)),i=q(i);else{for(i in e.scales)n[_O+i]=e.scaleRef(i);i=q(_O)+"+"+i_(t,e,n,r)}return"_["+i+"]"}function f_(t,e,n,r){return"this.gradient("+s_(t.gradient,e,n,r)+","+q(t.start)+","+q(t.stop)+","+q(t.count)+")"}function c_(t,e,n,r){return D(t)?"("+l_(null,t,e,n,r)+")":t}function l_(t,e,n,r,i){if(null!=e.gradient)return f_(e,n,r,i);var a=e.signal?r_(e.signal,n,r,i):e.color?n_(e.color,n,r,i):null!=e.field?i_(e.field,n,r,i):void 0!==e.value?q(e.value):void 0;return null!=e.scale&&(a=o_(e,a,n,r,i)),void 0===a&&(a=null),null!=e.exponent&&(a="Math.pow("+a+","+c_(e.exponent,n,r,i)+")"),null!=e.mult&&(a+="*"+c_(e.mult,n,r,i)),null!=e.offset&&(a+="+"+c_(e.offset,n,r,i)),e.round&&(a="Math.round("+a+")"),a}function h_(t,e,n){return t+"["+q(e)+"]="+n+";"}function d_(t,e,n,r,i){var a="";return e.forEach(function(e){var o=l_(t,e,n,r,i);a+=e.test?r_(e.test,n,r,i)+"?"+o+":":o}),h_("o",t,a)}function p_(t,e,n,r){var i,a,o,u={},s="var o=item,datum=o.datum,$;";for(i in t)a=t[i],Lw(a)?s+=d_(i,a,r,n,u):(o=l_(i,a,r,n,u),s+=h_("o",i,o));return s+=e_(t,e),s+="return 1;",{$expr:s,$fields:Object.keys(u),$output:Object.keys(t)}}function g_(t){return D(t)?t:{value:t}}function v_(t,e,n){return null!=n?(t[e]={value:n},1):0}function m_(t,e,n){for(var r in e)n&&n.hasOwnProperty(r)||(t[r]=Y(t[r]||{},e[r]));return t}function y_(t,e,n,r,i){var a,o;i=i||{},i.encoders={$encode:a={}},t=b_(t,e,n,r.config);for(o in t)a[o]=p_(t[o],e,i,r);return i}function b_(t,e,n,r){var i,a,o;"legend"!=n&&0!==String(n).indexOf("axis")||(n=null),r=n===oD?r.group:n===aD||r[e=n]?Y({},r.mark,r[e]):{},i={};for(a in r)o=__(a,t)||("fill"===a||"stroke"===a)&&(__("fill",t)||__("stroke",t)),o||(i[a]={value:r[a]});return t=Y({},t),t.enter=Y(i,t.enter),t}function __(t,e){return e.enter&&e.enter[t]||e.update&&e.update[t]}function x_(t,e,n,r,i,a){return{type:t,name:a?a.name:void 0,role:e,key:n,from:r,interactive:!(!a||!a.interactive),encode:m_(i,a,_D)}}function w_(t,e,n){var r,i,a={value:0},o={};return o.enter=r={opacity:a,x:a,y:a},v_(r,"width",e.gradientWidth),v_(r,"height",e.gradientHeight),v_(r,"stroke",e.gradientStrokeColor),v_(r,"strokeWidth",e.gradientStrokeWidth),o.exit={opacity:a},o.update=i={x:a,y:a,fill:{gradient:t},opacity:{value:1}},v_(i,"width",e.gradientWidth),v_(i,"height",e.gradientHeight),x_(FO,vD,void 0,void 0,o,n)}function M_(t,e,n,r){var i,a,o={value:0},u={};return u.enter=i={opacity:o,text:{field:SD}},v_(i,"fill",e.labelColor),v_(i,"font",e.labelFont),v_(i,"fontSize",e.labelFontSize),v_(i,"baseline",e.gradientLabelBaseline),v_(i,"limit",e.gradientLabelLimit),u.exit={opacity:o},u.update=a={opacity:{value:1}},i.x=a.x={field:AD,mult:e.gradientWidth},i.y=a.y={value:e.gradientHeight,offset:e.gradientLabelOffset},i.align=a.align={signal:OD},x_($O,mD,AD,r,u,n)}function k_(t,e,n,r){var i,a,o={value:0},u={};return u.enter=i={opacity:o,text:{field:SD}},v_(i,"align",e.labelAlign),v_(i,"baseline",e.labelBaseline),v_(i,"fill",e.labelColor),v_(i,"font",e.labelFont),v_(i,"fontSize",e.labelFontSize),v_(i,"limit",e.labelLimit),u.exit={opacity:o},u.update=a={opacity:{value:1}},i.x=a.x={field:CD,offset:e.labelOffset},i.y=a.y={field:TD,mult:.5,offset:{field:ND,offset:{field:{group:"entryPadding"},mult:{field:ED}}}},x_($O,mD,zD,r,u,n)}function E_(t,e,n,r){var i,a,o={value:0},u={};return u.enter=i={opacity:o},v_(i,"shape",e.symbolType),v_(i,"size",e.symbolSize),v_(i,"strokeWidth",e.symbolStrokeWidth),t.fill||v_(i,"stroke",e.symbolColor),u.exit={opacity:o},u.update=a={opacity:{value:1}},i.x=a.x={field:CD,mult:.5},i.y=a.y={field:TD,mult:.5,offset:{field:ND,offset:{field:{group:"entryPadding"},mult:{field:ED}}}},RD.forEach(function(e){t[e]&&(a[e]=i[e]={scale:t[e],field:zD})}),x_(IO,yD,zD,r,u,n)}function S_(t,e,n,r){var i,a={value:0},o=t.title,u={};return u.enter=i={x:{field:{group:"padding"}},y:{field:{group:"padding"}},opacity:a},v_(i,"align",e.titleAlign),v_(i,"baseline",e.titleBaseline),v_(i,"fill",e.titleColor),v_(i,"font",e.titleFont),v_(i,"fontSize",e.titleFontSize),v_(i,"fontWeight",e.titleFontWeight),v_(i,"limit",e.titleLimit),u.exit={opacity:a},u.update={opacity:{value:1},text:o&&o.signal?{signal:o.signal}:{value:o+""}},x_($O,bD,null,r,u,n)}function C_(t,e,n,r,i,a){return{type:UO,name:e,role:t,from:n,interactive:r,encode:i,marks:a}}function A_(t){return t.role||(t.type===UO&&(t.legends||t.axes)?uD:aD)}function T_(t){return{clip:t.clip||!1,interactive:t.interactive!==!1,marktype:t.type,name:t.name||void 0,role:A_(t),zindex:+t.zindex||void 0}}function N_(t){return t}function z_(t,e,n,r){this.id=-1,this.type=t,this.value=e,this.params=n,r&&(this.parent=r)}function R_(t,e,n,r){return new z_(t,e,n,r)}function O_(t,e){return R_("Operator",t,e)}function D_(t){var e={$ref:t.id};return t.id<0&&(t.refs=t.refs||[]).push(e),e}function P_(t,e){return e?{$field:t,$name:e}:{$field:t}}function q_(t,e){return{$compare:t,$order:e}}function L_(t){return{$key:t}}function U_(t){return D(t)?(t.order===qD?"-":"+")+F_(t.op,t.field):""}function F_(t,e){return(t&&t.signal?"$"+t.signal:t||"")+(t&&e?"_":"")+(e&&e.signal?"$"+e.signal:e||"")}function j_(t){return t&&t.signal}function I_(t){return function(e,n,r){return R_(t,n,e||void 0,r)}}function $_(t,e){var n=To(t.type);n||R("Unrecognized transform type: "+q(t.type));var r=R_(n.type,null,B_(n,t,e));return t.signal&&e.addSignal(t.signal,e.proxy(r)),r.metadata=n.metadata||{},r}function B_(t,e,n){var r,i,a,o={};for(i=0,a=t.params.length;i<a;++i)r=t.params[i],o[r.name]=Y_(r,e,n);return o}function Y_(t,e,n){var r,i=t.type;return"index"===i?W_(t,e,n):"param"===i?H_(t,e,n):"projection"===i?n.projectionRef(e[t.name]):(r=e[t.name],void 0===r?void(t.required&&R("Missing required "+q(e.type)+" parameter: "+q(t.name))):t.array&&!j_(r)?r.map(function(e){return G_(t,e,n)}):G_(t,r,n))}function G_(t,e,n){var r=t.type;if(j_(e))return Q_(r)?R("Expression references can not be signals."):K_(r)?n.fieldRef(e):tx(r)?n.compareRef(e):n.signalRef(e.signal);var i=t.expr||K_(r);return i&&V_(e)?Db(e.expr,n):i&&J_(e)?P_(e.field):Q_(r)?Db(e,n):Z_(r)?D_(n.getData(e).values):K_(r)?P_(e):tx(r)?n.compareRef(e):e}function W_(t,e,n){return P(e.from)||R('Lookup "from" parameter must be a string literal.'),n.getData(e.from).lookupRef(n,e.key)}function H_(t,e,n){var r=e[t.name];return t.array?(Lw(r)||R("Expected an array of sub-parameters. Instead: "+q(r)),r.map(function(e){return X_(t,e,n)})):X_(t,r,n)}function X_(t,e,n){var r,i,a,o,u;for(o=0,u=t.params.length;o<u;++o){i=t.params[o];for(a in i.key)if(i.key[a]!==e[a]){i=null;break}if(i)break}return i||R("Unsupported parameter: "+q(e)),r=Y(B_(i,e,n),i.key),D_(n.add(ZD(r)))}function V_(t){return t&&t.expr}function J_(t){return t&&t.field}function Z_(t){return"data"===t}function Q_(t){return"expr"===t}function K_(t){return"field"===t}function tx(t){return"compare"===t}function ex(t,e,n){var r,i,a,o,u;return t?(r=t.facet)&&(e||R("Only group marks can be faceted."),null!=r.field?o=u=D_(n.getData(r.data).output):(i=n.keyRef(r.groupby),t.data?u=D_(n.getData(t.data).aggregate):(a=$_(Y({type:"aggregate",groupby:j(r.groupby)},r.aggregate)),a.params.key=i,a.params.pulse=D_(n.getData(r.data).output),o=u=D_(n.add(a))))):o=D_(n.add(jD(null,[{}]))),o||(o=t.$ref?t:D_(t.mark?n.getData(N_(t.mark)).output:n.getData(t.data).output)),{key:i,pulse:o,parent:u}}function nx(t,e,n,r,i){this.scope=t,this.input=e,this.output=n,this.values=r,this.aggregate=i,this.index={}}function rx(t){return P(t)?t:null}function ix(t,e,n){var r,i=F_(n.op,n.field);if(e.ops){for(var a=0,o=e.as.length;a<o;++a)if(e.as[a]===i)return}else e.ops=["count"],e.fields=[null],e.as=["count"];n.op&&(e.ops.push((r=n.op.signal)?t.signalRef(r):n.op),e.fields.push(t.fieldRef(n.field)),e.as.push(i))}function ax(t,e,n,r,i,a,o){var u,s,f=e[n]||(e[n]={}),c=U_(a),l=rx(i);if(null!=l&&(t=e.scope,l+=c?"|"+c:"",u=f[l]),!u){var h=a?{field:DD,pulse:e.countsRef(t,i,a)}:{field:t.fieldRef(i),pulse:D_(e.output)};c&&(h.sort=t.sortRef(a)),s=t.add(R_(r,void 0,h)),o&&(e.index[i]=s),u=D_(s),null!=l&&(f[l]=u)}return u}function ox(t,e,n){var r,i,a,o,u=t.from.facet,s=u.name,f=D_(e.getData(u.data).output);u.name||R("Facet must have a name: "+q(u)),u.data||R("Facet must reference a data set: "+q(u)),u.field?o=e.add(QD({field:e.fieldRef(u.field),pulse:f})):u.groupby?o=e.add(YD({key:e.keyRef(u.groupby),group:D_(e.proxy(n.parent)),pulse:f})):R("Facet must specify groupby or field: "+q(u)),r=e.fork(),i=r.add(jD()),a=r.add(iP({pulse:D_(i)})),r.addData(s,new nx(r,i,i,a)),r.addSignal("parent",null),o.params.subflow={$subflow:$x(t,r).toRuntime()}}function ux(t,e,n){var r=e.add(QD({pulse:n.pulse})),i=e.fork();i.add(iP()),i.addSignal("parent",null),r.params.subflow={$subflow:$x(t,i).toRuntime()}}function sx(t,e,n){var r,i,a=t.remove,o=t.insert,u=t.toggle,s=t.modify,f=t.values,c=e.add(O_());r="if("+t.trigger+',modify("'+n+'",'+[o,a,u,s,f].map(function(t){return null==t?"null":t}).join(",")+"),0)",i=Db(r,e),c.update=i.$expr,c.params=i.$params}function fx(t,e){var n,r,i,a,o,u,s,f,c,l,h,d,p,g=A_(t),v=t.type===UO,m=t.from&&t.from.facet,y=g===uD||g===oD,b=g===aD||y||m;i=ex(t.from,v,e),r=e.add($D({key:i.key||(t.key?P_(t.key):void 0),pulse:i.pulse,clean:!v})),c=D_(r),r=a=e.add(jD({pulse:c})),r=e.add(XD({markdef:T_(t),context:{$context:!0},groups:e.lookup(),parent:e.signals.parent?e.signalRef("parent"):null,index:e.markpath(),pulse:D_(r)})),l=D_(r),r=e.add(BD(y_(t.encode,t.type,g,e,{pulse:l}))),r.params.parent=e.encode(),t.transform&&t.transform.forEach(function(t){var n=$_(t,e);(n.metadata.generates||n.metadata.changes)&&R("Mark transforms should not generate new data."),n.params.pulse=D_(r),e.add(r=n)}),h=D_(r),(m||y)&&(y=e.add(aP({legendMargin:e.config.legendMargin,mark:l,pulse:h})),d=D_(y)),o=e.add(FD({mark:l,pulse:d||h})),p=D_(o),v&&(b&&(n=e.operators,n.pop(),y&&n.pop()),e.pushState(h,d||p,c),m?ox(t,e,i):b?ux(t,e,i):$x(t,e),e.popState(),b&&(y&&n.push(y),n.push(o))),u=e.add(nP({pulse:p})),s=e.add(iP({pulse:p},void 0,e.parent())),null!=t.name&&(f=N_(t.name),e.addData(f,new nx(e,a,u,s)),t.on&&t.on.forEach(function(t){(t.insert||t.remove||t.toggle)&&R("Marks only support modify triggers."),sx(t,e,f)}))}function cx(t,e){var n,r,i,a,o,u,s,f,c=t.type||"symbol",l=e.config.legend,h=t.name||void 0,d=t.encode||{},p=!!t.interactive,g=t.size||t.shape||t.fill||t.stroke||t.strokeDash||t.opacity;return g||R("Missing valid scale for legend."),n={orient:lx(t.orient,l.orient),title:null!=t.title},r=D_(e.add(jD(null,[n]))),u=m_({enter:dx(l),update:{offset:g_(lx(t.offset,l.offset)),padding:g_(lx(t.padding,l.padding)),titlePadding:g_(lx(t.titlePadding,l.titlePadding))}},d.legend),s={update:{x:{field:{group:"padding"}},y:{field:{group:"padding"}},entryPadding:g_(lx(t.entryPadding,l.entryPadding))}},"gradient"===c?(i=D_(e.add(HD({type:"gradient",scale:e.scaleRef(g),count:e.property(t.tickCount),values:e.property(t.values),formatSpecifier:e.property(t.format)}))),f=[w_(g,l,d.gradient),M_(t,l,d.labels,i)]):(i=D_(e.add(HD({size:hx(t,l,d.labels),scale:e.scaleRef(g),count:e.property(t.tickCount),values:e.property(t.values),formatSpecifier:e.property(t.format)}))),f=[E_(t,l,d.symbols,i),k_(t,l,d.labels,i)]),f=[C_(gD,null,r,p,s,f)],n.title&&(o=S_(t,l,d.title,r),s.update.y.offset={field:{group:"titlePadding"},offset:o.encode.update.fontSize||o.encode.enter.fontSize},f.push(o)),a=C_(pD,h,r,p,u,f),t.zindex&&(a.zindex=t.zindex),fx(a,e)}function lx(t,e){return null!=t?t:e}function hx(t,e,n){var r,i=+e.symbolSize;return r=n&&n.update&&n.update.fontSize,r||(r=n&&n.enter&&n.enter.fontSize),r&&(r=r.value),r||(r=+e.labelFontSize),t.size?{$expr:"Math.max(Math.ceil(Math.sqrt(_.scale(datum))),"+r+")"}:Math.max(Math.ceil(Math.sqrt(i)),r)}function dx(t){var e={};return v_(e,"fill",t.fillColor)+v_(e,"stroke",t.strokeColor)+v_(e,"strokeWidth",t.strokeWidth)+v_(e,"strokeDash",t.strokeDash)+v_(e,"cornerRadius",t.cornerRadius)?e:void 0}function px(t){return lP.hasOwnProperty(t)}function gx(t){return"quantile"===t}function vx(t,e){var n,r,i=t.type||"linear";cP.hasOwnProperty(i)||R("Unrecognized scale type: "+q(i)),n={type:i,domain:_x(t.domain,t,e)},null!=t.range&&(n.range=Nx(t,e,n)),null!=t.interpolate&&Tx(t.interpolate,n);for(r in t)n.hasOwnProperty(r)||"name"===r||(n[r]=mx(t[r],e));e.addScale(t.name,n)}function mx(t,e){return D(t)?t.signal?e.signalRef(t.signal):R("Unsupported object: "+q(t)):t}function yx(t,e){return t.signal?e.signalRef(t.signal):t.map(function(t){return mx(t,e)})}function bx(t){R("Can not find data set: "+q(t))}function _x(t,e,n){return t?t.signal?n.signalRef(t.signal):(Lw(t)?xx:t.fields?Mx:wx)(t,e,n):void(null==e.domainMin&&null==e.domainMax||R("No scale domain defined for domainMin/domainMax to override."))}function xx(t,e,n){return t.map(function(t){return mx(t,n)})}function wx(t,e,n){var r=n.getData(t.data);return r||bx(t.data),px(e.type)?r.valuesRef(n,t.field,Sx(t.sort,!1)):gx(e.type)?r.domainRef(n,t.field):r.extentRef(n,t.field)}function Mx(t,e,n){var r=t.data,i=t.fields.reduce(function(t,e){return e=P(e)?{data:r,field:e}:Lw(e)||e.signal?kx(e,n):e,t.push(e),t},[]);return(px(e.type)?Ex:gx(e.type)?Cx:Ax)(t,n,i)}function kx(t,e){var n="_:vega:_"+sP++,r=jD({});return Lw(t)?r.value={$ingest:t}:t.signal&&e.signalRef("modify("+q(n)+","+t.signal+", true)"),e.addDataPipeline(n,[r,iP({})]),{data:n,field:"data"}}function Ex(t,e,n){var r,i,a,o;return r=n.map(function(t){var n=e.getData(t.data);return n||bx(t.data),n.countsRef(e,t.field)}),i=e.add(LD({groupby:DD,ops:["sum"],fields:[e.fieldRef("count")],as:["count"],pulse:r})),a=e.add(jD({pulse:D_(i)})),o=e.add(oP({field:DD,sort:e.sortRef(Sx(t.sort,!0)),pulse:D_(a)})),D_(o)}function Sx(t,e){return t&&(t.field||t.op?t.field||"count"===t.op?e&&t.field?R("Multiple domain scales can not sort by field."):e&&t.op&&"count"!==t.op&&R("Multiple domain scales support op count only."):R("No field provided for sort aggregate op: "+t.op):D(t)?t.field="key":t={field:"key"}),t}function Cx(t,e,n){var r=n.map(function(t){var n=e.getData(t.data);return n||bx(t.data),n.domainRef(e,t.field)});return D_(e.add(JD({values:r})))}function Ax(t,e,n){var r=n.map(function(t){var n=e.getData(t.data);return n||bx(t.data),n.extentRef(e,t.field)});return D_(e.add(VD({extents:r})))}function Tx(t,e){e.interpolate=mx(t.type||t),null!=t.gamma&&(e.interpolateGamma=mx(t.gamma))}function Nx(t,e,n){var r=t.range,i=e.config.range;if(r.signal)return e.signalRef(r.signal);if(P(r)){if(i&&i.hasOwnProperty(r))return t=Y({},t,{range:i[r]}),Nx(t,e,n);"width"===r?r=[0,{signal:"width"}]:"height"===r?r=px(t.type)?[0,{signal:"height"}]:[{signal:"height"},0]:R("Unrecognized scale range value: "+q(r))}else{if(r.scheme)return n.scheme=mx(r.scheme,e),r.extent&&(n.schemeExtent=yx(r.extent,e)),void(r.count&&(n.schemeCount=mx(r.count,e)));if(r.step)return void(n.rangeStep=mx(r.step,e));if(px(t.type)&&!Lw(r))return _x(r,t,e);Lw(r)||R("Unsupported range type: "+q(r))}return r.map(function(t){return mx(t,e)})}function zx(t,e){var n=[];t.transform&&t.transform.forEach(function(t){n.push($_(t,e))}),t.on&&t.on.forEach(function(n){sx(n,e,t.name)}),e.addDataPipeline(t.name,Rx(t,e,n))}function Rx(t,e,n){var r,i,a,o,u,s=[],f=null,c=!1,l=!1;for(t.values?s.push(f=Ox({$ingest:t.values,$format:t.format})):t.url?s.push(f=Ox({$request:t.url,$format:t.format})):t.source&&(r=e.getData(t.source),f=r.output,s.push(null)),i=0,a=n.length;i<a;++i)o=n[i],u=o.metadata,f||u.source||s.push(f=Ox()),s.push(o),u.generates&&(l=!0),u.modifies&&!l&&(c=!0),u.source?f=o:u.changes&&(f=null);return r&&(s[0]=eP({derive:c,pulse:D_(r.output)}),c&&s.splice(1,0,Ox())),f||s.push(Ox()),s.push(iP({})),s}function Ox(t){var e=jD({},t);return e.metadata={source:!0},e}function Dx(t,e){var n=e.config,r=t.orient,i=r===xD||r===kD?n.axisX:n.axisY,a=n["axis"+r[0].toUpperCase()+r.slice(1)],o="band"===e.scaleType(t.scale)&&n.axisBand;return i||a||o?Y({},n.axis,i,a,o):n.axis}function Px(t,e,n,r){var i,a,o,u,s,f=t.orient,c={value:0},l={};return l.enter=i={opacity:c},v_(i,"stroke",e.tickColor),v_(i,"strokeWidth",e.tickWidth),l.exit={opacity:c},l.update=a={opacity:{value:1}},f===xD||f===kD?(o="x",s="y"):(o="y",s="x"),u=o+"2",i[s]=c,a[o]=i[o]=qx(t,0),a[u]=i[u]=qx(t,1),x_(jO,fD,null,r,l,n)}function qx(t,e){return{scale:t.scale,range:e}}function Lx(t,e,n,r){var i,a,o,u,s,f,c,l,h=t.orient,d=t.gridScale,p=h===wD||h===xD?1:-1,g=p*t.offset||0,v={value:0},m={};return m.enter=i={opacity:v},v_(i,"stroke",e.gridColor),v_(i,"strokeWidth",e.gridWidth),v_(i,"strokeDash",e.gridDash),m.exit=a={opacity:v},m.update=o={},v_(o,"opacity",e.gridOpacity),u={scale:t.scale,field:zD,band:e.bandPosition,round:e.tickRound,extra:e.tickExtra},h===xD||h===kD?(s="x",f="y",l="height"):(s="y",f="x",l="width"),c=f+"2",o[s]=i[s]=a[s]=u,d?(i[f]={scale:d,range:0,mult:p,offset:g},o[c]=i[c]={scale:d,range:1,mult:p,offset:g}):(i[f]={value:g},o[c]=i[c]={signal:l,mult:p,offset:g}),x_(jO,cD,zD,r,m,n)}function Ux(t,e,n,r,i){var a,o,u,s,f,c=t.orient,l=c===wD||c===xD?-1:1,h={value:0},d={};return d.enter=a={opacity:h},v_(a,"stroke",e.tickColor),v_(a,"strokeWidth",e.tickWidth),d.exit=o={opacity:h},d.update=u={opacity:{value:1}},s=g_(i),s.mult=l,f={scale:t.scale,field:zD,band:e.bandPosition,round:e.tickRound,extra:e.tickExtra},c===xD||c===kD?(u.y=a.y=h,u.y2=a.y2=s,u.x=a.x=o.x=f):(u.x=a.x=h,u.x2=a.x2=s,u.y=a.y=o.y=f),x_(jO,hD,zD,r,d,n)}function Fx(t,e,n,r,i){var a,o,u,s,f,c=t.orient,l=c===wD||c===xD?-1:1,h=null!=t.labelPadding?t.labelPadding:e.labelPadding,d={value:0},p={};return p.enter=a={opacity:d,text:{field:SD}},v_(a,"angle",e.labelAngle),v_(a,"fill",e.labelColor),v_(a,"font",e.labelFont),v_(a,"fontSize",e.labelFontSize),v_(a,"limit",e.labelLimit),p.exit=o={opacity:d},p.update=u={opacity:{value:1}},s=g_(i),s.mult=l,s.offset=g_(h),s.offset.mult=l,f={scale:t.scale,field:zD,band:.5},c===xD||c===kD?(u.y=a.y=s,u.x=a.x=o.x=f,v_(u,"align","center"),v_(u,"baseline",c===xD?"bottom":"top")):(u.x=a.x=s,u.y=a.y=o.y=f,v_(u,"align",c===MD?"left":"right"),v_(u,"baseline","middle")),x_($O,lD,zD,r,p,n)}function jx(t,e,n,r){var i,a,o,u=t.orient,s=t.title,f=u===wD||u===xD?-1:1,c=u===xD||u===kD,l={};return l.enter=i={opacity:{value:0}},v_(i,"align",e.titleAlign),v_(i,"fill",e.titleColor),v_(i,"font",e.titleFont),v_(i,"fontSize",e.titleFontSize),v_(i,"fontWeight",e.titleFontWeight),v_(i,"limit",e.titleLimit),l.exit={opacity:{value:0}},l.update=a={opacity:{value:1},text:s&&s.signal?{signal:s.signal}:{value:s+""}},o={scale:t.scale,range:.5},c?(a.x=o,a.angle={value:0},a.baseline={value:u===xD?"bottom":"top"}):(a.y=o,a.angle={value:90*f},a.baseline={value:"bottom"}),v_(a,"angle",e.titleAngle),v_(a,"baseline",e.titleBaseline),!v_(a,"x",e.titleX)&&c&&!__(n,"x")&&(l.enter.auto={value:!0}),!v_(a,"y",e.titleY)&&!c&&!__(n,"y")&&(l.enter.auto={value:!0}),x_($O,dD,null,r,l,n)}function Ix(t,e){var n,r,i,a,o,u,s,f=Dx(t,e),c=t.name||void 0,l=t.encode||{},h=!!t.interactive;return n={orient:t.orient,ticks:null!=t.ticks?!!t.ticks:f.ticks,labels:null!=t.labels?!!t.labels:f.labels,grid:null!=t.grid?!!t.grid:f.grid,domain:null!=t.domain?!!t.domain:f.domain,title:null!=t.title},r=D_(e.add(jD({},[n]))),u=m_({update:{range:{signal:'abs(span(range("'+t.scale+'")))'},offset:g_(t.offset||0),position:g_(t.position||0),titlePadding:g_(t.titlePadding||f.titlePadding),minExtent:g_(t.minExtent||f.minExtent),maxExtent:g_(t.maxExtent||f.maxExtent)}},l.axis),i=D_(e.add(UD({scale:e.scaleRef(t.scale),extra:f.tickExtra,count:e.property(t.tickCount),values:e.property(t.values),formatSpecifier:e.property(t.format)}))),s=[],n.grid&&s.push(Lx(t,f,l.grid,i)),n.ticks&&(a=null!=t.tickSize?t.tickSize:f.tickSize,s.push(Ux(t,f,l.ticks,i,a))),n.labels&&(a=n.ticks?a:0,s.push(Fx(t,f,l.labels,i,a))),n.domain&&s.push(Px(t,f,l.domain,r)),n.title&&s.push(jx(t,f,l.title,r)),o=C_(sD,c,r,h,u,s),t.zindex&&(o.zindex=t.zindex),fx(o,e)}function $x(t,e,n){var r=j(t.signals);return n||r.forEach(function(t){Cm(t,e)}),j(t.projections).forEach(function(t){Kb(t,e)}),j(t.data).forEach(function(t){zx(t,e)}),j(t.scales).forEach(function(t){vx(t,e)}),r.forEach(function(t){Qb(t,e)}),e.parseLambdas(),j(t.axes).forEach(function(t){Ix(t,e)}),j(t.marks).forEach(function(t){fx(t,e)}),j(t.legends).forEach(function(t){cx(t,e)}),e}function Bx(t,e){var n,r,i,a,o,u=e.config;return e.background=t.background||u.background,o=D_(e.root=e.add(O_())),e.addSignal("width",t.width||-1),e.addSignal("height",t.height||-1),e.addSignal("padding",Em(t.padding,u)),j(t.signals).forEach(function(t){hP[t.name]||Cm(t,e)}),r=e.add(jD()),i=m_({enter:{x:{value:0},y:{value:0}},update:{width:{signal:"width"},height:{signal:"height"}}},t.encode),i=e.add(BD(y_(i,UO,oD,e,{pulse:D_(r)}))),a=e.add(aP({legendMargin:u.legendMargin,autosize:km(t.autosize,u),mark:o,pulse:D_(i)})),e.pushState(D_(i),D_(a),null),$x(t,e,!0),n=e.add(FD({mark:o,pulse:D_(a)})),n=e.add(nP({pulse:D_(n)})),n=e.add(iP({pulse:D_(n)})),e.addData("root",new nx(e,r,r,n)),e}function Yx(t){this.config=t,this.bindings=[],this.field={},this.signals={},this.lambdas={},this.scales={},this.events={},this.data={},this.streams=[],this.updates=[],this.operators=[],this.background=null,this._id=0,this._subid=0,this._nextsub=[0],this._parent=[],this._encode=[],this._lookup=[],this._markpath=[]}function Gx(t){this.config=t.config,this.field=Object.create(t.field),this.signals=Object.create(t.signals),this.lambdas=Object.create(t.lambdas),this.scales=Object.create(t.scales),this.events=Object.create(t.events),this.data=Object.create(t.data),this.streams=[],this.updates=[],this.operators=[],this._id=0,this._subid=++t._nextsub[0],this._nextsub=t._nextsub,this._parent=t._parent.slice(),this._encode=t._encode.slice(),this._lookup=t._lookup.slice(),this._markpath=t._markpath}function Wx(t){var e,n=Hx();for(e in t)n[e]=D(n[e])?Y(n[e],t[e]):n[e]=t[e];return n}function Hx(){return{padding:0,autosize:"pad",background:null,group:null,mark:null,arc:{fill:vP},area:{fill:vP},image:null,line:{stroke:vP,strokeWidth:gP},path:{stroke:vP},rect:{fill:vP},rule:{stroke:mP},shape:{stroke:vP},symbol:{fill:vP,size:64},text:{fill:mP,font:"sans-serif",fontSize:11},point:{size:pP,strokeWidth:gP,shape:"circle"},circle:{size:pP,strokeWidth:gP},square:{size:pP,strokeWidth:gP},axis:{minExtent:0,maxExtent:200,bandPosition:.5,domain:!0,domainWidth:1,domainColor:mP,grid:!1,gridWidth:1,gridColor:bP,gridDash:[],gridOpacity:1,labels:!0,labelAngle:0,labelColor:mP,labelFont:"sans-serif",labelFontSize:10,labelPadding:2,labelLimit:180,ticks:!0,tickRound:!0,tickSize:5,tickWidth:1,tickColor:mP,titleAlign:"center",titlePadding:2,titleColor:mP,titleFont:"sans-serif",titleFontSize:11,titleFontWeight:"bold"},legend:{orient:"right",offset:18,padding:0,entryPadding:5,titlePadding:5,gradientWidth:100,gradientHeight:20,gradientStrokeColor:bP,gradientStrokeWidth:0,gradientLabelBaseline:"top",gradientLabelOffset:2,labelColor:mP,labelFontSize:10,labelFont:"sans-serif",labelAlign:"left",labelBaseline:"middle",labelOffset:8,labelLimit:160,symbolType:"circle",symbolSize:100,symbolColor:yP,symbolStrokeWidth:1.5,titleColor:mP,titleFont:"sans-serif",titleFontSize:11,titleFontWeight:"bold",titleAlign:"left",titleBaseline:"top",titleLimit:180},range:{category:{scheme:"tableau10"},ordinal:{scheme:"blues",
  extent:[.2,1]},heatmap:{scheme:"viridis"},ramp:{scheme:"blues",extent:[.2,1]},diverging:{scheme:"blueorange"},symbol:["circle","square","triangle-up","cross","diamond","triangle-right","triangle-down","triangle-left"]}}}function Xx(t,e){return Bx(t,new Yx(Wx(e||t.config))).toRuntime()}function Vx(t,e,n){";"!==e[e.length-1]&&(e="return("+e+");");var r=Function.apply(null,t.concat(e));return n&&n.functions?r.bind(n.functions):r}function Jx(t,e){return Vx(["_"],t,e)}function Zx(t,e){return Vx(["datum","_"],t,e)}function Qx(t,e){return Vx(["event"],t,e)}function Kx(t,e){return Vx(["_","event"],t,e)}function tw(t,e){return Vx(["item","_"],t,e)}function ew(t,e,n){n=n||{};var r,i;for(r in t)i=t[r],i&&i.$expr&&i.$params&&ew(i.$params,e,n),n[r]=Lw(i)?i.map(function(t){return nw(t,e)}):nw(i,e);return n}function nw(t,e){if(!t||!D(t))return t;for(var n,r=0,i=_P.length;r<i;++r)if(n=_P[r],t.hasOwnProperty(n.key))return n.parse(t,e);return t}function rw(t,e){return e.get(t.$ref)||R("Operator not defined: "+t.$ref)}function iw(t,e){var n="e:"+t.$expr;return e.fn[n]||(e.fn[n]=T(Zx(t.$expr,e),t.$fields,t.$name))}function aw(t,e){var n="k:"+t.$key;return e.fn[n]||(e.fn[n]=V(t.$key))}function ow(t,e){var n="f:"+t.$field+"_"+t.$name;return e.fn[n]||(e.fn[n]=L(t.$field,t.$name))}function uw(t,e){var n="c:"+t.$compare+"_"+t.$order;return e.fn[n]||(e.fn[n]=I(t.$compare,t.$order))}function sw(t,e){var n,r,i=t.$encode,a={};for(n in i)r=i[n],a[n]=T(tw(r.$expr,e),r.$fields),a[n].output=r.$output;return a}function fw(t,e){return e}function cw(t,e){var n=t.$subflow;return function(t,r,i){var a=gw(n,e.fork()),o=a.get(n.operators[0].id),u=a.signals.parent;return u&&u.set(i),o}}function lw(t,e){"Operator"!==t.type&&t.type?e.transform(t,t.type):e.operator(t,t.update?Jx(t.update,e):null)}function hw(t,e){var n,r;t.params&&((n=e.get(t.id))||R("Invalid operator id: "+t.id),r=ew(t.params,e),e.dataflow.connect(n,n.parameters(r)))}function dw(t,e){var n,r=null!=t.filter?Qx(t.filter,e):void 0,i=null!=t.stream?e.get(t.stream):void 0;t.source?i=e.events(t.source,t.type,r):t.merge&&(n=t.merge.map(e.get.bind(e)),i=n[0].merge.apply(n[0],n.slice(1))),t.between&&(n=t.between.map(e.get.bind(e)),i=i.between(n[0],n[1])),t.filter&&(i=i.filter(r)),null!=t.throttle&&(i=i.throttle(+t.throttle)),null!=t.debounce&&(i=i.debounce(+t.debounce)),null==i&&R("Invalid stream definition: "+JSON.stringify(t)),t.consume&&i.consume(!0),e.stream(t,i)}function pw(t,e){var n=e.get(t.source),r=null,i=t.update,a=void 0;n||R("Source not defined: "+t.source),r=t.target&&t.target.$expr?Qx(t.target.$expr,e):e.get(t.target),i&&i.$expr&&(i.$params&&(a=ew(i.$params,e)),i=Kx(i.$expr,e)),e.update(t,n,r,i,a)}function gw(t,e){var n=t.operators||[];return t.background&&(e.background=t.background),n.forEach(function(t){lw(t,e)}),n.forEach(function(t){hw(t,e)}),(t.streams||[]).forEach(function(t){dw(t,e)}),(t.updates||[]).forEach(function(t){pw(t,e)}),e}function vw(t){var e=this,n={};if(t.signals){var r=n.signals={};Object.keys(e.signals).forEach(function(n){var i=e.signals[n];t.signals(n,i)&&(r[n]=i.value)})}if(t.data){var i=n.data={};Object.keys(e.data).forEach(function(n){var r=e.data[n];t.data(n,r)&&(i[n]=r.input.value)})}return e.subcontext&&t.recurse!==!1&&(n.subcontext=e.subcontext.map(function(e){return e.getState(t)})),n}function mw(t){var e=this,n=e.dataflow,r=t.data,i=t.signals;Object.keys(i||{}).forEach(function(t){n.update(e.signals[t],i[t],xP)}),Object.keys(r||{}).forEach(function(t){n.pulse(e.data[t].input,n.changeset().remove(Bw).insert(r[t]))}),(t.subcontext||[]).forEach(function(t,e){var n=n.subcontext[e];n&&n.setState(t)})}function yw(t,e,n){return new bw(t,e,n)}function bw(t,e,n){this.dataflow=t,this.transforms=e,this.events=t.events.bind(t),this.signals={},this.scales={},this.nodes={},this.data={},this.fn={},n&&(this.functions=Object.create(n),this.functions.context=this)}function _w(t){this.dataflow=t.dataflow,this.transforms=t.transforms,this.functions=t.functions,this.events=t.events,this.signals=Object.create(t.signals),this.scales=Object.create(t.scales),this.nodes=Object.create(t.nodes),this.data=Object.create(t.data),this.fn=Object.create(t.fn),t.functions&&(this.functions=Object.create(t.functions),this.functions.context=this)}function xw(t,e,n){return gw(e,yw(t,HE,n||TO))}function ww(t,e){var n=t.add(null,function(n){t["_"+e]=n.size,t._autosize=t._resize=1},{size:t._signals[e]});return n.rank=0,n}function Mw(t,e,n,r,i,a){this.runAfter(function(o){var u=0;o._autosize=0,o.width()!==n&&(u=1,o.width(n),o._resizeWidth.skip(!0)),o.height()!==r&&(u=1,o.height(r),o._resizeHeight.skip(!0)),o._width!==t&&(o._resize=1,o._width=t),o._height!==e&&(o._resize=1,o._height=e),o._origin[0]===i[0]&&o._origin[1]===i[1]||(o._resize=1,o._origin=i),u&&o.run("enter"),a&&o.runAfter(function(){o._autosize=1})})}function kw(t){return this._runtime.getState(t||{data:Ew,signals:Sw,recurse:!0})}function Ew(t,e){return e.modified&&Lw(e.input.value)&&t.indexOf("_:vega:_")}function Sw(t,e){return!("parent"===t||e instanceof HE.Proxy)}function Cw(t){var e=this;return e._trigger=!1,e._runtime.setState(t),e.run().runAfter(function(){e._trigger=!0}),this}function Aw(t,e){e=e||{},Eo.call(this),this.loader(e.loader||this._loader),this.logLevel(e.logLevel||0),this._el=null,this._renderType=e.renderer||yE.Canvas,this._scenegraph=new oa;var n=this._scenegraph.root;this._renderer=null,this._queue=null,this._handler=(new la).scene(n),this._eventListeners=[],this._preventDefault=!0;var r=xw(this,t,e.functions);this._runtime=r,this._signals=r.signals,this._bind=(t.bindings||[]).map(function(t){return{state:null,param:t}}),r.root&&r.root.set(n),n.source=r.data.root.input,this.pulse(r.data.root.input,this.changeset().insert(n.items)),this._background=r.background||null,this._width=this.width(),this._height=this.height(),this._origin=[0,0],this._resize=0,this._autosize=1,this._resizeWidth=ww(this,"width"),this._resizeHeight=ww(this,"height"),Iv(this)}function Tw(t,e){return t._signals.hasOwnProperty(e)?t._signals[e]:t.error("Unrecognized signal name: "+q(e))}var Nw="3.0.0-beta.25",zw=a(i),Rw=zw.right,Ow=zw.left,Dw=Math.sqrt(50),Pw=Math.sqrt(10),qw=Math.sqrt(2),Lw=Array.isArray,Uw=[],Fw=L("id"),jw=T(function(t){return t},Uw,"identity"),Iw=T(function(){return 0},Uw,"zero"),$w=T(function(){return 1},Uw,"one"),Bw=T(function(){return!0},Uw,"true"),Yw=T(function(){return!1},Uw,"false"),Gw=0,Ww=1,Hw=2,Xw=3,Vw={},Jw="$";rt.prototype=it.prototype={constructor:rt,has:function(t){return Jw+t in this},get:function(t){return this[Jw+t]},set:function(t,e){return this[Jw+t]=e,this},remove:function(t){var e=Jw+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===Jw&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===Jw&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===Jw&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===Jw&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===Jw&&++t;return t},empty:function(){for(var t in this)if(t[0]===Jw)return!1;return!0},each:function(t){for(var e in this)e[0]===Jw&&t(this[e],e.slice(1),this)}};var Zw=(it.prototype,{value:function(){}});lt.prototype=ct.prototype={constructor:lt,on:function(t,e){var n,r=this._,i=ht(t+"",r),a=-1,o=i.length;{if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=pt(r[n],t.name,e);else if(null==e)for(n in r)r[n]=pt(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=dt(r[n],t.name)))return n}},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new lt(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],a=0,n=r.length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var Qw=(xt(","),xt("\t"),/^([A-Za-z]+:)?\/\//),Kw="file://",tM=["mimeType","responseType","user","password"],eM={boolean:Ot,integer:Rt,number:Rt,date:Dt,string:Pt},nM=[Lt,jt,Ft,Ut],rM=["boolean","integer","number","date"],iM={dsv:$t,csv:It(","),tsv:It("\t"),json:Yt,topojson:te},aM=new Date,oM=new Date,uM=ne(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});uM.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ne(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):uM:null};var sM=1e3,fM=6e4,cM=36e5,lM=864e5,hM=6048e5,dM=ne(function(t){t.setTime(Math.floor(t/sM)*sM)},function(t,e){t.setTime(+t+e*sM)},function(t,e){return(e-t)/sM},function(t){return t.getUTCSeconds()}),pM=ne(function(t){t.setTime(Math.floor(t/fM)*fM)},function(t,e){t.setTime(+t+e*fM)},function(t,e){return(e-t)/fM},function(t){return t.getMinutes()}),gM=ne(function(t){var e=t.getTimezoneOffset()*fM%cM;e<0&&(e+=cM),t.setTime(Math.floor((+t-e)/cM)*cM+e)},function(t,e){t.setTime(+t+e*cM)},function(t,e){return(e-t)/cM},function(t){return t.getHours()}),vM=ne(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())*fM)/lM},function(t){return t.getDate()-1}),mM=re(0),yM=re(1),bM=ne(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()}),_M=ne(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()});_M.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ne(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 xM=ne(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*fM)},function(t,e){return(e-t)/fM},function(t){return t.getUTCMinutes()}),wM=ne(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*cM)},function(t,e){return(e-t)/cM},function(t){return t.getUTCHours()}),MM=ne(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/lM},function(t){return t.getUTCDate()-1}),kM=ie(0),EM=ie(1),SM=ne(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()}),CM=ne(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()});CM.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ne(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 AM,TM,NM,zM,RM,OM={"-":"",_:" ",0:"0"},DM=/^\s*\d+/,PM=/^%/,qM=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;nn({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 LM="%Y-%m-%dT%H:%M:%S.%LZ",UM=(Date.prototype.toISOString||zM(LM),+new Date("2000-01-01T00:00:00.000Z")||RM(LM),sn.prototype);UM.clone=function(){return new sn(this)},UM.clear=function(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this},UM.set=function(t,e,n,r){return n<t?(this.x2=t,this.x1=n):(this.x1=t,this.x2=n),r<e?(this.y2=e,this.y1=r):(this.y1=e,this.y2=r),this},UM.add=function(t,e){return t<this.x1&&(this.x1=t),e<this.y1&&(this.y1=e),t>this.x2&&(this.x2=t),e>this.y2&&(this.y2=e),this},UM.expand=function(t){return this.x1-=t,this.y1-=t,this.x2+=t,this.y2+=t,this},UM.round=function(){return this.x1=Math.floor(this.x1),this.y1=Math.floor(this.y1),this.x2=Math.ceil(this.x2),this.y2=Math.ceil(this.y2),this},UM.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},UM.rotate=function(t,e,n){var r=Math.cos(t),i=Math.sin(t),a=e-e*r+n*i,o=n-e*i-n*r,u=this.x1,s=this.x2,f=this.y1,c=this.y2;return this.clear().add(r*u-i*f+a,i*u+r*f+o).add(r*u-i*c+a,i*u+r*c+o).add(r*s-i*f+a,i*s+r*f+o).add(r*s-i*c+a,i*s+r*c+o)},UM.union=function(t){return t.x1<this.x1&&(this.x1=t.x1),t.y1<this.y1&&(this.y1=t.y1),t.x2>this.x2&&(this.x2=t.x2),t.y2>this.y2&&(this.y2=t.y2),this},UM.encloses=function(t){return t&&this.x1<=t.x1&&this.x2>=t.x2&&this.y1<=t.y1&&this.y2>=t.y2},UM.alignsWith=function(t){return t&&(this.x1==t.x1||this.x2==t.x2||this.y1==t.y1||this.y2==t.y2)},UM.intersects=function(t){return t&&!(this.x2<t.x1||this.x1>t.x2||this.y2<t.y1||this.y1>t.y2)},UM.contains=function(t,e){return!(t<this.x1||t>this.x2||e<this.y1||e>this.y2)},UM.width=function(){return this.x2-this.x1},UM.height=function(){return this.y2-this.y1};var FM=0;H(ln,cn);var jM;try{jM=require("canvas")}catch(t){jM=null}var IM="undefined"!=typeof Image?Image:jM&&jM.Image||null,$M=yn.prototype;$M.pending=function(){return this._pending},$M.sanitizeURL=function(t){var e=this;return bn(e),e._loader.sanitize(t,{context:"href"}).then(function(t){return _n(e),t}).catch(function(){return _n(e),null})},$M.loadImage=function(t){var e=this;return bn(e),e._loader.sanitize(t,{context:"image"}).then(function(t){var n=t.href;if(!n||!IM)throw"Image unsupported.";var r=new IM;return r.onload=function(){_n(e),r.loaded=!0},r.onerror=function(){_n(e),r.loaded=!1},r.src=n,r}).catch(function(){return _n(e),{loaded:!1,width:0,height:0}})},$M.ready=function(){var t=this;return new Promise(function(e){function n(r){t.pending()?setTimeout(function(){n(!0)},10):e(r)}n(!1)})};var BM=Math.PI,YM=2*BM,GM=1e-6,WM=YM-GM;xn.prototype=wn.prototype={constructor:xn,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,u=n-t,s=r-e,f=a-t,c=o-e,l=f*f+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(l>GM)if(Math.abs(c*u-s*f)>GM&&i){var h=n-a,d=r-o,p=u*u+s*s,g=h*h+d*d,v=Math.sqrt(p),m=Math.sqrt(l),y=i*Math.tan((BM-Math.acos((p+l-g)/(2*v*m)))/2),b=y/m,_=y/v;Math.abs(b-1)>GM&&(this._+="L"+(t+b*f)+","+(e+b*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>f*d)+","+(this._x1=t+_*u)+","+(this._y1=e+_*s)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,n=+n;var o=n*Math.cos(r),u=n*Math.sin(r),s=t+o,f=e+u,c=1^a,l=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+f:(Math.abs(this._x1-s)>GM||Math.abs(this._y1-f)>GM)&&(this._+="L"+s+","+f),n&&(l>WM?this._+="A"+n+","+n+",0,1,"+c+","+(t-o)+","+(e-u)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=f):(l<0&&(l=l%YM+YM),this._+="A"+n+","+n+",0,"+ +(l>=BM)+","+c+","+(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 HM=1e-12,XM=Math.PI,VM=XM/2,JM=2*XM;On.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var ZM={draw:function(t,e){var n=Math.sqrt(e/XM);t.moveTo(n,0),t.arc(0,0,n,0,JM)}},QM=Math.sin(XM/10)/Math.sin(7*XM/10);Math.sin(JM/10),Math.cos(JM/10);$n.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:In(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:In(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Yn.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],a=e[0],o=t[n]-i,u=e[n]-a,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*o),this._beta*e[s]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var KM=function t(e){function n(t){return 1===e?new $n(t):new Yn(t,e)}return n.beta=function(e){return t(+e)},n}(.85);Wn.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:Gn(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:Gn(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 tk=function t(e){function n(t){return new Wn(t,e)}return n.tension=function(e){return t(+e)},n}(0);Hn.prototype={areaStart:jn,areaEnd:jn,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:Gn(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}},function t(e){function n(t){return new Hn(t,e)}return n.tension=function(e){return t(+e)},n}(0),Xn.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:Gn(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}},function t(e){function n(t){return new Xn(t,e)}return n.tension=function(e){return t(+e)},n}(0),Jn.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:Vn(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 ek=function t(e){function n(t){return e?new Jn(t,e):new Wn(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);Zn.prototype={areaStart:jn,areaEnd:jn,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:Vn(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}},function t(e){function n(t){return e?new Zn(t,e):new Hn(t,0)}return n.alpha=function(e){return t(+e)},n}(.5),Qn.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:Vn(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}},function t(e){function n(t){return e?new Qn(t,e):new Xn(t,0)}return n.alpha=function(e){return t(+e)},n}(.5),rr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:nr(this,this._t0,er(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,nr(this,er(this,n=tr(this,t,e)),n);break;default:nr(this,this._t0,n=tr(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(ir.prototype=Object.create(rr.prototype)).point=function(t,e){rr.prototype.point.call(this,e,t)},ar.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},sr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=fr(t),i=fr(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},lr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var nk,rk={basis:{curve:Bn},bundle:{curve:KM,tension:"beta",value:.85},cardinal:{curve:tk,tension:"tension",value:0},"catmull-rom":{curve:ek,tension:"alpha",value:.5},linear:{curve:Dn},monotone:{horizontal:ur,vertical:or},natural:{curve:cr},step:{curve:hr},"step-after":{curve:pr},"step-before":{curve:dr}},ik={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},ak=[/([MLHVCSQTAZmlhvcsqtaz])/g,/###/,/(\d)([-+])/g,/\s|,|###/],ok={},uk={},sk=[].join,fk=["l",0,0,0,0,0,0,0],ck=2*Math.PI,lk=Math.sqrt(3)/2,hk={circle:{draw:function(t,e){var n=Math.sqrt(e)/2;t.moveTo(n,0),t.arc(0,0,n,0,ck)}},cross:{draw:function(t,e){var n=Math.sqrt(e)/2,r=n/2.5;t.moveTo(-n,-r),t.lineTo(-n,r),t.lineTo(-r,r),t.lineTo(-r,n),t.lineTo(r,n),t.lineTo(r,r),t.lineTo(n,r),t.lineTo(n,-r),t.lineTo(r,-r),t.lineTo(r,-n),t.lineTo(-r,-n),t.lineTo(-r,-r),t.closePath()}},diamond:{draw:function(t,e){var n=Math.sqrt(e)/2;t.moveTo(-n,0),t.lineTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.closePath()}},square:{draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},"triangle-up":{draw:function(t,e){var n=Math.sqrt(e)/2,r=lk*n;t.moveTo(0,-r),t.lineTo(-n,r),t.lineTo(n,r),t.closePath()}},"triangle-down":{draw:function(t,e){var n=Math.sqrt(e)/2,r=lk*n;t.moveTo(0,r),t.lineTo(-n,-r),t.lineTo(n,-r),t.closePath()}},"triangle-right":{draw:function(t,e){var n=Math.sqrt(e)/2,r=lk*n;t.moveTo(r,0),t.lineTo(-r,-n),t.lineTo(-r,n),t.closePath()}},"triangle-left":{draw:function(t,e){var n=Math.sqrt(e)/2,r=lk*n;t.moveTo(-r,0),t.lineTo(r,-n),t.lineTo(r,n),t.closePath()}}},dk={},pk=Math.PI,gk=Rn().cornerRadius(Ur).padAngle(Fr),vk=Un().x(zr).y1(Rr).y0(Lr).defined(jr),mk=Un().y(Rr).x1(zr).x0(qr).defined(jr),yk=Ln().x(zr).y(Rr).defined(jr),bk=Tr().x(zr).y(Rr).width(Or).height(Pr).cornerRadius(Ur),_k=Fn().type($r).size(Ir),xk=Nr().x(zr).y(Rr).defined(jr).size(Dr),wk=2*Math.PI,Mk=wk/4,kk=wk-1e-8;Zr.beginPath=Qr,Zr.closePath=Qr,Zr.moveTo=Kr,Zr.lineTo=Kr,Zr.rect=function(t,e,n,r){Kr(t,e),Kr(t+n,e+r)},Zr.quadraticCurveTo=function(t,e,n,r){Kr(t,e),Kr(n,r)},Zr.bezierCurveTo=function(t,e,n,r,i,a){Kr(t,e),Kr(n,r),Kr(i,a)},Zr.arc=function(t,e,n,r,i,a){function o(t){f=n*Math.cos(t),c=n*Math.sin(t),f<l&&(l=f),f>h&&(h=f),c<d&&(d=c),c>p&&(p=c)}if(Math.abs(i-r)>kk)return Kr(t-n,e-n),void Kr(t+n,e+n);var u,s,f,c,l=1/0,h=-(1/0),d=1/0,p=-(1/0);if(o(r),o(i),i!==r)if(r%=wk,r<0&&(r+=wk),i%=wk,i<0&&(i+=wk),i<r&&(a=!a,u=r,r=i,i=u),a)for(i-=wk,u=r-r%Mk,s=0;s<3&&u>i;++s,u-=Mk)o(u);else for(u=r-r%Mk+Mk,s=0;s<3&&u<i;++s,u+=Mk)o(u);Kr(t+l,e+d),Kr(t+h,e+p)};var Ek,Sk,Ck=[],Ak=function(){return!0},Tk=vi("arc",Br),Nk=mi("area",Yr),zk={type:"group",tag:"g",nested:!1,attr:yi,bound:xi,draw:wi,pick:Mi,background:bi,foreground:_i},Rk={type:"image",tag:"image",nested:!1,attr:Ci,bound:Ai,draw:Ti,pick:li(),get:ki,xOffset:Ei,yOffset:Si},Ok=mi("line",Gr),Dk={type:"path",tag:"path",nested:!1,attr:Ni,bound:Ri,draw:si(zi),pick:di(zi)},Pk={type:"rect",tag:"path",nested:!1,attr:Oi,bound:Di,draw:si(Pi),pick:di(Pi)},qk={type:"rule",tag:"line",nested:!1,attr:qi,bound:Li,draw:Fi,pick:li(ji)},Lk=vi("shape",Hr),Uk=vi("symbol",Xr),Fk={height:Gi,measureWidth:Bi,estimateWidth:Ii,width:Ii,canvas:Wi};Wi(!0);var jk={left:"start",center:"middle",right:"end"},Ik=new sn,$k={type:"text",tag:"text",nested:!1,attr:Zi,bound:Qi,draw:Ki,pick:li(ta)},Bk=mi("trail",Vr),Yk={arc:Tk,area:Nk,group:zk,image:Rk,line:Ok,path:Dk,rect:Pk,rule:qk,shape:Lk,symbol:Uk,text:$k,trail:Bk},Gk={mark:null},Wk=["marktype","name","role","interactive","clip","items","zindex","x","y","width","height","align","baseline","fill","fillOpacity","opacity","stroke","strokeOpacity","strokeWidth","strokeCap","strokeDash","strokeDashOffset","startAngle","endAngle","innerRadius","outerRadius","cornerRadius","padAngle","interpolate","tension","orient","defined","url","path","x2","y2","size","shape","text","angle","theta","radius","dx","dy","font","fontSize","fontWeight","fontStyle","fontVariant"],Hk=oa.prototype;Hk.toJSON=function(t){return ra(this.root,t||0)},Hk.mark=function(t,e,n){e=e||this.root.items[0];var r=ua(t,e);return e.items[n]=r,r.zindex&&(r.group.zdirty=!0),r};var Xk=sa.prototype;Xk.initialize=function(t,e,n){return this._el=t,this._obj=n||null,this.origin(e)},Xk.element=function(){return this._el},Xk.origin=function(t){return this._origin=t||[0,0],this},Xk.scene=function(t){return arguments.length?(this._scene=t,this):this._scene},Xk.on=function(){},Xk.off=function(){},Xk.handlers=function(){var t,e=this._handlers,n=[];for(t in e)n.push.apply(n,e[t]);return n},Xk.eventName=function(t){var e=t.indexOf(".");return e<0?t:t.slice(0,e)},Xk.handleHref=function(t,e,n){this._loader.sanitize(n,{context:"href"}).then(function(e){var n=new MouseEvent(t.type,t),r=hn(null,"a");for(var i in e)r.setAttribute(i,e[i]);r.dispatchEvent(n)}).catch(function(){})},Xk.handleTooltip=function(t,e,n){this._el.setAttribute("title",n||"")};var Vk=fa.prototype;Vk.initialize=function(t,e,n,r){return this._el=t,this.resize(e,n,r)},Vk.element=function(){return this._el},Vk.scene=function(){return this._el&&this._el.firstChild},Vk.background=function(t){return 0===arguments.length?this._bgcolor:(this._bgcolor=t,this)},Vk.resize=function(t,e,n){return this._width=t,this._height=e,this._origin=n||[0,0],this},Vk.render=function(t,e){var n=this;return n._call=function(){n._render(t,e)},n._call(),n._call=null,n},Vk._render=function(){},Vk.renderAsync=function(t,e){var n=this.render(t,e);return this._ready?this._ready.then(function(){return n}):Promise.resolve(n)},Vk._load=function(t,e){var n=this,r=n._loader[t](e);if(!n._ready){var i=n._call;n._ready=n._loader.ready().then(function(t){t&&i(),n._ready=null})}return r},Vk.sanitizeURL=function(t){return this._load("sanitizeURL",t)},Vk.loadImage=function(t){return this._load("loadImage",t)};var Jk=H(la,sa);Jk.initialize=function(t,e,n){var r=this._canvas=t&&dn(t,"canvas")
  ;if(r){var i=this;this.events.forEach(function(t){r.addEventListener(t,function(e){Jk[t]?Jk[t].call(i,e):i.fire(t,e)})})}return sa.prototype.initialize.call(this,t,e,n)},Jk.canvas=function(){return this._canvas},Jk.context=function(){return this._canvas.getContext("2d")},Jk.events=["keydown","keypress","keyup","dragenter","dragleave","dragover","mousedown","mouseup","mousemove","mouseout","mouseover","click","dblclick","wheel","mousewheel","touchstart","touchmove","touchend"],Jk.DOMMouseScroll=function(t){this.fire("mousewheel",t)},Jk.mousemove=ha("mousemove","mouseover","mouseout"),Jk.dragover=ha("dragover","dragenter","dragleave"),Jk.mouseout=da("mouseout"),Jk.dragleave=da("dragleave"),Jk.mousedown=function(t){this._down=this._active,this.fire("mousedown",t)},Jk.click=function(t){this._down===this._active&&(this.fire("click",t),this._down=null)},Jk.touchstart=function(t){this._touch=this.pickEvent(t.changedTouches[0]),this._first&&(this._active=this._touch,this._first=!1),this.fire("touchstart",t,!0)},Jk.touchmove=function(t){this.fire("touchmove",t,!0)},Jk.touchend=function(t){this.fire("touchend",t,!0),this._touch=null},Jk.fire=function(t,e,n){var r,i,a=n?this._touch:this._active,o=this._handlers[t];if("click"===t&&a&&a.href?this.handleHref(e,a,a.href):("mouseover"===t||"mouseout"===t)&&a&&a.tooltip&&this.handleTooltip(e,a,"mouseover"===t?a.tooltip:null),o)for(e.vegaType=t,r=0,i=o.length;r<i;++r)o[r].handler.call(this._obj,e,a)},Jk.on=function(t,e){var n=this.eventName(t),r=this._handlers;return(r[n]||(r[n]=[])).push({type:t,handler:e}),this},Jk.off=function(t,e){var n,r=this.eventName(t),i=this._handlers[r];if(i){for(n=i.length;--n>=0;)i[n].type===t&&(e&&i[n].handler!==e||i.splice(n,1));return this}},Jk.pickEvent=function(t){var e=ca(t,this._canvas),n=this._origin;return this.pick(this._scene,e[0],e[1],e[0]-n[0],e[1]-n[1])},Jk.pick=function(t,e,n,r,i){var a=this.context();return Yk[t.marktype].pick.call(this,a,t,e,n,r,i)};var Zk="undefined"!=typeof window?window.devicePixelRatio||1:1,Qk=H(ga,fa),Kk=fa.prototype,tE=new sn;Qk.initialize=function(t,e,n,r){return this._canvas=mn(1,1),t&&(gn(t,0).appendChild(this._canvas),this._canvas.setAttribute("class","marks")),Kk.initialize.call(this,t,e,n,r)},Qk.resize=function(t,e,n){return Kk.resize.call(this,t,e,n),pa(this._canvas,this._width,this._height,this._origin),this._redraw=!0,this},Qk.canvas=function(){return this._canvas},Qk.context=function(){return this._canvas?this._canvas.getContext("2d"):null},Qk._render=function(t,e){var n,r=this.context(),i=this._origin,a=this._width,o=this._height;return r.save(),n=!e||this._redraw?(this._redraw=!1,null):va(r,e),this.clear(-i[0],-i[1],a,o),this.draw(r,t,n),r.restore(),this},Qk.draw=function(t,e,n){Yk[e.marktype].draw.call(this,t,e,n)},Qk.clear=function(t,e,n,r){var i=this.context();i.clearRect(t,e,n,r),null!=this._bgcolor&&(i.fillStyle=this._bgcolor,i.fillRect(t,e,n,r))};var eE=H(ya,sa);eE.initialize=function(t,e,n){var r=this._svg;return r&&(r.removeEventListener("click",this._hrefHandler),r.removeEventListener("mouseover",this._tooltipHandler),r.removeEventListener("mouseout",this._tooltipHandler)),this._svg=r=t&&dn(t,"svg"),r&&(r.addEventListener("click",this._hrefHandler),r.addEventListener("mouseover",this._tooltipHandler),r.addEventListener("mouseout",this._tooltipHandler)),sa.prototype.initialize.call(this,t,e,n)},eE.svg=function(){return this._svg},eE.on=function(t,e){var n=this.eventName(t),r=this._handlers,i={type:t,handler:e,listener:ba(this,e)};return(r[n]||(r[n]=[])).push(i),this._svg&&this._svg.addEventListener(n,i.listener),this},eE.off=function(t,e){var n,r=this.eventName(t),i=this._svg,a=this._handlers[r];if(a){for(n=a.length;--n>=0;)(a[n].type===t&&!e||a[n].handler===e)&&(this._svg&&i.removeEventListener(r,a[n].listener),a.splice(n,1));return this}};var nE={version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},rE={fill:"fill",fillOpacity:"fill-opacity",stroke:"stroke",strokeWidth:"stroke-width",strokeOpacity:"stroke-opacity",strokeCap:"stroke-linecap",strokeDash:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",opacity:"opacity"},iE=Object.keys(rE),aE=nE.xmlns,oE=H(wa,fa),uE=fa.prototype;oE.initialize=function(t,e,n,r){return t&&(this._svg=pn(t,0,"svg",aE),this._svg.setAttribute("class","marks"),gn(t,1),this._root=pn(this._svg,0,"g",aE),gn(this._svg,1)),this._defs={clip_id:1,gradient:{},clipping:{}},this.background(this._bgcolor),uE.initialize.call(this,t,e,n,r)},oE.background=function(t){return arguments.length&&this._svg&&this._svg.style.setProperty("background-color",t),uE.background.apply(this,arguments)},oE.resize=function(t,e,n){return uE.resize.call(this,t,e,n),this._svg&&(this._svg.setAttribute("width",this._width),this._svg.setAttribute("height",this._height),this._svg.setAttribute("viewBox","0 0 "+this._width+" "+this._height),this._root.setAttribute("transform","translate("+this._origin+")")),this},oE.svg=function(){if(!this._svg)return null;var t={class:"marks",width:this._width,height:this._height,viewBox:"0 0 "+this._width+" "+this._height};for(var e in nE)t[e]=nE[e];return _a("svg",t)+this._svg.innerHTML+xa("svg")},oE._render=function(t,e){return this._dirtyCheck(e)&&(this._dirtyAll&&this._resetDefs(),this.draw(this._root,t),gn(this._root,1)),this.updateDefs(),this},oE.updateDefs=function(){var t,e=this._svg,n=this._defs,r=n.el,i=0;for(t in n.gradient)r||(n.el=r=pn(e,0,"defs",aE)),Ma(r,n.gradient[t],i++);for(t in n.clipping)r||(n.el=r=pn(e,0,"defs",aE)),ka(r,n.clipping[t],i++);r&&(0===i?(e.removeChild(r),n.el=null):gn(r,i))},oE._resetDefs=function(){var t=this._defs;t.clip_id=1,t.gradient={},t.clipping={}},oE.isDirty=function(t){return this._dirtyAll||!t._svg||t.dirty===this._dirtyID},oE._dirtyCheck=function(t){if(this._dirtyAll=!0,!t)return!0;var e,n,r,i,a,o,u,s=++this._dirtyID;for(a=0,o=t.length;a<o;++a)e=t[a],n=e.mark,n.marktype!==r&&(r=n.marktype,i=Yk[r]),n.zdirty&&n.dirty!==s&&(this._dirtyAll=!1,n.dirty=s,Ea(n.group,s)),e.exit?(i.nested&&n.items.length?(u=n.items[0],u._svg&&this._update(i,u._svg,u)):e._svg&&e._svg.remove(),e._svg=null):(e=i.nested?n.items[0]:e,e._update!==s&&(e._svg&&e._svg.ownerSVGElement?this._update(i,e._svg,e):(this._dirtyAll=!1,Ea(e,s)),e._update=s));return!this._dirtyAll},oE.draw=function(t,e,n){function r(t){var e=a.isDirty(t),n=Ca(t,i,f,o.tag);e&&(a._update(o,n,t),s&&Sa(a,n,t)),f=n,++c}if(!this.isDirty(e))return e._svg;var i,a=this,o=Yk[e.marktype],u=e.interactive===!1?"none":null,s="g"===o.tag,f=null,c=0;return i=Ca(e,t,n,"g"),i.setAttribute("class",vn(e)),!s&&u&&i.style.setProperty("pointer-events",u),o.nested?e.items.length&&r(e.items[0]):oi(e,r),gn(i,c),i};var sE=null,fE=null,cE={group:function(t,e,n){fE=e.__values__,sE=e.childNodes[1],t.foreground(Aa,n,this),sE=e.childNodes[0],t.background(Aa,n,this);var r=n.mark.interactive===!1?"none":null;r!==fE.events&&(sE.style.setProperty("pointer-events",r),fE.events=r)},text:function(t,e,n){var r=Hi(n);r!==fE.text&&(e.textContent=r,fE.text=r),r=Vi(n),r!==fE.font&&(e.style.setProperty("font",r),fE.font=r)}};oE._update=function(t,e,n){sE=e,fE=e.__values__,t.attr(Aa,n,this);var r=cE[t.type];r&&r.call(this,t,e,n),this.style(sE,n)},oE.style=function(t,e){if(null!=e){var n,r,i,a,o;for(n=0,r=iE.length;n<r;++n)i=iE[n],o=e[i],o!==fE[i]&&(a=rE[i],null==o?"fill"===a?t.style.setProperty(a,"none"):t.style.removeProperty(a):(o.id&&(this._defs.gradient[o.id]=o,o="url("+Ta()+"#"+o.id+")"),t.style.setProperty(a,o+"")),fE[i]=o)}};var lE=H(Na,fa),hE=fa.prototype;lE.resize=function(t,e,n){hE.resize.call(this,t,e,n);var r=this._origin,i=this._text,a={class:"marks",width:this._width,height:this._height,viewBox:"0 0 "+this._width+" "+this._height};for(var o in nE)a[o]=nE[o];return i.head=_a("svg",a),i.root=_a("g",{transform:"translate("+r+")"}),i.foot=xa("g")+xa("svg"),this},lE.svg=function(){var t=this._text;return t.head+t.defs+t.root+t.body+t.foot},lE._render=function(t){return this._text.body=this.mark(t),this._text.defs=this.buildDefs(),this},lE.reset=function(){return this._defs.clip_id=0,this},lE.buildDefs=function(){var t,e,n,r,i=this._defs,a="";for(e in i.gradient){for(n=i.gradient[e],r=n.stops,a+=_a("linearGradient",{id:e,x1:n.x1,x2:n.x2,y1:n.y1,y2:n.y2}),t=0;t<r.length;++t)a+=_a("stop",{offset:r[t].offset,"stop-color":r[t].color})+xa("stop");a+=xa("linearGradient")}for(e in i.clipping)n=i.clipping[e],a+=_a("clipPath",{id:e}),a+=_a("rect",{x:0,y:0,width:n.width,height:n.height})+xa("rect"),a+=xa("clipPath");return a.length>0?_a("defs")+a+xa("defs"):""};var dE;lE.attributes=function(t,e){return dE={},t(za,e,this),dE},lE.href=function(t){var e,n=this,r=t.href;if(r){if(e=n._hrefs&&n._hrefs[r])return e;n.sanitizeURL(r).then(function(t){t["xlink:href"]=t.href,t.href=null,(n._hrefs||(n._hrefs={}))[r]=t})}return null},lE.mark=function(t){function e(e){var s=r.href(e);s&&(u+=_a("a",s)),n="g"!==a?Ra(e,t,a,o):null,u+=_a(a,r.attributes(i.attr,e),n),"text"===a?u+=Oa(Hi(e)):"g"===a&&(u+=_a("path",r.attributes(i.background,e),Ra(e,t,"bgrect",o))+xa("path"),u+=_a("g",r.attributes(i.foreground,e))+r.markGroup(e)+xa("g")),u+=xa(a),s&&(u+=xa("a"))}var n,r=this,i=Yk[t.marktype],a=i.tag,o=this._defs,u="";return"g"!==a&&t.interactive===!1&&(n='style="pointer-events: none;"'),u+=_a("g",{class:vn(t)},n),i.nested?t.items&&t.items.length&&e(t.items[0]):oi(t,e),u+xa("g")},lE.markGroup=function(t){var e=this,n="";return oi(t,function(t){n+=e.mark(t)}),n};var pE="canvas",gE="png",vE="svg",mE="none",yE={Canvas:pE,PNG:gE,SVG:vE,None:mE},bE={};bE[pE]=bE[gE]={renderer:ga,headless:ga,handler:la},bE[vE]={renderer:wa,headless:Na,handler:ya},bE[mE]={};var _E=1e-9,xE=1,wE="_:mod:_",ME=Ha.prototype;ME.set=function(t,e,n,r){var i=this,a=i[t],o=i[wE];return null!=e&&e>=0?(a[e]!==n||r)&&(a[e]=n,o[e+":"+t]=-1,o[t]=-1):(a!==n||r)&&(i[t]=n,o[t]=Lw(n)?n.length:-1),i},ME.modified=function(t,e){var n,r=this[wE];if(!arguments.length){for(n in r)if(r[n])return!0;return!1}if(Lw(t)){for(n=0;n<t.length;++n)if(r[t[n]])return!0;return!1}return null!=e&&e>=0?e<r[t]||!!r[e+":"+t]:!!r[t]},ME.clear=function(){return this[wE]={},this};var kE=0,EE=new Ha,SE=Xa.prototype;SE.targets=function(){return this._targets||(this._targets=Ua(Fw))},SE.set=function(t){return this.value!==t?(this.value=t,1):0},SE.skip=Va(1),SE.modified=Va(2),SE.parameters=function(t,e){function n(t,n,r){r instanceof Xa?(r!==u&&(e&&r.targets().add(u),c.push(r)),f.push({op:r,name:t,index:n})):s.set(t,n,r)}e=e!==!1;var r,i,a,o,u=this,s=u._argval=u._argval||new Ha,f=u._argops=u._argops||[],c=[];for(r in t)if(i=t[r],"pulse"===r)j(i).forEach(function(t){t instanceof Xa?t!==u&&(t.targets().add(u),c.push(t)):R("Pulse parameters must be operator instances.")}),u.source=i;else if(Lw(i))for(s.set(r,-1,Array(a=i.length)),o=0;o<a;++o)n(r,o,i[o]);else n(r,-1,i);return this.marshall().clear(),c},SE.marshall=function(t){var e,n,r,i,a,o=this._argval||EE,u=this._argops;if(u&&(r=u.length))for(n=0;n<r;++n)e=u[n],i=e.op,a=i.modified()&&i.stamp===t,o.set(e.name,e.index,i.value,a);return o},SE.evaluate=function(t){if(this._update){var e=this.marshall(t.stamp),n=this._update(e,t);if(e.clear(),n!==this.value)this.value=n;else if(!this.modified())return t.StopPropagation}},SE.run=function(t){if(t.stamp<=this.stamp)return t.StopPropagation;var e=this.skip()?(this.skip(!1),0):this.evaluate(t);return this.stamp=t.stamp,this.pulse=e||t};var CE=0,AE=Qa.prototype;AE._filter=Bw,AE._apply=jw,AE.targets=function(){return this._targets||(this._targets=Ua(Fw))},AE.consume=function(t){return arguments.length?(this._consume=!!t,this):!!this._consume},AE.receive=function(t){if(this._filter(t)){for(var e=this.value=this._apply(t),n=this._targets,r=n?n.length:0,i=0;i<r;++i)n[i].receive(e);this._consume&&(t.preventDefault(),t.stopPropagation())}},AE.filter=function(t){var e=Ka(t);return this.targets().add(e),e},AE.apply=function(t){var e=Ka(null,t);return this.targets().add(e),e},AE.merge=function(){var t=Ka();this.targets().add(t);for(var e=0,n=arguments.length;e<n;++e)arguments[e].targets().add(t);return t},AE.throttle=function(t){var e=-1;return this.filter(function(){var n=Date.now();return n-e>t?(e=n,1):0})},AE.debounce=function(t){function e(){var t=r.dataflow;n.receive(r),r=null,i=null,t&&t.run&&t.run()}var n=Ka(),r=null,i=null;return this.targets().add(Ka(null,null,function(n){r=n,i&&clearTimeout(i),i=setTimeout(e,t)})),n},AE.between=function(t,e){var n=!1;return t.targets().add(Ka(null,null,function(){n=!0})),e.targets().add(Ka(null,null,function(){n=!1})),this.filter(function(){return n})};var TE={skip:!0},NE={},zE=1,RE=2,OE=4,DE=zE|RE,PE=zE|OE,qE=zE|RE|OE,LE=8,UE=16,FE=32,jE=64,IE=oo.prototype;IE.StopPropagation=NE,IE.ADD=zE,IE.REM=RE,IE.MOD=OE,IE.ADD_REM=DE,IE.ADD_MOD=PE,IE.ALL=qE,IE.REFLOW=LE,IE.SOURCE=UE,IE.NO_SOURCE=FE,IE.NO_FIELDS=jE,IE.fork=function(t){return new oo(this.dataflow).init(this,t)},IE.addAll=function(){var t=this;return this.source&&this.source.length!==this.add.length?(t=new oo(this.dataflow).init(this),t.add=t.source,t):t},IE.init=function(t,e){var n=this;return n.stamp=t.stamp,n.encode=t.encode,!t.fields||e&jE||(n.fields=t.fields),n.add=e&zE?(n.addF=t.addF,t.add):(n.addF=null,[]),n.rem=e&RE?(n.remF=t.remF,t.rem):(n.remF=null,[]),n.mod=e&OE?(n.modF=t.modF,t.mod):(n.modF=null,[]),n.source=e&FE?(n.srcF=null,null):(n.srcF=t.srcF,t.source),n},IE.runAfter=function(t){this.dataflow.runAfter(t)},IE.changed=function(t){var e=t||qE;return e&zE&&this.add.length||e&RE&&this.rem.length||e&OE&&this.mod.length},IE.reflow=function(t){if(t)return this.fork(qE).reflow();var e=this.add.length,n=this.source&&this.source.length;return n&&n!==e&&(this.mod=this.source,e&&this.filter(OE,so(this,zE))),this},IE.modifies=function(t){var e=j(t),n=this.fields||(this.fields={});return e.forEach(function(t){n[t]=!0}),this},IE.modified=function(t){var e=this.fields;return!(!this.mod.length||!e)&&(arguments.length?Lw(t)?t.some(function(t){return e[t]}):e[t]:!!e)},IE.filter=function(t,e){var n=this;return t&zE&&(n.addF=uo(n.addF,e)),t&RE&&(n.remF=uo(n.remF,e)),t&OE&&(n.modF=uo(n.modF,e)),t&UE&&(n.srcF=uo(n.srcF,e)),n},IE.materialize=function(t){t=t||qE;var e=this;return t&zE&&e.addF&&(e.add=e.add.filter(e.addF),e.addF=null),t&RE&&e.remF&&(e.rem=e.rem.filter(e.remF),e.remF=null),t&OE&&e.modF&&(e.mod=e.mod.filter(e.modF),e.modF=null),t&UE&&e.srcF&&(e.source=e.source.filter(e.srcF),e.srcF=null),e},IE.visit=function(t,e){var n,r,i=e;return t&UE?(nt(this.source,this.srcF,i),this):(t&zE&&nt(this.add,this.addF,i),t&RE&&nt(this.rem,this.remF,i),t&OE&&nt(this.mod,this.modF,i),t&LE&&(n=this.source)&&(r=this.add.length+this.mod.length,r===n.length||(r?nt(n,so(this,PE),i):nt(n,this.srcF,i))),this)};var $E={skip:!1,force:!1},BE=H(vo,oo);BE.fork=function(){return arguments.length&&arguments[0]&oo.prototype.ALL&&R("MultiPulse fork does not support tuple change sets."),new oo(this.dataflow).init(this,0)},BE.changed=function(t){return this.changes&t},BE.modified=function(t){var e=this,n=e.fields;return n&&e.changes&e.MOD?Lw(t)?t.some(function(t){return n[t]}):n[t]:0},BE.filter=function(){R("MultiPulse does not support filtering.")},BE.materialize=function(){R("MultiPulse does not support materialization.")},BE.visit=function(t,e){var n,r,i=this.pulses;for(n=0,r=i.length;n<r;++n)i[n].stamp===this.stamp&&i[n].visit(t,e);return this};var YE=wo.prototype;YE.size=function(){return this.nodes.length},YE.clear=function(){return this.nodes=[],this},YE.peek=function(){return this.nodes[0]},YE.push=function(t){var e=this.nodes;return e.push(t),Mo(e,0,e.length-1,this.cmp)},YE.pop=function(){var t,e=this.nodes,n=e.pop();return e.length?(t=e[0],e[0]=n,ko(e,0,this.cmp)):t=n,t},YE.replace=function(t){var e=this.nodes,n=e[0];return e[0]=t,ko(e,0,this.cmp),n},YE.pushpop=function(t){var e=this.nodes,n=e[0];return e.length&&this.cmp(n,t)<0&&(e[0]=t,t=n,ko(e,0,this.cmp)),t};var GE=Eo.prototype;GE.stamp=function(){return this._clock},GE.loader=function(t){return arguments.length?(this._loader=t,this):this._loader},GE.cleanThreshold=1e4,GE.add=Ja,GE.connect=Za,GE.rank=io,GE.rerank=ao,GE.pulse=lo,GE.touch=fo,GE.update=co,GE.changeset=Wa,GE.ingest=ho,GE.request=go,GE.events=to,GE.on=eo,GE.run=mo,GE.runAsync=yo,GE.runAfter=bo,GE._enqueue=_o,GE._getPulse=xo,GE.warn=So("warn"),GE.info=So("info"),GE.debug=So("debug"),GE.logLevel=So("level"),GE.error=function(t){throw t};var WE=H(Co,Xa);WE.evaluate=function(t){var e=this.marshall(t.stamp),n=this.transform(e,t);return e.clear(),n},WE.transform=function(){};var HE={},XE={},VE=zo.prototype;VE.add=function(t){this._add.push(t)},VE.rem=function(t){this._rem.push(t)},VE.values=function(){if(this._get=null,0===this._rem.length)return this._add;var t,e,n,r=this._add,i=this._rem,a=this._key,o=r.length,u=i.length,s=Array(o-u),f={};for(t=0;t<u;++t)f[i[t][a]]=1;for(t=0,e=0;t<o;++t)f[(n=r[t])[a]]?f[n[a]]=0:s[e++]=n;return this._rem=[],this._add=s},VE.distinct=function(t){for(var e,n=this.values(),r=n.length,i={},a=0;--r>=0;)e=t(n[r])+"",i.hasOwnProperty(e)||(i[e]=1,++a);return a},VE.extent=function(t){if(this._get!==t||!this._ext){var e=this.values(),n=G(e,t);this._ext=[e[n[0]],e[n[1]]],this._get=t}return this._ext},VE.argmin=function(t){return this.extent(t)[0]||{}},VE.argmax=function(t){return this.extent(t)[1]||{}},VE.min=function(t){var e=this.extent(t)[0];return null!=e?t(e):+(1/0)},VE.max=function(t){var e=this.extent(t)[1];return null!=e?t(e):-(1/0)},VE.quartile=function(t){return this._get===t&&this._q||(this._q=k(this.values(),t),this._get=t),this._q},VE.q1=function(t){return this.quartile(t)[0]},VE.q2=function(t){return this.quartile(t)[1]},VE.q3=function(t){return this.quartile(t)[2]},VE.ci=function(t){return this._get===t&&this._ci||(this._ci=x(this.values(),1e3,.05,t),this._get=t),this._ci},VE.ci0=function(t){return this.ci(t)[0]},VE.ci1=function(t){return this.ci(t)[1]};var JE={values:Oo({name:"values",init:"cell.store = true;",set:"cell.data.values()",idx:-1}),count:Oo({name:"count",set:"cell.num"}),missing:Oo({name:"missing",set:"this.missing"}),valid:Oo({name:"valid",set:"this.valid"}),sum:Oo({name:"sum",init:"this.sum = 0;",add:"this.sum += v;",rem:"this.sum -= v;",set:"this.sum"}),mean:Oo({name:"mean",init:"this.mean = 0;",add:"var d = v - this.mean; this.mean += d / this.valid;",rem:"var d = v - this.mean; this.mean -= this.valid ? d / this.valid : this.mean;",set:"this.mean"}),average:Oo({name:"average",set:"this.mean",req:["mean"],idx:1}),variance:Oo({name:"variance",init:"this.dev = 0;",add:"this.dev += d * (v - this.mean);",rem:"this.dev -= d * (v - this.mean);",set:"this.valid > 1 ? this.dev / (this.valid-1) : 0",req:["mean"],idx:1}),variancep:Oo({name:"variancep",set:"this.valid > 1 ? this.dev / this.valid : 0",req:["variance"],idx:2}),stdev:Oo({name:"stdev",set:"this.valid > 1 ? Math.sqrt(this.dev / (this.valid-1)) : 0",req:["variance"],idx:2}),stdevp:Oo({name:"stdevp",set:"this.valid > 1 ? Math.sqrt(this.dev / this.valid) : 0",req:["variance"],idx:2}),stderr:Oo({name:"stderr",set:"this.valid > 1 ? Math.sqrt(this.dev / (this.valid * (this.valid-1))) : 0",req:["variance"],idx:2}),distinct:Oo({name:"distinct",set:"cell.data.distinct(this.get)",req:["values"],idx:3}),ci0:Oo({name:"ci0",set:"cell.data.ci0(this.get)",req:["values"],idx:3}),ci1:Oo({name:"ci1",set:"cell.data.ci1(this.get)",req:["values"],idx:3}),median:Oo({name:"median",set:"cell.data.q2(this.get)",req:["values"],idx:3}),q1:Oo({name:"q1",set:"cell.data.q1(this.get)",req:["values"],idx:3}),q3:Oo({name:"q3",set:"cell.data.q3(this.get)",req:["values"],idx:3}),argmin:Oo({name:"argmin",add:"if (v < this.min) this.argmin = t;",rem:"if (v <= this.min) this.argmin = null;",set:"this.argmin || cell.data.argmin(this.get)",req:["min"],str:["values"],idx:3}),argmax:Oo({name:"argmax",add:"if (v > this.max) this.argmax = t;",rem:"if (v >= this.max) this.argmax = null;",set:"this.argmax || cell.data.argmax(this.get)",req:["max"],str:["values"],idx:3}),min:Oo({name:"min",init:"this.min = null;",add:"if (v < this.min || this.min === null) this.min = v;",rem:"if (v <= this.min) this.min = NaN;",set:"this.min = (isNaN(this.min) ? cell.data.min(this.get) : this.min)",str:["values"],idx:4}),max:Oo({name:"max",init:"this.max = null;",add:"if (v > this.max || this.max === null) this.max = v;",rem:"if (v >= this.max) this.max = NaN;",set:"this.max = (isNaN(this.max) ? cell.data.max(this.get) : this.max)",str:["values"],idx:4})},ZE=H(Lo,Co);ZE.transform=function(t,e){var n,r=this,i=e.fork(e.NO_SOURCE|e.NO_FIELDS);return this.stamp=i.stamp,this.value&&((n=t.modified())||e.modified(this._inputs))?(this._prev=this.value,this.value=n?this.init(t):{},e.visit(e.SOURCE,function(t){r.add(t)})):(this.value=this.value||this.init(t),e.visit(e.REM,function(t){r.rem(t)}),e.visit(e.ADD,function(t){r.add(t)})),i.modifies(this._outputs),r._drop=t.drop!==!1,r.changes(i)},ZE.init=function(t){function e(t){for(var e,r=t.fields,a=0,o=r.length;a<o;++a)i[e=r[a]]||(i[e]=1,n.push(e))}var n=this._inputs=[],r=this._outputs=[],i={};this._dims=j(t.groupby),this._dnames=this._dims.map(function(t){var n=N(t);return e(t),r.push(n),n}),this.cellkey=t.key?t.key:0===this._dims.length?function(){return""}:1===this._dims.length?this._dims[0]:Fo,this._countOnly=!0,this._counts=[],this._measures=[];var a,o,u,s,f,c,l=t.fields||[null],h=t.ops||["count"],d=t.as||[],p=l.length,g={};for(p!==h.length&&R("Unmatched number of fields and aggregate ops."),c=0;c<p;++c)a=l[c],o=h[c],null==a&&"count"!==o&&R("Null aggregate field specified."),s=N(a),f=Uo(o,s,d[c]),r.push(f),"count"!==o?(u=g[s],u||(e(a),u=g[s]=[],u.field=a,this._measures.push(u)),"count"!==o&&(this._countOnly=!1),u.push(Ro(o,f))):this._counts.push(f);return this._measures=this._measures.map(function(t){return qo(t,t.field)}),{}},ZE.cellkey=Fo,ZE.cell=function(t,e){var n=this.value[t];return n?0===n.num&&this._drop&&n.stamp<this.stamp?(n.stamp=this.stamp,this._adds[this._alen++]=n):n.stamp<this.stamp&&(n.stamp=this.stamp,this._mods[this._mlen++]=n):(n=this.value[t]=this.newcell(t,e),this._adds[this._alen++]=n),n},ZE.newcell=function(t,e){var n={key:t,num:0,agg:null,tuple:this.newtuple(e,this._prev&&this._prev[t]),stamp:this.stamp,store:!1};if(!this._countOnly){var r,i=this._measures,a=i.length;for(n.agg=Array(a),r=0;r<a;++r)n.agg[r]=new i[r](n,n.tuple)}return n.store&&(n.data=new zo),n},ZE.newtuple=function(t,e){var n,r,i=this._dnames,a=this._dims,o={};for(n=0,r=a.length;n<r;++n)o[i[n]]=a[n](t);return e?Ya(e.tuple,o):Ia(o)},ZE.add=function(t){var e,n,r,i=this.cellkey(t),a=this.cell(i,t);if(a.num+=1,!this._countOnly)for(a.store&&a.data.add(t),e=a.agg,n=0,r=e.length;n<r;++n)e[n].add(e[n].get(t),t)},ZE.rem=function(t){var e,n,r,i=this.cellkey(t),a=this.cell(i,t);if(a.num-=1,!this._countOnly)for(a.store&&a.data.rem(t),e=a.agg,n=0,r=e.length;n<r;++n)e[n].rem(e[n].get(t),t)},ZE.celltuple=function(t){var e,n,r,i=t.tuple,a=this._counts;for(t.store&&t.data.values(),n=0,r=a.length;n<r;++n)i[a[n]]=t.num;if(!this._countOnly)for(e=t.agg,n=0,r=e.length;n<r;++n)e[n].set();return i},ZE.changes=function(t){var e,n,r,i,a=this._adds,o=this._mods,u=this._prev,s=this._drop,f=t.add,c=t.rem,l=t.mod;if(u)for(n in u)c.push(u[n].tuple);for(r=0,i=this._alen;r<i;++r)f.push(this.celltuple(a[r])),a[r]=null;for(r=0,i=this._mlen;r<i;++r)e=o[r],(0===e.num&&s?c:l).push(this.celltuple(e)),o[r]=null;return this._alen=this._mlen=0,this._prev=null,t};var QE=H(jo,Co);QE.transform=function(t,e){var n=this._bins(t),r=n.step,i=t.as||["bin0","bin1"],a=i[0],o=i[1],u=t.modified()?(e=e.reflow(!0),e.SOURCE):e.modified(z(t.field))?e.ADD_MOD:e.ADD;return e.visit(u,function(t){var e=n(t);t[a]=e,t[o]=null!=e?e+r:null}),e.modifies(i)},QE._bins=function(t){if(this.value&&!t.modified())return this.value;var n=t.field,r=e(t),i=r.start,a=r.stop,o=r.step,u=function(t){var e=n(t);return null==e?null:i+o*Math.floor((+e-i)/o)};return u.start=i,u.stop=a,u.step=o,this.value=T(u,z(n),t.name||"bin_"+N(n))},H(Io,Co).transform=function(t,e){var n,r=e.fork(e.ALL),i=e.changed(e.ADD),a=e.changed(),o=t.sort,u=this.value,s=function(t){u.push(t)},f=0;return r.rem.length&&(n={},r.visit(r.REM,function(t){n[t._id]=1,++f}),u=u.filter(function(t){return!n[t._id]})),o?((t.modified("sort")||e.modified(o.fields))&&(u.sort(o),a=!0),i&&(u=J(o,u,r.add.sort(o)))):i&&r.visit(r.ADD,s),this.modified(a),this.value=r.source=u,r},H($o,Xa);var KE=H(Yo,Co);KE.transform=function(t,e){function n(e){return function(n){for(var r,i=Go(u(n),t.case,a)||[],s=0,f=i.length;s<f;++s)o.test(r=i[s])||e(r)}}var r=this._parameterCheck(t,e),i=this._counts,a=this._match,o=this._stop,u=t.field,s=t.as||["text","count"],f=n(function(t){i[t]=1+(i[t]||0)}),c=n(function(t){i[t]-=1});return r?e.visit(e.SOURCE,f):(e.visit(e.ADD,f),e.visit(e.REM,c)),this._finish(e,s)},KE._parameterCheck=function(t,e){var n=!1;return!t.modified("stopwords")&&this._stop||(this._stop=new RegExp("^"+(t.stopwords||"")+"$","i"),n=!0),!t.modified("pattern")&&this._match||(this._match=new RegExp(t.pattern||"[\\w']+","g"),n=!0),(t.modified("field")||e.modified(t.field.fields))&&(n=!0),n&&(this._counts={}),n},KE._finish=function(t,e){var n,r,i,a=this._counts,o=this._tuples||(this._tuples={}),u=e[0],s=e[1],f=t.fork();for(n in a)r=o[n],i=a[n]||0,!r&&i?(o[n]=r=Ia({}),r[u]=n,r[s]=i,f.add.push(r)):0===i?(r&&f.rem.push(r),a[n]=null,o[n]=null):r[s]!==i&&(r[s]=i,f.mod.push(r));return f.modifies(e)},H(Wo,Co).transform=function(t,e){var n=e.fork(e.NO_SOURCE),r=this.value,i=t.as||["a","b"],a=i[0],o=i[1];return!r||e.changed(e.ADD_REM)||t.modified("as")||t.modified("filter")?(r&&(n.rem=r),n.add=this.value=Ho(e.source,a,o,t.filter||Bw)):n.mod=r,n.source=this.value,n.modifies(i)};var tS={kde:E,mixture:C,normal:M,uniform:A},eS="distributions",nS="function",rS="field";H(Vo,Co).transform=function(t,e){var n=e.fork(e.NO_SOURCE|e.NO_FIELDS);if(!this.value||e.changed()||t.modified()){var r=Xo(t.distribution,Jo(e)),i=t.method||"pdf";"pdf"!==i&&"cdf"!==i&&R("Invalid density method: "+i),t.extent||r.data||R("Missing density extent parameter."),i=r[i];var a=t.as||["value","density"],o=t.extent||f(r.data()),u=(o[1]-o[0])/(t.steps||100),s=c(o[0],o[1]+u/2,u).map(function(t){var e={};return e[a[0]]=t,e[a[1]]=i(t),Ia(e)});this.value&&(n.rem=this.value),this.value=n.add=n.source=s}return n},H(Zo,Co).transform=function(t,e){var n,r=this.value,i=t.field,a=r[0],o=r[1],u=e.ADD;n=e.changed()||e.modified(i.fields)||t.modified("field"),n&&(u=e.SOURCE,a=+(1/0),o=-(1/0)),e.visit(u,function(t){var e=i(t);e<a&&(a=e),e>o&&(o=e)}),this.value=[a,o]};var iS=H(Qo,Xa);iS.connect=function(t){return this.targets().add(t),t.source=this},iS.add=function(t){this.value.add.push(t)},iS.rem=function(t){this.value.rem.push(t)},iS.mod=function(t){this.value.mod.push(t)},iS.init=function(t){this.value.init(t,t.NO_SOURCE)},iS.evaluate=function(){return this.value};var aS=H(Ko,Co);aS.activate=function(t){this._targets[this._targets.active++]=t},aS.subflow=function(t,e,n,r){var i,a,o=this.value,u=o.hasOwnProperty(t)&&o[t];return u?u.value.stamp<n.stamp&&(u.init(n),this.activate(u)):(a=r||(a=this._group[t])&&a.tuple,i=n.dataflow,u=i.add(new Qo(n.fork(n.NO_SOURCE),this)).connect(e(i,t,a)),o[t]=u,this.activate(u)),u},aS.transform=function(t,e){function n(t){return i.subflow(t,o,e)}var r=e.dataflow,i=this,a=t.key,o=t.subflow,u=this._keys,s=t.modified("key");return this._group=t.group||{},this._targets.active=0,e.visit(e.ADD,function(t){var e=a(t);u.set(t._id,e),n(e).add(t)}),e.visit(e.REM,function(t){var e=u.get(t._id);u.delete(t._id),n(e).rem(t)}),s||e.modified(a.fields)?e.visit(e.MOD,function(t){var e=u.get(t._id),r=a(t);e===r?n(r).mod(t):(u.set(t._id,r),n(e).rem(t),n(r).add(t))}):e.changed(e.MOD)&&e.visit(e.MOD,function(t){n(u.get(t._id)).mod(t)}),s&&e.visit(e.REFLOW,function(t){var e=u.get(t._id),r=a(t);e!==r&&(u.set(t._id,r),n(e).rem(t),n(r).add(t))}),u.empty>r.cleanThreshold&&r.runAfter(u.clean),e},H(tu,Xa),H(nu,Co).transform=function(t,e){function n(e){var n=f(e,t),r=i.get(e._id);n&&r?(i.delete(e._id),o.push(e)):n||r?c&&n&&!r&&s.push(e):(i.set(e._id,1),u.push(e))}var r=e.dataflow,i=this.value,a=e.fork(),o=a.add,u=a.rem,s=a.mod,f=t.expr,c=!0;return e.visit(e.REM,function(t){i.has(t._id)?i.delete(t._id):u.push(t)}),e.visit(e.ADD,function(e){f(e,t)?o.push(e):i.set(e._id,1)}),e.visit(e.MOD,n),t.modified()&&(c=!1,e.visit(e.REFLOW,n)),i.empty>r.cleanThreshold&&r.runAfter(i.clean),a},H(ru,Co).transform=function(t,e){function n(t){for(var e,n=a[t._id]=Array(h),r=0;r<h;++r)e=n[r]=$a(t),e[f]=l[r],e[c]=u[r](t),p.add.push(e)}function r(t){for(var e,n=a[t._id],r=0;r<h;++r)v&1<<r&&(e=Ba(t,n[r],d),e[f]=l[r],e[c]=u[r](t),p.mod.push(e))}var i,a=this.value,o=t.modified("fields"),u=t.fields,s=t.as||["key","value"],f=s[0],c=s[1],l=u.map(iu),h=u.length,d=e.stamp,p=e.fork(e.NO_SOURCE),g=0,v=0;if(o){for(i in a)p.rem.push.apply(p.rem,a[i]);a=this.value={},e.visit(e.SOURCE,n)}else{for(e.visit(e.ADD,n);g<h;++g)e.modified(u[g].fields)&&(v|=1<<g);v&&e.visit(e.MOD,r),e.visit(e.REM,function(t){p.rem.push.apply(p.rem,a[t._id]),a[t._id]=null})}return p.modifies(s)},H(au,Co).transform=function(t,e){function n(e){e[i]=r(e,t)}var r=t.expr,i=t.as,a=t.modified(),o=t.initonly?e.ADD:a?e.SOURCE:e.modified(r.fields)?e.ADD_MOD:e.ADD;return a&&(e=e.materialize().reflow(!0)),e.visit(o,n).modifies(i)},H(ou,Co).transform=function(t,e){var n,r,i,a=this.value,o=e.fork(e.ALL),u=t.size-a.length,s=t.generator;if(u>0){for(n=[];--u>=0;)n.push(i=Ia(s(t))),a.push(i);o.add=o.add.length?o.materialize(o.ADD).add.concat(n):n}else r=a.slice(0,-u),o.rem=o.rem.length?o.materialize(o.REM).rem.concat(r):r,a=a.slice(-u);return o.source=this.value=a,o};var oS={value:"value",median:v,mean:g,min:y,max:p},uS=[];H(uu,Co).transform=function(t,e){var n,r,i,a,o,u,s,f,c,l,h=e.fork(e.ALL),d=su(t),p=fu(t),g=N(t.field),v=t.groupby.map(N),m=t.orderby.map(N),y=cu(e.source,t.groupby,t.orderby),b=[],_=this.value,x=y.domain.length;for(o=0,f=y.length;o<f;++o)for(n=y[o],i=n.values,r=NaN,s=0;s<x;++s)if(null==n[s]){for(a=y.domain[s],l={_impute:!0},u=0,c=i.length;u<c;++u)l[v[u]]=i[u];for(u=0,c=a.length;u<c;++u)l[m[u]]=a[u];l[g]=isNaN(r)?r=d(n,p):r,b.push(Ia(l))}return b.length&&(h.add=h.materialize(h.ADD).add.concat(b)),_.length&&(h.rem=h.materialize(h.REM).rem.concat(_)),this.value=b,h},H(lu,Xa),H(du,Co).transform=function(t,e){var n,r,i,a,o=e,u=t.as,s=t.fields,f=t.index,c=null==t.default?null:t.default,l=t.modified(),h=e.ADD;return 1===s.length?(r=s[0],i=u[0],n=function(t){var e=f.get(r(t));t[i]=null==e?c:e}):n=function(t){for(var e,n=0,r=s.length;n<r;++n)e=f.get(s[n](t)),t[u[n]]=null==e?c:e},l?(h=e.SOURCE,o=e.reflow(!0)):(a=s.some(function(t){return e.modified(t.fields)}),h|=a?e.MOD:0),e.visit(h,n),o.modifies(u)},H(pu,Xa),H(vu,Xa),H(yu,Co),yu.prototype.transform=function(t,e){return this.modified(t.modified()),this.value=t,e.fork(e.NO_SOURCE|e.NO_FIELDS)},H(bu,Ko).transform=function(t,e){var n=this,r=t.subflow,i=t.field;return t.modified("field")&&R("PreFacet does not support field modification."),this._targets.active=0,e.visit(e.MOD,function(t){var a=n.subflow(t._id,r,e,t);i?i(t).forEach(function(t){a.mod(t)}):a.mod(t)}),e.visit(e.ADD,function(t){var a=n.subflow(t._id,r,e,t);i?i(t).forEach(function(t){a.add(Ia(t))}):a.add(t)}),e.visit(e.REM,function(t){var a=n.subflow(t._id,r,e,t);i?i(t).forEach(function(t){a.rem(t)}):a.rem(t)}),e},H(_u,Co).transform=function(t,e){return this.value=t.value,t.modified("value")?e.fork(e.NO_SOURCE|e.NO_FIELDS):e.StopPropagation},H(xu,Co).transform=function(t,e){e.source||R("Rank transform requires an upstream data source.");var n,r=t.normalize,i=t.field,a=t.as||"rank",o={},u=-1;return i?(e.visit(e.SOURCE,function(t){var e=i(t);null==o[e]&&(o[e]=++u)}),e.visit(e.SOURCE,r&&--u?function(t){t[a]=o[i(t)]/u}:function(t){t[a]=o[i(t)]})):(u+=e.source.length,n=-1,e.visit(e.SOURCE,r&&u?function(t){t[a]=++n/u}:function(t){t[a]=++n})),e.reflow(t.modified()).modifies(a)},H(wu,Co).transform=function(t,e){var n,r=this.value||(n=e=e.addAll(),this.value={});return t.derive&&(n=e.fork(),e.visit(e.ADD,function(t){var e=$a(t);r[t._id]=e,n.add.push(e)}),e.visit(e.MOD,function(t){
  n.mod.push(Ba(t,r[t._id]))}),e.visit(e.REM,function(t){n.rem.push(r[t._id]),r[t._id]=null})),n},H(Mu,Co).transform=function(t,e){function n(t){var e,n;o.length<a?o.push(t):(n=~~(u*Math.random()),n<o.length&&n>=s&&(e=o[n],f[e._id]&&r.rem.push(e),o[n]=t)),++u}var r=e.fork(),i=t.modified("size"),a=t.size,o=this.value,u=this.count,s=0,f=o.reduce(function(t,e){return t[e._id]=1,t},{});if(e.rem.length&&(e.visit(e.REM,function(t){f[t._id]&&(f[t._id]=-1,r.rem.push(t)),--u}),o=o.filter(function(t){return f[t._id]!==-1})),(e.rem.length||i)&&o.length<a&&e.source&&(s=u=o.length,e.visit(e.SOURCE,function(t){f[t._id]||n(t)}),s=-1),i&&o.length>a){for(var c=0,l=o.length-a;c<l;++c)f[o[c]._id]=-1,r.rem.push(o[c]);o=o.slice(l)}return e.mod.length&&e.visit(e.MOD,function(t){f[t._id]&&r.mod.push(t)}),e.add.length&&e.visit(e.ADD,n),(e.add.length||s<0)&&(r.add=o.filter(function(t){return!f[t._id]})),this.count=u,this.value=r.source=o,r},H(ku,Co).transform=function(t,e){if(t.modified()){var n=e.materialize().fork(e.MOD);return n.rem=e.rem.concat(this.value),n.source=this.value=c(t.start,t.stop,t.step).map(Ia),n.add=e.add.concat(this.value),n}},H(Eu,Co).transform=function(t,e){return this.value=e.source,e.changed()?e.fork(e.NO_SOURCE|e.NO_FIELDS):e.StopPropagation},H(Su,Co).transform=function(t,e){function n(t){a.set(i(t),t)}var r=e.dataflow,i=t.field,a=this.value,o=!0;return t.modified("field")||e.modified(i.fields)?(a.clear(),e.visit(e.SOURCE,n)):e.changed()?(e.visit(e.REM,function(t){a.delete(i(t))}),e.visit(e.ADD,n)):o=!1,this.modified(o),a.empty>r.cleanThreshold&&r.runAfter(a.clean),e.fork()},H(Cu,Co).transform=function(t,e){(!this.value||t.modified("field")||t.modified("sort")||e.changed()||t.sort&&e.modified(t.sort.fields))&&(this.value=(t.sort?e.source.slice().sort(t.sort):e.source).map(t.field))};var sS={type:"Aggregate",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"fields",type:"field",array:!0},{name:"ops",type:"enum",array:!0,values:["count","valid","missing","distinct","sum","mean","average","variance","variancep","stdev","stdevp","stderr","median","q1","q3","ci0","ci1","min","max","argmin","argmax"]},{name:"as",type:"string",array:!0},{name:"drop",type:"boolean",default:!0},{name:"key",type:"field"}]},fS={type:"Bin",metadata:{modifies:!0},params:[{name:"field",type:"field",required:!0},{name:"maxbins",type:"number",default:20},{name:"base",type:"number",default:10},{name:"divide",type:"number",array:!0,default:[5,2]},{name:"extent",type:"number",array:!0,length:2,required:!0},{name:"step",type:"number"},{name:"steps",type:"number",array:!0},{name:"minstep",type:"number",default:0},{name:"nice",type:"boolean",default:!0},{name:"name",type:"string"},{name:"as",type:"string",array:!0,length:2,default:["bin0","bin1"]}]},cS={type:"Collect",metadata:{source:!0},params:[{name:"sort",type:"compare"}]},lS={type:"CountPattern",metadata:{generates:!0,changes:!0},params:[{name:"field",type:"field",required:!0},{name:"case",type:"enum",values:["upper","lower","mixed"],default:"mixed"},{name:"pattern",type:"string",default:'[\\w"]+'},{name:"stopwords",type:"string",default:""},{name:"as",type:"string",array:!0,length:2,default:["text","count"]}]},hS={type:"Cross",metadata:{source:!0,generates:!0,changes:!0},params:[{name:"filter",type:"expr"},{name:"as",type:"string",array:!0,length:2,default:["a","b"]}]},dS=[{key:{function:"normal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"uniform"},params:[{name:"min",type:"number",default:0},{name:"max",type:"number",default:1}]},{key:{function:"kde"},params:[{name:"field",type:"field",required:!0},{name:"from",type:"data"},{name:"bandwidth",type:"number",default:0}]}],pS={key:{function:"mixture"},params:[{name:"distributions",type:"param",array:!0,params:dS},{name:"weights",type:"number",array:!0}]},gS={type:"Density",metadata:{generates:!0,source:!0},params:[{name:"extent",type:"number",array:!0,length:2},{name:"steps",type:"number",default:100},{name:"method",type:"string",default:"pdf",values:["pdf","cdf"]},{name:"distribution",type:"param",params:dS.concat(pS)},{name:"as",type:"string",array:!0,default:["value","density"]}]},vS={type:"Extent",metadata:{},params:[{name:"field",type:"field",required:!0}]},mS={type:"Filter",metadata:{changes:!0},params:[{name:"expr",type:"expr",required:!0}]},yS={type:"Fold",metadata:{generates:!0,changes:!0},params:[{name:"fields",type:"field",array:!0,required:!0},{name:"as",type:"string",array:!0,length:2,default:["key","value"]}]},bS={type:"Formula",metadata:{modifies:!0},params:[{name:"expr",type:"expr",required:!0},{name:"as",type:"string",required:!0},{name:"initonly",type:"boolean"}]},_S={type:"Impute",metadata:{changes:!0},params:[{name:"field",type:"field",required:!0},{name:"groupby",type:"field",array:!0},{name:"orderby",type:"field",array:!0},{name:"method",type:"enum",default:"value",values:["value","mean","median","max","min"]},{name:"value",default:0}]},xS={type:"Lookup",metadata:{modifies:!0},params:[{name:"index",type:"index",params:[{name:"from",type:"data",required:!0},{name:"key",type:"field",required:!0}]},{name:"fields",type:"field",array:!0,required:!0},{name:"as",type:"string",array:!0,required:!0},{name:"default",default:null}]},wS={type:"Rank",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"normalize",type:"boolean",default:!1},{name:"as",type:"string",default:"rank"}]},MS={type:"Sample",metadata:{source:!0,changes:!0},params:[{name:"size",type:"number",default:1e3}]},kS={type:"Range",metadata:{generates:!0,source:!0},params:[{name:"start",type:"number",required:!0},{name:"stop",type:"number",required:!0},{name:"step",type:"number",default:1}],output:["value"]};Ao(sS,Lo),Ao(fS,jo),Ao(cS,Io),Ao(lS,Yo),Ao(hS,Wo),Ao(gS,Vo),Ao(vS,Zo),Ao(mS,nu),Ao(yS,ru),Ao(bS,au),Ao(_S,uu),Ao(xS,du),Ao(wS,xu),Ao(MS,Mu),Ao(kS,ku),No("Compare",$o),No("Facet",Ko),No("Field",tu),No("Generate",ou),No("Key",lu),No("MultiExtent",pu),No("MultiValues",vu),No("Params",yu),No("PreFacet",bu),No("Proxy",_u),No("Relay",wu),No("Sieve",Eu),No("Subflow",Qo),No("TupleIndex",Su),No("Values",Cu);var ES=Array.prototype,SS=ES.map,CS=ES.slice,AS={name:"implicit"},TS=.7,NS=1/TS,zS="\\s*([+-]?\\d+)\\s*",RS="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",OS="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DS=/^#([0-9a-f]{3})$/,PS=/^#([0-9a-f]{6})$/,qS=new RegExp("^rgb\\("+[zS,zS,zS]+"\\)$"),LS=new RegExp("^rgb\\("+[OS,OS,OS]+"\\)$"),US=new RegExp("^rgba\\("+[zS,zS,zS,RS]+"\\)$"),FS=new RegExp("^rgba\\("+[OS,OS,OS,RS]+"\\)$"),jS=new RegExp("^hsl\\("+[RS,OS,OS]+"\\)$"),IS=new RegExp("^hsla\\("+[RS,OS,OS,RS]+"\\)$"),$S={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ru(Du,Pu,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ru(ju,Fu,Ou(Du,{brighter:function(t){return t=null==t?NS:Math.pow(NS,t),new ju(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?TS:Math.pow(TS,t),new ju(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},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(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+")")}})),Ru(Yu,Bu,Ou(Du,{brighter:function(t){return t=null==t?NS:Math.pow(NS,t),new Yu(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?TS:Math.pow(TS,t),new Yu(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 ju(Gu(t>=240?t-240:t+120,i,r),Gu(t,i,r),Gu(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 BS=Math.PI/180,YS=180/Math.PI,GS=18,WS=.95047,HS=1,XS=1.08883,VS=4/29,JS=6/29,ZS=3*JS*JS,QS=JS*JS*JS;Ru(Xu,Hu,Ou(Du,{brighter:function(t){return new Xu(this.l+GS*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Xu(this.l-GS*(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 t=HS*Ju(t),e=WS*Ju(e),n=XS*Ju(n),new ju(Zu(3.2404542*e-1.5371385*t-.4985314*n),Zu(-.969266*e+1.8760108*t+.041556*n),Zu(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Ru(es,ts,Ou(Du,{brighter:function(t){return new es(this.h,this.c,this.l+GS*(null==t?1:t),this.opacity)},darker:function(t){return new es(this.h,this.c,this.l-GS*(null==t?1:t),this.opacity)},rgb:function(){return Wu(this).rgb()}}));var KS=-.14861,tC=1.78277,eC=-.29227,nC=-.90649,rC=1.97294,iC=rC*nC,aC=rC*tC,oC=tC*eC-nC*KS;Ru(is,rs,Ou(Du,{brighter:function(t){return t=null==t?NS:Math.pow(NS,t),new is(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?TS:Math.pow(TS,t),new is(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*BS,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new ju(255*(e+n*(KS*r+tC*i)),255*(e+n*(eC*r+nC*i)),255*(e+n*(rC*r)),this.opacity)}}));var uC,sC,fC,cC,lC,hC=function t(e){function n(t,e){var n=r((t=Fu(t)).r,(e=Fu(e)).r),i=r(t.g,e.g),a=r(t.b,e.b),o=ds(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}var r=hs(e);return n.gamma=t,n}(1),dC=ps(os),pC=ps(us),gC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vC=new RegExp(gC.source,"g"),mC=180/Math.PI,yC={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},bC=Cs(Es,"px, ","px)","deg)"),_C=Cs(Ss,", ",")",")"),xC=Math.SQRT2,wC=2,MC=4,kC=1e-12,EC=Rs(ls),SC=Rs(ds),CC=Ds(ls),AC=Ds(ds),TC=Ps(ls),NC=Ps(ds),zC=Object.freeze({interpolate:ws,interpolateArray:gs,interpolateBasis:os,interpolateBasisClosed:us,interpolateDate:vs,interpolateNumber:ms,interpolateObject:ys,interpolateRound:Ms,interpolateString:xs,interpolateTransformCss:bC,interpolateTransformSvg:_C,interpolateZoom:zs,interpolateRgb:hC,interpolateRgbBasis:dC,interpolateRgbBasisClosed:pC,interpolateHsl:EC,interpolateHslLong:SC,interpolateLab:Os,interpolateHcl:CC,interpolateHclLong:AC,interpolateCubehelix:TC,interpolateCubehelixLong:NC,quantize:qs}),RC=[0,1],OC={"":Js,"%":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 Qs(100*t,e)},r:Qs,s:Zs,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},DC=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;Ks.prototype=tf.prototype,tf.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.type};var PC,qC,LC,UC=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];rf({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var FC=1e3,jC=60*FC,IC=60*jC,$C=24*IC,BC=7*$C,YC=30*$C,GC=365*$C,WC=zf("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),HC=zf("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),XC=zf("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),VC=zf("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");NC(rs(300,.5,0),rs(-240,.5,1));var JC=(NC(rs(-100,.75,.35),rs(80,1.5,.8)),NC(rs(260,.75,.35),rs(80,1.5,.8)),rs(),Rf(zf("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"))),ZC=Rf(zf("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),QC=Rf(zf("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),KC=Rf(zf("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),tA=Array.prototype.map,eA=Array.prototype.slice,nA={identity:lf,linear:cf,log:bf,ordinal:zu,pow:xf,sqrt:wf,quantile:Mf,quantize:kf,threshold:Ef,time:Tf,utc:Nf,band:Of,point:Pf,sequential:Ff,"bin-linear":Lf,"bin-ordinal":Uf};for(var rA in nA)If(rA,nA[rA])
  ;var iA=$f("4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac"),aA=$f("4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"),oA=new Array(3).concat("67a9cff7f7f7f1a340","0571b092c5defdb863e66101","0571b092c5def7f7f7fdb863e66101","2166ac67a9cfd1e5f0fee0b6f1a340b35806","2166ac67a9cfd1e5f0f7f7f7fee0b6f1a340b35806","2166ac4393c392c5ded1e5f0fee0b6fdb863e08214b35806","2166ac4393c392c5ded1e5f0f7f7f7fee0b6fdb863e08214b35806","0530612166ac4393c392c5ded1e5f0fee0b6fdb863e08214b358067f3b08","0530612166ac4393c392c5ded1e5f0f7f7f7fee0b6fdb863e08214b358067f3b08").map($f),uA=Bf("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),sA=Bf("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),fA=Bf("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),cA=Bf("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),lA=Bf("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),hA=Bf("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),dA=Bf("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),pA=Bf("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),gA=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Bf),vA=Yf(gA),mA=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Bf),yA=Yf(mA),bA=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Bf),_A=Yf(bA),xA=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Bf),wA=Yf(xA),MA=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Bf),kA=Yf(MA),EA=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Bf),SA=Yf(EA),CA=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Bf),AA=Yf(CA),TA=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Bf),NA=Yf(TA),zA=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Bf),RA=Yf(zA),OA=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Bf),DA=Yf(OA),PA=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Bf),qA=Yf(PA),LA=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Bf),UA=Yf(LA),FA=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Bf),jA=Yf(FA),IA=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Bf),$A=Yf(IA),BA=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Bf),YA=Yf(BA),GA=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Bf),WA=Yf(GA),HA=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Bf),XA=Yf(HA),VA=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Bf),JA=Yf(VA),ZA=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Bf),QA=Yf(ZA),KA=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Bf),tT=Yf(KA),eT=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Bf),nT=Yf(eT),rT=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Bf),iT=Yf(rT),aT=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Bf),oT=Yf(aT),uT=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Bf),sT=Yf(uT),fT=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Bf),cT=Yf(fT),lT=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Bf),hT=Yf(lT),dT=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Bf),pT=Yf(dT),gT=Object.freeze({schemeAccent:uA,schemeDark2:sA,schemePaired:fA,schemePastel1:cA,schemePastel2:lA,schemeSet1:hA,schemeSet2:dA,schemeSet3:pA,interpolateBrBG:vA,schemeBrBG:gA,interpolatePRGn:yA,schemePRGn:mA,interpolatePiYG:_A,schemePiYG:bA,interpolatePuOr:wA,schemePuOr:xA,interpolateRdBu:kA,schemeRdBu:MA,interpolateRdGy:SA,schemeRdGy:EA,interpolateRdYlBu:AA,schemeRdYlBu:CA,interpolateRdYlGn:NA,schemeRdYlGn:TA,interpolateSpectral:RA,schemeSpectral:zA,interpolateBuGn:DA,schemeBuGn:OA,interpolateBuPu:qA,schemeBuPu:PA,interpolateGnBu:UA,schemeGnBu:LA,interpolateOrRd:jA,schemeOrRd:FA,interpolatePuBuGn:$A,schemePuBuGn:IA,interpolatePuBu:YA,schemePuBu:BA,interpolatePuRd:WA,schemePuRd:GA,interpolateRdPu:XA,schemeRdPu:HA,interpolateYlGnBu:JA,schemeYlGnBu:VA,interpolateYlGn:QA,schemeYlGn:ZA,interpolateYlOrBr:tT,schemeYlOrBr:KA,interpolateYlOrRd:nT,schemeYlOrRd:eT,interpolateBlues:iT,schemeBlues:rT,interpolateGreens:oT,schemeGreens:aT,interpolateGreys:sT,schemeGreys:uT,interpolatePurples:cT,schemePurples:fT,interpolateReds:hT,schemeReds:lT,interpolateOranges:pT,schemeOranges:dT}),vT={blueorange:oA},mT={category10:WC,category20:VC,category20b:HC,category20c:XC,accent:uA,dark2:sA,paired:fA,pastel1:cA,pastel2:lA,set1:hA,set2:dA,set3:pA,tableau10:iA,tableau20:aA,viridis:JC,magma:ZC,inferno:QC,plasma:KC,blueorange:dC(K(oA))};Gf("blues","Blues"),Gf("greens","Greens"),Gf("greys","Greys"),Gf("purples","Purples"),Gf("reds","Reds"),Gf("oranges","Oranges"),Gf("brownbluegreen","BrBG"),Gf("purplegreen","PRGn"),Gf("pinkyellowgreen","PiYG"),Gf("purpleorange","PuOr"),Gf("redblue","RdBu"),Gf("redgrey","RdGy"),Gf("redyellowblue","RdYlBu"),Gf("redyellowgreen","RdYlGn"),Gf("spectral","Spectral"),Gf("bluegreen","BuGn"),Gf("bluepurple","BuPu"),Gf("greenblue","GnBu"),Gf("orangered","OrRd"),Gf("purplebluegreen","PuBuGn"),Gf("purpleblue","PuBu"),Gf("purplered","PuRd"),Gf("redpurple","RdPu"),Gf("yellowgreenblue","YlGnBu"),Gf("yellowgreen","YlGn"),Gf("yelloworangebrown","YlOrBr"),Gf("yelloworangered","YlOrRd"),H(Qf,Co).transform=function(t,e){function n(t){t[u]=a(o(t))}var r,i=e.fork(e.ALL),a=this.value,o=t.field||jw,u=t.as||"path";return!a||t.modified()?(this.value=a=t.projection.path,i.materialize().reflow().visit(i.SOURCE,n)):(r=o===jw||e.modified(o.fields),i.visit(r?i.ADD_MOD:i.ADD,n)),i.modifies(u)},H(Kf,Co).transform=function(t,e){function n(t){var e=i([a(t),o(t)]);e?(t[s]=e[0],t[f]=e[1]):(t[s]=void 0,t[f]=void 0)}var r,i=t.projection,a=t.fields[0],o=t.fields[1],u=t.as||["x","y"],s=u[0],f=u[1];return t.modified()?e.materialize().reflow(!0).visit(e.SOURCE,n):(r=e.modified(a.fields)||e.modified(o.fields),e.visit(r?e.ADD_MOD:e.ADD,n)),e.modifies(u)},H(tc,Co).transform=function(t,e){var n=e.fork(e.ALL),r=this.value,i=t.field||L("datum"),a=t.as||"shape",o=n.ADD_MOD;return r&&!t.modified()||(this.value=r=ec(t.projection.path,i),n.materialize().reflow(),o=n.SOURCE),n.visit(o,function(t){t[a]=r}),n.modifies(a)},rc.prototype={constructor:rc,reset:function(){this.s=this.t=0},add:function(t){ic(ST,t,this.t),ic(this,ST.s,this.s),this.s?this.t+=ST.t:this.s=ST.t},valueOf:function(){return this.s}};var yT,bT,_T,xT,wT,MT,kT,ET,ST=new rc,CT=1e-6,AT=Math.PI,TT=AT/2,NT=AT/4,zT=2*AT,RT=180/AT,OT=AT/180,DT=Math.abs,PT=Math.atan,qT=Math.atan2,LT=Math.cos,UT=Math.ceil,FT=Math.exp,jT=Math.log,IT=Math.pow,$T=Math.sin,BT=Math.sign||function(t){return t>0?1:t<0?-1:0},YT=Math.sqrt,GT=Math.tan,WT={Feature:function(t,e){sc(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)sc(n[r].geometry,e)}},HT={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){fc(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)fc(n[r],e,0)},Polygon:function(t,e){cc(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)cc(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)sc(n[r],e)}};nc(),nc(),nc();xc.invert=xc;var XT,VT,JT,ZT,QT,KT,tN,eN,nN=1e9,rN=-nN,iN=nc(),aN=(nc(),nc()),oN=nc(),uN={point:uc,lineStart:uc,lineEnd:uc,polygonStart:function(){uN.lineStart=jc,uN.lineEnd=Bc},polygonEnd:function(){uN.lineStart=uN.lineEnd=uN.point=uc,aN.add(DT(oN)),oN.reset()},result:function(){var t=aN/2;return aN.reset(),t}},sN=1/0,fN=sN,cN=-sN,lN=cN,hN={point:Yc,lineStart:uc,lineEnd:uc,polygonStart:uc,polygonEnd:uc,result:function(){var t=[[sN,fN],[cN,lN]];return cN=lN=-(fN=sN=1/0),t}},dN=0,pN=0,gN=0,vN=0,mN=0,yN=0,bN=0,_N=0,xN=0,wN={point:Gc,lineStart:Wc,lineEnd:Vc,polygonStart:function(){wN.lineStart=Jc,wN.lineEnd=Zc},polygonEnd:function(){wN.point=Gc,wN.lineStart=Wc,wN.lineEnd=Vc},result:function(){var t=xN?[bN/xN,_N/xN]:yN?[vN/yN,mN/yN]:gN?[dN/gN,pN/gN]:[NaN,NaN];return dN=pN=gN=vN=mN=yN=bN=_N=xN=0,t}};tl.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,zT)}},result:uc};var MN,kN,EN,SN,CN,AN=nc(),TN={point:uc,lineStart:function(){TN.point=el},lineEnd:function(){MN&&nl(kN,EN),TN.point=uc},polygonStart:function(){MN=!0},polygonEnd:function(){MN=null},result:function(){var t=+AN;return AN.reset(),t}};rl.prototype={_circle:il(4.5),pointRadius:function(t){return this._circle=il(t),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:this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}}};var NN=ol(function(){return!0},fl,ll,[-AT,-TT]);pl.prototype={constructor:pl,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 zN=16,RN=LT(30*OT),ON=dl({point:function(t,e){this.stream.point(t*OT,e*OT)}}),DN=Tl(function(t){return YT(2/(1+t))});DN.invert=Nl(function(t){return 2*oc(t/2)});var PN=Tl(function(t){return(t=ac(t))&&t/$T(t)});PN.invert=Nl(function(t){return t}),Ol.invert=function(t,e){return[t,2*PT(FT(e))-TT]},Fl.invert=Fl,Bl.invert=Nl(PT),Gl.invert=Nl(oc),Hl.invert=Nl(function(t){return 2*PT(t)}),Vl.invert=function(t,e){return[-e,2*PT(FT(t))-TT]},H(Zl,Co).transform=function(t,e){var n,r=e.fork(),i=this.value,a=this.generator;if(!i.length||t.modified())for(var o in t)$(a[o])&&a[o](t[o]);return n=a(),i.length?(n._id=i[0]._id,r.mod.push(n)):r.add.push(Ia(n)),i[0]=n,r.source=i,r};var qN=["clipAngle","clipExtent","scale","translate","center","rotate","parallels","precision","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"],LN={albers:Sl,albersusa:Al,azimuthalequalarea:zl,azimuthalequidistant:Rl,conicconformal:Ul,conicequalarea:El,conicequidistant:$l,equirectangular:jl,gnomonic:Yl,mercator:Dl,orthographic:Wl,stereographic:Xl,transversemercator:Jl};for(var UN in LN)Kl(UN,LN[UN]);H(th,Co).transform=function(t){var e=this.value;!e||t.modified("type")?(this.value=e=eh(t.type),qN.forEach(function(n){null!=t[n]&&nh(e,n,t[n])})):qN.forEach(function(n){t.modified(n)&&nh(e,n,t[n])}),null!=t.pointRadius&&e.path.pointRadius(t.pointRadius)};var FN={type:"GeoPath",metadata:{modifies:!0},params:[{name:"projection",type:"projection",required:!0},{name:"field",type:"field"},{name:"as",type:"string",default:"path"}]},jN={type:"GeoPoint",metadata:{modifies:!0},params:[{name:"projection",type:"projection",required:!0},{name:"fields",type:"field",array:!0,required:!0,length:2},{name:"as",type:"string",array:!0,length:2,default:["x","y"]}]},IN={type:"GeoShape",metadata:{modifies:!0},params:[{name:"projection",type:"projection",required:!0},{name:"field",type:"field",default:"datum"},{name:"as",type:"string",default:"shape"}]},$N={type:"Graticule",metadata:{source:!0,generates:!0,changes:!0},params:[{name:"extent",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"extentMajor",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"extentMinor",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"step",type:"number",array:!0,length:2},{name:"stepMajor",type:"number",array:!0,length:2,default:[90,360]},{name:"stepMinor",type:"number",array:!0,length:2,default:[10,10]},{name:"precision",type:"number",default:2.5}]};Ao(FN,Qf),Ao(jN,Kf),Ao(IN,tc),Ao($N,Zl),No("Projection",th);var BN="log",YN="pow",GN="sqrt",WN="band",HN="point",XN="linear",VN="ordinal",JN="quantile",ZN="quantize",QN="threshold",KN="bin-linear",tz="bin-ordinal",ez="sequential";H(fh,Co).transform=function(t,e){if(null!=this.value&&!t.modified())return e.StopPropagation;var n=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=this.value,i=t.scale,a=t.count,o=t.format||ih(i,a,t.formatSpecifier),u=t.values||rh(i,a);return r&&(n.rem=r),r=u.map(function(t){return Ia({value:t,label:o(t)})}),t.extra&&r.push(Ia({extra:{value:r[0].value},label:""})),n.source=n.add=this.value=r,n},H(ch,Co).transform=function(t,e){var n=e.dataflow,r=e.fork(e.NO_SOURCE|e.NO_FIELDS),i=t.item||lh,a=t.key||Fa,o=this.value;return o||(e=e.addAll(),this.value=o=W().test(hh),o.lookup=function(t){return o.get(a(t))}),(t.modified("key")||e.modified(a))&&R("DataJoin does not support modified key function or fields."),e.visit(e.ADD,function(t){var e=a(t),n=o.get(e);n?(n.exit?(--o.empty,r.add):r.mod).push(n):(o.set(e,n=i(t)),r.add.push(n)),n.datum=t,n.exit=!1}),e.visit(e.MOD,function(t){var e=a(t),n=o.get(e);n&&(n.datum=t,r.mod.push(n))}),e.visit(e.REM,function(t){var e=a(t),n=o.get(e);t!==n.datum||n.exit||(r.rem.push(n),n.exit=!0,++o.empty)}),t.clean&&o.empty>n.cleanThreshold&&n.runAfter(o.clean),r},H(dh,Co).transform=function(t,e){var n=e.fork(e.ADD_REM),r=e.encode,i="enter"===r,a=t.encoders.update||Yw,o=t.encoders.enter||Yw,u=t.encoders.exit||Yw,s=(r&&!i?t.encoders[r]:a)||Yw;if(e.changed(e.ADD)&&(e.visit(e.ADD,function(e){o(e,t),a(e,t),s!==Yw&&s!==a&&s(e,t)}),n.modifies(o.output),n.modifies(a.output),s!==Yw&&s!==a&&n.modifies(s.output)),e.changed(e.REM)&&u!==Yw&&(e.visit(e.REM,function(e){u(e,t)}),n.modifies(u.output)),i||s!==Yw){var f=e.MOD|(t.modified()?e.REFLOW:0);i?(e.visit(f,function(e){var r=o(e,t);(s(e,t)||r)&&n.mod.push(e)}),n.mod.length&&n.modifies(o.output)):e.visit(f,function(e){s(e,t)&&n.mod.push(e)}),n.mod.length&&n.modifies(s.output)}return n};var nz={};nz[JN]=vh,nz[ZN]=gh,nz[QN]=mh,nz[KN]=yh,nz[tz]=yh,H(Mh,Co).transform=function(t,e){if(null!=this.value&&!t.modified())return e.StopPropagation;var n=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=0,i=this.value,a="gradient"===t.type,o=t.scale,u=null==t.count?5:t.count,s=t.format||ih(o,u,t.formatSpecifier),f=t.values||ph(o,u,a);if(s=bh(o,s),i&&(n.rem=i),a)var c=t.values?o.domain():f,l=Xf(o,c[0],K(c));else{var h,d=t.size;$(d)?(t.values||0!==o(f[0])||(f=f.slice(1)),h=f.reduce(function(e,n){return Math.max(e,d(n,t))},0)):d=B(h=d||8)}return i=f.map(function(e,n){var i=Ia({index:n,label:s(e,n,f),value:e});return a?i.perc=l(e):(i.offset=h,i.size=d(e,t),i.total=Math.round(r),r+=i.size),i}),n.source=n.add=this.value=i,n};var rz=W({line:Th,"line-radial":Nh,curve:zh,"curve-radial":Rh,"orthogonal-horizontal":Oh,"orthogonal-vertical":Dh,"orthogonal-radial":Ph,"diagonal-horizontal":qh,"diagonal-vertical":Lh,"diagonal-radial":Uh});H(Ah,Co).transform=function(t,e){var n=t.sourceX||kh,r=t.sourceY||Eh,i=t.targetX||Sh,a=t.targetY||Ch,o=t.as||"path",u=t.orient||"vertical",s=t.shape||"line",f=rz.get(s+"-"+u)||rz.get(s);return f||R("LinkPath unsupported type: "+t.shape+"-"+t.orient),e.visit(e.SOURCE,function(t){t[o]=f(n(t),r(t),i(t),a(t))}),e.reflow(t.modified()).modifies(o)},H(Fh,Co).transform=function(t,e){var n,r,i,a=t.as||["startAngle","endAngle"],o=a[0],u=a[1],s=t.field||$w,f=t.startAngle||0,l=null!=t.endAngle?t.endAngle:2*Math.PI,h=e.source,d=h.map(s),p=d.length,g=f,v=(l-f)/_(d),m=c(p);for(t.sort&&m.sort(function(t,e){return d[t]-d[e]}),n=0;n<p;++n)i=d[m[n]],r=h[m[n]],r[o]=g,r[u]=g+=i*v;return this.value=d,e.reflow(t.modified()).modifies(a)};var iz=5,az=tt([XN,YN,GN]),oz=tt(["set","modified","clear","type","scheme","schemeExtent","schemeCount","domain","domainMin","domainMid","domainMax","domainRaw","nice","zero","range","rangeStep","round","reverse","interpolate","interpolateGamma"]);H(jh,Co).transform=function(t,e){var n,r=e.dataflow,i=this.value;i&&!t.modified("type")||(this.value=i=If((t.type||XN).toLowerCase())());for(n in t)oz[n]||($(i[n])?i[n](t[n]):r.warn("Unsupported scale property: "+n));return Bh(i,t,Ih(i,t),r),e.fork(e.NO_SOURCE|e.NO_FIELDS)},H(Vh,Co).transform=function(t,e){var n,r,i,a,o,u,s,f,c,l,h,d,p,g=t.as||["y0","y1"],v=g[0],m=g[1],y=t.field||$w,b=t.offset;for(n=Jh(e.source,t.groupby,t.sort,y),i=0,o=n.length,s=n.max;i<o;++i)for(r=n[i],f="center"===b?(s-r.sum)/2:0,c="normalize"===b?1/r.sum:1,d=f,p=0,a=0,u=r.length;a<u;++a)l=r[a],h=d,p+=y(l),d=c*p+f,l[v]=h,l[m]=d;return e.reflow(t.modified()).modifies(g)};var uz={type:"LinkPath",metadata:{modifies:!0},params:[{name:"sourceX",type:"field",default:"source.x"},{name:"sourceY",type:"field",default:"source.y"},{name:"targetX",type:"field",default:"target.x"},{name:"targetY",type:"field",default:"target.y"},{name:"orient",type:"enum",default:"vertical",values:["horizontal","vertical","radial"]},{name:"shape",type:"enum",default:"line",values:["line","curve","diagonal","orthogonal"]},{name:"as",type:"string",default:"path"}]},sz={type:"Pie",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"startAngle",type:"number",default:0},{name:"endAngle",type:"number",default:6.283185307179586},{name:"sort",type:"boolean",default:!1},{name:"as",type:"string",array:!0,length:2,default:["startAngle","endAngle"]}]},fz={type:"Stack",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"groupby",type:"field",array:!0},{name:"sort",type:"compare"},{name:"offset",type:"enum",default:"zero",values:["zero","center","normalize"]},{name:"as",type:"string",array:!0,length:2,default:["y0","y1"]}]};Ao(uz,Ah),Ao(sz,Fh),Ao(fz,Vh),No("AxisTicks",fh),No("DataJoin",ch),No("Encode",dh),No("LegendEntries",Mh),No("Scale",jh);var cz=yd.prototype=bd.prototype;cz.copy=function(){var t,e,n=new bd(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=_d(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]=_d(e));return n},cz.add=td,cz.addAll=nd,cz.cover=rd,cz.data=id,cz.extent=ad,cz.find=ud,cz.remove=sd,cz.removeAll=fd,cz.root=cd,cz.size=ld,cz.visit=hd,cz.visitAfter=dd,cz.x=gd,cz.y=md;var lz,hz,dz=0,pz=0,gz=0,vz=1e3,mz=0,yz=0,bz=0,_z="object"==typeof performance&&performance.now?performance:Date,xz="function"==typeof requestAnimationFrame?requestAnimationFrame:function(t){setTimeout(t,17)};Td.prototype=Nd.prototype={constructor:Td,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Cd():+n)+(null==e?0:+e),this._next||hz===this||(hz?hz._next=this:lz=this,hz=this),this._call=t,this._time=n,Pd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Pd())}};var wz=10,Mz=Math.PI*(3-Math.sqrt(5)),kz={center:Zh,collide:Md,nbody:Fd,link:Sd,x:jd,y:Id},Ez="forces",Sz=["alpha","alphaMin","alphaTarget","velocityDecay","forces"],Cz=["static","iterations"],Az=["x","y","vx","vy"],Tz=H($d,Co);Tz.transform=function(t,e){var n=this.value,r=e.changed(e.ADD_REM),i=t.modified(Sz),a=t.iterations||300;if(n?(r&&(e.modifies("index"),n.nodes(e.source)),i&&Gd(n,t)):(this.value=n=Yd(e.source,t),n.on("tick",Bd(e.dataflow,this)),t.static||(r=!0,n.tick()),e.modifies("index")),i||r||t.modified(Cz)||e.changed()&&t.restart)if(n.alpha(Math.max(n.alpha(),t.alpha||1)).alphaDecay(1-Math.pow(n.alphaMin(),1/a)),t.static)for(n.stop();--a>=0;)n.tick();else if(n.stopped()&&n.restart(),!r)return e.StopPropagation;return this.finish(t,e)},Tz.finish=function(t,e){for(var n,r=e.dataflow,i=this._argops,a=0,o=i.length;a<o;++a)if(n=i[a],n.name===Ez&&"link"===n.op._argval.force)for(var u,s=n.op._argops,f=0,c=s.length;f<c;++f)if("links"===s[f].name&&(u=s[f].op.source)){r.touch(u);break}return e.reflow(t.modified()).modifies(Az)},Ao({type:"Force",metadata:{modifies:!0},params:[{name:"static",type:"boolean",default:!1},{name:"restart",type:"boolean",default:!1},{name:"iterations",type:"number",default:300},{name:"alpha",type:"number",default:1},{name:"alphaMin",type:"number",default:.001},{name:"alphaTarget",type:"number",default:0},{name:"velocityDecay",type:"number",default:.4},{name:"forces",type:"param",array:!0,params:[{key:{force:"center"},params:[{name:"x",type:"number",default:0},{name:"y",type:"number",default:0}]},{key:{force:"collide"},params:[{name:"radius",type:"number",expr:!0},{name:"strength",type:"number",default:.7},{name:"iterations",type:"number",default:1}]},{key:{force:"nbody"},params:[{name:"strength",type:"number",default:-30},{name:"theta",type:"number",default:.9},{name:"distanceMin",type:"number",default:1},{name:"distanceMax",type:"number"}]},{key:{force:"link"},params:[{name:"links",type:"data"},{name:"id",type:"field"},{name:"distance",type:"number",default:30,expr:!0},{name:"strength",type:"number",expr:!0},{name:"iterations",type:"number",default:1}]},{key:{force:"x"},params:[{name:"strength",type:"number",default:.1},{name:"x",type:"field"}]},{key:{force:"y"},params:[{name:"strength",type:"number",default:.1},{name:"y",type:"field"}]}]},{name:"as",type:"string",array:!0,modify:!1,default:["x","y","vx","vy"]}]},$d),bp.prototype=pp.prototype={constructor:bp,count:np,each:rp,eachAfter:ap,eachBefore:ip,sum:op,sort:up,path:sp,ancestors:cp,descendants:lp,leaves:hp,links:dp,copy:gp};var Nz="$",zz={depth:-1},Rz={};eg.prototype=Object.create(bp.prototype);var Oz=(1+Math.sqrt(5))/2,Dz=function t(e){function n(t,n,r,i,a){ag(e,t,n,r,i,a)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Oz),Pz=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,u,s,f,c,l=-1,h=o.length,d=t.value;++l<h;){for(u=o[l],s=u.children,f=u.value=0,c=s.length;f<c;++f)u.value+=s[f].value;u.dice?Yp(u,n,r,i,r+=(a-r)*u.value/d):ig(u,n,r,n+=(i-n)*u.value/d,a),d-=u.value}else t._squarify=o=ag(e,t,n,r,i,a),o.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Oz);H(fg,Co).transform=function(t,e){e.source||R("Nest transform requires an upstream data source.");var n,r,i,a,o=t.key||Fa;return(!this.value||(a=t.modified())||e.changed())&&(n=j(t.keys).reduce(function(t,e){return t.key(e),t},at()).entries(e.source),r=pp({values:n},cg),i=r.lookup={},r.each(function(t){null!=Fa(t.data)&&(i[o(t.data)]=t)}),this.value=r),e.source.root=this.value,a?e.fork(e.ALL):e},H(lg,Co).transform=function(t,e){e.source||R("Stratify transform requires an upstream data source.");var n,r,i=t.modified();return(!this.value||i||e.changed(e.ADD_REM)||e.modified(t.key.fields)||e.modified(t.parentKey.fields))&&(n=Xp().id(t.key).parentId(t.parentKey)(e.source),r=n.lookup={},n.each(function(e){r[t.key(e.data)]=e}),this.value=n),e.source.root=this.value,i?e.fork(e.ALL):e},H(hg,Co).transform=function(t,e){function n(t){var e=a[t];e&&(u[t]=1,s.mod.push(e))}e.source&&e.source.root||R("TreeLinks transform requires a backing tree data source.");var r=e.source.root,i=r.lookup,a=this.value,o=t.key||Fa,u={},s=e.fork();return e.visit(e.REM,function(t){var e=o(t),n=a[e];n&&(delete a[e],s.rem.push(n))}),e.visit(e.ADD,function(t){var e,n=o(t);(e=dg(i[n]))&&(s.add.push(a[n]=Ia({source:e,target:t})),u[n]=1)}),e.visit(e.MOD,function(t){var e=o(t),r=i[e],a=r.children;if(n(e),a)for(var s=0,f=a.length;s<f;++s)u[e=o(a[s].data)]||n(e)}),s};var qz={binary:ug,dice:Yp,slice:ig,slicedice:sg,squarify:Dz,resquarify:Pz},Lz={tidy:rg,cluster:tp};H(vg,Co).transform=function(t,e){e.source&&e.source.root||R(this.constructor.name+" transform requires a backing tree data source.");var n=this.layout(t.method),r=this.fields,i=e.source.root,a=t.as||r;t.field&&i.sum(t.field),t.sort&&i.sort(t.sort),mg(n,this.params,t);try{this.value=n(i)}catch(t){R(t)}return i.each(function(t){yg(t,r,a)}),e.reflow(t.modified()).modifies(a).modifies("leaf")},H(bg,vg),bg.prototype.layout=pg,bg.prototype.params=["size","nodeSize","separation"],bg.prototype.fields=["x","y","depth","children"],H(_g,vg),_g.prototype.layout=gg,
  _g.prototype.params=["method","ratio","size","round","padding","paddingInner","paddingOuter","paddingTop","paddingRight","paddingBottom","paddingLeft"],_g.prototype.fields=["x0","y0","x1","y1","depth","children"],H(xg,vg),xg.prototype.layout=Gp,xg.prototype.params=["size","round","padding"],xg.prototype.fields=_g.prototype.fields,H(wg,vg),wg.prototype.layout=Fp,wg.prototype.params=["size","padding"],wg.prototype.fields=["x","y","r","depth","children"];var Uz={type:"Nest",metadata:{treesource:!0},params:[{name:"keys",type:"field",array:!0},{name:"key",type:"field"}]},Fz={type:"Stratify",metadata:{treesource:!0},params:[{name:"key",type:"field",required:!0},{name:"parentKey",type:"field",required:!0}]},jz={type:"TreeLinks",metadata:{tree:!0,generates:!0,changes:!0},params:[{name:"key",type:"field"}]},Iz={type:"Pack",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"padding",type:"number",default:0},{name:"radius",type:"field",default:null},{name:"size",type:"number",array:!0,length:2},{name:"as",type:"string",array:!0,length:3,default:["x","y","r","depth","children"]}]},$z={type:"Partition",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"padding",type:"number",default:0},{name:"round",type:"boolean",default:!1},{name:"size",type:"number",array:!0,length:2},{name:"as",type:"string",array:!0,length:4,default:["x0","y0","x1","y1","depth","children"]}]},Bz={type:"Tree",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"tidy",values:["tidy","cluster"]},{name:"size",type:"number",array:!0,length:2},{name:"nodeSize",type:"number",array:!0,length:2},{name:"as",type:"string",array:!0,length:4,default:["x","y","depth","children"]}]},Yz={type:"Treemap",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"squarify",values:["squarify","resquarify","binary","dice","slice","slicedice"]},{name:"padding",type:"number",default:0},{name:"paddingInner",type:"number",default:0},{name:"paddingOuter",type:"number",default:0},{name:"paddingTop",type:"number",default:0},{name:"paddingRight",type:"number",default:0},{name:"paddingBottom",type:"number",default:0},{name:"paddingLeft",type:"number",default:0},{name:"ratio",type:"number",default:1.618033988749895},{name:"round",type:"boolean",default:!1},{name:"size",type:"number",array:!0,length:2},{name:"as",type:"string",array:!0,length:4,default:["x0","y0","x1","y1","depth","children"]}]};Ao(Uz,fg),Ao(Fz,lg),Ao(jz,hg),Ao(Iz,wg),Ao($z,xg),Ao(Bz,bg),Ao(Yz,_g),Sg.prototype={constructor:Sg,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=Ng(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(Ag(this,n),t=n,n=t.U),n.C=!1,r.C=!0,Tg(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(Tg(this,n),t=n,n=t.U),n.C=!1,r.C=!0,Ag(this,r))),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?Ng(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(e=i.R,e.C&&(e.C=!1,i.C=!0,Ag(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Tg(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Ag(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,Tg(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Ag(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Tg(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var Gz,Wz,Hz,Xz,Vz,Jz=[],Zz=[],Qz=1e-6,Kz=1e-12;ev.prototype={constructor:ev,polygons:function(){var t=this.edges;return this.cells.map(function(e){var n=e.halfedges.map(function(n){return Fg(e,t[n])});return n.data=e.site.data,n})},triangles:function(){var t=[],e=this.edges;return this.cells.forEach(function(n,r){if(a=(i=n.halfedges).length)for(var i,a,o,u=n.site,s=-1,f=e[i[a-1]],c=f.left===u?f.right:f.left;++s<a;)o=c,f=e[i[s]],c=f.left===u?f.right:f.left,o&&c&&r<o.index&&r<c.index&&Kg(u,o,c)<0&&t.push([u.data,o.data,c.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,e,n){for(var r,i,a=this,o=a._found||0,u=a.cells.length;!(i=a.cells[o]);)if(++o>=u)return null;var s=t-i.site[0],f=e-i.site[1],c=s*s+f*f;do i=a.cells[r=o],o=null,i.halfedges.forEach(function(n){var r=a.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var s=t-u[0],f=e-u[1],l=s*s+f*f;l<c&&(c=l,o=u.index)}});while(null!==o);return a._found=r,null==n||c<=n*n?i.site:null}};var tR=[[-1e5,-1e5],[1e5,1e5]];H(rv,Co).transform=function(t,e){var n,r,i,a,o=t.as||"path",u=e.source;for(n=nv().x(t.x).y(t.y),t.size?n.size(t.size):n.extent(t.extent||tR),this.value=n=n(u),r=n.polygons(),i=0,a=u.length;i<a;++i)u[i][o]=r[i]?"M"+r[i].join("L")+"Z":null;return e.reflow(t.modified()).modifies(o)},Ao({type:"Voronoi",metadata:{modifies:!0},params:[{name:"x",type:"field",required:!0},{name:"y",type:"field",required:!0},{name:"size",type:"number",array:!0,length:2},{name:"extent",type:"array",array:!0,length:2,default:[[-1e5,-1e5],[1e5,1e5]],content:{type:"number",array:!0,length:2}},{name:"as",type:"string",default:"path"}]},rv);var eR=Math.PI/180,nR=64,rR=2048,iR={archimedean:fv,rectangular:cv},aR=["x","y","font","fontSize","fontStyle","fontWeight","angle"],oR=["text","font","rotate","fontSize","fontStyle","fontWeight"];H(pv,Co).transform=function(t,e){function n(n){var r=t[n];return $(r)&&e.modified(r.fields)}var r=t.modified();if(r||e.changed(e.ADD_REM)||oR.some(n)){var i,a=this.value,o=t.as||aR,u=t.fontSize||14;if($(u)?i=t.fontSizeRange:u=B(u),i){var s=u,f=If("sqrt")().domain(gv(s,e)).range(i);u=function(t){return f(s(t))}}var c=e.materialize(e.SOURCE).source;c.forEach(function(t){t[o[0]]=NaN,t[o[1]]=NaN,t[o[3]]=0});for(var l,h,d=a.words(c).text(t.text).size(t.size||[500,500]).padding(t.padding||1).spiral(t.spiral||"archimedean").rotate(t.rotate||0).font(t.font||"sans-serif").fontStyle(t.fontStyle||"normal").fontWeight(t.fontWeight||"normal").fontSize(u).layout(),p=a.size(),g=p[0]>>1,v=p[1]>>1,m=0,y=d.length;m<y;++m)l=d[m],h=l.datum,h[o[0]]=l.x+g,h[o[1]]=l.y+v,h[o[2]]=l.font,h[o[3]]=l.size,h[o[4]]=l.style,h[o[5]]=l.weight,h[o[6]]=l.rotate;return e.reflow(r).modifies(o)}},Ao({type:"Wordcloud",metadata:{modifies:!0},params:[{name:"size",type:"number",array:!0,length:2},{name:"font",type:"string",expr:!0,default:"sans-serif"},{name:"fontStyle",type:"string",expr:!0,default:"normal"},{name:"fontWeight",type:"string",expr:!0,default:"normal"},{name:"fontSize",type:"number",expr:!0,default:14},{name:"fontSizeRange",type:"number",array:!0,null:!0,default:[10,50]},{name:"rotate",type:"number",expr:!0,default:0},{name:"text",type:"field"},{name:"spiral",type:"string",values:["archimedean","rectangular"]},{name:"padding",type:"number",expr:!0},{name:"as",type:"string",array:!0,length:7,default:["x","y","font","fontSize","fontStyle","fontWeight","angle"]}]},pv);var uR=H(Sv,Co);uR.transform=function(t,e){if(this._dims){return t.modified("fields")||t.fields.some(function(t){return e.modified(t.fields)})?this.reinit(t,e):this.eval(t,e)}return this.init(t,e)},uR.init=function(t,e){for(var n,r,i=t.fields,a=t.query,o=this._indices={},u=this._dims=[],s=a.length,f=0;f<s;++f)n=i[f].fname,r=o[n]||(o[n]=Mv()),u.push(wv(r,f,a[f]));return this.eval(t,e)},uR.reinit=function(t,e){var n,r,i,a,o,u,s,f,c,l=e.materialize().fork(),h=t.fields,d=t.query,p=this._indices,g=this._dims,v=this.value,m=v.curr(),y=v.prev(),b=v.all(),_=l.rem=l.add,x=l.mod,w=d.length,M={};if(y.set(m),e.rem.length&&(o=this.remove(t,e,l)),e.add.length&&v.add(e.add),e.mod.length)for(u={},a=e.mod,s=0,f=a.length;s<f;++s)u[a[s]._index]=1;for(s=0;s<w;++s)c=h[s],(!g[s]||t.modified("fields",s)||e.modified(c.fields))&&(i=c.fname,(n=M[i])||(p[i]=r=Mv(),M[i]=n=r.insert(c,e.source,0)),g[s]=wv(r,s,d[s]).onAdd(n,m));for(s=0,f=v.data().length;s<f;++s)o[s]||(y[s]!==m[s]?_.push(s):u[s]&&m[s]!==b&&x.push(s));return v.mask=(1<<w)-1,l},uR.eval=function(t,e){var n=e.materialize().fork(),r=this._dims.length,i=0;return e.rem.length&&(this.remove(t,e,n),i|=(1<<r)-1),t.modified("query")&&!t.modified("fields")&&(i|=this.update(t,e,n)),e.add.length&&(this.insert(t,e,n),i|=(1<<r)-1),e.mod.length&&(this.modify(e,n),i|=(1<<r)-1),this.value.mask=i,n},uR.insert=function(t,e,n){var r,i,a,o=e.add,u=this.value,s=this._dims,f=this._indices,c=t.fields,l={},h=n.add,d=u.size(),p=d+o.length,g=s.length;u.resize(p,g),u.add(o);var v=u.curr(),m=u.prev(),y=u.all();for(r=0;r<g;++r)i=c[r].fname,a=l[i]||(l[i]=f[i].insert(c[r],o,d)),s[r].onAdd(a,v);for(;d<p;++d)m[d]=y,v[d]!==y&&h.push(d)},uR.modify=function(t,e){var n,r,i,a=e.mod,o=this.value,u=o.curr(),s=o.all(),f=t.mod;for(n=0,r=f.length;n<r;++n)i=f[n]._index,u[i]!==s&&a.push(i)},uR.remove=function(t,e,n){var r,i,a,o,u=this._indices,s=this.value,f=s.curr(),c=s.prev(),l=s.all(),h={},d=n.rem,p=e.rem;for(r=0,i=p.length;r<i;++r)a=p[r]._index,h[a]=1,c[a]=o=f[a],f[a]=l,o!==l&&d.push(a);for(a in u)u[a].remove(i,h);return this.reindex(e,i,h),h},uR.reindex=function(t,e,n){var r=this._indices,i=this.value;t.runAfter(function(){var t=i.remove(e,n);for(var a in r)r[a].reindex(t)})},uR.update=function(t,e,n){var r,i,a=this._dims,o=t.query,u=e.stamp,s=a.length,f=0;for(n.filters=0,i=0;i<s;++i)t.modified("query",i)&&(r=i,++f);if(1===f)f=a[r].one,this.incrementOne(a[r],o[r],n.add,n.rem);else for(i=0,f=0;i<s;++i)t.modified("query",i)&&(f|=a[i].one,this.incrementAll(a[i],o[i],u,n.add),n.rem=n.add);return f},uR.incrementAll=function(t,e,n,r){var i,a,o,u=this.value,s=u.seen(),f=u.curr(),c=u.prev(),l=t.index(),h=t.bisect(t.range),d=t.bisect(e),p=d[0],g=d[1],v=h[0],m=h[1],y=t.one;if(p<v)for(i=p,a=Math.min(v,g);i<a;++i)o=l[i],s[o]!==n&&(c[o]=f[o],s[o]=n,r.push(o)),f[o]^=y;else if(p>v)for(i=v,a=Math.min(p,m);i<a;++i)o=l[i],s[o]!==n&&(c[o]=f[o],s[o]=n,r.push(o)),f[o]^=y;if(g>m)for(i=Math.max(p,m),a=g;i<a;++i)o=l[i],s[o]!==n&&(c[o]=f[o],s[o]=n,r.push(o)),f[o]^=y;else if(g<m)for(i=Math.max(v,g),a=m;i<a;++i)o=l[i],s[o]!==n&&(c[o]=f[o],s[o]=n,r.push(o)),f[o]^=y;t.range=e.slice()},uR.incrementOne=function(t,e,n,r){var i,a,o,u=this.value,s=u.curr(),f=t.index(),c=t.bisect(t.range),l=t.bisect(e),h=l[0],d=l[1],p=c[0],g=c[1],v=t.one;if(h<p)for(i=h,a=Math.min(p,d);i<a;++i)o=f[i],s[o]^=v,n.push(o);else if(h>p)for(i=p,a=Math.min(h,g);i<a;++i)o=f[i],s[o]^=v,r.push(o);if(d>g)for(i=Math.max(h,g),a=d;i<a;++i)o=f[i],s[o]^=v,n.push(o);else if(d<g)for(i=Math.max(p,d),a=g;i<a;++i)o=f[i],s[o]^=v,r.push(o);t.range=e.slice()};var sR={type:"CrossFilter",metadata:{},params:[{name:"fields",type:"field",array:!0,required:!0},{name:"query",type:"array",array:!0,required:!0,content:{type:"number",array:!0,length:2}}]};H(Cv,Co).transform=function(t,e){var n=~(t.ignore||0),r=t.filter,i=r.mask;if(0===(i&n))return e.StopPropagation;var a=e.fork(e.ALL),o=r.data(),u=r.curr(),s=r.prev(),f=function(t){return u[t]&n?null:o[t]};return a.filter(a.MOD,f),i&i-1?(a.filter(a.ADD,function(t){var e=u[t]&n;return!e&&e^s[t]&n?o[t]:null}),a.filter(a.REM,function(t){var e=u[t]&n;return!e||e^(e^s[t]&n)?null:o[t]})):(a.filter(a.ADD,f),a.filter(a.REM,function(t){return(u[t]&n)===i?o[t]:null})),a.filter(a.SOURCE,function(t){return f(t._index)})};var fR={type:"ResolveFilter",metadata:{},params:[{name:"ignore",type:"number",required:!0,description:"A bit mask indicating which filters to ignore."},{name:"filter",type:"object",required:!0,description:"Per-tuple filter bitmaps from a CrossFilter transform."}]};Ao(sR,Sv),Ao(fR,Cv),H(Av,Co).transform=function(t,e){var n,r=t.mark,i=r.marktype,a=Yk[i],o=a.bound,u=r.bounds;return r.bounds_prev.clear().union(u),a.nested?Tv(r,o):"group"===i||t.modified()?(u.clear(),r.items.forEach(function(t){u.union(Tv(t,o))})):(n=e.changed(e.REM),e.visit(e.ADD,function(t){u.union(Tv(t,o))}),e.visit(e.MOD,function(t){n=n||u.alignsWith(t.bounds),u.union(Tv(t,o))}),n&&(u.clear(),r.items.forEach(function(t){u.union(t.bounds)}))),e.modifies("bounds")},H(Nv,Co).transform=function(t,e){var n=this.value;n||(n=e.dataflow.scenegraph().mark(t.markdef,zv(t),t.index),n.group.context=t.context,t.context.group||(t.context.group=n.group),n.source=this,this.value=n);var r="group"===n.marktype?ln:cn;return e.visit(e.ADD,function(t){r.call(t,n)}),n.items=e.source,e},H(Rv,Co).transform=function(t,e){var n=e.dataflow;if(e.changed(e.REM)&&n.enqueue(e.materialize(e.REM).rem),e.changed(e.ADD)&&n.enqueue(e.materialize(e.ADD).add),e.changed(e.MOD)&&n.enqueue(e.materialize(e.MOD).mod),e.fields&&e.fields.zindex){var r=e.source&&e.source[0];r&&(r.mark.zdirty=!0)}};var cR="fit",lR="pad",hR="none",dR="axis",pR="frame",gR="legend",vR="scope";H(Ov,Co).transform=function(t,e){var n=e.dataflow;return t.mark.items.forEach(function(e){Dv(n,e,t)}),e};var mR="default",yR="view",bR="window",_R="vega-bind",xR="vega-bind-name",wR="vega-bind-radio",MR="vega-option-",kR="outer",ER=["value","update","react","bind"];Am.prototype.visit=function(t){var e,n,r,i=this;if(t(i))return 1;for(e=Tm(i),n=0,r=e.length;n<r;++n)if(e[n].visit(t))return 1};var SR,CR,AR,TR,NR=1,zR=2,RR=3,OR=4,DR=5,PR=6,qR=7,LR=8,UR="ArrayExpression",FR="BinaryExpression",jR="CallExpression",IR="ConditionalExpression",$R="Identifier",BR="Literal",YR="LogicalExpression",GR="MemberExpression",WR="ObjectExpression",HR="Property",XR="UnaryExpression",VR="Unexpected token %0",JR="Unexpected number",ZR="Unexpected string",QR="Unexpected identifier",KR="Unexpected reserved word",tO="Unexpected end of input",eO="Invalid regular expression",nO="Invalid regular expression: missing /",rO="Octal literals are not allowed in strict mode.",iO="Duplicate data property in object literal not allowed in strict mode",aO="ILLEGAL",oO="Disabled.",uO=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ]"),sO=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԯԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠ-ࢲࣤ-ॣ०-९ॱ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧ᪰-᪽ᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶ᳸᳹ᴀ-᷵᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚝꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꧠ-ꧾꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︭︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ０-９Ａ-Ｚ＿ａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ]"),fO={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1},cO={if:1,this:1},lO={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2"},hO=Uy(qC),dO=Uy(zM),pO=Uy(TM),gO=new Date(2e3,0,1),vO="undefined"!=typeof window&&window||null,mO="Literal",yO="Identifier",bO="@",_O="%",xO=":",wO=pb("area"),MO=pb("bounds"),kO=pb("centroid"),EO={},SO="union",CO="unit",AO="others",TO={pad:Q,truncate:et,rgb:Fu,lab:Hu,hcl:ts,hsl:Bu,sequence:c,format:hO,utcFormat:dO,timeFormat:pO,monthFormat:jy,monthAbbrevFormat:Iy,dayFormat:$y,dayAbbrevFormat:By,quarter:Yy,utcquarter:Gy,warn:Hy,info:Xy,debug:Vy,inScope:Jy,clampRange:Zy,pinchDistance:Qy,pinchAngle:Ky,open:tb,screen:eb,windowsize:nb,span:rb,bandspace:fb,inrange:Mb,encode:kb,modify:Sb},NO=["view","item","group","xy","x","y"],zO="event.vega.",RO="this.",OO={};Rb("bandwidth",sb,ab),Rb("copy",cb,ab),Rb("domain",ub,ab),Rb("range",ob,ab),Rb("invert",hb,ab),Rb("scale",lb,ab),Rb("gradient",db,ab),Rb("geoArea",wO,ab),Rb("geoBounds",MO,ab),Rb("geoCentroid",kO,ab),Rb("indata",mb,yb),Rb("data",gb,vb),Rb("vlPoint",Nb,vb),Rb("vlInterval",zb,vb),Rb("treePath",xb,vb),Rb("treeAncestors",wb,vb);var DO,PO={blacklist:["_"],whitelist:["datum","event"],fieldvar:"datum",globalvar:function(t){return"_["+q("$"+t)+"]"},functions:Ob,constants:lO,visitors:OO},qO=Ly(PO),LO="$",UO="group",FO="rect",jO="rule",IO="symbol",$O="text",BO=tt(["*","arc","area","group","image","line","path","rect","rule","shape","symbol","text"]),YO="view",GO="[",WO="]",HO="{",XO="}",VO=":",JO=",",ZO="@",QO=">",KO=/[\[\]\{\}]/,tD="view",eD="scope",nD="var datum=event.item&&event.item.datum;",rD=tt(["rule"]),iD=tt(["group","image","rect"]),aD="mark",oD="frame",uD="scope",sD="axis",fD="axis-domain",cD="axis-grid",lD="axis-label",hD="axis-tick",dD="axis-title",pD="legend",gD="legend-entry",vD="legend-gradient",mD="legend-label",yD="legend-symbol",bD="legend-title",_D={name:1,interactive:1},xD="top",wD="left",MD="right",kD="bottom",ED="index",SD="label",CD="offset",AD="perc",TD="size",ND="total",zD="value",RD=["shape","size","fill","stroke","strokeDash","opacity"],OD="datum."+AD+'<=0?"left":datum.'+AD+'>=1?"right":"center"',DD=P_("key"),PD="ascending",qD="descending",LD=I_("Aggregate"),UD=I_("AxisTicks"),FD=I_("Bound"),jD=I_("Collect"),ID=I_("Compare"),$D=I_("DataJoin"),BD=I_("Encode"),YD=I_("Facet"),GD=I_("Field"),WD=I_("Key"),HD=I_("LegendEntries"),XD=I_("Mark"),VD=I_("MultiExtent"),JD=I_("MultiValues"),ZD=I_("Params"),QD=I_("PreFacet"),KD=I_("Projection"),tP=I_("Proxy"),eP=I_("Relay"),nP=I_("Render"),rP=I_("Scale"),iP=I_("Sieve"),aP=I_("ViewLayout"),oP=I_("Values");nx.fromEntries=function(t,e){var n=e.length,r=1,i=e[0],a=e[n-1],o=e[n-2],u=null;for(t.add(e[0]);r<n;++r)e[r].params.pulse=D_(e[r-1]),t.add(e[r]),"Aggregate"===e[r].type&&(u=e[r]);return new nx(t,i,o,a,u)};var uP=nx.prototype;uP.countsRef=function(t,e,n){var r,i,a,o=this,u=o.counts||(o.counts={}),s=rx(e);return null!=s&&(t=o.scope,r=u[s]),r?n&&n.field&&ix(t,r.agg.params,n):(a={groupby:t.fieldRef(e,"key"),pulse:D_(o.output)},n&&n.field&&ix(t,a,n),i=t.add(LD(a)),r=t.add(jD({pulse:D_(i)})),r={agg:i,ref:D_(r)},null!=s&&(u[s]=r)),r.ref},uP.tuplesRef=function(){return D_(this.values)},uP.extentRef=function(t,e){return ax(t,this,"extent","Extent",e,!1)},uP.domainRef=function(t,e){return ax(t,this,"domain","Values",e,!1)},uP.valuesRef=function(t,e,n){return ax(t,this,"vals","Values",e,n||!0)},uP.lookupRef=function(t,e){return ax(t,this,"lookup","TupleIndex",e,!1)},uP.indataRef=function(t,e){return ax(t,this,"indata","TupleIndex",e,!0,!0)};var sP=0,fP=["identity","ordinal","band","point","linear","pow","sqrt","log","sequential","time","utc","quantize","quantile","threshold","bin-linear","bin-ordinal"],cP=tt(fP),lP=tt(fP.slice(1,4)),hP=tt(["width","height","padding"]),dP=Yx.prototype=Gx.prototype;dP.fork=function(){return new Gx(this)},dP.toRuntime=function(){return this.finish(),{background:this.background,operators:this.operators,streams:this.streams,updates:this.updates,bindings:this.bindings}},dP.id=function(){return(this._subid?this._subid+":":0)+this._id++},dP.add=function(t){return this.operators.push(t),t.id=this.id(),t.refs&&(t.refs.forEach(function(e){e.$ref=t.id}),t.refs=null),t},dP.proxy=function(t){var e=t instanceof z_?D_(t):t;return this.add(tP({value:e}))},dP.addStream=function(t){return this.streams.push(t),t.id=this.id(),t},dP.addUpdate=function(t){return this.updates.push(t),t},dP.finish=function(){function t(t,e,n){var r,i;t&&(r=t.data||(t.data={}),i=r[e]||(r[e]=[]),i.push(n))}var e,n;this.root&&(this.root.root=!0);for(e in this.signals)this.signals[e].signal=e;for(e in this.scales)this.scales[e].scale=e;for(e in this.data){n=this.data[e],t(n.input,e,"input"),t(n.output,e,"output"),t(n.values,e,"values");for(var r in n.index)t(n.index[r],e,"index:"+r)}return this},dP.pushState=function(t,e,n){this._encode.push(D_(this.add(iP({pulse:t})))),this._parent.push(e),this._lookup.push(n?D_(this.proxy(n)):null),this._markpath.push(-1)},dP.popState=function(){this._encode.pop(),this._parent.pop(),this._lookup.pop(),this._markpath.pop()},dP.parent=function(){return K(this._parent)},dP.encode=function(){return K(this._encode)},dP.lookup=function(){return K(this._lookup)},dP.markpath=function(){var t=this._markpath;return++t[t.length-1]},dP.fieldRef=function(t,e){if(P(t))return P_(t,e);t.signal||R("Unsupported field reference: "+q(t));var n,r=t.signal,i=this.field[r];return i||(n={name:this.signalRef(r)},e&&(n.as=e),this.field[r]=i=D_(this.add(GD(n)))),i},dP.compareRef=function(t){function e(t){return j_(t)?(r=!0,D_(n[t.signal])):t}var n=this.signals,r=!1,i=j(t.field).map(e),a=j(t.order).map(e);return r?D_(this.add(ID({fields:i,orders:a}))):q_(i,a)},dP.keyRef=function(t){function e(t){return j_(t)?(r=!0,D_(n[t.signal])):t}var n=this.signals,r=!1;return t=j(t).map(e),r?D_(this.add(WD({fields:t}))):L_(t)},dP.sortRef=function(t){if(!t)return t;var e=[F_(t.op,t.field),"_id"],n=t.order||PD;return n.signal?D_(this.add(ID({fields:e,orders:[n=this.signalRef(n.signal),n]}))):q_(e,[n,n])},dP.event=function(t,e){var n=t+":"+e;if(!this.events[n]){var r=this.id();this.streams.push({id:r,source:t,type:e}),this.events[n]=r}return this.events[n]},dP.addSignal=function(t,e){this.signals.hasOwnProperty(t)&&R("Duplicate signal name: "+q(t));var n=e instanceof z_?e:this.add(O_(e));return this.signals[t]=n},dP.getSignal=function(t){return this.signals[t]||R("Unrecognized signal name: "+q(t)),this.signals[t]},dP.signalRef=function(t){return this.signals[t]?D_(this.signals[t]):(this.lambdas[t]||(this.lambdas[t]=this.add(O_(null))),D_(this.lambdas[t]))},dP.parseLambdas=function(){for(var t=Object.keys(this.lambdas),e=0,n=t.length;e<n;++e){var r=t[e],i=Db(r,this),a=this.lambdas[r];a.params=i.$params,a.update=i.$expr}},dP.property=function(t){return t&&t.signal?this.signalRef(t.signal):t},dP.addBinding=function(t,e){this.bindings||R("Nested signals do not support binding: "+q(t)),this.bindings.push(Y({signal:t},e))},dP.addScaleProj=function(t,e){this.scales.hasOwnProperty(t)&&R("Duplicate scale or projection name: "+q(t)),this.scales[t]=this.add(e)},dP.addScale=function(t,e){this.addScaleProj(t,rP(e))},dP.addProjection=function(t,e){this.addScaleProj(t,KD(e))},dP.getScale=function(t){return this.scales[t]||R("Unrecognized scale name: "+q(t)),this.scales[t]},dP.projectionRef=dP.scaleRef=function(t){return D_(this.getScale(t))},dP.projectionType=dP.scaleType=function(t){return this.getScale(t).params.type},dP.addData=function(t,e){return this.data.hasOwnProperty(t)&&R("Duplicate data set name: "+q(t)),this.data[t]=e},dP.getData=function(t){return this.data[t]||R("Undefined data set name: "+q(t)),this.data[t]},dP.addDataPipeline=function(t,e){return this.data.hasOwnProperty(t)&&R("Duplicate data set name: "+q(t)),this.addData(t,nx.fromEntries(this,e))};var pP=30,gP=2,vP="#4c78a8",mP="#000",yP="#888",bP="#ddd",_P=[{key:"$ref",parse:rw},{key:"$key",parse:aw},{key:"$expr",parse:iw},{key:"$field",parse:ow},{key:"$encode",parse:sw},{key:"$compare",parse:uw},{key:"$context",parse:fw},{key:"$subflow",parse:cw}],xP={skip:!0};bw.prototype=_w.prototype={fork:function(){var t=new _w(this);return(this.subcontext||(this.subcontext=[])).push(t),t},get:function(t){return this.nodes[t]},set:function(t,e){return this.nodes[t]=e},add:function(t,e){var n,r=this,i=r.dataflow;if(r.set(t.id,e),"Collect"===t.type&&(n=t.value)&&(n.$ingest?i.ingest(e,n.$ingest,n.$format):n.$request?i.request(e,n.$request,n.$format):i.pulse(e,i.changeset().insert(n))),t.root&&(r.root=e),t.parent){var a=r.get(t.parent.$ref);i.connect(a,[e]),e.targets().add(a)}if(t.signal&&(r.signals[t.signal]=e),t.scale&&(r.scales[t.scale]=e),t.data)for(var o in t.data)n=r.data[o]||(r.data[o]={}),t.data[o].forEach(function(t){n[t]=e})},operator:function(t,e,n){this.add(t,this.dataflow.add(t.value,e,n,t.react))},transform:function(t,e,n){this.add(t,this.dataflow.add(this.transforms[e],n))},stream:function(t,e){this.set(t.id,e)},update:function(t,e,n,r,i){this.dataflow.on(e,n,r,i,t.options)},getState:vw,setState:mw};var wP=H(Aw,Eo);wP.run=function(t){Eo.prototype.run.call(this,t);var e=this._queue;return(this._resize||!e||e.length)&&(this.render(e),this._queue=[]),this},wP.render=function(t){return this._renderer&&(this._resize&&(this._resize=0,Zv(this)),this._renderer.render(this._scenegraph.root,t)),this},wP.enqueue=function(t){this._queue&&t&&t.length&&(this._queue=this._queue.concat(t))},wP.signal=function(t,e,n){var r=Tw(this,t);return 1===arguments.length?r.value:this.update(r,e,n)},wP.scenegraph=function(){return this._scenegraph},wP.background=function(t){return arguments.length?(this._background=t,this._resize=1,this):this._background},wP.width=function(t){return arguments.length?this.signal("width",t):this.signal("width")},wP.height=function(t){return arguments.length?this.signal("height",t):this.signal("height")},wP.padding=function(t){return arguments.length?this.signal("padding",t):this.signal("padding")},wP.renderer=function(t){return arguments.length?(Da(t)||this.error("Unrecognized renderer type: "+t),t!==this._renderType&&(this._renderType=t,this._renderer&&(this._renderer=this._queue=null,this.initialize(this._el))),this):this._renderType},wP.addEventListener=function(t,e){this._handler.on(t,e)},wP.removeEventListener=function(t,e){this._handler.off(t,e)},wP.addSignalListener=function(t,e){var n=Tw(this,t),r=function(){e(t,n.value)};this.on(n,null,(r.handler=e,r))},wP.removeSignalListener=function(t,e){var n=Tw(this,t),r=n._targets||[],i=r.filter(function(t){var n=t._update;return n&&n.handler===e});i.length&&r.remove(i[0])},wP.preventDefault=function(t){return arguments.length?(this._preventDefault=t,this):this._preventDefault},wP.tooltipHandler=function(t){var e=this._handler;return arguments.length?(e.handleTooltip=t||sa.prototype.handleTooltip,this):e.handleTooltip},wP.events=tm,wP.finalize=am,wP.hover=im,wP.autosize=Mw,wP.data=Yv,wP.change=Gv,wP.insert=Wv,wP.remove=Hv,wP.initialize=mm,wP.toImageURL=_m,wP.toCanvas=wm,wP.toSVG=Mm,wP.getState=kw,wP.setState=Cw,No("Bound",Av),No("Mark",Nv),No("Render",Rv),No("ViewLayout",Ov),t.version=Nw,t.Dataflow=Eo,t.EventStream=Qa,t.Parameters=Ha,t.Pulse=oo,t.MultiPulse=vo,t.Operator=Xa,t.Transform=Co,t.changeset=Wa,t.ingest=Ia,t.register=Ao,t.definition=To,t.definitions=XE,t.transform=No,t.transforms=HE,t.tupleid=Fa,t.scale=If,t.scheme=Wf,t.interpolate=Jf,t.interpolateRange=Hf,t.projection=Kl,t.View=Aw,t.parse=Xx,t.expressionFunction=Rb,t.formatLocale=rf,t.timeFormatLocale=nn,t.runtime=gw,t.runtimeContext=yw,t.bin=e,t.bootstrapCI=x,t.randomInteger=w,t.randomKDE=E,t.randomMixture=C,t.randomNormal=M,t.randomUniform=A,t.quartiles=k,t.accessor=T,t.accessorName=N,t.accessorFields=z,t.id=Fw,t.identity=jw,t.zero=Iw,t.one=$w,t.truthy=Bw,t.falsy=Yw,t.logger=F,t.None=Gw,t.Warn=Ww,t.Info=Hw,t.Debug=Xw,t.array=j,t.compare=I,t.constant=B,t.error=R,t.extend=Y,t.extentIndex=G,t.fastmap=W,t.field=L,t.inherits=H,t.isArray=Lw,t.isFunction=$,t.isNumber=X,t.isObject=D,t.isString=P,t.key=V,t.merge=J,t.pad=Q,t.peek=K,t.repeat=Z,t.splitAccessPath=O,t.stringValue=q,t.toSet=tt,t.truncate=et,t.visitArray=nt,t.loader=wt,t.read=on,t.inferType=Nt,t.inferTypes=zt,t.typeParsers=eM,t.formats=ee,t.Bounds=sn,t.Gradient=fn,t.GroupItem=ln,t.ResourceLoader=yn,t.Item=cn,t.Scenegraph=oa,t.Handler=sa,t.Renderer=fa,t.CanvasHandler=la,t.CanvasRenderer=ga,t.SVGHandler=ya,t.SVGRenderer=wa,t.SVGStringRenderer=Na,t.RenderType=yE,t.renderModule=Da,t.Marks=Yk,t.boundContext=Zr,t.boundStroke=Jr,t.boundItem=ea,t.boundMark=na,t.pathCurves=gr,t.pathSymbols=wr,t.pathRectangle=Tr,t.pathTrail=Nr,t.pathParse=vr,t.pathRender=_r,t.point=ca,t.canvas=mn,t.domCreate=hn,t.domFind=dn,t.domChild=pn,t.domClear=gn,t.openTag=_a,t.closeTag=xa,t.font=Vi,t.textMetrics=Fk,t.sceneEqual=Pa,t.pathEqual=qa,t.sceneToJSON=ra,t.sceneFromJSON=ia,t.sceneZOrder=ai,t.sceneVisit=oi,t.scenePickVisit=ui,Object.defineProperty(t,"__esModule",{value:!0})});