UNPKG

extjs-gpl

Version:

GPL licensed version of Sencha Ext JS

1 lines 174 kB
!function(){if(Ext.Boot.isIE8||Ext.Boot.isIE9||Ext.Boot.isIE10){return}var hk={version:"3.5.17"};var bL=[].slice,dL=function(e){return bL.call(e)};var bK=this.document;function d4(e){return e&&(e.ownerDocument||e.document||e).documentElement}function fu(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(bK){try{dL(bK.documentElement.childNodes)[0].nodeType}catch(g9){dL=function(d3){var e=d3.length,h8=new Array(e);while(e--){h8[e]=d3[e]}return h8}}}if(!Date.now){Date.now=function(){return +new Date()}}if(bK){try{bK.createElement("DIV").style.setProperty("opacity",0,"")}catch(fs){var dJ=this.Element.prototype,bZ=dJ.setAttribute,g2=dJ.setAttributeNS,dx=this.CSSStyleDeclaration.prototype,gK=dx.setProperty;dJ.setAttribute=function(e,d3){bZ.call(this,e,d3+"")};dJ.setAttributeNS=function(h8,e,d3){g2.call(this,h8,e,d3+"")};dx.setProperty=function(e,h8,d3){gK.call(this,e,h8+"",d3)}}}hk.ascending=fe;function fe(d3,e){return d3<e?-1:d3>e?1:d3>=e?0:NaN}hk.descending=function(d3,e){return e<d3?-1:e>d3?1:e>=d3?0:NaN};hk.min=function(ib,h9){var h8=-1,ia=ib.length,d3,e;if(arguments.length===1){while(++h8<ia){if((e=ib[h8])!=null&&e>=e){d3=e;break}}while(++h8<ia){if((e=ib[h8])!=null&&d3>e){d3=e}}}else{while(++h8<ia){if((e=h9.call(ib,ib[h8],h8))!=null&&e>=e){d3=e;break}}while(++h8<ia){if((e=h9.call(ib,ib[h8],h8))!=null&&d3>e){d3=e}}}return d3};hk.max=function(ib,h9){var h8=-1,ia=ib.length,d3,e;if(arguments.length===1){while(++h8<ia){if((e=ib[h8])!=null&&e>=e){d3=e;break}}while(++h8<ia){if((e=ib[h8])!=null&&e>d3){d3=e}}}else{while(++h8<ia){if((e=h9.call(ib,ib[h8],h8))!=null&&e>=e){d3=e;break}}while(++h8<ia){if((e=h9.call(ib,ib[h8],h8))!=null&&e>d3){d3=e}}}return d3};hk.extent=function(ic,h9){var h8=-1,ib=ic.length,d3,e,ia;if(arguments.length===1){while(++h8<ib){if((e=ic[h8])!=null&&e>=e){d3=ia=e;break}}while(++h8<ib){if((e=ic[h8])!=null){if(d3>e){d3=e}if(ia<e){ia=e}}}}else{while(++h8<ib){if((e=h9.call(ic,ic[h8],h8))!=null&&e>=e){d3=ia=e;break}}while(++h8<ib){if((e=h9.call(ic,ic[h8],h8))!=null){if(d3>e){d3=e}if(ia<e){ia=e}}}}return[d3,ia]};function hp(e){return e===null?NaN:+e}function a8(e){return !isNaN(e)}hk.sum=function(ib,h9){var h8=0,ia=ib.length,e,d3=-1;if(arguments.length===1){while(++d3<ia){if(a8(e=+ib[d3])){h8+=e}}}else{while(++d3<ia){if(a8(e=+h9.call(ib,ib[d3],d3))){h8+=e}}}return h8};hk.mean=function(ic,ia){var h9=0,ib=ic.length,e,h8=-1,d3=ib;if(arguments.length===1){while(++h8<ib){if(a8(e=hp(ic[h8]))){h9+=e}else{--d3}}}else{while(++h8<ib){if(a8(e=hp(ia.call(ic,ic[h8],h8)))){h9+=e}else{--d3}}}if(d3){return h9/d3}};hk.quantile=function(h8,ic){var h9=(h8.length-1)*ic+1,ia=Math.floor(h9),d3=+h8[ia-1],ib=h9-ia;return ib?d3+ib*(h8[ia]-d3):d3};hk.median=function(ib,h9){var d3=[],ia=ib.length,e,h8=-1;if(arguments.length===1){while(++h8<ia){if(a8(e=hp(ib[h8]))){d3.push(e)}}}else{while(++h8<ia){if(a8(e=hp(h9.call(ib,ib[h8],h8)))){d3.push(e)}}}if(d3.length){return hk.quantile(d3.sort(fe),0.5)}};hk.variance=function(ib,ia){var e=ib.length,d3=0,id,ic,ie=0,h9=-1,h8=0;if(arguments.length===1){while(++h9<e){if(a8(id=hp(ib[h9]))){ic=id-d3;d3+=ic/++h8;ie+=ic*(id-d3)}}}else{while(++h9<e){if(a8(id=hp(ia.call(ib,ib[h9],h9)))){ic=id-d3;d3+=ic/++h8;ie+=ic*(id-d3)}}}if(h8>1){return ie/(h8-1)}};hk.deviation=function(){var e=hk.variance.apply(this,arguments);return e?Math.sqrt(e):e};function gk(e){return{left:function(h8,d3,ib,ia){if(arguments.length<3){ib=0}if(arguments.length<4){ia=h8.length}while(ib<ia){var h9=ib+ia>>>1;if(e(h8[h9],d3)<0){ib=h9+1}else{ia=h9}}return ib},right:function(h8,d3,ib,ia){if(arguments.length<3){ib=0}if(arguments.length<4){ia=h8.length}while(ib<ia){var h9=ib+ia>>>1;if(e(h8[h9],d3)>0){ia=h9}else{ib=h9+1}}return ib}}}var cW=gk(fe);hk.bisectLeft=cW.left;hk.bisect=hk.bisectRight=cW.right;hk.bisector=function(e){return gk(e.length===1?function(h8,d3){return fe(e(h8),d3)}:e)};hk.shuffle=function(ib,ia,h9){if((e=arguments.length)<3){h9=ib.length;if(e<2){ia=0}}var e=h9-ia,h8,d3;while(e){d3=Math.random()*e--|0;h8=ib[e+ia],ib[e+ia]=ib[d3+ia],ib[d3+ia]=h8}return ib};hk.permute=function(h9,d3){var h8=d3.length,e=new Array(h8);while(h8--){e[h8]=h9[d3[h8]]}return e};hk.pairs=function(ib){var e=0,ia=ib.length-1,h9,h8=ib[0],d3=new Array(ia<0?0:ia);while(e<ia){d3[e]=[h9=h8,h8=ib[++e]]}return d3};hk.transpose=function(d3){if(!(ic=d3.length)){return[]}for(var h9=-1,e=hk.min(d3,bQ),ia=new Array(e);++h9<e;){for(var h8=-1,ic,ib=ia[h9]=new Array(ic);++h8<ic;){ib[h8]=d3[h8][h9]}}return ia};function bQ(e){return e.length}hk.zip=function(){return hk.transpose(arguments)};hk.keys=function(h8){var d3=[];for(var e in h8){d3.push(e)}return d3};hk.values=function(h8){var e=[];for(var d3 in h8){e.push(h8[d3])}return e};hk.entries=function(h8){var e=[];for(var d3 in h8){e.push({key:d3,value:h8[d3]})}return e};hk.merge=function(ia){var ic=ia.length,d3,h9=-1,h8=0,e,ib;while(++h9<ic){h8+=ia[h9].length}e=new Array(h8);while(--ic>=0){ib=ia[ic];d3=ib.length;while(--d3>=0){e[--h8]=ib[d3]}}return e};var cD=Math.abs;hk.range=function(ic,ia,ib){if(arguments.length<3){ib=1;if(arguments.length<2){ia=ic;ic=0}}if((ia-ic)/ib===Infinity){throw new Error("infinite range")}var d3=[],e=gg(cD(ib)),h9=-1,h8;ic*=e,ia*=e,ib*=e;if(ib<0){while((h8=ic+ib*++h9)>ia){d3.push(h8/e)}}else{while((h8=ic+ib*++h9)<ia){d3.push(h8/e)}}return d3};function gg(e){var d3=1;while(e*d3%1){d3*=10}return d3}function h0(h8,d3){for(var e in d3){Object.defineProperty(h8.prototype,e,{value:d3[e],enumerable:false})}}hk.map=function(e,h9){var ia=new aE();if(e instanceof aE){e.forEach(function(id,ie){ia.set(id,ie)})}else{if(Array.isArray(e)){var h8=-1,ic=e.length,ib;if(arguments.length===1){while(++h8<ic){ia.set(h8,e[h8])}}else{while(++h8<ic){ia.set(h9.call(e,ib=e[h8],h8),ib)}}}else{for(var d3 in e){ia.set(d3,e[d3])}}}return ia};function aE(){this._=Object.create(null)}var c8="__proto__",cC="\x00";h0(aE,{has:gE,get:function(e){return this._[aX(e)]},set:function(e,d3){return this._[aX(e)]=d3},remove:cT,keys:fr,values:function(){var e=[];for(var d3 in this._){e.push(this._[d3])}return e},entries:function(){var e=[];for(var d3 in this._){e.push({key:aY(d3),value:this._[d3]})}return e},size:hC,empty:aw,forEach:function(d3){for(var e in this._){d3.call(this,aY(e),this._[e])}}});function aX(e){return(e+="")===c8||e[0]===cC?cC+e:e}function aY(e){return(e+="")[0]===cC?e.slice(1):e}function gE(e){return aX(e) in this._}function cT(e){return(e=aX(e)) in this._&&delete this._[e]}function fr(){var d3=[];for(var e in this._){d3.push(aY(e))}return d3}function hC(){var d3=0;for(var e in this._){++d3}return d3}function aw(){for(var e in this._){return false}return true}hk.nest=function(){var h9={},h8=[],ic=[],d3,ia;function ib(ie,im,ik){if(ik>=h8.length){return ia?ia.call(h9,im):d3?im.sort(d3):im}var il=-1,id=im.length,ip=h8[ik++],ij,ii,ih,ig=new aE(),io;while(++il<id){if(io=ig.get(ij=ip(ii=im[il]))){io.push(ii)}else{ig.set(ij,[ii])}}if(ie){ii=ie();ih=function(ir,iq){ii.set(ir,ib(ie,iq,ik))}}else{ii={};ih=function(ir,iq){ii[ir]=ib(ie,iq,ik)}}ig.forEach(ih);return ii}function e(ie,ig){if(ig>=h8.length){return ie}var ih=[],id=ic[ig++];ie.forEach(function(ii,ij){ih.push({key:ii,values:e(ij,ig)})});return id?ih.sort(function(ij,ii){return id(ij.key,ii.key)}):ih}h9.map=function(ie,id){return ib(id,ie,0)};h9.entries=function(id){return e(ib(hk.map,id,0),0)};h9.key=function(id){h8.push(id);return h9};h9.sortKeys=function(id){ic[h8.length-1]=id;return h9};h9.sortValues=function(id){d3=id;return h9};h9.rollup=function(id){ia=id;return h9};return h9};hk.set=function(h9){var h8=new dn();if(h9){for(var e=0,d3=h9.length;e<d3;++e){h8.add(h9[e])}}return h8};function dn(){this._=Object.create(null)}h0(dn,{has:gE,add:function(e){this._[aX(e+="")]=true;return e},remove:cT,values:fr,size:hC,empty:aw,forEach:function(d3){for(var e in this._){d3.call(this,aY(e))}}});hk.behavior={};function gh(e){return e}hk.rebind=function(h8,d3){var e=1,ia=arguments.length,h9;while(++e<ia){h8[h9=arguments[e]]=ew(h8,d3,d3[h9])}return h8};function ew(d3,e,h8){return function(){var h9=h8.apply(e,arguments);return h9===e?d3:h9}}function dd(h8,d3){if(d3 in h8){return d3}d3=d3.charAt(0).toUpperCase()+d3.slice(1);for(var h9=0,ia=G.length;h9<ia;++h9){var e=G[h9]+d3;if(e in h8){return e}}}var G=["webkit","ms","moz","Moz","o","O"];function aD(){}hk.dispatch=function(){var e=new eR(),d3=-1,h8=arguments.length;while(++d3<h8){e[arguments[d3]]=fc(e)}return e};function eR(){}eR.prototype.on=function(h8,h9){var d3=h8.indexOf("."),e="";if(d3>=0){e=h8.slice(d3+1);h8=h8.slice(0,d3)}if(h8){return arguments.length<2?this[h8].on(e):this[h8].on(e,h9)}if(arguments.length===2){if(h9==null){for(h8 in this){if(this.hasOwnProperty(h8)){this[h8].on(e,null)}}}return this}};function fc(e){var h8=[],d3=new aE();function h9(){var ic=h8,ib=-1,id=ic.length,ia;while(++ib<id){if(ia=ic[ib].on){ia.apply(this,arguments)}}return e}h9.on=function(ib,id){var ia=d3.get(ib),ic;if(arguments.length<2){return ia&&ia.on}if(ia){ia.on=null;h8=h8.slice(0,ic=h8.indexOf(ia)).concat(h8.slice(ic+1));d3.remove(ib)}if(id){h8.push(d3.set(ib,{on:id}))}return e};return h9}hk.event=null;function s(){hk.event.preventDefault()}function aa(){var h8=hk.event,d3;while(d3=h8.sourceEvent){h8=d3}return h8}function he(h8){var e=new eR(),d3=0,h9=arguments.length;while(++d3<h9){e[arguments[d3]]=fc(e)}e.of=function(ib,ia){return function(ic){try{var id=ic.sourceEvent=hk.event;ic.target=h8;hk.event=ic;e[ic.type].apply(ib,ia)}finally{hk.event=id}}};return e}hk.requote=function(e){return e.replace(c5,"\\$&")};var c5=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;var h2={}.__proto__?function(d3,e){d3.__proto__=e}:function(d3,e){for(var h8 in e){d3[h8]=e[h8]}};function dW(e){h2(e,dV);return e}var dm=function(e,d3){return d3.querySelector(e)},f3=function(e,d3){return d3.querySelectorAll(e)},a=function(h8,e){var d3=h8.matches||h8[dd(h8,"matchesSelector")];a=function(ia,h9){return d3.call(ia,h9)};return a(h8,e)};if(typeof Sizzle==="function"){dm=function(e,d3){return Sizzle(e,d3)[0]||null};f3=Sizzle;a=Sizzle.matchesSelector}hk.selection=function(){return hk.select(bK.documentElement)};var dV=hk.selection.prototype=[];dV.select=function(ib){var h8=[],ig,e,ie,h9;ib=v(ib);for(var ic=-1,ia=this.length;++ic<ia;){h8.push(ig=[]);ig.parentNode=(ie=this[ic]).parentNode;for(var id=-1,d3=ie.length;++id<d3;){if(h9=ie[id]){ig.push(e=ib.call(h9,h9.__data__,id,ic));if(e&&"__data__" in h9){e.__data__=h9.__data__}}else{ig.push(null)}}}return dW(h8)};function v(e){return typeof e==="function"?e:function(){return dm(e,this)}}dV.selectAll=function(ia){var d3=[],ie,h8;ia=cY(ia);for(var ib=-1,h9=this.length;++ib<h9;){for(var id=this[ib],ic=-1,e=id.length;++ic<e;){if(h8=id[ic]){d3.push(ie=dL(ia.call(h8,h8.__data__,ic,ib)));ie.parentNode=h8}}}return dW(d3)};function cY(e){return typeof e==="function"?e:function(){return f3(e,this)}}var fN="http://www.w3.org/1999/xhtml";var ea={svg:"http://www.w3.org/2000/svg",xhtml:fN,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};hk.ns={prefix:ea,qualify:function(e){var d3=e.indexOf(":"),h8=e;if(d3>=0&&(h8=e.slice(0,d3))!=="xmlns"){e=e.slice(d3+1)}return ea.hasOwnProperty(h8)?{space:ea[h8],local:e}:e}};dV.attr=function(e,h8){if(arguments.length<2){if(typeof e==="string"){var d3=this.node();e=hk.ns.qualify(e);return e.local?d3.getAttributeNS(e.space,e.local):d3.getAttribute(e)}for(h8 in e){this.each(br(h8,e[h8]))}return this}return this.each(br(e,h8))};function br(h8,ic){h8=hk.ns.qualify(h8);function d3(){this.removeAttribute(h8)}function id(){this.removeAttributeNS(h8.space,h8.local)}function ib(){this.setAttribute(h8,ic)}function ia(){this.setAttributeNS(h8.space,h8.local,ic)}function e(){var ie=ic.apply(this,arguments);if(ie==null){this.removeAttribute(h8)}else{this.setAttribute(h8,ie)}}function h9(){var ie=ic.apply(this,arguments);if(ie==null){this.removeAttributeNS(h8.space,h8.local)}else{this.setAttributeNS(h8.space,h8.local,ie)}}return ic==null?h8.local?id:d3:typeof ic==="function"?h8.local?h9:e:h8.local?ia:ib}function cE(e){return e.trim().replace(/\s+/g," ")}dV.classed=function(e,h9){if(arguments.length<2){if(typeof e==="string"){var h8=this.node(),ia=(e=gr(e)).length,d3=-1;if(h9=h8.classList){while(++d3<ia){if(!h9.contains(e[d3])){return false}}}else{h9=h8.getAttribute("class");while(++d3<ia){if(!gM(e[d3]).test(h9)){return false}}}return true}for(h9 in e){this.each(gA(h9,e[h9]))}return this}return this.each(gA(e,h9))};function gM(e){return new RegExp("(?:^|\\s+)"+hk.requote(e)+"(?:\\s+|$)","g")}function gr(e){return(e+"").trim().split(/^|\s+/)}function gA(d3,h9){d3=gr(d3).map(hY);var ia=d3.length;function e(){var ib=-1;while(++ib<ia){d3[ib](this,h9)}}function h8(){var ic=-1,ib=h9.apply(this,arguments);while(++ic<ia){d3[ic](this,ib)}}return typeof h9==="function"?h8:e}function hY(e){var d3=gM(e);return function(h8,h9){if(ia=h8.classList){return h9?ia.add(e):ia.remove(e)}var ia=h8.getAttribute("class")||"";if(h9){d3.lastIndex=0;if(!d3.test(ia)){h8.setAttribute("class",cE(ia+" "+e))}}else{h8.setAttribute("class",cE(ia.replace(d3," ")))}}}dV.style=function(e,h9,d3){var ia=arguments.length;if(ia<3){if(typeof e!=="string"){if(ia<2){h9=""}for(d3 in e){this.each(fH(d3,e[d3],h9))}return this}if(ia<2){var h8=this.node();return fu(h8).getComputedStyle(h8,null).getPropertyValue(e)}d3=""}return this.each(fH(e,h9,d3))};function fH(h8,ib,h9){function d3(){this.style.removeProperty(h8)}function ia(){this.style.setProperty(h8,ib,h9)}function e(){var ic=ib.apply(this,arguments);if(ic==null){this.style.removeProperty(h8)}else{this.style.setProperty(h8,ic,h9)}}return ib==null?d3:typeof ib==="function"?e:ia}dV.property=function(e,d3){if(arguments.length<2){if(typeof e==="string"){return this.node()[e]}for(d3 in e){this.each(hE(d3,e[d3]))}return this}return this.each(hE(e,d3))};function hE(d3,h9){function e(){delete this[d3]}function h8(){this[d3]=h9}function ia(){var ib=h9.apply(this,arguments);if(ib==null){delete this[d3]}else{this[d3]=ib}}return h9==null?e:typeof h9==="function"?ia:h8}dV.text=function(e){return arguments.length?this.each(typeof e==="function"?function(){var d3=e.apply(this,arguments);this.textContent=d3==null?"":d3}:e==null?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent};dV.html=function(e){return arguments.length?this.each(typeof e==="function"?function(){var d3=e.apply(this,arguments);this.innerHTML=d3==null?"":d3}:e==null?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML};dV.append=function(e){e=az(e);return this.select(function(){return this.appendChild(e.apply(this,arguments))})};function az(e){function d3(){var h9=this.ownerDocument,ia=this.namespaceURI;return ia===fN&&h9.documentElement.namespaceURI===fN?h9.createElement(e):h9.createElementNS(ia,e)}function h8(){return this.ownerDocument.createElementNS(e.space,e.local)}return typeof e==="function"?e:(e=hk.ns.qualify(e)).local?h8:d3}dV.insert=function(e,d3){e=az(e);d3=v(d3);return this.select(function(){return this.insertBefore(e.apply(this,arguments),d3.apply(this,arguments)||null)})};dV.remove=function(){return this.each(eg)};function eg(){var e=this.parentNode;if(e){e.removeChild(this)}}dV.data=function(id,ig){var ia=-1,d3=this.length,ie,h8;if(!arguments.length){id=new Array(d3=(ie=this[0]).length);while(++ia<d3){if(h8=ie[ia]){id[ia]=h8.__data__}}return id}function ib(ir,il){var io,ii=ir.length,ik=il.length,iq=Math.min(ii,ik),iv=new Array(ik),it=new Array(ik),ip=new Array(ii),ij,ih;if(ig){var iw=new aE(),iu=new Array(ii),im;for(io=-1;++io<ii;){if(ij=ir[io]){if(iw.has(im=ig.call(ij,ij.__data__,io))){ip[io]=ij}else{iw.set(im,ij)}iu[io]=im}}for(io=-1;++io<ik;){if(!(ij=iw.get(im=ig.call(il,ih=il[io],io)))){it[io]=H(ih)}else{if(ij!==true){iv[io]=ij;ij.__data__=ih}}iw.set(im,true)}for(io=-1;++io<ii;){if(io in iu&&iw.get(iu[io])!==true){ip[io]=ir[io]}}}else{for(io=-1;++io<iq;){ij=ir[io];ih=il[io];if(ij){ij.__data__=ih;iv[io]=ij}else{it[io]=H(ih)}}for(;io<ik;++io){it[io]=H(il[io])}for(;io<ii;++io){ip[io]=ir[io]}}it.update=iv;it.parentNode=iv.parentNode=ip.parentNode=ir.parentNode;ic.push(it);h9.push(iv);e.push(ip)}var ic=bS([]),h9=dW([]),e=dW([]);if(typeof id==="function"){while(++ia<d3){ib(ie=this[ia],id.call(ie,ie.parentNode.__data__,ia))}}else{while(++ia<d3){ib(ie=this[ia],id)}}h9.enter=function(){return ic};h9.exit=function(){return e};return h9};function H(e){return{__data__:e}}dV.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")};dV.filter=function(e){var h8=[],ie,id,h9;if(typeof e!=="function"){e=a5(e)}for(var ib=0,ia=this.length;ib<ia;ib++){h8.push(ie=[]);ie.parentNode=(id=this[ib]).parentNode;for(var ic=0,d3=id.length;ic<d3;ic++){if((h9=id[ic])&&e.call(h9,h9.__data__,ic,ib)){ie.push(h9)}}}return dW(h8)};function a5(e){return function(){return a(this,e)}}dV.order=function(){for(var d3=-1,e=this.length;++d3<e;){for(var ib=this[d3],h8=ib.length-1,h9=ib[h8],ia;--h8>=0;){if(ia=ib[h8]){if(h9&&h9!==ia.nextSibling){h9.parentNode.insertBefore(ia,h9)}h9=ia}}}return this};dV.sort=function(d3){d3=gJ.apply(this,arguments);for(var h8=-1,e=this.length;++h8<e;){this[h8].sort(d3)}return this.order()};function gJ(e){if(!arguments.length){e=fe}return function(h8,d3){return h8&&d3?e(h8.__data__,d3.__data__):!h8-!d3}}dV.each=function(e){return cF(this,function(h9,h8,d3){e.call(h9,h9.__data__,h8,d3)})};function cF(d3,id){for(var h8=0,e=d3.length;h8<e;h8++){for(var ib=d3[h8],h9=0,ic=ib.length,ia;h9<ic;h9++){if(ia=ib[h9]){id(ia,h9,h8)}}}return d3}dV.call=function(d3){var e=dL(arguments);d3.apply(e[0]=this,e);return this};dV.empty=function(){return !this.node()};dV.node=function(){for(var d3=0,e=this.length;d3<e;d3++){for(var ia=this[d3],h8=0,ib=ia.length;h8<ib;h8++){var h9=ia[h8];if(h9){return h9}}}return null};dV.size=function(){var e=0;cF(this,function(){++e});return e};function bS(e){h2(e,e0);return e}var e0=[];hk.selection.enter=bS;hk.selection.enter.prototype=e0;e0.append=dV.append;e0.empty=dV.empty;e0.node=dV.node;e0.call=dV.call;e0.size=dV.size;e0.select=function(ib){var h8=[],ih,e,ie,ig,ia;for(var ic=-1,h9=this.length;++ic<h9;){ie=(ig=this[ic]).update;h8.push(ih=[]);ih.parentNode=ig.parentNode;for(var id=-1,d3=ig.length;++id<d3;){if(ia=ig[id]){ih.push(ie[id]=e=ib.call(ig.parentNode,ia.__data__,id,ic));e.__data__=ia.__data__}else{ih.push(null)}}}return dW(h8)};e0.insert=function(e,d3){if(arguments.length<2){d3=gq(this)}return dV.insert.call(this,e,d3)};function gq(h8){var e,d3;return function(id,ia,h9){var ic=h8[h9].update,ie=ic.length,ib;if(h9!=d3){d3=h9,e=0}if(ia>=e){e=ia+1}while(!(ib=ic[e])&&++e<ie){}return ib}}hk.select=function(e){var d3;if(typeof e==="string"){d3=[dm(e,bK)];d3.parentNode=bK.documentElement}else{d3=[e];d3.parentNode=d4(e)}return dW([d3])};hk.selectAll=function(e){var d3;if(typeof e==="string"){d3=dL(f3(e,bK));d3.parentNode=bK.documentElement}else{d3=dL(e);d3.parentNode=null}return dW([d3])};dV.on=function(d3,h8,e){var h9=arguments.length;if(h9<3){if(typeof d3!=="string"){if(h9<2){h8=false}for(e in d3){this.each(i(e,d3[e],h8))}return this}if(h9<2){return(h9=this.node()["__on"+d3])&&h9._}e=false}return this.each(i(d3,h8,e))};function i(ie,h9,ig){var e="__on"+ie,ib=ie.indexOf("."),d3=fm;if(ib>0){ie=ie.slice(0,ib)}var h8=bG.get(ie);if(h8){ie=h8,d3=al}function ia(){var ih=this[e];if(ih){this.removeEventListener(ie,ih,ih.$);delete this[e]}}function id(){var ih=d3(h9,dL(arguments));ia.call(this);this.addEventListener(ie,this[e]=ih,ih.$=ig);ih._=h9}function ic(){var ik=new RegExp("^__on([^.]+)"+hk.requote(ie)+"$"),ij;for(var ii in this){if(ij=ii.match(ik)){var ih=this[ii];this.removeEventListener(ij[1],ih,ih.$);delete this[ii]}}}return ib?h9?id:ia:h9?aD:ic}var bG=hk.map({mouseenter:"mouseover",mouseleave:"mouseout"});if(bK){bG.forEach(function(e){if("on"+e in bK){bG.remove(e)}})}function fm(d3,e){return function(h8){var h9=hk.event;hk.event=h8;e[0]=this.__data__;try{d3.apply(this,e)}finally{hk.event=h9}}}function al(h8,e){var d3=fm(h8,e);return function(ib){var ia=this,h9=ib.relatedTarget;if(!h9||h9!==ia&&!(h9.compareDocumentPosition(ia)&8)){d3.call(ia,ib)}}}var b9,gG=0;function bH(ib){var h8=".dragsuppress-"+ ++gG,ia="click"+h8,d3=hk.select(fu(ib)).on("touchmove"+h8,s).on("dragstart"+h8,s).on("selectstart"+h8,s);if(b9==null){b9="onselectstart" in ib?false:dd(ib.style,"userSelect")}if(b9){var h9=d4(ib).style,e=h9[b9];h9[b9]="none"}return function(ic){d3.on(h8,null);if(b9){h9[b9]=e}if(ic){var id=function(){d3.on(ia,null)};d3.on(ia,function(){s();id()},true);setTimeout(id,0)}}}hk.mouse=function(e){return aU(e,aa())};var cA=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function aU(h9,id){if(id.changedTouches){id=id.changedTouches[0]}var ia=h9.ownerSVGElement||h9;if(ia.createSVGPoint){var d3=ia.createSVGPoint();if(cA<0){var ic=fu(h9);if(ic.scrollX||ic.scrollY){ia=hk.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var h8=ia[0][0].getScreenCTM();cA=!(h8.f||h8.e);ia.remove()}}if(cA){d3.x=id.pageX,d3.y=id.pageY}else{d3.x=id.clientX,d3.y=id.clientY}d3=d3.matrixTransform(h9.getScreenCTM().inverse());return[d3.x,d3.y]}var ib=h9.getBoundingClientRect();return[id.clientX-ib.left-h9.clientLeft,id.clientY-ib.top-h9.clientTop]}hk.touch=function(e,h9,d3){if(arguments.length<3){d3=h9,h9=aa().changedTouches}if(h9){for(var h8=0,ib=h9.length,ia;h8<ib;++h8){if((ia=h9[h8]).identifier===d3){return aU(e,ia)}}}};hk.behavior.drag=function(){var ia=he(h9,"drag","dragstart","dragend"),e=null,d3=h8(aD,hk.mouse,fu,"mousemove","mouseup"),ib=h8(hi,hk.touch,gh,"touchmove","touchend");function h9(){this.on("mousedown.drag",d3).on("touchstart.drag",ib)}function h8(ii,ic,ih,ig,ie){return function(){var ip=this,iq=hk.event.target.correspondingElement||hk.event.target,iw=ip.parentNode,ir=ia.of(ip,arguments),iu=0,ij=ii(),id=".drag"+(ij==null?"":"-"+ij),im,ik=hk.select(ih(iq)).on(ig+id,it).on(ie+id,iv),io=bH(iq),il=ic(iw,ij);if(e){im=e.apply(ip,arguments);im=[im.x-il[0],im.y-il[1]]}else{im=[0,0]}ir({type:"dragstart"});function it(){var iy=ic(iw,ij),iz,ix;if(!iy){return}iz=iy[0]-il[0];ix=iy[1]-il[1];iu|=iz|ix;il=iy;ir({type:"drag",x:iy[0]+im[0],y:iy[1]+im[1],dx:iz,dy:ix})}function iv(){if(!ic(iw,ij)){return}ik.on(ig+id,null).on(ie+id,null);io(iu);ir({type:"dragend"})}}}h9.origin=function(ic){if(!arguments.length){return e}e=ic;return h9};return hk.rebind(h9,ia,"on")};function hi(){return hk.event.changedTouches[0].identifier}hk.touches=function(e,d3){if(arguments.length<2){d3=aa().touches}return d3?dL(d3).map(function(h9){var h8=aU(e,h9);h8.identifier=h9.identifier;return h8}):[]};var gj=0.000001,eA=gj*gj,ga=Math.PI,f4=2*ga,gB=f4-gj,em=ga/2,F=ga/180,hB=180/ga;function b6(e){return e>0?1:e<0?-1:0}function eW(d3,e,h8){return(e[0]-d3[0])*(h8[1]-d3[1])-(e[1]-d3[1])*(h8[0]-d3[0])}function Z(e){return e>1?0:e<-1?ga:Math.acos(e)}function cc(e){return e>1?em:e<-1?-em:Math.asin(e)}function dT(e){return((e=Math.exp(e))-1/e)/2}function bB(e){return((e=Math.exp(e))+1/e)/2}function fo(e){return((e=Math.exp(2*e))-1)/(e+1)}function aA(e){return(e=Math.sin(e/2))*e}var f7=Math.SQRT2,W=2,U=4;hk.interpolateZoom=function(d3,e){var ih=d3[0],im=d3[1],ie=d3[2],ig=e[0],il=e[1],ic=e[2],id=ig-ih,ib=il-im,io=id*id+ib*ib,ij,h8;if(io<eA){h8=Math.log(ic/ie)/f7;ij=function(iq){return[ih+iq*id,im+iq*ib,ie*Math.exp(f7*iq*h8)]}}else{var ip=Math.sqrt(io),ia=(ic*ic-ie*ie+U*io)/(2*ie*W*ip),h9=(ic*ic-ie*ie-U*io)/(2*ic*W*ip),ik=Math.log(Math.sqrt(ia*ia+1)-ia),ii=Math.log(Math.sqrt(h9*h9+1)-h9);h8=(ii-ik)/f7;ij=function(ir){var it=ir*h8,iu=bB(ik),iq=ie/(W*ip)*(iu*fo(f7*it+ik)-dT(ik));return[ih+iq*id,im+iq*ib,ie*iu/bB(f7*it+ik)]}}ij.duration=h8*1000;return ij};hk.behavior.zoom=function(){var ik={x:0,y:0,k:1},iC,ih,iE,iq=[960,500],h9=fR,e=250,iB=0,iv="mousedown.zoom",iD="mousemove.zoom",iw="mouseup.zoom",ir,iz="touchstart.zoom",ig,ix=he(h8,"zoomstart","zoom","zoomend"),iA,iy,id,ib;if(!g1){g1="onwheel" in bK?(cu=function(){return -hk.event.deltaY*(hk.event.deltaMode?120:1)},"wheel"):"onmousewheel" in bK?(cu=function(){return hk.event.wheelDelta},"mousewheel"):(cu=function(){return -hk.event.detail},"MozMousePixelScroll")}function h8(iG){iG.on(iv,ia).on(g1+".zoom",il).on("dblclick.zoom",ii).on(iz,ic)}h8.event=function(iG){iG.each(function(){var iI=ix.of(this,arguments),iH=ik;if(an){hk.select(this).transition().each("start.zoom",function(){ik=this.__chart__||{x:0,y:0,k:1};it(iI)}).tween("zoom:zoom",function(){var iL=iq[0],iK=iq[1],iJ=ih?ih[0]:iL/2,iN=ih?ih[1]:iK/2,iM=hk.interpolateZoom([(iJ-ik.x)/ik.k,(iN-ik.y)/ik.k,iL/ik.k],[(iJ-iH.x)/iH.k,(iN-iH.y)/iH.k,iL/iH.k]);return function(iQ){var iO=iM(iQ),iP=iL/iO[2];this.__chart__=ik={x:iJ-iO[0]*iP,y:iN-iO[1]*iP,k:iP};ip(iI)}}).each("interrupt.zoom",function(){io(iI)}).each("end.zoom",function(){io(iI)})}else{this.__chart__=ik;it(iI);ip(iI);io(iI)}})};h8.translate=function(iG){if(!arguments.length){return[ik.x,ik.y]}ik={x:+iG[0],y:+iG[1],k:ik.k};ij();return h8};h8.scale=function(iG){if(!arguments.length){return ik.k}ik={x:ik.x,y:ik.y,k:null};ie(+iG);ij();return h8};h8.scaleExtent=function(iG){if(!arguments.length){return h9}h9=iG==null?fR:[+iG[0],+iG[1]];return h8};h8.center=function(iG){if(!arguments.length){return iE}iE=iG&&[+iG[0],+iG[1]];return h8};h8.size=function(iG){if(!arguments.length){return iq}iq=iG&&[+iG[0],+iG[1]];return h8};h8.duration=function(iG){if(!arguments.length){return e}e=+iG;return h8};h8.x=function(iG){if(!arguments.length){return iy}iy=iG;iA=iG.copy();ik={x:0,y:0,k:1};return h8};h8.y=function(iG){if(!arguments.length){return ib}ib=iG;id=iG.copy();ik={x:0,y:0,k:1};return h8};function d3(iG){return[(iG[0]-ik.x)/ik.k,(iG[1]-ik.y)/ik.k]}function iu(iG){return[iG[0]*ik.k+ik.x,iG[1]*ik.k+ik.y]}function ie(iG){ik.k=Math.max(h9[0],Math.min(h9[1],iG))}function iF(iH,iG){iG=iu(iG);ik.x+=iH[0]-iG[0];ik.y+=iH[1]-iG[1]}function im(iI,iJ,iG,iH){iI.__chart__={x:ik.x,y:ik.y,k:ik.k};ie(Math.pow(2,iH));iF(ih=iJ,iG);iI=hk.select(iI);if(e>0){iI=iI.transition().duration(e)}iI.call(h8.event)}function ij(){if(iy){iy.domain(iA.range().map(function(iG){return(iG-ik.x)/ik.k}).map(iA.invert))}if(ib){ib.domain(id.range().map(function(iG){return(iG-ik.y)/ik.k}).map(id.invert))}}function it(iG){if(!iB++){iG({type:"zoomstart"})}}function ip(iG){ij();iG({type:"zoom",scale:ik.k,translate:[ik.x,ik.y]})}function io(iG){if(!--iB){iG({type:"zoomend"}),ih=null}}function ia(){var iM=this,iI=ix.of(iM,arguments),iG=0,iJ=hk.select(fu(iM)).on(iD,iK).on(iw,iN),iH=d3(hk.mouse(iM)),iL=bH(iM);cR.call(iM);it(iI);function iK(){iG=1;iF(hk.mouse(iM),iH);ip(iI)}function iN(){iJ.on(iD,null).on(iw,null);iL(iG);io(iI)}}function ic(){var iM=this,iO=ix.of(iM,arguments),iK={},iQ=0,iN,iH=".zoom-"+hk.event.changedTouches[0].identifier,iI="touchmove"+iH,iU="touchend"+iH,iL=[],iR=hk.select(iM),iJ=bH(iM);iP();it(iO);iR.on(iv,null).on(iz,iP);function iG(){var iV=hk.touches(iM);iN=ik.k;iV.forEach(function(iW){if(iW.identifier in iK){iK[iW.identifier]=d3(iW)}});return iV}function iP(){var i2=hk.event.target;hk.select(i2).on(iI,iS).on(iU,iT);iL.push(i2);var iZ=hk.event.changedTouches;for(var i0=0,iY=iZ.length;i0<iY;++i0){iK[iZ[i0].identifier]=null}var i1=iG(),iX=Date.now();if(i1.length===1){if(iX-ig<500){var iW=i1[0];im(iM,iW,iK[iW.identifier],Math.floor(Math.log(ik.k)/Math.LN2)+1);s()}ig=iX}else{if(i1.length>1){var iW=i1[0],iV=i1[1],i4=iW[0]-iV[0],i3=iW[1]-iV[1];iQ=i4*i4+i3*i3}}}function iS(){var iZ=hk.touches(iM),i3,iX,i2,iW;cR.call(iM);for(var iY=0,iV=iZ.length;iY<iV;++iY,iW=null){i2=iZ[iY];if(iW=iK[i2.identifier]){if(iX){break}i3=i2,iX=iW}}if(iW){var i1=(i1=i2[0]-i3[0])*i1+(i1=i2[1]-i3[1])*i1,i0=iQ&&Math.sqrt(i1/iQ);i3=[(i3[0]+i2[0])/2,(i3[1]+i2[1])/2];iX=[(iX[0]+iW[0])/2,(iX[1]+iW[1])/2];ie(i0*iN)}ig=null;iF(i3,iX);ip(iO)}function iT(){if(hk.event.touches.length){var iX=hk.event.changedTouches;for(var iW=0,iY=iX.length;iW<iY;++iW){delete iK[iX[iW].identifier]}for(var iV in iK){return void iG()}}hk.selectAll(iL).on(iH,null);iR.on(iv,ia).on(iz,ic);iJ();io(iO)}}function il(){var iG=ix.of(this,arguments);if(ir){clearTimeout(ir)}else{cR.call(this),iC=d3(ih=iE||hk.mouse(this)),it(iG)}ir=setTimeout(function(){ir=null;io(iG)},50);s();ie(Math.pow(2,cu()*0.002)*ik.k);iF(ih,iC);ip(iG)}function ii(){var iH=hk.mouse(this),iG=Math.log(ik.k)/Math.LN2;im(this,iH,d3(iH),hk.event.shiftKey?Math.ceil(iG)-1:Math.floor(iG)+1)}return hk.rebind(h8,ix,"on")};var fR=[0,Infinity],cu,g1;hk.color=gR;function gR(){}gR.prototype.toString=function(){return this.rgb()+""};hk.hsl=eE;function eE(h8,d3,e){return this instanceof eE?void (this.h=+h8,this.s=+d3,this.l=+e):arguments.length<2?h8 instanceof eE?new eE(h8.h,h8.s,h8.l):aT(""+h8,gt,eE):new eE(h8,d3,e)}var eu=eE.prototype=new gR();eu.brighter=function(e){e=Math.pow(0.7,arguments.length?e:1);return new eE(this.h,this.s,this.l/e)};eu.darker=function(e){e=Math.pow(0.7,arguments.length?e:1);return new eE(this.h,this.s,e*this.l)};eu.rgb=function(){return bd(this.h,this.s,this.l)};function bd(ib,ia,e){var h9,h8;ib=isNaN(ib)?0:(ib%=360)<0?ib+360:ib;ia=isNaN(ia)?0:ia<0?0:ia>1?1:ia;e=e<0?0:e>1?1:e;h8=e<=0.5?e*(1+ia):e+ia-e*ia;h9=2*e-h8;function d3(id){if(id>360){id-=360}else{if(id<0){id+=360}}if(id<60){return h9+(h8-h9)*id/60}if(id<180){return h8}if(id<240){return h9+(h8-h9)*(240-id)/60}return h9}function ic(id){return Math.round(d3(id)*255)}return new eo(ic(ib+120),ic(ib),ic(ib-120))}hk.hcl=bz;function bz(d3,h8,e){return this instanceof bz?void (this.h=+d3,this.c=+h8,this.l=+e):arguments.length<2?d3 instanceof bz?new bz(d3.h,d3.c,d3.l):d3 instanceof ck?gD(d3.l,d3.a,d3.b):gD((d3=dX((d3=hk.rgb(d3)).r,d3.g,d3.b)).l,d3.a,d3.b):new bz(d3,h8,e)}var hc=bz.prototype=new gR();hc.brighter=function(e){return new bz(this.h,this.c,Math.min(100,this.l+bp*(arguments.length?e:1)))};hc.darker=function(e){return new bz(this.h,this.c,Math.max(0,this.l-bp*(arguments.length?e:1)))};hc.rgb=function(){return bA(this.h,this.c,this.l).rgb()};function bA(d3,h8,e){if(isNaN(d3)){d3=0}if(isNaN(h8)){h8=0}return new ck(e,Math.cos(d3*=F)*h8,Math.sin(d3)*h8)}hk.lab=ck;function ck(h8,d3,e){return this instanceof ck?void (this.l=+h8,this.a=+d3,this.b=+e):arguments.length<2?h8 instanceof ck?new ck(h8.l,h8.a,h8.b):h8 instanceof bz?bA(h8.h,h8.c,h8.l):dX((h8=eo(h8)).r,h8.g,h8.b):new ck(h8,d3,e)}var bp=18;var be=0.95047,bc=1,a9=1.08883;var gu=ck.prototype=new gR();gu.brighter=function(e){return new ck(Math.min(100,this.l+bp*(arguments.length?e:1)),this.a,this.b)};gu.darker=function(e){return new ck(Math.max(0,this.l-bp*(arguments.length?e:1)),this.a,this.b)};gu.rgb=function(){return ay(this.l,this.a,this.b)};function ay(h9,h8,d3){var ib=(h9+16)/116,e=ib+h8/500,ia=ib-d3/200;e=gX(e)*be;ib=gX(ib)*bc;ia=gX(ia)*a9;return new eo(c(3.2404542*e-1.5371385*ib-0.4985314*ia),c(-0.969266*e+1.8760108*ib+0.041556*ia),c(0.0556434*e-0.2040259*ib+1.0572252*ia))}function gD(h8,d3,e){return h8>0?new bz(Math.atan2(e,d3)*hB,Math.sqrt(d3*d3+e*e),h8):new bz(NaN,NaN,h8)}function gX(e){return e>0.206893034?e*e*e:(e-4/29)/7.787037}function gm(e){return e>0.008856?Math.pow(e,1/3):7.787037*e+4/29}function c(e){return Math.round(255*(e<=0.00304?12.92*e:1.055*Math.pow(e,1/2.4)-0.055))}hk.rgb=eo;function eo(h8,d3,e){return this instanceof eo?void (this.r=~~h8,this.g=~~d3,this.b=~~e):arguments.length<2?h8 instanceof eo?new eo(h8.r,h8.g,h8.b):aT(""+h8,eo,bd):new eo(h8,d3,e)}function db(e){return new eo(e>>16,e>>8&255,e&255)}function dt(e){return db(e)+""}var eF=eo.prototype=new gR();eF.brighter=function(d3){d3=Math.pow(0.7,arguments.length?d3:1);var ia=this.r,h9=this.g,e=this.b,h8=30;if(!ia&&!h9&&!e){return new eo(h8,h8,h8)}if(ia&&ia<h8){ia=h8}if(h9&&h9<h8){h9=h8}if(e&&e<h8){e=h8}return new eo(Math.min(255,ia/d3),Math.min(255,h9/d3),Math.min(255,e/d3))};eF.darker=function(e){e=Math.pow(0.7,arguments.length?e:1);return new eo(e*this.r,e*this.g,e*this.b)};eF.hsl=function(){return gt(this.r,this.g,this.b)};eF.toString=function(){return"#"+cs(this.r)+cs(this.g)+cs(this.b)};function cs(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function aT(ib,h9,ic){var e=0,h8=0,ia=0,ie,id,d3;ie=/([a-z]+)\((.*)\)/.exec(ib=ib.toLowerCase());if(ie){id=ie[2].split(",");switch(ie[1]){case"hsl":return ic(parseFloat(id[0]),parseFloat(id[1])/100,parseFloat(id[2])/100);case"rgb":return h9(eT(id[0]),eT(id[1]),eT(id[2]))}}if(d3=ai.get(ib)){return h9(d3.r,d3.g,d3.b)}if(ib!=null&&ib.charAt(0)==="#"&&!isNaN(d3=parseInt(ib.slice(1),16))){if(ib.length===4){e=(d3&3840)>>4;e=e>>4|e;h8=d3&240;h8=h8>>4|h8;ia=d3&15;ia=ia<<4|ia}else{if(ib.length===7){e=(d3&16711680)>>16;h8=(d3&65280)>>8;ia=d3&255}}}return h9(e,h8,ia)}function gt(e,ia,ic){var h8=Math.min(e/=255,ia/=255,ic/=255),id=Math.max(e,ia,ic),ib=id-h8,h9,ie,d3=(id+h8)/2;if(ib){ie=d3<0.5?ib/(id+h8):ib/(2-id-h8);if(e==id){h9=(ia-ic)/ib+(ia<ic?6:0)}else{if(ia==id){h9=(ic-e)/ib+2}else{h9=(e-ia)/ib+4}}h9*=60}else{h9=NaN;ie=d3>0&&d3<1?0:h9}return new eE(h9,ie,d3)}function dX(h9,h8,d3){h9=dA(h9);h8=dA(h8);d3=dA(d3);var e=gm((0.4124564*h9+0.3575761*h8+0.1804375*d3)/be),ib=gm((0.2126729*h9+0.7151522*h8+0.072175*d3)/bc),ia=gm((0.0193339*h9+0.119192*h8+0.9503041*d3)/a9);return ck(116*ib-16,500*(e-ib),200*(ib-ia))}function dA(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function eT(d3){var e=parseFloat(d3);return d3.charAt(d3.length-1)==="%"?Math.round(e*2.55):e}var ai=hk.map({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});ai.forEach(function(e,d3){ai.set(e,db(d3))});function N(e){return typeof e==="function"?e:function(){return e}}hk.functor=N;hk.xhr=T(gh);function T(e){return function(d3,h8,h9){if(arguments.length===2&&typeof h8==="function"){h9=h8,h8=null}return hV(d3,h8,e,h9)}}function hV(e,h8,ia,ie){var ig={},id=hk.dispatch("beforesend","progress","load","error"),h9={},ib=new XMLHttpRequest(),ic=null;if(this.XDomainRequest&&!("withCredentials" in ib)&&/^(http(s)?:)?\/\//.test(e)){ib=new XDomainRequest()}"onload" in ib?ib.onload=ib.onerror=d3:ib.onreadystatechange=function(){ib.readyState>3&&d3()};function d3(){var ii=ib.status,ih;if(!ii&&fE(ib)||ii>=200&&ii<300||ii===304){try{ih=ia.call(ig,ib)}catch(ij){id.error.call(ig,ij);return}id.load.call(ig,ih)}else{id.error.call(ig,ib)}}ib.onprogress=function(ih){var ii=hk.event;hk.event=ih;try{id.progress.call(ig,ib)}finally{hk.event=ii}};ig.header=function(ih,ii){ih=(ih+"").toLowerCase();if(arguments.length<2){return h9[ih]}if(ii==null){delete h9[ih]}else{h9[ih]=ii+""}return ig};ig.mimeType=function(ih){if(!arguments.length){return h8}h8=ih==null?null:ih+"";return ig};ig.responseType=function(ih){if(!arguments.length){return ic}ic=ih;return ig};ig.response=function(ih){ia=ih;return ig};["get","post"].forEach(function(ih){ig[ih]=function(){return ig.send.apply(ig,[ih].concat(dL(arguments)))}});ig.send=function(ik,ii,ij){if(arguments.length===2&&typeof ii==="function"){ij=ii,ii=null}ib.open(ik,e,true);if(h8!=null&&!("accept" in h9)){h9.accept=h8+",*/*"}if(ib.setRequestHeader){for(var ih in h9){ib.setRequestHeader(ih,h9[ih])}}if(h8!=null&&ib.overrideMimeType){ib.overrideMimeType(h8)}if(ic!=null){ib.responseType=ic}if(ij!=null){ig.on("error",ij).on("load",function(il){ij(null,il)})}id.beforesend.call(ig,ib);ib.send(ii==null?null:ii);return ig};ig.abort=function(){ib.abort();return ig};hk.rebind(ig,id,"on");return ie==null?ig:ig.get(d2(ie))}function d2(e){return e.length===1?function(d3,h8){e(d3==null?h8:null)}:e}function fE(d3){var e=d3.responseType;return e&&e!=="text"?d3.response:d3.responseText}hk.dsv=function(e,d3){var h9=new RegExp('["'+e+"\n]"),ib=e.charCodeAt(0);function id(ig,ii,ij){if(arguments.length<3){ij=ii,ii=null}var ih=hV(ig,d3,ii==null?ia:h8(ii),ij);ih.row=function(ik){return arguments.length?ih.response((ii=ik)==null?ia:h8(ik)):ii};return ih}function ia(ig){return id.parse(ig.responseText)}function h8(ig){return function(ih){return id.parse(ih.responseText,ig)}}id.parse=function(ii,ig){var ih;return id.parseRows(ii,function(il,ik){if(ih){return ih(il,ik-1)}var ij=new Function("d","return {"+il.map(function(im,io){return JSON.stringify(im)+": d["+io+"]"}).join(",")+"}");ih=ig?function(io,im){return ig(ij(io),im)}:ij})};id.parseRows=function(iq,ik){var ih={},ij={},it=[],il=iq.length,ip=0,ig=0,ir,im;function ii(){if(ip>=il){return ij}if(im){return im=false,ih}var iv=ip;if(iq.charCodeAt(iv)===34){var iw=iv;while(iw++<il){if(iq.charCodeAt(iw)===34){if(iq.charCodeAt(iw+1)!==34){break}++iw}}ip=iw+2;var ix=iq.charCodeAt(iw+1);if(ix===13){im=true;if(iq.charCodeAt(iw+2)===10){++ip}}else{if(ix===10){im=true}}return iq.slice(iv+1,iw).replace(/""/g,'"')}while(ip<il){var ix=iq.charCodeAt(ip++),iu=1;if(ix===10){im=true}else{if(ix===13){im=true;if(iq.charCodeAt(ip)===10){++ip,++iu}}else{if(ix!==ib){continue}}}return iq.slice(iv,ip-iu)}return iq.slice(iv)}while((ir=ii())!==ij){var io=[];while(ir!==ih&&ir!==ij){io.push(ir);ir=ii()}if(ik&&(io=ik(io,ig++))==null){continue}it.push(io)}return it};id.format=function(ii){if(Array.isArray(ii[0])){return id.formatRows(ii)}var ih=new dn(),ig=[];ii.forEach(function(ik){for(var ij in ik){if(!ih.has(ij)){ig.push(ih.add(ij))}}});return[ig.map(ic).join(e)].concat(ii.map(function(ij){return ig.map(function(ik){return ic(ij[ik])}).join(e)})).join("\n")};id.formatRows=function(ig){return ig.map(ie).join("\n")};function ie(ig){return ig.map(ic).join(e)}function ic(ig){return h9.test(ig)?'"'+ig.replace(/\"/g,'""')+'"':ig}return id};hk.csv=hk.dsv(",","text/csv");hk.tsv=hk.dsv(" ","text/tab-separated-values");var dY,ab,cn,fb,hq=this[dd(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};hk.timer=function(){gZ.apply(this,arguments)};function gZ(ib,e,h8){var ia=arguments.length;if(ia<2){e=0}if(ia<3){h8=Date.now()}var d3=h8+e,h9={c:ib,t:d3,n:null};if(ab){ab.n=h9}else{dY=h9}ab=h9;if(!cn){fb=clearTimeout(fb);cn=1;hq(hr)}return h9}function hr(){var d3=bC(),e=Y()-d3;if(e>24){if(isFinite(e)){clearTimeout(fb);fb=setTimeout(hr,e)}cn=0}else{cn=1;hq(hr)}}hk.timer.flush=function(){bC();Y()};function bC(){var e=Date.now(),d3=dY;while(d3){if(e>=d3.t&&d3.c(e-d3.t)){d3.c=null}d3=d3.n}return e}function Y(){var d3,e=dY,h8=Infinity;while(e){if(e.c){if(e.t<h8){h8=e.t}e=(d3=e).n}else{e=d3?d3.n=e.n:dY=e.n}}ab=d3;return h8}function ec(e,d3){return d3-(e?Math.ceil(Math.log(e)/Math.LN10):1)}hk.round=function(e,d3){return d3?Math.round(e*(d3=Math.pow(10,d3)))/d3:Math.round(e)};var cr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(dK);hk.formatPrefix=function(h8,e){var d3=0;if(h8=+h8){if(h8<0){h8*=-1}if(e){h8=hk.round(h8,ec(h8,e))}d3=1+Math.floor(1e-12+Math.log(h8)/Math.LN10);d3=Math.max(-24,Math.min(24,Math.floor((d3-1)/3)*3))}return cr[8+d3/3]};function dK(h8,d3){var e=Math.pow(10,cD(8-d3)*3);return{scale:d3>8?function(h9){return h9/e}:function(h9){return h9*e},symbol:h8}}function bl(e){var h9=e.decimal,ib=e.thousands,ia=e.grouping,h8=e.currency,d3=ia&&ib?function(ij,ig){var ie=ij.length,id=[],ic=0,ii=ia[0],ih=0;while(ie>0&&ii>0){if(ih+ii+1>ig){ii=Math.max(1,ig-ih)}id.push(ij.substring(ie-=ii,ie+ii));if((ih+=ii+1)>ig){break}ii=ia[ic=(ic+1)%ia.length]}return id.reverse().join(ib)}:gh;return function(ir){var il=cw.exec(ir),iu=il[1]||" ",io=il[2]||">",id=il[3]||"-",ig=il[4]||"",ih=il[5],ic=+il[6],iv=il[7],ik=il[8],ip=il[9],ie=1,im="",it="",ij=false,iq=true;if(ik){ik=+ik.substring(1)}if(ih||iu==="0"&&io==="="){ih=iu="0";io="="}switch(ip){case"n":iv=true;ip="g";break;case"%":ie=100;it="%";ip="f";break;case"p":ie=100;it="%";ip="r";break;case"b":case"o":case"x":case"X":if(ig==="#"){im="0"+ip.toLowerCase()}case"c":iq=false;case"d":ij=true;ik=0;break;case"s":ie=-1;ip="r";break}if(ig==="$"){im=h8[0],it=h8[1]}if(ip=="r"&&!ik){ip="g"}if(ik!=null){if(ip=="g"){ik=Math.max(1,Math.min(21,ik))}else{if(ip=="e"||ip=="f"){ik=Math.max(0,Math.min(20,ik))}}}ip=t.get(ip)||bk;var ii=ih&&iv;return function(iE){var iC=it;if(ij&&iE%1){return""}var iy=iE<0||iE===0&&1/iE<0?(iE=-iE,"-"):id==="-"?"":id;if(ie<0){var iF=hk.formatPrefix(iE,ik);iE=iF.scale(iE);iC=iF.symbol+it}else{iE*=ie}iE=ip(iE,ik);var iA=iE.lastIndexOf("."),iD,iw;if(iA<0){var iz=iq?iE.lastIndexOf("e"):-1;if(iz<0){iD=iE,iw=""}else{iD=iE.substring(0,iz),iw=iE.substring(iz)}}else{iD=iE.substring(0,iA);iw=h9+iE.substring(iA+1)}if(!ih&&iv){iD=d3(iD,Infinity)}var ix=im.length+iD.length+iw.length+(ii?0:iy.length),iB=ix<ic?new Array(ix=ic-ix+1).join(iu):"";if(ii){iD=d3(iB+iD,iB.length?ic-iw.length:Infinity)}iy+=im;iE=iD+iw;return(io==="<"?iy+iE+iB:io===">"?iB+iy+iE:io==="^"?iB.substring(0,ix>>=1)+iy+iE+iB.substring(ix):iy+(ii?iE:iB+iE))+iC}}}var cw=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i;var t=hk.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,d3){return e.toPrecision(d3)},e:function(e,d3){return e.toExponential(d3)},f:function(e,d3){return e.toFixed(d3)},r:function(e,d3){return(e=hk.round(e,ec(e,d3))).toFixed(Math.max(0,Math.min(20,ec(e*(1+1e-15),d3))))}});function bk(e){return e+""}var fC=hk.time={},ho=Date;function ci(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}ci.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){fX.setUTCDate.apply(this._,arguments)},setDay:function(){fX.setUTCDay.apply(this._,arguments)},setFullYear:function(){fX.setUTCFullYear.apply(this._,arguments)},setHours:function(){fX.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){fX.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){fX.setUTCMinutes.apply(this._,arguments)},setMonth:function(){fX.setUTCMonth.apply(this._,arguments)},setSeconds:function(){fX.setUTCSeconds.apply(this._,arguments)},setTime:function(){fX.setTime.apply(this._,arguments)}};var fX=Date.prototype;function cX(ib,e,d3){function ie(ig){var ii=ib(ig),ih=h9(ii,1);return ig-ii<ih-ig?ii:ih}function id(ig){e(ig=ib(new ho(ig-1)),1);return ig}function h9(ih,ig){e(ih=new ho(+ih),ig);return ih}function ia(ii,ih,ig){var ij=id(ii),ik=[];if(ig>1){while(ij<ih){if(!(d3(ij)%ig)){ik.push(new Date(+ij))}e(ij,1)}}else{while(ij<ih){ik.push(new Date(+ij)),e(ij,1)}}return ik}function h8(ij,ii,ih){try{ho=ci;var ig=new ci();ig._=ij;return ia(ig,ii,ih)}finally{ho=Date}}ib.floor=ib;ib.round=ie;ib.ceil=id;ib.offset=h9;ib.range=ia;var ic=ib.utc=dP(ib);ic.floor=ic;ic.round=dP(ie);ic.ceil=dP(id);ic.offset=dP(h9);ic.range=h8;return ib}function dP(e){return function(h8,d3){try{ho=ci;var h9=new ci();h9._=h8;return e(h9,d3)._}finally{ho=Date}}}fC.year=cX(function(e){e=fC.day(e);e.setMonth(0,1);return e},function(e,d3){e.setFullYear(e.getFullYear()+d3)},function(e){return e.getFullYear()});fC.years=fC.year.range;fC.years.utc=fC.year.utc.range;fC.day=cX(function(d3){var e=new ho(2000,0);e.setFullYear(d3.getFullYear(),d3.getMonth(),d3.getDate());return e},function(e,d3){e.setDate(e.getDate()+d3)},function(e){return e.getDate()-1});fC.days=fC.day.range;fC.days.utc=fC.day.utc.range;fC.dayOfYear=function(e){var d3=fC.year(e);return Math.floor((e-d3-(e.getTimezoneOffset()-d3.getTimezoneOffset())*60000)/86400000)};["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(d3,h8){h8=7-h8;var e=fC[d3]=cX(function(h9){(h9=fC.day(h9)).setDate(h9.getDate()-(h9.getDay()+h8)%7);return h9},function(h9,ia){h9.setDate(h9.getDate()+Math.floor(ia)*7)},function(ia){var h9=fC.year(ia).getDay();return Math.floor((fC.dayOfYear(ia)+(h9+h8)%7)/7)-(h9!==h8)});fC[d3+"s"]=e.range;fC[d3+"s"].utc=e.utc.range;fC[d3+"OfYear"]=function(ia){var h9=fC.year(ia).getDay();return Math.floor((fC.dayOfYear(ia)+(h9+h8)%7)/7)}});fC.week=fC.sunday;fC.weeks=fC.sunday.range;fC.weeks.utc=fC.sunday.utc.range;fC.weekOfYear=fC.sundayOfYear;function am(iq){var iw=iq.dateTime,ik=iq.date,d3=iq.time,ie=iq.periods,e=iq.days,ig=iq.shortDays,ij=iq.months,ia=iq.shortMonths;function iv(iD){var iF=iD.length;function iE(iI){var iH=[],iJ=-1,iG=0,iM,iL,iK;while(++iJ<iF){if(iD.charCodeAt(iJ)===37){iH.push(iD.slice(iG,iJ));if((iL=aK[iM=iD.charAt(++iJ)])!=null){iM=iD.charAt(++iJ)}if(iK=it[iM]){iM=iK(iI,iL==null?iM==="e"?" ":"0":iL)}iH.push(iM);iG=iJ+1}}iH.push(iD.slice(iG,iJ));return iH.join("")}iE.parse=function(iI){var iK={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},iJ=io(iK,iD,iI,0);if(iJ!=iI.length){return null}if("p" in iK){iK.H=iK.H%12+iK.p*12}var iG=iK.Z!=null&&ho!==ci,iH=new (iG?ci:ho)();if("j" in iK){iH.setFullYear(iK.y,0,iK.j)}else{if("W" in iK||"U" in iK){if(!("w" in iK)){iK.w="W" in iK?1:0}iH.setFullYear(iK.y,0,1);iH.setFullYear(iK.y,0,"W" in iK?(iK.w+6)%7+iK.W*7-(iH.getDay()+5)%7:iK.w+iK.U*7-(iH.getDay()+6)%7)}else{iH.setFullYear(iK.y,iK.m,iK.d)}}iH.setHours(iK.H+(iK.Z/100|0),iK.M+iK.Z%100,iK.S,iK.L);return iG?iH._:iH};iE.toString=function(){return iD};return iE}function io(iG,iL,iJ,iH){var iK,iD,iM,iI=0,iE=iL.length,iF=iJ.length;while(iI<iE){if(iH>=iF){return -1}iK=iL.charCodeAt(iI++);if(iK===37){iM=iL.charAt(iI++);iD=ir[iM in aK?iL.charAt(iI++):iM];if(!iD||(iH=iD(iG,iJ,iH))<0){return -1}}else{if(iK!=iJ.charCodeAt(iH++)){return -1}}}return iH}iv.utc=function(iE){var iD=iv(iE);function iF(iG){try{ho=ci;var iH=new ho();iH._=iG;return iD(iH)}finally{ho=Date}}iF.parse=function(iH){try{ho=ci;var iG=iD.parse(iH);return iG&&iG._}finally{ho=Date}};iF.toString=iD.toString;return iF};iv.multi=iv.utc.multi=gl;var il=hk.map(),iz=cH(e),iA=gQ(e),iy=cH(ig),ib=gQ(ig),iB=cH(ij),iC=gQ(ij),ih=cH(ia),h9=gQ(ia);ie.forEach(function(iE,iD){il.set(iE.toLowerCase(),iD)});var it={a:function(iD){return ig[iD.getDay()]},A:function(iD){return e[iD.getDay()]},b:function(iD){return ia[iD.getMonth()]},B:function(iD){return ij[iD.getMonth()]},c:iv(iw),d:function(iE,iD){return dv(iE.getDate(),iD,2)},e:function(iE,iD){return dv(iE.getDate(),iD,2)},H:function(iE,iD){return dv(iE.getHours(),iD,2)},I:function(iE,iD){return dv(iE.getHours()%12||12,iD,2)},j:function(iE,iD){return dv(1+fC.dayOfYear(iE),iD,3)},L:function(iE,iD){return dv(iE.getMilliseconds(),iD,3)},m:function(iE,iD){return dv(iE.getMonth()+1,iD,2)},M:function(iE,iD){return dv(iE.getMinutes(),iD,2)},p:function(iD){return ie[+(iD.getHours()>=12)]},S:function(iE,iD){return dv(iE.getSeconds(),iD,2)},U:function(iE,iD){return dv(fC.sundayOfYear(iE),iD,2)},w:function(iD){return iD.getDay()},W:function(iE,iD){return dv(fC.mondayOfYear(iE),iD,2)},x:iv(ik),X:iv(d3),y:function(iE,iD){return dv(iE.getFullYear()%100,iD,2)},Y:function(iE,iD){return dv(iE.getFullYear()%10000,iD,4)},Z:fS,"%":function(){return"%"}};var ir={a:ii,A:h8,b:ix,B:ip,c:id,d:b0,e:b0,H:aM,I:aM,j:B,L:gT,m:gF,M:cS,p:im,S:dU,U:bq,w:dR,W:dE,x:iu,X:ic,y:K,Y:bx,Z:a1,"%":fp};function ii(iE,iD,iF){iy.lastIndex=0;var iG=iy.exec(iD.slice(iF));return iG?(iE.w=ib.get(iG[0].toLowerCase()),iF+iG[0].length):-1}function h8(iE,iD,iF){iz.lastIndex=0;var iG=iz.exec(iD.slice(iF));return iG?(iE.w=iA.get(iG[0].toLowerCase()),iF+iG[0].length):-1}function ix(iE,iD,iF){ih.lastIndex=0;var iG=ih.exec(iD.slice(iF));return iG?(iE.m=h9.get(