plotly.js 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js (geo - minified) v3.0.2
2
+ * plotly.js (geo - minified) v3.0.3
3
3
  * Copyright 2012-2025, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -12,7 +12,7 @@
12
12
  root.moduleName = factory();
13
13
  }
14
14
  } (typeof self !== "undefined" ? self : this, () => {
15
- "use strict";var Plotly=(()=>{var B_=Object.defineProperty;var UI=Object.getOwnPropertyDescriptor;var YI=Object.getOwnPropertyNames;var GI=Object.prototype.hasOwnProperty;var O_=(e,r)=>()=>(e&&(r=e(e=0)),r);var ne=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var VI=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of YI(r))!GI.call(e,a)&&a!==t&&B_(e,a,{get:()=>r[a],enumerable:!(n=UI(r,a))||n.enumerable});return e};var WI=e=>VI(B_({},"__esModule",{value:!0}),e);var Jh=ne(U_=>{"use strict";U_.version="3.0.2"});var G_=ne((Y_,$h)=>{(function(r,t,n){t[r]=t[r]||n(),typeof $h!="undefined"&&$h.exports&&($h.exports=t[r])})("Promise",typeof window!="undefined"?window:Y_,function(){"use strict";var r,t,n,a=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(S){return setImmediate(S)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(S,x,b,A){return Object.defineProperty(S,x,{value:b,writable:!0,configurable:A!==!1})}}catch(_){r=function(x,b,A){return x[b]=A,x}}n=function(){var S,x,b;function A(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,D){b=new A(M,D),x?x.next=b:S=b,x=b,b=void 0},drain:function(){var M=S;for(S=x=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(_,S){n.add(_,S),t||(t=i(n.drain))}function l(_){var S,x=typeof _;return _!=null&&(x=="object"||x=="function")&&(S=_.then),typeof S=="function"?S:!1}function s(){for(var _=0;_<this.chain.length;_++)u(this,this.state===1?this.chain[_].success:this.chain[_].failure,this.chain[_]);this.chain.length=0}function u(_,S,x){var b,A;try{S===!1?x.reject(_.msg):(S===!0?b=_.msg:b=S.call(void 0,_.msg),b===x.promise?x.reject(TypeError("Promise-chain cycle")):(A=l(b))?A.call(b,x.resolve,x.reject):x.resolve(b))}catch(k){x.reject(k)}}function f(_){var S,x=this;if(!x.triggered){x.triggered=!0,x.def&&(x=x.def);try{(S=l(_))?o(function(){var b=new d(x);try{S.call(_,function(){f.apply(b,arguments)},function(){v.apply(b,arguments)})}catch(A){v.call(b,A)}}):(x.msg=_,x.state=1,x.chain.length>0&&o(s,x))}catch(b){v.call(new d(x),b)}}}function v(_){var S=this;S.triggered||(S.triggered=!0,S.def&&(S=S.def),S.msg=_,S.state=2,S.chain.length>0&&o(s,S))}function h(_,S,x,b){for(var A=0;A<S.length;A++)(function(M){_.resolve(S[M]).then(function(z){x(M,z)},b)})(A)}function d(_){this.def=_,this.triggered=!1}function m(_){this.promise=_,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(_){if(typeof _!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var S=new m(this);this.then=function(b,A){var k={success:typeof b=="function"?b:!0,failure:typeof A=="function"?A:!1};return k.promise=new this.constructor(function(D,z){if(typeof D!="function"||typeof z!="function")throw TypeError("Not a function");k.resolve=D,k.reject=z}),S.chain.push(k),S.state!==0&&o(s,S),k.promise},this.catch=function(b){return this.then(void 0,b)};try{_.call(void 0,function(b){f.call(S,b)},function(b){v.call(S,b)})}catch(x){v.call(S,x)}}var y=r({},"constructor",p,!1);return p.prototype=y,r(y,"__NPO__",0,!1),r(p,"resolve",function(S){var x=this;return S&&typeof S=="object"&&S.__NPO__===1?S:new x(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");A(S)})}),r(p,"reject",function(S){return new this(function(b,A){if(typeof b!="function"||typeof A!="function")throw TypeError("Not a function");A(S)})}),r(p,"all",function(S){var x=this;return a.call(S)!="[object Array]"?x.reject(TypeError("Not an array")):S.length===0?x.resolve([]):new x(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");var M=S.length,D=Array(M),z=0;h(x,S,function(H,Y){D[H]=Y,++z===M&&A(D)},k)})}),r(p,"race",function(S){var x=this;return a.call(S)!="[object Array]"?x.reject(TypeError("Not an array")):new x(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");h(x,S,function(D,z){A(z)},k)})}),p})});var kt=ne((Goe,Kh)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},n=self.document;function a(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(c){t=function(g){for(var w=g.length,C=new Array(w);w--;)C[w]=g[w];return C}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,C){s.call(this,g,w,C+"")},u.setProperty=function(g,w,C){f.call(this,g,w+"",C)}}e.ascending=v;function v(c,g){return c<g?-1:c>g?1:c>=g?0:NaN}e.descending=function(c,g){return g<c?-1:g>c?1:g>=c?0:NaN},e.min=function(c,g){var w=-1,C=c.length,q,E;if(arguments.length===1){for(;++w<C;)if((E=c[w])!=null&&E>=E){q=E;break}for(;++w<C;)(E=c[w])!=null&&q>E&&(q=E)}else{for(;++w<C;)if((E=g.call(c,c[w],w))!=null&&E>=E){q=E;break}for(;++w<C;)(E=g.call(c,c[w],w))!=null&&q>E&&(q=E)}return q},e.max=function(c,g){var w=-1,C=c.length,q,E;if(arguments.length===1){for(;++w<C;)if((E=c[w])!=null&&E>=E){q=E;break}for(;++w<C;)(E=c[w])!=null&&E>q&&(q=E)}else{for(;++w<C;)if((E=g.call(c,c[w],w))!=null&&E>=E){q=E;break}for(;++w<C;)(E=g.call(c,c[w],w))!=null&&E>q&&(q=E)}return q},e.extent=function(c,g){var w=-1,C=c.length,q,E,G;if(arguments.length===1){for(;++w<C;)if((E=c[w])!=null&&E>=E){q=G=E;break}for(;++w<C;)(E=c[w])!=null&&(q>E&&(q=E),G<E&&(G=E))}else{for(;++w<C;)if((E=g.call(c,c[w],w))!=null&&E>=E){q=G=E;break}for(;++w<C;)(E=g.call(c,c[w],w))!=null&&(q>E&&(q=E),G<E&&(G=E))}return[q,G]};function h(c){return c===null?NaN:+c}function d(c){return!isNaN(c)}e.sum=function(c,g){var w=0,C=c.length,q,E=-1;if(arguments.length===1)for(;++E<C;)d(q=+c[E])&&(w+=q);else for(;++E<C;)d(q=+g.call(c,c[E],E))&&(w+=q);return w},e.mean=function(c,g){var w=0,C=c.length,q,E=-1,G=C;if(arguments.length===1)for(;++E<C;)d(q=h(c[E]))?w+=q:--G;else for(;++E<C;)d(q=h(g.call(c,c[E],E)))?w+=q:--G;if(G)return w/G},e.quantile=function(c,g){var w=(c.length-1)*g+1,C=Math.floor(w),q=+c[C-1],E=w-C;return E?q+E*(c[C]-q):q},e.median=function(c,g){var w=[],C=c.length,q,E=-1;if(arguments.length===1)for(;++E<C;)d(q=h(c[E]))&&w.push(q);else for(;++E<C;)d(q=h(g.call(c,c[E],E)))&&w.push(q);if(w.length)return e.quantile(w.sort(v),.5)},e.variance=function(c,g){var w=c.length,C=0,q,E,G=0,N=-1,j=0;if(arguments.length===1)for(;++N<w;)d(q=h(c[N]))&&(E=q-C,C+=E/++j,G+=E*(q-C));else for(;++N<w;)d(q=h(g.call(c,c[N],N)))&&(E=q-C,C+=E/++j,G+=E*(q-C));if(j>1)return G/(j-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(g,w,C,q){for(arguments.length<3&&(C=0),arguments.length<4&&(q=g.length);C<q;){var E=C+q>>>1;c(g[E],w)<0?C=E+1:q=E}return C},right:function(g,w,C,q){for(arguments.length<3&&(C=0),arguments.length<4&&(q=g.length);C<q;){var E=C+q>>>1;c(g[E],w)>0?q=E:C=E+1}return C}}}var p=m(v);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(c){return m(c.length===1?function(g,w){return v(c(g),w)}:c)},e.shuffle=function(c,g,w){(C=arguments.length)<3&&(w=c.length,C<2&&(g=0));for(var C=w-g,q,E;C;)E=Math.random()*C--|0,q=c[C+g],c[C+g]=c[E+g],c[E+g]=q;return c},e.permute=function(c,g){for(var w=g.length,C=new Array(w);w--;)C[w]=c[g[w]];return C},e.pairs=function(c){for(var g=0,w=c.length-1,C,q=c[0],E=new Array(w<0?0:w);g<w;)E[g]=[C=q,q=c[++g]];return E},e.transpose=function(c){if(!(E=c.length))return[];for(var g=-1,w=e.min(c,y),C=new Array(w);++g<w;)for(var q=-1,E,G=C[g]=new Array(E);++q<E;)G[q]=c[q][g];return C};function y(c){return c.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(c){var g=[];for(var w in c)g.push(w);return g},e.values=function(c){var g=[];for(var w in c)g.push(c[w]);return g},e.entries=function(c){var g=[];for(var w in c)g.push({key:w,value:c[w]});return g},e.merge=function(c){for(var g=c.length,w,C=-1,q=0,E,G;++C<g;)q+=c[C].length;for(E=new Array(q);--g>=0;)for(G=c[g],w=G.length;--w>=0;)E[--q]=G[w];return E};var _=Math.abs;e.range=function(c,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=c,c=0)),(g-c)/w===1/0)throw new Error("infinite range");var C=[],q=S(_(w)),E=-1,G;if(c*=q,g*=q,w*=q,w<0)for(;(G=c+w*++E)>g;)C.push(G/q);else for(;(G=c+w*++E)<g;)C.push(G/q);return C};function S(c){for(var g=1;c*g%1;)g*=10;return g}function x(c,g){for(var w in g)Object.defineProperty(c.prototype,w,{value:g[w],enumerable:!1})}e.map=function(c,g){var w=new b;if(c instanceof b)c.forEach(function(N,j){w.set(N,j)});else if(Array.isArray(c)){var C=-1,q=c.length,E;if(arguments.length===1)for(;++C<q;)w.set(C,c[C]);else for(;++C<q;)w.set(g.call(c,E=c[C],C),E)}else for(var G in c)w.set(G,c[G]);return w};function b(){this._=Object.create(null)}var A="__proto__",k="\0";x(b,{has:z,get:function(c){return this._[M(c)]},set:function(c,g){return this._[M(c)]=g},remove:F,keys:H,values:function(){var c=[];for(var g in this._)c.push(this._[g]);return c},entries:function(){var c=[];for(var g in this._)c.push({key:D(g),value:this._[g]});return c},size:Y,empty:O,forEach:function(c){for(var g in this._)c.call(this,D(g),this._[g])}});function M(c){return(c+="")===A||c[0]===k?k+c:c}function D(c){return(c+="")[0]===k?c.slice(1):c}function z(c){return M(c)in this._}function F(c){return(c=M(c))in this._&&delete this._[c]}function H(){var c=[];for(var g in this._)c.push(D(g));return c}function Y(){var c=0;for(var g in this._)++c;return c}function O(){for(var c in this._)return!1;return!0}e.nest=function(){var c={},g=[],w=[],C,q;function E(N,j,ae){if(ae>=g.length)return q?q.call(c,j):C?j.sort(C):j;for(var ie=-1,ge=j.length,me=g[ae++],Re,Ye,ye,Ce=new b,De;++ie<ge;)(De=Ce.get(Re=me(Ye=j[ie])))?De.push(Ye):Ce.set(Re,[Ye]);return N?(Ye=N(),ye=function(Ue,Ge){Ye.set(Ue,E(N,Ge,ae))}):(Ye={},ye=function(Ue,Ge){Ye[Ue]=E(N,Ge,ae)}),Ce.forEach(ye),Ye}function G(N,j){if(j>=g.length)return N;var ae=[],ie=w[j++];return N.forEach(function(ge,me){ae.push({key:ge,values:G(me,j)})}),ie?ae.sort(function(ge,me){return ie(ge.key,me.key)}):ae}return c.map=function(N,j){return E(j,N,0)},c.entries=function(N){return G(E(e.map,N,0),0)},c.key=function(N){return g.push(N),c},c.sortKeys=function(N){return w[g.length-1]=N,c},c.sortValues=function(N){return C=N,c},c.rollup=function(N){return q=N,c},c},e.set=function(c){var g=new X;if(c)for(var w=0,C=c.length;w<C;++w)g.add(c[w]);return g};function X(){this._=Object.create(null)}x(X,{has:z,add:function(c){return this._[M(c+="")]=!0,c},remove:F,values:H,size:Y,empty:O,forEach:function(c){for(var g in this._)c.call(this,D(g))}}),e.behavior={};function V(c){return c}e.rebind=function(c,g){for(var w=1,C=arguments.length,q;++w<C;)c[q=arguments[w]]=ee(c,g,g[q]);return c};function ee(c,g,w){return function(){var C=w.apply(g,arguments);return C===g?c:C}}function te(c,g){if(g in c)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var w=0,C=K.length;w<C;++w){var q=K[w]+g;if(q in c)return q}}var K=["webkit","ms","moz","Moz","o","O"];function re(){}e.dispatch=function(){for(var c=new fe,g=-1,w=arguments.length;++g<w;)c[arguments[g]]=de(c);return c};function fe(){}fe.prototype.on=function(c,g){var w=c.indexOf("."),C="";if(w>=0&&(C=c.slice(w+1),c=c.slice(0,w)),c)return arguments.length<2?this[c].on(C):this[c].on(C,g);if(arguments.length===2){if(g==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(C,null);return this}};function de(c){var g=[],w=new b;function C(){for(var q=g,E=-1,G=q.length,N;++E<G;)(N=q[E].on)&&N.apply(this,arguments);return c}return C.on=function(q,E){var G=w.get(q),N;return arguments.length<2?G&&G.on:(G&&(G.on=null,g=g.slice(0,N=g.indexOf(G)).concat(g.slice(N+1)),w.remove(q)),E&&g.push(w.set(q,{on:E})),c)},C}e.event=null;function qe(){e.event.preventDefault()}function Be(){for(var c=e.event,g;g=c.sourceEvent;)c=g;return c}function Ne(c){for(var g=new fe,w=0,C=arguments.length;++w<C;)g[arguments[w]]=de(g);return g.of=function(q,E){return function(G){try{var N=G.sourceEvent=e.event;G.target=c,e.event=G,g[G.type].apply(q,E)}finally{e.event=N}}},g}e.requote=function(c){return c.replace(Ie,"\\$&")};var Ie=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Se={}.__proto__?function(c,g){c.__proto__=g}:function(c,g){for(var w in g)c[w]=g[w]};function Xe(c){return Se(c,pe),c}var se=function(c,g){return g.querySelector(c)},be=function(c,g){return g.querySelectorAll(c)},Te=function(c,g){var w=c.matches||c[te(c,"matchesSelector")];return Te=function(C,q){return w.call(C,q)},Te(c,g)};typeof Sizzle=="function"&&(se=function(c,g){return Sizzle(c,g)[0]||null},be=Sizzle,Te=Sizzle.matchesSelector),e.selection=function(){return e.select(n.documentElement)};var pe=e.selection.prototype=[];pe.select=function(c){var g=[],w,C,q,E;c=W(c);for(var G=-1,N=this.length;++G<N;){g.push(w=[]),w.parentNode=(q=this[G]).parentNode;for(var j=-1,ae=q.length;++j<ae;)(E=q[j])?(w.push(C=c.call(E,E.__data__,j,G)),C&&"__data__"in E&&(C.__data__=E.__data__)):w.push(null)}return Xe(g)};function W(c){return typeof c=="function"?c:function(){return se(c,this)}}pe.selectAll=function(c){var g=[],w,C;c=Q(c);for(var q=-1,E=this.length;++q<E;)for(var G=this[q],N=-1,j=G.length;++N<j;)(C=G[N])&&(g.push(w=t(c.call(C,C.__data__,N,q))),w.parentNode=C);return Xe(g)};function Q(c){return typeof c=="function"?c:function(){return be(c,this)}}var $="http://www.w3.org/1999/xhtml",Me={svg:"http://www.w3.org/2000/svg",xhtml:$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};e.ns={prefix:Me,qualify:function(c){var g=c.indexOf(":"),w=c;return g>=0&&(w=c.slice(0,g))!=="xmlns"&&(c=c.slice(g+1)),Me.hasOwnProperty(w)?{space:Me[w],local:c}:c}},pe.attr=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node();return c=e.ns.qualify(c),c.local?w.getAttributeNS(c.space,c.local):w.getAttribute(c)}for(g in c)this.each(Fe(g,c[g]));return this}return this.each(Fe(c,g))};function Fe(c,g){c=e.ns.qualify(c);function w(){this.removeAttribute(c)}function C(){this.removeAttributeNS(c.space,c.local)}function q(){this.setAttribute(c,g)}function E(){this.setAttributeNS(c.space,c.local,g)}function G(){var j=g.apply(this,arguments);j==null?this.removeAttribute(c):this.setAttribute(c,j)}function N(){var j=g.apply(this,arguments);j==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,j)}return g==null?c.local?C:w:typeof g=="function"?c.local?N:G:c.local?E:q}function Oe(c){return c.trim().replace(/\s+/g," ")}pe.classed=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node(),C=(c=nr(c)).length,q=-1;if(g=w.classList){for(;++q<C;)if(!g.contains(c[q]))return!1}else for(g=w.getAttribute("class");++q<C;)if(!fr(c[q]).test(g))return!1;return!0}for(g in c)this.each(Ze(g,c[g]));return this}return this.each(Ze(c,g))};function fr(c){return new RegExp("(?:^|\\s+)"+e.requote(c)+"(?:\\s+|$)","g")}function nr(c){return(c+"").trim().split(/^|\s+/)}function Ze(c,g){c=nr(c).map(ar);var w=c.length;function C(){for(var E=-1;++E<w;)c[E](this,g)}function q(){for(var E=-1,G=g.apply(this,arguments);++E<w;)c[E](this,G)}return typeof g=="function"?q:C}function ar(c){var g=fr(c);return function(w,C){if(q=w.classList)return C?q.add(c):q.remove(c);var q=w.getAttribute("class")||"";C?(g.lastIndex=0,g.test(q)||w.setAttribute("class",Oe(q+" "+c))):w.setAttribute("class",Oe(q.replace(g," ")))}}pe.style=function(c,g,w){var C=arguments.length;if(C<3){if(typeof c!="string"){C<2&&(g="");for(w in c)this.each(lr(w,c[w],g));return this}if(C<2){var q=this.node();return i(q).getComputedStyle(q,null).getPropertyValue(c)}w=""}return this.each(lr(c,g,w))};function lr(c,g,w){function C(){this.style.removeProperty(c)}function q(){this.style.setProperty(c,g,w)}function E(){var G=g.apply(this,arguments);G==null?this.style.removeProperty(c):this.style.setProperty(c,G,w)}return g==null?C:typeof g=="function"?E:q}pe.property=function(c,g){if(arguments.length<2){if(typeof c=="string")return this.node()[c];for(g in c)this.each(ir(g,c[g]));return this}return this.each(ir(c,g))};function ir(c,g){function w(){delete this[c]}function C(){this[c]=g}function q(){var E=g.apply(this,arguments);E==null?delete this[c]:this[c]=E}return g==null?w:typeof g=="function"?q:C}pe.text=function(c){return arguments.length?this.each(typeof c=="function"?function(){var g=c.apply(this,arguments);this.textContent=g==null?"":g}:c==null?function(){this.textContent=""}:function(){this.textContent=c}):this.node().textContent},pe.html=function(c){return arguments.length?this.each(typeof c=="function"?function(){var g=c.apply(this,arguments);this.innerHTML=g==null?"":g}:c==null?function(){this.innerHTML=""}:function(){this.innerHTML=c}):this.node().innerHTML},pe.append=function(c){return c=rr(c),this.select(function(){return this.appendChild(c.apply(this,arguments))})};function rr(c){function g(){var C=this.ownerDocument,q=this.namespaceURI;return q===$&&C.documentElement.namespaceURI===$?C.createElement(c):C.createElementNS(q,c)}function w(){return this.ownerDocument.createElementNS(c.space,c.local)}return typeof c=="function"?c:(c=e.ns.qualify(c)).local?w:g}pe.insert=function(c,g){return c=rr(c),g=W(g),this.select(function(){return this.insertBefore(c.apply(this,arguments),g.apply(this,arguments)||null)})},pe.remove=function(){return this.each(Cr)};function Cr(){var c=this.parentNode;c&&c.removeChild(this)}pe.data=function(c,g){var w=-1,C=this.length,q,E;if(!arguments.length){for(c=new Array(C=(q=this[0]).length);++w<C;)(E=q[w])&&(c[w]=E.__data__);return c}function G(ie,ge){var me,Re=ie.length,Ye=ge.length,ye=Math.min(Re,Ye),Ce=new Array(Ye),De=new Array(Ye),Ue=new Array(Re),Ge,Pe;if(g){var _r=new b,Or=new Array(Re),Wr;for(me=-1;++me<Re;)(Ge=ie[me])&&(_r.has(Wr=g.call(Ge,Ge.__data__,me))?Ue[me]=Ge:_r.set(Wr,Ge),Or[me]=Wr);for(me=-1;++me<Ye;)(Ge=_r.get(Wr=g.call(ge,Pe=ge[me],me)))?Ge!==!0&&(Ce[me]=Ge,Ge.__data__=Pe):De[me]=yr(Pe),_r.set(Wr,!0);for(me=-1;++me<Re;)me in Or&&_r.get(Or[me])!==!0&&(Ue[me]=ie[me])}else{for(me=-1;++me<ye;)Ge=ie[me],Pe=ge[me],Ge?(Ge.__data__=Pe,Ce[me]=Ge):De[me]=yr(Pe);for(;me<Ye;++me)De[me]=yr(ge[me]);for(;me<Re;++me)Ue[me]=ie[me]}De.update=Ce,De.parentNode=Ce.parentNode=Ue.parentNode=ie.parentNode,N.push(De),j.push(Ce),ae.push(Ue)}var N=zr([]),j=Xe([]),ae=Xe([]);if(typeof c=="function")for(;++w<C;)G(q=this[w],c.call(q,q.parentNode.__data__,w));else for(;++w<C;)G(q=this[w],c);return j.enter=function(){return N},j.exit=function(){return ae},j};function yr(c){return{__data__:c}}pe.datum=function(c){return arguments.length?this.property("__data__",c):this.property("__data__")},pe.filter=function(c){var g=[],w,C,q;typeof c!="function"&&(c=Ae(c));for(var E=0,G=this.length;E<G;E++){g.push(w=[]),w.parentNode=(C=this[E]).parentNode;for(var N=0,j=C.length;N<j;N++)(q=C[N])&&c.call(q,q.__data__,N,E)&&w.push(q)}return Xe(g)};function Ae(c){return function(){return Te(this,c)}}pe.order=function(){for(var c=-1,g=this.length;++c<g;)for(var w=this[c],C=w.length-1,q=w[C],E;--C>=0;)(E=w[C])&&(q&&q!==E.nextSibling&&q.parentNode.insertBefore(E,q),q=E);return this},pe.sort=function(c){c=Ve.apply(this,arguments);for(var g=-1,w=this.length;++g<w;)this[g].sort(c);return this.order()};function Ve(c){return arguments.length||(c=v),function(g,w){return g&&w?c(g.__data__,w.__data__):!g-!w}}pe.each=function(c){return je(this,function(g,w,C){c.call(g,g.__data__,w,C)})};function je(c,g){for(var w=0,C=c.length;w<C;w++)for(var q=c[w],E=0,G=q.length,N;E<G;E++)(N=q[E])&&g(N,E,w);return c}pe.call=function(c){var g=t(arguments);return c.apply(g[0]=this,g),this},pe.empty=function(){return!this.node()},pe.node=function(){for(var c=0,g=this.length;c<g;c++)for(var w=this[c],C=0,q=w.length;C<q;C++){var E=w[C];if(E)return E}return null},pe.size=function(){var c=0;return je(this,function(){++c}),c};function zr(c){return Se(c,kr),c}var kr=[];e.selection.enter=zr,e.selection.enter.prototype=kr,kr.append=pe.append,kr.empty=pe.empty,kr.node=pe.node,kr.call=pe.call,kr.size=pe.size,kr.select=function(c){for(var g=[],w,C,q,E,G,N=-1,j=this.length;++N<j;){q=(E=this[N]).update,g.push(w=[]),w.parentNode=E.parentNode;for(var ae=-1,ie=E.length;++ae<ie;)(G=E[ae])?(w.push(q[ae]=C=c.call(E.parentNode,G.__data__,ae,N)),C.__data__=G.__data__):w.push(null)}return Xe(g)},kr.insert=function(c,g){return arguments.length<2&&(g=er(this)),pe.insert.call(this,c,g)};function er(c){var g,w;return function(C,q,E){var G=c[E].update,N=G.length,j;for(E!=w&&(w=E,g=0),q>=g&&(g=q+1);!(j=G[g])&&++g<N;);return j}}e.select=function(c){var g;return typeof c=="string"?(g=[se(c,n)],g.parentNode=n.documentElement):(g=[c],g.parentNode=a(c)),Xe([g])},e.selectAll=function(c){var g;return typeof c=="string"?(g=t(be(c,n)),g.parentNode=n.documentElement):(g=t(c),g.parentNode=null),Xe([g])},pe.on=function(c,g,w){var C=arguments.length;if(C<3){if(typeof c!="string"){C<2&&(g=!1);for(w in c)this.each(Ke(w,c[w],g));return this}if(C<2)return(C=this.node()["__on"+c])&&C._;w=!1}return this.each(Ke(c,g,w))};function Ke(c,g,w){var C="__on"+c,q=c.indexOf("."),E=Mr;q>0&&(c=c.slice(0,q));var G=mr.get(c);G&&(c=G,E=gr);function N(){var ie=this[C];ie&&(this.removeEventListener(c,ie,ie.$),delete this[C])}function j(){var ie=E(g,t(arguments));N.call(this),this.addEventListener(c,this[C]=ie,ie.$=w),ie._=g}function ae(){var ie=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),ge;for(var me in this)if(ge=me.match(ie)){var Re=this[me];this.removeEventListener(ge[1],Re,Re.$),delete this[me]}}return q?g?j:N:g?re:ae}var mr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&mr.forEach(function(c){"on"+c in n&&mr.remove(c)});function Mr(c,g){return function(w){var C=e.event;e.event=w,g[0]=this.__data__;try{c.apply(this,g)}finally{e.event=C}}}function gr(c,g){var w=Mr(c,g);return function(C){var q=this,E=C.relatedTarget;(!E||E!==q&&!(E.compareDocumentPosition(q)&8))&&w.call(q,C)}}var dr,Tr=0;function Pr(c){var g=".dragsuppress-"+ ++Tr,w="click"+g,C=e.select(i(c)).on("touchmove"+g,qe).on("dragstart"+g,qe).on("selectstart"+g,qe);if(dr==null&&(dr="onselectstart"in c?!1:te(c.style,"userSelect")),dr){var q=a(c).style,E=q[dr];q[dr]="none"}return function(G){if(C.on(g,null),dr&&(q[dr]=E),G){var N=function(){C.on(w,null)};C.on(w,function(){qe(),N()},!0),setTimeout(N,0)}}}e.mouse=function(c){return sr(c,Be())};var Ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function sr(c,g){g.changedTouches&&(g=g.changedTouches[0]);var w=c.ownerSVGElement||c;if(w.createSVGPoint){var C=w.createSVGPoint();if(Ur<0){var q=i(c);if(q.scrollX||q.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var E=w[0][0].getScreenCTM();Ur=!(E.f||E.e),w.remove()}}return Ur?(C.x=g.pageX,C.y=g.pageY):(C.x=g.clientX,C.y=g.clientY),C=C.matrixTransform(c.getScreenCTM().inverse()),[C.x,C.y]}var G=c.getBoundingClientRect();return[g.clientX-G.left-c.clientLeft,g.clientY-G.top-c.clientTop]}e.touch=function(c,g,w){if(arguments.length<3&&(w=g,g=Be().changedTouches),g){for(var C=0,q=g.length,E;C<q;++C)if((E=g[C]).identifier===w)return sr(c,E)}},e.behavior.drag=function(){var c=Ne(q,"drag","dragstart","dragend"),g=null,w=E(re,e.mouse,i,"mousemove","mouseup"),C=E(_e,e.touch,V,"touchmove","touchend");function q(){this.on("mousedown.drag",w).on("touchstart.drag",C)}function E(G,N,j,ae,ie){return function(){var ge=this,me=e.event.target.correspondingElement||e.event.target,Re=ge.parentNode,Ye=c.of(ge,arguments),ye=0,Ce=G(),De=".drag"+(Ce==null?"":"-"+Ce),Ue,Ge=e.select(j(me)).on(ae+De,Or).on(ie+De,Wr),Pe=Pr(me),_r=N(Re,Ce);g?(Ue=g.apply(ge,arguments),Ue=[Ue.x-_r[0],Ue.y-_r[1]]):Ue=[0,0],Ye({type:"dragstart"});function Or(){var Gr=N(Re,Ce),Jr,$r;Gr&&(Jr=Gr[0]-_r[0],$r=Gr[1]-_r[1],ye|=Jr|$r,_r=Gr,Ye({type:"drag",x:Gr[0]+Ue[0],y:Gr[1]+Ue[1],dx:Jr,dy:$r}))}function Wr(){N(Re,Ce)&&(Ge.on(ae+De,null).on(ie+De,null),Pe(ye),Ye({type:"dragend"}))}}}return q.origin=function(G){return arguments.length?(g=G,q):g},e.rebind(q,c,"on")};function _e(){return e.event.changedTouches[0].identifier}e.touches=function(c,g){return arguments.length<2&&(g=Be().touches),g?t(g).map(function(w){var C=sr(c,w);return C.identifier=w.identifier,C}):[]};var ke=1e-6,$e=ke*ke,We=Math.PI,qr=2*We,Vr=qr-ke,Hr=We/2,lt=We/180,xt=180/We;function Rt(c){return c>0?1:c<0?-1:0}function St(c,g,w){return(g[0]-c[0])*(w[1]-c[1])-(g[1]-c[1])*(w[0]-c[0])}function hn(c){return c>1?0:c<-1?We:Math.acos(c)}function Fn(c){return c>1?Hr:c<-1?-Hr:Math.asin(c)}function $n(c){return((c=Math.exp(c))-1/c)/2}function Xt(c){return((c=Math.exp(c))+1/c)/2}function cn(c){return((c=Math.exp(2*c))-1)/(c+1)}function sn(c){return(c=Math.sin(c/2))*c}var Kt=Math.SQRT2,aa=2,rt=4;e.interpolateZoom=function(c,g){var w=c[0],C=c[1],q=c[2],E=g[0],G=g[1],N=g[2],j=E-w,ae=G-C,ie=j*j+ae*ae,ge,me;if(ie<$e)me=Math.log(N/q)/Kt,ge=function(Ue){return[w+Ue*j,C+Ue*ae,q*Math.exp(Kt*Ue*me)]};else{var Re=Math.sqrt(ie),Ye=(N*N-q*q+rt*ie)/(2*q*aa*Re),ye=(N*N-q*q-rt*ie)/(2*N*aa*Re),Ce=Math.log(Math.sqrt(Ye*Ye+1)-Ye),De=Math.log(Math.sqrt(ye*ye+1)-ye);me=(De-Ce)/Kt,ge=function(Ue){var Ge=Ue*me,Pe=Xt(Ce),_r=q/(aa*Re)*(Pe*cn(Kt*Ge+Ce)-$n(Ce));return[w+_r*j,C+_r*ae,q*Pe/Xt(Kt*Ge+Ce)]}}return ge.duration=me*1e3,ge},e.behavior.zoom=function(){var c={x:0,y:0,k:1},g,w,C,q=[960,500],E=Qt,G=250,N=0,j="mousedown.zoom",ae="mousemove.zoom",ie="mouseup.zoom",ge,me="touchstart.zoom",Re,Ye=Ne(Ge,"zoomstart","zoom","zoomend"),ye,Ce,De,Ue;dn||(dn="onwheel"in n?(Ct=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(Ct=function(){return e.event.wheelDelta},"mousewheel"):(Ct=function(){return-e.event.detail},"MozMousePixelScroll"));function Ge(Fr){Fr.on(j,ht).on(dn+".zoom",Zn).on("dblclick.zoom",on).on(me,jt)}Ge.event=function(Fr){Fr.each(function(){var _t=Ye.of(this,arguments),wt=c;ma?e.select(this).transition().each("start.zoom",function(){c=this.__chart__||{x:0,y:0,k:1},$r(_t)}).tween("zoom:zoom",function(){var Jt=q[0],Nn=q[1],oa=w?w[0]:Jt/2,Da=w?w[1]:Nn/2,ja=e.interpolateZoom([(oa-c.x)/c.k,(Da-c.y)/c.k,Jt/c.k],[(oa-wt.x)/wt.k,(Da-wt.y)/wt.k,Jt/wt.k]);return function(fi){var Ja=ja(fi),Si=Jt/Ja[2];this.__chart__=c={x:oa-Ja[0]*Si,y:Da-Ja[1]*Si,k:Si},bt(_t)}}).each("interrupt.zoom",function(){Qr(_t)}).each("end.zoom",function(){Qr(_t)}):(this.__chart__=c,$r(_t),bt(_t),Qr(_t))})},Ge.translate=function(Fr){return arguments.length?(c={x:+Fr[0],y:+Fr[1],k:c.k},Jr(),Ge):[c.x,c.y]},Ge.scale=function(Fr){return arguments.length?(c={x:c.x,y:c.y,k:null},Or(+Fr),Jr(),Ge):c.k},Ge.scaleExtent=function(Fr){return arguments.length?(E=Fr==null?Qt:[+Fr[0],+Fr[1]],Ge):E},Ge.center=function(Fr){return arguments.length?(C=Fr&&[+Fr[0],+Fr[1]],Ge):C},Ge.size=function(Fr){return arguments.length?(q=Fr&&[+Fr[0],+Fr[1]],Ge):q},Ge.duration=function(Fr){return arguments.length?(G=+Fr,Ge):G},Ge.x=function(Fr){return arguments.length?(Ce=Fr,ye=Fr.copy(),c={x:0,y:0,k:1},Ge):Ce},Ge.y=function(Fr){return arguments.length?(Ue=Fr,De=Fr.copy(),c={x:0,y:0,k:1},Ge):Ue};function Pe(Fr){return[(Fr[0]-c.x)/c.k,(Fr[1]-c.y)/c.k]}function _r(Fr){return[Fr[0]*c.k+c.x,Fr[1]*c.k+c.y]}function Or(Fr){c.k=Math.max(E[0],Math.min(E[1],Fr))}function Wr(Fr,_t){_t=_r(_t),c.x+=Fr[0]-_t[0],c.y+=Fr[1]-_t[1]}function Gr(Fr,_t,wt,Jt){Fr.__chart__={x:c.x,y:c.y,k:c.k},Or(Math.pow(2,Jt)),Wr(w=_t,wt),Fr=e.select(Fr),G>0&&(Fr=Fr.transition().duration(G)),Fr.call(Ge.event)}function Jr(){Ce&&Ce.domain(ye.range().map(function(Fr){return(Fr-c.x)/c.k}).map(ye.invert)),Ue&&Ue.domain(De.range().map(function(Fr){return(Fr-c.y)/c.k}).map(De.invert))}function $r(Fr){N++||Fr({type:"zoomstart"})}function bt(Fr){Jr(),Fr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function Qr(Fr){--N||(Fr({type:"zoomend"}),w=null)}function ht(){var Fr=this,_t=Ye.of(Fr,arguments),wt=0,Jt=e.select(i(Fr)).on(ae,Da).on(ie,ja),Nn=Pe(e.mouse(Fr)),oa=Pr(Fr);vt.call(Fr),$r(_t);function Da(){wt=1,Wr(e.mouse(Fr),Nn),bt(_t)}function ja(){Jt.on(ae,null).on(ie,null),oa(wt),Qr(_t)}}function jt(){var Fr=this,_t=Ye.of(Fr,arguments),wt={},Jt=0,Nn,oa=".zoom-"+e.event.changedTouches[0].identifier,Da="touchmove"+oa,ja="touchend"+oa,fi=[],Ja=e.select(Fr),Si=Pr(Fr);Ci(),$r(_t),Ja.on(j,null).on(me,Ci);function Ha(){var ul=e.touches(Fr);return Nn=c.k,ul.forEach(function(Ea){Ea.identifier in wt&&(wt[Ea.identifier]=Pe(Ea))}),ul}function Ci(){var ul=e.event.target;e.select(ul).on(Da,Zf).on(ja,OI),fi.push(ul);for(var Ea=e.event.changedTouches,mo=0,jl=Ea.length;mo<jl;++mo)wt[Ea[mo].identifier]=null;var yo=Ha(),g0=Date.now();if(yo.length===1){if(g0-Re<500){var Xf=yo[0];Gr(Fr,Xf,wt[Xf.identifier],Math.floor(Math.log(c.k)/Math.LN2)+1),qe()}Re=g0}else if(yo.length>1){var Xf=yo[0],qu=yo[1],jh=Xf[0]-qu[0],H_=Xf[1]-qu[1];Jt=jh*jh+H_*H_}}function Zf(){var ul=e.touches(Fr),Ea,mo,jl,yo;vt.call(Fr);for(var g0=0,Xf=ul.length;g0<Xf;++g0,yo=null)if(jl=ul[g0],yo=wt[jl.identifier]){if(mo)break;Ea=jl,mo=yo}if(yo){var qu=(qu=jl[0]-Ea[0])*qu+(qu=jl[1]-Ea[1])*qu,jh=Jt&&Math.sqrt(qu/Jt);Ea=[(Ea[0]+jl[0])/2,(Ea[1]+jl[1])/2],mo=[(mo[0]+yo[0])/2,(mo[1]+yo[1])/2],Or(jh*Nn)}Re=null,Wr(Ea,mo),bt(_t)}function OI(){if(e.event.touches.length){for(var ul=e.event.changedTouches,Ea=0,mo=ul.length;Ea<mo;++Ea)delete wt[ul[Ea].identifier];for(var jl in wt)return void Ha()}e.selectAll(fi).on(oa,null),Ja.on(j,ht).on(me,jt),Si(),Qr(_t)}}function Zn(){var Fr=Ye.of(this,arguments);ge?clearTimeout(ge):(vt.call(this),g=Pe(w=C||e.mouse(this)),$r(Fr)),ge=setTimeout(function(){ge=null,Qr(Fr)},50),qe(),Or(Math.pow(2,Ct()*.002)*c.k),Wr(w,g),bt(Fr)}function on(){var Fr=e.mouse(this),_t=Math.log(c.k)/Math.LN2;Gr(this,Fr,Pe(Fr),e.event.shiftKey?Math.ceil(_t)-1:Math.floor(_t)+1)}return e.rebind(Ge,Ye,"on")};var Qt=[0,1/0],Ct,dn;e.color=pn;function pn(){}pn.prototype.toString=function(){return this.rgb()+""},e.hsl=tn;function tn(c,g,w){return this instanceof tn?(this.h=+c,this.s=+g,void(this.l=+w)):arguments.length<2?c instanceof tn?new tn(c.h,c.s,c.l):Lt(""+c,Ht,tn):new tn(c,g,w)}var un=tn.prototype=new pn;un.brighter=function(c){return c=Math.pow(.7,arguments.length?c:1),new tn(this.h,this.s,this.l/c)},un.darker=function(c){return c=Math.pow(.7,arguments.length?c:1),new tn(this.h,this.s,c*this.l)},un.rgb=function(){return da(this.h,this.s,this.l)};function da(c,g,w){var C,q;c=isNaN(c)?0:(c%=360)<0?c+360:c,g=isNaN(g)||g<0?0:g>1?1:g,w=w<0?0:w>1?1:w,q=w<=.5?w*(1+g):w+g-w*g,C=2*w-q;function E(N){return N>360?N-=360:N<0&&(N+=360),N<60?C+(q-C)*N/60:N<180?q:N<240?C+(q-C)*(240-N)/60:C}function G(N){return Math.round(E(N)*255)}return new Hn(G(c+120),G(c),G(c-120))}e.hcl=Sn;function Sn(c,g,w){return this instanceof Sn?(this.h=+c,this.c=+g,void(this.l=+w)):arguments.length<2?c instanceof Sn?new Sn(c.h,c.c,c.l):c instanceof wn?El(c.l,c.a,c.b):El((c=Br((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new Sn(c,g,w)}var Na=Sn.prototype=new pn;Na.brighter=function(c){return new Sn(this.h,this.c,Math.min(100,this.l+It*(arguments.length?c:1)))},Na.darker=function(c){return new Sn(this.h,this.c,Math.max(0,this.l-It*(arguments.length?c:1)))},Na.rgb=function(){return pa(this.h,this.c,this.l).rgb()};function pa(c,g,w){return isNaN(c)&&(c=0),isNaN(g)&&(g=0),new wn(w,Math.cos(c*=lt)*g,Math.sin(c)*g)}e.lab=wn;function wn(c,g,w){return this instanceof wn?(this.l=+c,this.a=+g,void(this.b=+w)):arguments.length<2?c instanceof wn?new wn(c.l,c.a,c.b):c instanceof Sn?pa(c.h,c.c,c.l):Br((c=Hn(c)).r,c.g,c.b):new wn(c,g,w)}var It=18,In=.95047,gi=1,io=1.08883,mi=wn.prototype=new pn;mi.brighter=function(c){return new wn(Math.min(100,this.l+It*(arguments.length?c:1)),this.a,this.b)},mi.darker=function(c){return new wn(Math.max(0,this.l-It*(arguments.length?c:1)),this.a,this.b)},mi.rgb=function(){return ms(this.l,this.a,this.b)};function ms(c,g,w){var C=(c+16)/116,q=C+g/500,E=C-w/200;return q=Bo(q)*In,C=Bo(C)*gi,E=Bo(E)*io,new Hn(Oo(3.2404542*q-1.5371385*C-.4985314*E),Oo(-.969266*q+1.8760108*C+.041556*E),Oo(.0556434*q-.2040259*C+1.0572252*E))}function El(c,g,w){return c>0?new Sn(Math.atan2(w,g)*xt,Math.sqrt(g*g+w*w),c):new Sn(NaN,NaN,c)}function Bo(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function ys(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Oo(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=Hn;function Hn(c,g,w){return this instanceof Hn?(this.r=~~c,this.g=~~g,void(this.b=~~w)):arguments.length<2?c instanceof Hn?new Hn(c.r,c.g,c.b):Lt(""+c,Hn,da):new Hn(c,g,w)}function yi(c){return new Hn(c>>16,c>>8&255,c&255)}function Uo(c){return yi(c)+""}var bi=Hn.prototype=new pn;bi.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var g=this.r,w=this.g,C=this.b,q=30;return!g&&!w&&!C?new Hn(q,q,q):(g&&g<q&&(g=q),w&&w<q&&(w=q),C&&C<q&&(C=q),new Hn(Math.min(255,g/c),Math.min(255,w/c),Math.min(255,C/c)))},bi.darker=function(c){return c=Math.pow(.7,arguments.length?c:1),new Hn(c*this.r,c*this.g,c*this.b)},bi.hsl=function(){return Ht(this.r,this.g,this.b)},bi.toString=function(){return"#"+Kr(this.r)+Kr(this.g)+Kr(this.b)};function Kr(c){return c<16?"0"+Math.max(0,c).toString(16):Math.min(255,c).toString(16)}function Lt(c,g,w){var C=0,q=0,E=0,G,N,j;if(G=/([a-z]+)\((.*)\)/.exec(c=c.toLowerCase()),G)switch(N=G[2].split(","),G[1]){case"hsl":return w(parseFloat(N[0]),parseFloat(N[1])/100,parseFloat(N[2])/100);case"rgb":return g(nn(N[0]),nn(N[1]),nn(N[2]))}return(j=Dn.get(c))?g(j.r,j.g,j.b):(c!=null&&c.charAt(0)==="#"&&!isNaN(j=parseInt(c.slice(1),16))&&(c.length===4?(C=(j&3840)>>4,C=C>>4|C,q=j&240,q=q>>4|q,E=j&15,E=E<<4|E):c.length===7&&(C=(j&16711680)>>16,q=(j&65280)>>8,E=j&255)),g(C,q,E))}function Ht(c,g,w){var C=Math.min(c/=255,g/=255,w/=255),q=Math.max(c,g,w),E=q-C,G,N,j=(q+C)/2;return E?(N=j<.5?E/(q+C):E/(2-q-C),c==q?G=(g-w)/E+(g<w?6:0):g==q?G=(w-c)/E+2:G=(c-g)/E+4,G*=60):(G=NaN,N=j>0&&j<1?0:G),new tn(G,N,j)}function Br(c,g,w){c=Vn(c),g=Vn(g),w=Vn(w);var C=ys((.4124564*c+.3575761*g+.1804375*w)/In),q=ys((.2126729*c+.7151522*g+.072175*w)/gi),E=ys((.0193339*c+.119192*g+.9503041*w)/io);return wn(116*q-16,500*(C-q),200*(q-E))}function Vn(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function nn(c){var g=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(g*2.55):g}var Dn=e.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});Dn.forEach(function(c,g){Dn.set(c,yi(g))});function At(c){return typeof c=="function"?c:function(){return c}}e.functor=At,e.xhr=Wa(V);function Wa(c){return function(g,w,C){return arguments.length===2&&typeof w=="function"&&(C=w,w=null),Yo(g,w,c,C)}}function Yo(c,g,w,C){var q={},E=e.dispatch("beforesend","progress","load","error"),G={},N=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in N)&&/^(http(s)?:)?\/\//.test(c)&&(N=new XDomainRequest),"onload"in N?N.onload=N.onerror=ae:N.onreadystatechange=function(){N.readyState>3&&ae()};function ae(){var ie=N.status,ge;if(!ie&&cu(N)||ie>=200&&ie<300||ie===304){try{ge=w.call(q,N)}catch(me){E.error.call(q,me);return}E.load.call(q,ge)}else E.error.call(q,N)}return N.onprogress=function(ie){var ge=e.event;e.event=ie;try{E.progress.call(q,N)}finally{e.event=ge}},q.header=function(ie,ge){return ie=(ie+"").toLowerCase(),arguments.length<2?G[ie]:(ge==null?delete G[ie]:G[ie]=ge+"",q)},q.mimeType=function(ie){return arguments.length?(g=ie==null?null:ie+"",q):g},q.responseType=function(ie){return arguments.length?(j=ie,q):j},q.response=function(ie){return w=ie,q},["get","post"].forEach(function(ie){q[ie]=function(){return q.send.apply(q,[ie].concat(t(arguments)))}}),q.send=function(ie,ge,me){if(arguments.length===2&&typeof ge=="function"&&(me=ge,ge=null),N.open(ie,c,!0),g!=null&&!("accept"in G)&&(G.accept=g+",*/*"),N.setRequestHeader)for(var Re in G)N.setRequestHeader(Re,G[Re]);return g!=null&&N.overrideMimeType&&N.overrideMimeType(g),j!=null&&(N.responseType=j),me!=null&&q.on("error",me).on("load",function(Ye){me(null,Ye)}),E.beforesend.call(q,N),N.send(ge==null?null:ge),q},q.abort=function(){return N.abort(),q},e.rebind(q,E,"on"),C==null?q:q.get(wf(C))}function wf(c){return c.length===1?function(g,w){c(g==null?w:null)}:c}function cu(c){var g=c.responseType;return g&&g!=="text"?c.response:c.responseText}e.dsv=function(c,g){var w=new RegExp('["'+c+`
15
+ "use strict";var Plotly=(()=>{var B_=Object.defineProperty;var UI=Object.getOwnPropertyDescriptor;var YI=Object.getOwnPropertyNames;var GI=Object.prototype.hasOwnProperty;var O_=(e,r)=>()=>(e&&(r=e(e=0)),r);var ne=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var VI=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of YI(r))!GI.call(e,a)&&a!==t&&B_(e,a,{get:()=>r[a],enumerable:!(n=UI(r,a))||n.enumerable});return e};var WI=e=>VI(B_({},"__esModule",{value:!0}),e);var Jh=ne(U_=>{"use strict";U_.version="3.0.3"});var G_=ne((Y_,$h)=>{(function(r,t,n){t[r]=t[r]||n(),typeof $h!="undefined"&&$h.exports&&($h.exports=t[r])})("Promise",typeof window!="undefined"?window:Y_,function(){"use strict";var r,t,n,a=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(S){return setImmediate(S)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(S,x,b,A){return Object.defineProperty(S,x,{value:b,writable:!0,configurable:A!==!1})}}catch(_){r=function(x,b,A){return x[b]=A,x}}n=function(){var S,x,b;function A(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,D){b=new A(M,D),x?x.next=b:S=b,x=b,b=void 0},drain:function(){var M=S;for(S=x=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(_,S){n.add(_,S),t||(t=i(n.drain))}function l(_){var S,x=typeof _;return _!=null&&(x=="object"||x=="function")&&(S=_.then),typeof S=="function"?S:!1}function s(){for(var _=0;_<this.chain.length;_++)u(this,this.state===1?this.chain[_].success:this.chain[_].failure,this.chain[_]);this.chain.length=0}function u(_,S,x){var b,A;try{S===!1?x.reject(_.msg):(S===!0?b=_.msg:b=S.call(void 0,_.msg),b===x.promise?x.reject(TypeError("Promise-chain cycle")):(A=l(b))?A.call(b,x.resolve,x.reject):x.resolve(b))}catch(k){x.reject(k)}}function f(_){var S,x=this;if(!x.triggered){x.triggered=!0,x.def&&(x=x.def);try{(S=l(_))?o(function(){var b=new d(x);try{S.call(_,function(){f.apply(b,arguments)},function(){v.apply(b,arguments)})}catch(A){v.call(b,A)}}):(x.msg=_,x.state=1,x.chain.length>0&&o(s,x))}catch(b){v.call(new d(x),b)}}}function v(_){var S=this;S.triggered||(S.triggered=!0,S.def&&(S=S.def),S.msg=_,S.state=2,S.chain.length>0&&o(s,S))}function h(_,S,x,b){for(var A=0;A<S.length;A++)(function(M){_.resolve(S[M]).then(function(z){x(M,z)},b)})(A)}function d(_){this.def=_,this.triggered=!1}function m(_){this.promise=_,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(_){if(typeof _!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var S=new m(this);this.then=function(b,A){var k={success:typeof b=="function"?b:!0,failure:typeof A=="function"?A:!1};return k.promise=new this.constructor(function(D,z){if(typeof D!="function"||typeof z!="function")throw TypeError("Not a function");k.resolve=D,k.reject=z}),S.chain.push(k),S.state!==0&&o(s,S),k.promise},this.catch=function(b){return this.then(void 0,b)};try{_.call(void 0,function(b){f.call(S,b)},function(b){v.call(S,b)})}catch(x){v.call(S,x)}}var y=r({},"constructor",p,!1);return p.prototype=y,r(y,"__NPO__",0,!1),r(p,"resolve",function(S){var x=this;return S&&typeof S=="object"&&S.__NPO__===1?S:new x(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");A(S)})}),r(p,"reject",function(S){return new this(function(b,A){if(typeof b!="function"||typeof A!="function")throw TypeError("Not a function");A(S)})}),r(p,"all",function(S){var x=this;return a.call(S)!="[object Array]"?x.reject(TypeError("Not an array")):S.length===0?x.resolve([]):new x(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");var M=S.length,D=Array(M),z=0;h(x,S,function(H,Y){D[H]=Y,++z===M&&A(D)},k)})}),r(p,"race",function(S){var x=this;return a.call(S)!="[object Array]"?x.reject(TypeError("Not an array")):new x(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");h(x,S,function(D,z){A(z)},k)})}),p})});var kt=ne((Goe,Kh)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},n=self.document;function a(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(c){t=function(g){for(var w=g.length,C=new Array(w);w--;)C[w]=g[w];return C}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,C){s.call(this,g,w,C+"")},u.setProperty=function(g,w,C){f.call(this,g,w+"",C)}}e.ascending=v;function v(c,g){return c<g?-1:c>g?1:c>=g?0:NaN}e.descending=function(c,g){return g<c?-1:g>c?1:g>=c?0:NaN},e.min=function(c,g){var w=-1,C=c.length,q,E;if(arguments.length===1){for(;++w<C;)if((E=c[w])!=null&&E>=E){q=E;break}for(;++w<C;)(E=c[w])!=null&&q>E&&(q=E)}else{for(;++w<C;)if((E=g.call(c,c[w],w))!=null&&E>=E){q=E;break}for(;++w<C;)(E=g.call(c,c[w],w))!=null&&q>E&&(q=E)}return q},e.max=function(c,g){var w=-1,C=c.length,q,E;if(arguments.length===1){for(;++w<C;)if((E=c[w])!=null&&E>=E){q=E;break}for(;++w<C;)(E=c[w])!=null&&E>q&&(q=E)}else{for(;++w<C;)if((E=g.call(c,c[w],w))!=null&&E>=E){q=E;break}for(;++w<C;)(E=g.call(c,c[w],w))!=null&&E>q&&(q=E)}return q},e.extent=function(c,g){var w=-1,C=c.length,q,E,G;if(arguments.length===1){for(;++w<C;)if((E=c[w])!=null&&E>=E){q=G=E;break}for(;++w<C;)(E=c[w])!=null&&(q>E&&(q=E),G<E&&(G=E))}else{for(;++w<C;)if((E=g.call(c,c[w],w))!=null&&E>=E){q=G=E;break}for(;++w<C;)(E=g.call(c,c[w],w))!=null&&(q>E&&(q=E),G<E&&(G=E))}return[q,G]};function h(c){return c===null?NaN:+c}function d(c){return!isNaN(c)}e.sum=function(c,g){var w=0,C=c.length,q,E=-1;if(arguments.length===1)for(;++E<C;)d(q=+c[E])&&(w+=q);else for(;++E<C;)d(q=+g.call(c,c[E],E))&&(w+=q);return w},e.mean=function(c,g){var w=0,C=c.length,q,E=-1,G=C;if(arguments.length===1)for(;++E<C;)d(q=h(c[E]))?w+=q:--G;else for(;++E<C;)d(q=h(g.call(c,c[E],E)))?w+=q:--G;if(G)return w/G},e.quantile=function(c,g){var w=(c.length-1)*g+1,C=Math.floor(w),q=+c[C-1],E=w-C;return E?q+E*(c[C]-q):q},e.median=function(c,g){var w=[],C=c.length,q,E=-1;if(arguments.length===1)for(;++E<C;)d(q=h(c[E]))&&w.push(q);else for(;++E<C;)d(q=h(g.call(c,c[E],E)))&&w.push(q);if(w.length)return e.quantile(w.sort(v),.5)},e.variance=function(c,g){var w=c.length,C=0,q,E,G=0,N=-1,j=0;if(arguments.length===1)for(;++N<w;)d(q=h(c[N]))&&(E=q-C,C+=E/++j,G+=E*(q-C));else for(;++N<w;)d(q=h(g.call(c,c[N],N)))&&(E=q-C,C+=E/++j,G+=E*(q-C));if(j>1)return G/(j-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(g,w,C,q){for(arguments.length<3&&(C=0),arguments.length<4&&(q=g.length);C<q;){var E=C+q>>>1;c(g[E],w)<0?C=E+1:q=E}return C},right:function(g,w,C,q){for(arguments.length<3&&(C=0),arguments.length<4&&(q=g.length);C<q;){var E=C+q>>>1;c(g[E],w)>0?q=E:C=E+1}return C}}}var p=m(v);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(c){return m(c.length===1?function(g,w){return v(c(g),w)}:c)},e.shuffle=function(c,g,w){(C=arguments.length)<3&&(w=c.length,C<2&&(g=0));for(var C=w-g,q,E;C;)E=Math.random()*C--|0,q=c[C+g],c[C+g]=c[E+g],c[E+g]=q;return c},e.permute=function(c,g){for(var w=g.length,C=new Array(w);w--;)C[w]=c[g[w]];return C},e.pairs=function(c){for(var g=0,w=c.length-1,C,q=c[0],E=new Array(w<0?0:w);g<w;)E[g]=[C=q,q=c[++g]];return E},e.transpose=function(c){if(!(E=c.length))return[];for(var g=-1,w=e.min(c,y),C=new Array(w);++g<w;)for(var q=-1,E,G=C[g]=new Array(E);++q<E;)G[q]=c[q][g];return C};function y(c){return c.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(c){var g=[];for(var w in c)g.push(w);return g},e.values=function(c){var g=[];for(var w in c)g.push(c[w]);return g},e.entries=function(c){var g=[];for(var w in c)g.push({key:w,value:c[w]});return g},e.merge=function(c){for(var g=c.length,w,C=-1,q=0,E,G;++C<g;)q+=c[C].length;for(E=new Array(q);--g>=0;)for(G=c[g],w=G.length;--w>=0;)E[--q]=G[w];return E};var _=Math.abs;e.range=function(c,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=c,c=0)),(g-c)/w===1/0)throw new Error("infinite range");var C=[],q=S(_(w)),E=-1,G;if(c*=q,g*=q,w*=q,w<0)for(;(G=c+w*++E)>g;)C.push(G/q);else for(;(G=c+w*++E)<g;)C.push(G/q);return C};function S(c){for(var g=1;c*g%1;)g*=10;return g}function x(c,g){for(var w in g)Object.defineProperty(c.prototype,w,{value:g[w],enumerable:!1})}e.map=function(c,g){var w=new b;if(c instanceof b)c.forEach(function(N,j){w.set(N,j)});else if(Array.isArray(c)){var C=-1,q=c.length,E;if(arguments.length===1)for(;++C<q;)w.set(C,c[C]);else for(;++C<q;)w.set(g.call(c,E=c[C],C),E)}else for(var G in c)w.set(G,c[G]);return w};function b(){this._=Object.create(null)}var A="__proto__",k="\0";x(b,{has:z,get:function(c){return this._[M(c)]},set:function(c,g){return this._[M(c)]=g},remove:F,keys:H,values:function(){var c=[];for(var g in this._)c.push(this._[g]);return c},entries:function(){var c=[];for(var g in this._)c.push({key:D(g),value:this._[g]});return c},size:Y,empty:O,forEach:function(c){for(var g in this._)c.call(this,D(g),this._[g])}});function M(c){return(c+="")===A||c[0]===k?k+c:c}function D(c){return(c+="")[0]===k?c.slice(1):c}function z(c){return M(c)in this._}function F(c){return(c=M(c))in this._&&delete this._[c]}function H(){var c=[];for(var g in this._)c.push(D(g));return c}function Y(){var c=0;for(var g in this._)++c;return c}function O(){for(var c in this._)return!1;return!0}e.nest=function(){var c={},g=[],w=[],C,q;function E(N,j,ae){if(ae>=g.length)return q?q.call(c,j):C?j.sort(C):j;for(var ie=-1,ge=j.length,me=g[ae++],Re,Ye,ye,Ce=new b,De;++ie<ge;)(De=Ce.get(Re=me(Ye=j[ie])))?De.push(Ye):Ce.set(Re,[Ye]);return N?(Ye=N(),ye=function(Ue,Ge){Ye.set(Ue,E(N,Ge,ae))}):(Ye={},ye=function(Ue,Ge){Ye[Ue]=E(N,Ge,ae)}),Ce.forEach(ye),Ye}function G(N,j){if(j>=g.length)return N;var ae=[],ie=w[j++];return N.forEach(function(ge,me){ae.push({key:ge,values:G(me,j)})}),ie?ae.sort(function(ge,me){return ie(ge.key,me.key)}):ae}return c.map=function(N,j){return E(j,N,0)},c.entries=function(N){return G(E(e.map,N,0),0)},c.key=function(N){return g.push(N),c},c.sortKeys=function(N){return w[g.length-1]=N,c},c.sortValues=function(N){return C=N,c},c.rollup=function(N){return q=N,c},c},e.set=function(c){var g=new X;if(c)for(var w=0,C=c.length;w<C;++w)g.add(c[w]);return g};function X(){this._=Object.create(null)}x(X,{has:z,add:function(c){return this._[M(c+="")]=!0,c},remove:F,values:H,size:Y,empty:O,forEach:function(c){for(var g in this._)c.call(this,D(g))}}),e.behavior={};function V(c){return c}e.rebind=function(c,g){for(var w=1,C=arguments.length,q;++w<C;)c[q=arguments[w]]=ee(c,g,g[q]);return c};function ee(c,g,w){return function(){var C=w.apply(g,arguments);return C===g?c:C}}function te(c,g){if(g in c)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var w=0,C=K.length;w<C;++w){var q=K[w]+g;if(q in c)return q}}var K=["webkit","ms","moz","Moz","o","O"];function re(){}e.dispatch=function(){for(var c=new fe,g=-1,w=arguments.length;++g<w;)c[arguments[g]]=de(c);return c};function fe(){}fe.prototype.on=function(c,g){var w=c.indexOf("."),C="";if(w>=0&&(C=c.slice(w+1),c=c.slice(0,w)),c)return arguments.length<2?this[c].on(C):this[c].on(C,g);if(arguments.length===2){if(g==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(C,null);return this}};function de(c){var g=[],w=new b;function C(){for(var q=g,E=-1,G=q.length,N;++E<G;)(N=q[E].on)&&N.apply(this,arguments);return c}return C.on=function(q,E){var G=w.get(q),N;return arguments.length<2?G&&G.on:(G&&(G.on=null,g=g.slice(0,N=g.indexOf(G)).concat(g.slice(N+1)),w.remove(q)),E&&g.push(w.set(q,{on:E})),c)},C}e.event=null;function qe(){e.event.preventDefault()}function Be(){for(var c=e.event,g;g=c.sourceEvent;)c=g;return c}function Ne(c){for(var g=new fe,w=0,C=arguments.length;++w<C;)g[arguments[w]]=de(g);return g.of=function(q,E){return function(G){try{var N=G.sourceEvent=e.event;G.target=c,e.event=G,g[G.type].apply(q,E)}finally{e.event=N}}},g}e.requote=function(c){return c.replace(Ie,"\\$&")};var Ie=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Se={}.__proto__?function(c,g){c.__proto__=g}:function(c,g){for(var w in g)c[w]=g[w]};function Xe(c){return Se(c,pe),c}var se=function(c,g){return g.querySelector(c)},be=function(c,g){return g.querySelectorAll(c)},Te=function(c,g){var w=c.matches||c[te(c,"matchesSelector")];return Te=function(C,q){return w.call(C,q)},Te(c,g)};typeof Sizzle=="function"&&(se=function(c,g){return Sizzle(c,g)[0]||null},be=Sizzle,Te=Sizzle.matchesSelector),e.selection=function(){return e.select(n.documentElement)};var pe=e.selection.prototype=[];pe.select=function(c){var g=[],w,C,q,E;c=W(c);for(var G=-1,N=this.length;++G<N;){g.push(w=[]),w.parentNode=(q=this[G]).parentNode;for(var j=-1,ae=q.length;++j<ae;)(E=q[j])?(w.push(C=c.call(E,E.__data__,j,G)),C&&"__data__"in E&&(C.__data__=E.__data__)):w.push(null)}return Xe(g)};function W(c){return typeof c=="function"?c:function(){return se(c,this)}}pe.selectAll=function(c){var g=[],w,C;c=Q(c);for(var q=-1,E=this.length;++q<E;)for(var G=this[q],N=-1,j=G.length;++N<j;)(C=G[N])&&(g.push(w=t(c.call(C,C.__data__,N,q))),w.parentNode=C);return Xe(g)};function Q(c){return typeof c=="function"?c:function(){return be(c,this)}}var $="http://www.w3.org/1999/xhtml",Me={svg:"http://www.w3.org/2000/svg",xhtml:$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};e.ns={prefix:Me,qualify:function(c){var g=c.indexOf(":"),w=c;return g>=0&&(w=c.slice(0,g))!=="xmlns"&&(c=c.slice(g+1)),Me.hasOwnProperty(w)?{space:Me[w],local:c}:c}},pe.attr=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node();return c=e.ns.qualify(c),c.local?w.getAttributeNS(c.space,c.local):w.getAttribute(c)}for(g in c)this.each(Fe(g,c[g]));return this}return this.each(Fe(c,g))};function Fe(c,g){c=e.ns.qualify(c);function w(){this.removeAttribute(c)}function C(){this.removeAttributeNS(c.space,c.local)}function q(){this.setAttribute(c,g)}function E(){this.setAttributeNS(c.space,c.local,g)}function G(){var j=g.apply(this,arguments);j==null?this.removeAttribute(c):this.setAttribute(c,j)}function N(){var j=g.apply(this,arguments);j==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,j)}return g==null?c.local?C:w:typeof g=="function"?c.local?N:G:c.local?E:q}function Oe(c){return c.trim().replace(/\s+/g," ")}pe.classed=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node(),C=(c=nr(c)).length,q=-1;if(g=w.classList){for(;++q<C;)if(!g.contains(c[q]))return!1}else for(g=w.getAttribute("class");++q<C;)if(!fr(c[q]).test(g))return!1;return!0}for(g in c)this.each(Ze(g,c[g]));return this}return this.each(Ze(c,g))};function fr(c){return new RegExp("(?:^|\\s+)"+e.requote(c)+"(?:\\s+|$)","g")}function nr(c){return(c+"").trim().split(/^|\s+/)}function Ze(c,g){c=nr(c).map(ar);var w=c.length;function C(){for(var E=-1;++E<w;)c[E](this,g)}function q(){for(var E=-1,G=g.apply(this,arguments);++E<w;)c[E](this,G)}return typeof g=="function"?q:C}function ar(c){var g=fr(c);return function(w,C){if(q=w.classList)return C?q.add(c):q.remove(c);var q=w.getAttribute("class")||"";C?(g.lastIndex=0,g.test(q)||w.setAttribute("class",Oe(q+" "+c))):w.setAttribute("class",Oe(q.replace(g," ")))}}pe.style=function(c,g,w){var C=arguments.length;if(C<3){if(typeof c!="string"){C<2&&(g="");for(w in c)this.each(lr(w,c[w],g));return this}if(C<2){var q=this.node();return i(q).getComputedStyle(q,null).getPropertyValue(c)}w=""}return this.each(lr(c,g,w))};function lr(c,g,w){function C(){this.style.removeProperty(c)}function q(){this.style.setProperty(c,g,w)}function E(){var G=g.apply(this,arguments);G==null?this.style.removeProperty(c):this.style.setProperty(c,G,w)}return g==null?C:typeof g=="function"?E:q}pe.property=function(c,g){if(arguments.length<2){if(typeof c=="string")return this.node()[c];for(g in c)this.each(ir(g,c[g]));return this}return this.each(ir(c,g))};function ir(c,g){function w(){delete this[c]}function C(){this[c]=g}function q(){var E=g.apply(this,arguments);E==null?delete this[c]:this[c]=E}return g==null?w:typeof g=="function"?q:C}pe.text=function(c){return arguments.length?this.each(typeof c=="function"?function(){var g=c.apply(this,arguments);this.textContent=g==null?"":g}:c==null?function(){this.textContent=""}:function(){this.textContent=c}):this.node().textContent},pe.html=function(c){return arguments.length?this.each(typeof c=="function"?function(){var g=c.apply(this,arguments);this.innerHTML=g==null?"":g}:c==null?function(){this.innerHTML=""}:function(){this.innerHTML=c}):this.node().innerHTML},pe.append=function(c){return c=rr(c),this.select(function(){return this.appendChild(c.apply(this,arguments))})};function rr(c){function g(){var C=this.ownerDocument,q=this.namespaceURI;return q===$&&C.documentElement.namespaceURI===$?C.createElement(c):C.createElementNS(q,c)}function w(){return this.ownerDocument.createElementNS(c.space,c.local)}return typeof c=="function"?c:(c=e.ns.qualify(c)).local?w:g}pe.insert=function(c,g){return c=rr(c),g=W(g),this.select(function(){return this.insertBefore(c.apply(this,arguments),g.apply(this,arguments)||null)})},pe.remove=function(){return this.each(Cr)};function Cr(){var c=this.parentNode;c&&c.removeChild(this)}pe.data=function(c,g){var w=-1,C=this.length,q,E;if(!arguments.length){for(c=new Array(C=(q=this[0]).length);++w<C;)(E=q[w])&&(c[w]=E.__data__);return c}function G(ie,ge){var me,Re=ie.length,Ye=ge.length,ye=Math.min(Re,Ye),Ce=new Array(Ye),De=new Array(Ye),Ue=new Array(Re),Ge,Pe;if(g){var _r=new b,Or=new Array(Re),Wr;for(me=-1;++me<Re;)(Ge=ie[me])&&(_r.has(Wr=g.call(Ge,Ge.__data__,me))?Ue[me]=Ge:_r.set(Wr,Ge),Or[me]=Wr);for(me=-1;++me<Ye;)(Ge=_r.get(Wr=g.call(ge,Pe=ge[me],me)))?Ge!==!0&&(Ce[me]=Ge,Ge.__data__=Pe):De[me]=yr(Pe),_r.set(Wr,!0);for(me=-1;++me<Re;)me in Or&&_r.get(Or[me])!==!0&&(Ue[me]=ie[me])}else{for(me=-1;++me<ye;)Ge=ie[me],Pe=ge[me],Ge?(Ge.__data__=Pe,Ce[me]=Ge):De[me]=yr(Pe);for(;me<Ye;++me)De[me]=yr(ge[me]);for(;me<Re;++me)Ue[me]=ie[me]}De.update=Ce,De.parentNode=Ce.parentNode=Ue.parentNode=ie.parentNode,N.push(De),j.push(Ce),ae.push(Ue)}var N=zr([]),j=Xe([]),ae=Xe([]);if(typeof c=="function")for(;++w<C;)G(q=this[w],c.call(q,q.parentNode.__data__,w));else for(;++w<C;)G(q=this[w],c);return j.enter=function(){return N},j.exit=function(){return ae},j};function yr(c){return{__data__:c}}pe.datum=function(c){return arguments.length?this.property("__data__",c):this.property("__data__")},pe.filter=function(c){var g=[],w,C,q;typeof c!="function"&&(c=Ae(c));for(var E=0,G=this.length;E<G;E++){g.push(w=[]),w.parentNode=(C=this[E]).parentNode;for(var N=0,j=C.length;N<j;N++)(q=C[N])&&c.call(q,q.__data__,N,E)&&w.push(q)}return Xe(g)};function Ae(c){return function(){return Te(this,c)}}pe.order=function(){for(var c=-1,g=this.length;++c<g;)for(var w=this[c],C=w.length-1,q=w[C],E;--C>=0;)(E=w[C])&&(q&&q!==E.nextSibling&&q.parentNode.insertBefore(E,q),q=E);return this},pe.sort=function(c){c=Ve.apply(this,arguments);for(var g=-1,w=this.length;++g<w;)this[g].sort(c);return this.order()};function Ve(c){return arguments.length||(c=v),function(g,w){return g&&w?c(g.__data__,w.__data__):!g-!w}}pe.each=function(c){return je(this,function(g,w,C){c.call(g,g.__data__,w,C)})};function je(c,g){for(var w=0,C=c.length;w<C;w++)for(var q=c[w],E=0,G=q.length,N;E<G;E++)(N=q[E])&&g(N,E,w);return c}pe.call=function(c){var g=t(arguments);return c.apply(g[0]=this,g),this},pe.empty=function(){return!this.node()},pe.node=function(){for(var c=0,g=this.length;c<g;c++)for(var w=this[c],C=0,q=w.length;C<q;C++){var E=w[C];if(E)return E}return null},pe.size=function(){var c=0;return je(this,function(){++c}),c};function zr(c){return Se(c,kr),c}var kr=[];e.selection.enter=zr,e.selection.enter.prototype=kr,kr.append=pe.append,kr.empty=pe.empty,kr.node=pe.node,kr.call=pe.call,kr.size=pe.size,kr.select=function(c){for(var g=[],w,C,q,E,G,N=-1,j=this.length;++N<j;){q=(E=this[N]).update,g.push(w=[]),w.parentNode=E.parentNode;for(var ae=-1,ie=E.length;++ae<ie;)(G=E[ae])?(w.push(q[ae]=C=c.call(E.parentNode,G.__data__,ae,N)),C.__data__=G.__data__):w.push(null)}return Xe(g)},kr.insert=function(c,g){return arguments.length<2&&(g=er(this)),pe.insert.call(this,c,g)};function er(c){var g,w;return function(C,q,E){var G=c[E].update,N=G.length,j;for(E!=w&&(w=E,g=0),q>=g&&(g=q+1);!(j=G[g])&&++g<N;);return j}}e.select=function(c){var g;return typeof c=="string"?(g=[se(c,n)],g.parentNode=n.documentElement):(g=[c],g.parentNode=a(c)),Xe([g])},e.selectAll=function(c){var g;return typeof c=="string"?(g=t(be(c,n)),g.parentNode=n.documentElement):(g=t(c),g.parentNode=null),Xe([g])},pe.on=function(c,g,w){var C=arguments.length;if(C<3){if(typeof c!="string"){C<2&&(g=!1);for(w in c)this.each(Ke(w,c[w],g));return this}if(C<2)return(C=this.node()["__on"+c])&&C._;w=!1}return this.each(Ke(c,g,w))};function Ke(c,g,w){var C="__on"+c,q=c.indexOf("."),E=Mr;q>0&&(c=c.slice(0,q));var G=mr.get(c);G&&(c=G,E=gr);function N(){var ie=this[C];ie&&(this.removeEventListener(c,ie,ie.$),delete this[C])}function j(){var ie=E(g,t(arguments));N.call(this),this.addEventListener(c,this[C]=ie,ie.$=w),ie._=g}function ae(){var ie=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),ge;for(var me in this)if(ge=me.match(ie)){var Re=this[me];this.removeEventListener(ge[1],Re,Re.$),delete this[me]}}return q?g?j:N:g?re:ae}var mr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&mr.forEach(function(c){"on"+c in n&&mr.remove(c)});function Mr(c,g){return function(w){var C=e.event;e.event=w,g[0]=this.__data__;try{c.apply(this,g)}finally{e.event=C}}}function gr(c,g){var w=Mr(c,g);return function(C){var q=this,E=C.relatedTarget;(!E||E!==q&&!(E.compareDocumentPosition(q)&8))&&w.call(q,C)}}var dr,Tr=0;function Pr(c){var g=".dragsuppress-"+ ++Tr,w="click"+g,C=e.select(i(c)).on("touchmove"+g,qe).on("dragstart"+g,qe).on("selectstart"+g,qe);if(dr==null&&(dr="onselectstart"in c?!1:te(c.style,"userSelect")),dr){var q=a(c).style,E=q[dr];q[dr]="none"}return function(G){if(C.on(g,null),dr&&(q[dr]=E),G){var N=function(){C.on(w,null)};C.on(w,function(){qe(),N()},!0),setTimeout(N,0)}}}e.mouse=function(c){return sr(c,Be())};var Ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function sr(c,g){g.changedTouches&&(g=g.changedTouches[0]);var w=c.ownerSVGElement||c;if(w.createSVGPoint){var C=w.createSVGPoint();if(Ur<0){var q=i(c);if(q.scrollX||q.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var E=w[0][0].getScreenCTM();Ur=!(E.f||E.e),w.remove()}}return Ur?(C.x=g.pageX,C.y=g.pageY):(C.x=g.clientX,C.y=g.clientY),C=C.matrixTransform(c.getScreenCTM().inverse()),[C.x,C.y]}var G=c.getBoundingClientRect();return[g.clientX-G.left-c.clientLeft,g.clientY-G.top-c.clientTop]}e.touch=function(c,g,w){if(arguments.length<3&&(w=g,g=Be().changedTouches),g){for(var C=0,q=g.length,E;C<q;++C)if((E=g[C]).identifier===w)return sr(c,E)}},e.behavior.drag=function(){var c=Ne(q,"drag","dragstart","dragend"),g=null,w=E(re,e.mouse,i,"mousemove","mouseup"),C=E(_e,e.touch,V,"touchmove","touchend");function q(){this.on("mousedown.drag",w).on("touchstart.drag",C)}function E(G,N,j,ae,ie){return function(){var ge=this,me=e.event.target.correspondingElement||e.event.target,Re=ge.parentNode,Ye=c.of(ge,arguments),ye=0,Ce=G(),De=".drag"+(Ce==null?"":"-"+Ce),Ue,Ge=e.select(j(me)).on(ae+De,Or).on(ie+De,Wr),Pe=Pr(me),_r=N(Re,Ce);g?(Ue=g.apply(ge,arguments),Ue=[Ue.x-_r[0],Ue.y-_r[1]]):Ue=[0,0],Ye({type:"dragstart"});function Or(){var Gr=N(Re,Ce),Jr,$r;Gr&&(Jr=Gr[0]-_r[0],$r=Gr[1]-_r[1],ye|=Jr|$r,_r=Gr,Ye({type:"drag",x:Gr[0]+Ue[0],y:Gr[1]+Ue[1],dx:Jr,dy:$r}))}function Wr(){N(Re,Ce)&&(Ge.on(ae+De,null).on(ie+De,null),Pe(ye),Ye({type:"dragend"}))}}}return q.origin=function(G){return arguments.length?(g=G,q):g},e.rebind(q,c,"on")};function _e(){return e.event.changedTouches[0].identifier}e.touches=function(c,g){return arguments.length<2&&(g=Be().touches),g?t(g).map(function(w){var C=sr(c,w);return C.identifier=w.identifier,C}):[]};var ke=1e-6,$e=ke*ke,We=Math.PI,qr=2*We,Vr=qr-ke,Hr=We/2,lt=We/180,xt=180/We;function Rt(c){return c>0?1:c<0?-1:0}function St(c,g,w){return(g[0]-c[0])*(w[1]-c[1])-(g[1]-c[1])*(w[0]-c[0])}function hn(c){return c>1?0:c<-1?We:Math.acos(c)}function Fn(c){return c>1?Hr:c<-1?-Hr:Math.asin(c)}function $n(c){return((c=Math.exp(c))-1/c)/2}function Xt(c){return((c=Math.exp(c))+1/c)/2}function cn(c){return((c=Math.exp(2*c))-1)/(c+1)}function sn(c){return(c=Math.sin(c/2))*c}var Kt=Math.SQRT2,aa=2,rt=4;e.interpolateZoom=function(c,g){var w=c[0],C=c[1],q=c[2],E=g[0],G=g[1],N=g[2],j=E-w,ae=G-C,ie=j*j+ae*ae,ge,me;if(ie<$e)me=Math.log(N/q)/Kt,ge=function(Ue){return[w+Ue*j,C+Ue*ae,q*Math.exp(Kt*Ue*me)]};else{var Re=Math.sqrt(ie),Ye=(N*N-q*q+rt*ie)/(2*q*aa*Re),ye=(N*N-q*q-rt*ie)/(2*N*aa*Re),Ce=Math.log(Math.sqrt(Ye*Ye+1)-Ye),De=Math.log(Math.sqrt(ye*ye+1)-ye);me=(De-Ce)/Kt,ge=function(Ue){var Ge=Ue*me,Pe=Xt(Ce),_r=q/(aa*Re)*(Pe*cn(Kt*Ge+Ce)-$n(Ce));return[w+_r*j,C+_r*ae,q*Pe/Xt(Kt*Ge+Ce)]}}return ge.duration=me*1e3,ge},e.behavior.zoom=function(){var c={x:0,y:0,k:1},g,w,C,q=[960,500],E=Qt,G=250,N=0,j="mousedown.zoom",ae="mousemove.zoom",ie="mouseup.zoom",ge,me="touchstart.zoom",Re,Ye=Ne(Ge,"zoomstart","zoom","zoomend"),ye,Ce,De,Ue;dn||(dn="onwheel"in n?(Ct=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(Ct=function(){return e.event.wheelDelta},"mousewheel"):(Ct=function(){return-e.event.detail},"MozMousePixelScroll"));function Ge(Fr){Fr.on(j,ht).on(dn+".zoom",Zn).on("dblclick.zoom",on).on(me,jt)}Ge.event=function(Fr){Fr.each(function(){var _t=Ye.of(this,arguments),wt=c;ma?e.select(this).transition().each("start.zoom",function(){c=this.__chart__||{x:0,y:0,k:1},$r(_t)}).tween("zoom:zoom",function(){var Jt=q[0],Nn=q[1],oa=w?w[0]:Jt/2,Da=w?w[1]:Nn/2,ja=e.interpolateZoom([(oa-c.x)/c.k,(Da-c.y)/c.k,Jt/c.k],[(oa-wt.x)/wt.k,(Da-wt.y)/wt.k,Jt/wt.k]);return function(fi){var Ja=ja(fi),Si=Jt/Ja[2];this.__chart__=c={x:oa-Ja[0]*Si,y:Da-Ja[1]*Si,k:Si},bt(_t)}}).each("interrupt.zoom",function(){Qr(_t)}).each("end.zoom",function(){Qr(_t)}):(this.__chart__=c,$r(_t),bt(_t),Qr(_t))})},Ge.translate=function(Fr){return arguments.length?(c={x:+Fr[0],y:+Fr[1],k:c.k},Jr(),Ge):[c.x,c.y]},Ge.scale=function(Fr){return arguments.length?(c={x:c.x,y:c.y,k:null},Or(+Fr),Jr(),Ge):c.k},Ge.scaleExtent=function(Fr){return arguments.length?(E=Fr==null?Qt:[+Fr[0],+Fr[1]],Ge):E},Ge.center=function(Fr){return arguments.length?(C=Fr&&[+Fr[0],+Fr[1]],Ge):C},Ge.size=function(Fr){return arguments.length?(q=Fr&&[+Fr[0],+Fr[1]],Ge):q},Ge.duration=function(Fr){return arguments.length?(G=+Fr,Ge):G},Ge.x=function(Fr){return arguments.length?(Ce=Fr,ye=Fr.copy(),c={x:0,y:0,k:1},Ge):Ce},Ge.y=function(Fr){return arguments.length?(Ue=Fr,De=Fr.copy(),c={x:0,y:0,k:1},Ge):Ue};function Pe(Fr){return[(Fr[0]-c.x)/c.k,(Fr[1]-c.y)/c.k]}function _r(Fr){return[Fr[0]*c.k+c.x,Fr[1]*c.k+c.y]}function Or(Fr){c.k=Math.max(E[0],Math.min(E[1],Fr))}function Wr(Fr,_t){_t=_r(_t),c.x+=Fr[0]-_t[0],c.y+=Fr[1]-_t[1]}function Gr(Fr,_t,wt,Jt){Fr.__chart__={x:c.x,y:c.y,k:c.k},Or(Math.pow(2,Jt)),Wr(w=_t,wt),Fr=e.select(Fr),G>0&&(Fr=Fr.transition().duration(G)),Fr.call(Ge.event)}function Jr(){Ce&&Ce.domain(ye.range().map(function(Fr){return(Fr-c.x)/c.k}).map(ye.invert)),Ue&&Ue.domain(De.range().map(function(Fr){return(Fr-c.y)/c.k}).map(De.invert))}function $r(Fr){N++||Fr({type:"zoomstart"})}function bt(Fr){Jr(),Fr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function Qr(Fr){--N||(Fr({type:"zoomend"}),w=null)}function ht(){var Fr=this,_t=Ye.of(Fr,arguments),wt=0,Jt=e.select(i(Fr)).on(ae,Da).on(ie,ja),Nn=Pe(e.mouse(Fr)),oa=Pr(Fr);vt.call(Fr),$r(_t);function Da(){wt=1,Wr(e.mouse(Fr),Nn),bt(_t)}function ja(){Jt.on(ae,null).on(ie,null),oa(wt),Qr(_t)}}function jt(){var Fr=this,_t=Ye.of(Fr,arguments),wt={},Jt=0,Nn,oa=".zoom-"+e.event.changedTouches[0].identifier,Da="touchmove"+oa,ja="touchend"+oa,fi=[],Ja=e.select(Fr),Si=Pr(Fr);Ci(),$r(_t),Ja.on(j,null).on(me,Ci);function Ha(){var ul=e.touches(Fr);return Nn=c.k,ul.forEach(function(Ea){Ea.identifier in wt&&(wt[Ea.identifier]=Pe(Ea))}),ul}function Ci(){var ul=e.event.target;e.select(ul).on(Da,Zf).on(ja,OI),fi.push(ul);for(var Ea=e.event.changedTouches,mo=0,jl=Ea.length;mo<jl;++mo)wt[Ea[mo].identifier]=null;var yo=Ha(),g0=Date.now();if(yo.length===1){if(g0-Re<500){var Xf=yo[0];Gr(Fr,Xf,wt[Xf.identifier],Math.floor(Math.log(c.k)/Math.LN2)+1),qe()}Re=g0}else if(yo.length>1){var Xf=yo[0],qu=yo[1],jh=Xf[0]-qu[0],H_=Xf[1]-qu[1];Jt=jh*jh+H_*H_}}function Zf(){var ul=e.touches(Fr),Ea,mo,jl,yo;vt.call(Fr);for(var g0=0,Xf=ul.length;g0<Xf;++g0,yo=null)if(jl=ul[g0],yo=wt[jl.identifier]){if(mo)break;Ea=jl,mo=yo}if(yo){var qu=(qu=jl[0]-Ea[0])*qu+(qu=jl[1]-Ea[1])*qu,jh=Jt&&Math.sqrt(qu/Jt);Ea=[(Ea[0]+jl[0])/2,(Ea[1]+jl[1])/2],mo=[(mo[0]+yo[0])/2,(mo[1]+yo[1])/2],Or(jh*Nn)}Re=null,Wr(Ea,mo),bt(_t)}function OI(){if(e.event.touches.length){for(var ul=e.event.changedTouches,Ea=0,mo=ul.length;Ea<mo;++Ea)delete wt[ul[Ea].identifier];for(var jl in wt)return void Ha()}e.selectAll(fi).on(oa,null),Ja.on(j,ht).on(me,jt),Si(),Qr(_t)}}function Zn(){var Fr=Ye.of(this,arguments);ge?clearTimeout(ge):(vt.call(this),g=Pe(w=C||e.mouse(this)),$r(Fr)),ge=setTimeout(function(){ge=null,Qr(Fr)},50),qe(),Or(Math.pow(2,Ct()*.002)*c.k),Wr(w,g),bt(Fr)}function on(){var Fr=e.mouse(this),_t=Math.log(c.k)/Math.LN2;Gr(this,Fr,Pe(Fr),e.event.shiftKey?Math.ceil(_t)-1:Math.floor(_t)+1)}return e.rebind(Ge,Ye,"on")};var Qt=[0,1/0],Ct,dn;e.color=pn;function pn(){}pn.prototype.toString=function(){return this.rgb()+""},e.hsl=tn;function tn(c,g,w){return this instanceof tn?(this.h=+c,this.s=+g,void(this.l=+w)):arguments.length<2?c instanceof tn?new tn(c.h,c.s,c.l):Lt(""+c,Ht,tn):new tn(c,g,w)}var un=tn.prototype=new pn;un.brighter=function(c){return c=Math.pow(.7,arguments.length?c:1),new tn(this.h,this.s,this.l/c)},un.darker=function(c){return c=Math.pow(.7,arguments.length?c:1),new tn(this.h,this.s,c*this.l)},un.rgb=function(){return da(this.h,this.s,this.l)};function da(c,g,w){var C,q;c=isNaN(c)?0:(c%=360)<0?c+360:c,g=isNaN(g)||g<0?0:g>1?1:g,w=w<0?0:w>1?1:w,q=w<=.5?w*(1+g):w+g-w*g,C=2*w-q;function E(N){return N>360?N-=360:N<0&&(N+=360),N<60?C+(q-C)*N/60:N<180?q:N<240?C+(q-C)*(240-N)/60:C}function G(N){return Math.round(E(N)*255)}return new Hn(G(c+120),G(c),G(c-120))}e.hcl=Sn;function Sn(c,g,w){return this instanceof Sn?(this.h=+c,this.c=+g,void(this.l=+w)):arguments.length<2?c instanceof Sn?new Sn(c.h,c.c,c.l):c instanceof wn?El(c.l,c.a,c.b):El((c=Br((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new Sn(c,g,w)}var Na=Sn.prototype=new pn;Na.brighter=function(c){return new Sn(this.h,this.c,Math.min(100,this.l+It*(arguments.length?c:1)))},Na.darker=function(c){return new Sn(this.h,this.c,Math.max(0,this.l-It*(arguments.length?c:1)))},Na.rgb=function(){return pa(this.h,this.c,this.l).rgb()};function pa(c,g,w){return isNaN(c)&&(c=0),isNaN(g)&&(g=0),new wn(w,Math.cos(c*=lt)*g,Math.sin(c)*g)}e.lab=wn;function wn(c,g,w){return this instanceof wn?(this.l=+c,this.a=+g,void(this.b=+w)):arguments.length<2?c instanceof wn?new wn(c.l,c.a,c.b):c instanceof Sn?pa(c.h,c.c,c.l):Br((c=Hn(c)).r,c.g,c.b):new wn(c,g,w)}var It=18,In=.95047,gi=1,io=1.08883,mi=wn.prototype=new pn;mi.brighter=function(c){return new wn(Math.min(100,this.l+It*(arguments.length?c:1)),this.a,this.b)},mi.darker=function(c){return new wn(Math.max(0,this.l-It*(arguments.length?c:1)),this.a,this.b)},mi.rgb=function(){return ms(this.l,this.a,this.b)};function ms(c,g,w){var C=(c+16)/116,q=C+g/500,E=C-w/200;return q=Bo(q)*In,C=Bo(C)*gi,E=Bo(E)*io,new Hn(Oo(3.2404542*q-1.5371385*C-.4985314*E),Oo(-.969266*q+1.8760108*C+.041556*E),Oo(.0556434*q-.2040259*C+1.0572252*E))}function El(c,g,w){return c>0?new Sn(Math.atan2(w,g)*xt,Math.sqrt(g*g+w*w),c):new Sn(NaN,NaN,c)}function Bo(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function ys(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Oo(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=Hn;function Hn(c,g,w){return this instanceof Hn?(this.r=~~c,this.g=~~g,void(this.b=~~w)):arguments.length<2?c instanceof Hn?new Hn(c.r,c.g,c.b):Lt(""+c,Hn,da):new Hn(c,g,w)}function yi(c){return new Hn(c>>16,c>>8&255,c&255)}function Uo(c){return yi(c)+""}var bi=Hn.prototype=new pn;bi.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var g=this.r,w=this.g,C=this.b,q=30;return!g&&!w&&!C?new Hn(q,q,q):(g&&g<q&&(g=q),w&&w<q&&(w=q),C&&C<q&&(C=q),new Hn(Math.min(255,g/c),Math.min(255,w/c),Math.min(255,C/c)))},bi.darker=function(c){return c=Math.pow(.7,arguments.length?c:1),new Hn(c*this.r,c*this.g,c*this.b)},bi.hsl=function(){return Ht(this.r,this.g,this.b)},bi.toString=function(){return"#"+Kr(this.r)+Kr(this.g)+Kr(this.b)};function Kr(c){return c<16?"0"+Math.max(0,c).toString(16):Math.min(255,c).toString(16)}function Lt(c,g,w){var C=0,q=0,E=0,G,N,j;if(G=/([a-z]+)\((.*)\)/.exec(c=c.toLowerCase()),G)switch(N=G[2].split(","),G[1]){case"hsl":return w(parseFloat(N[0]),parseFloat(N[1])/100,parseFloat(N[2])/100);case"rgb":return g(nn(N[0]),nn(N[1]),nn(N[2]))}return(j=Dn.get(c))?g(j.r,j.g,j.b):(c!=null&&c.charAt(0)==="#"&&!isNaN(j=parseInt(c.slice(1),16))&&(c.length===4?(C=(j&3840)>>4,C=C>>4|C,q=j&240,q=q>>4|q,E=j&15,E=E<<4|E):c.length===7&&(C=(j&16711680)>>16,q=(j&65280)>>8,E=j&255)),g(C,q,E))}function Ht(c,g,w){var C=Math.min(c/=255,g/=255,w/=255),q=Math.max(c,g,w),E=q-C,G,N,j=(q+C)/2;return E?(N=j<.5?E/(q+C):E/(2-q-C),c==q?G=(g-w)/E+(g<w?6:0):g==q?G=(w-c)/E+2:G=(c-g)/E+4,G*=60):(G=NaN,N=j>0&&j<1?0:G),new tn(G,N,j)}function Br(c,g,w){c=Vn(c),g=Vn(g),w=Vn(w);var C=ys((.4124564*c+.3575761*g+.1804375*w)/In),q=ys((.2126729*c+.7151522*g+.072175*w)/gi),E=ys((.0193339*c+.119192*g+.9503041*w)/io);return wn(116*q-16,500*(C-q),200*(q-E))}function Vn(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function nn(c){var g=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(g*2.55):g}var Dn=e.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});Dn.forEach(function(c,g){Dn.set(c,yi(g))});function At(c){return typeof c=="function"?c:function(){return c}}e.functor=At,e.xhr=Wa(V);function Wa(c){return function(g,w,C){return arguments.length===2&&typeof w=="function"&&(C=w,w=null),Yo(g,w,c,C)}}function Yo(c,g,w,C){var q={},E=e.dispatch("beforesend","progress","load","error"),G={},N=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in N)&&/^(http(s)?:)?\/\//.test(c)&&(N=new XDomainRequest),"onload"in N?N.onload=N.onerror=ae:N.onreadystatechange=function(){N.readyState>3&&ae()};function ae(){var ie=N.status,ge;if(!ie&&cu(N)||ie>=200&&ie<300||ie===304){try{ge=w.call(q,N)}catch(me){E.error.call(q,me);return}E.load.call(q,ge)}else E.error.call(q,N)}return N.onprogress=function(ie){var ge=e.event;e.event=ie;try{E.progress.call(q,N)}finally{e.event=ge}},q.header=function(ie,ge){return ie=(ie+"").toLowerCase(),arguments.length<2?G[ie]:(ge==null?delete G[ie]:G[ie]=ge+"",q)},q.mimeType=function(ie){return arguments.length?(g=ie==null?null:ie+"",q):g},q.responseType=function(ie){return arguments.length?(j=ie,q):j},q.response=function(ie){return w=ie,q},["get","post"].forEach(function(ie){q[ie]=function(){return q.send.apply(q,[ie].concat(t(arguments)))}}),q.send=function(ie,ge,me){if(arguments.length===2&&typeof ge=="function"&&(me=ge,ge=null),N.open(ie,c,!0),g!=null&&!("accept"in G)&&(G.accept=g+",*/*"),N.setRequestHeader)for(var Re in G)N.setRequestHeader(Re,G[Re]);return g!=null&&N.overrideMimeType&&N.overrideMimeType(g),j!=null&&(N.responseType=j),me!=null&&q.on("error",me).on("load",function(Ye){me(null,Ye)}),E.beforesend.call(q,N),N.send(ge==null?null:ge),q},q.abort=function(){return N.abort(),q},e.rebind(q,E,"on"),C==null?q:q.get(wf(C))}function wf(c){return c.length===1?function(g,w){c(g==null?w:null)}:c}function cu(c){var g=c.responseType;return g&&g!=="text"?c.response:c.responseText}e.dsv=function(c,g){var w=new RegExp('["'+c+`
16
16
  ]`),C=c.charCodeAt(0);function q(ae,ie,ge){arguments.length<3&&(ge=ie,ie=null);var me=Yo(ae,g,ie==null?E:G(ie),ge);return me.row=function(Re){return arguments.length?me.response((ie=Re)==null?E:G(Re)):ie},me}function E(ae){return q.parse(ae.responseText)}function G(ae){return function(ie){return q.parse(ie.responseText,ae)}}q.parse=function(ae,ie){var ge;return q.parseRows(ae,function(me,Re){if(ge)return ge(me,Re-1);var Ye=function(ye){for(var Ce={},De=me.length,Ue=0;Ue<De;++Ue)Ce[me[Ue]]=ye[Ue];return Ce};ge=ie?function(ye,Ce){return ie(Ye(ye),Ce)}:Ye})},q.parseRows=function(ae,ie){var ge={},me={},Re=[],Ye=ae.length,ye=0,Ce=0,De,Ue;function Ge(){if(ye>=Ye)return me;if(Ue)return Ue=!1,ge;var _r=ye;if(ae.charCodeAt(_r)===34){for(var Or=_r;Or++<Ye;)if(ae.charCodeAt(Or)===34){if(ae.charCodeAt(Or+1)!==34)break;++Or}ye=Or+2;var Wr=ae.charCodeAt(Or+1);return Wr===13?(Ue=!0,ae.charCodeAt(Or+2)===10&&++ye):Wr===10&&(Ue=!0),ae.slice(_r+1,Or).replace(/""/g,'"')}for(;ye<Ye;){var Wr=ae.charCodeAt(ye++),Gr=1;if(Wr===10)Ue=!0;else if(Wr===13)Ue=!0,ae.charCodeAt(ye)===10&&(++ye,++Gr);else if(Wr!==C)continue;return ae.slice(_r,ye-Gr)}return ae.slice(_r)}for(;(De=Ge())!==me;){for(var Pe=[];De!==ge&&De!==me;)Pe.push(De),De=Ge();ie&&(Pe=ie(Pe,Ce++))==null||Re.push(Pe)}return Re},q.format=function(ae){if(Array.isArray(ae[0]))return q.formatRows(ae);var ie=new X,ge=[];return ae.forEach(function(me){for(var Re in me)ie.has(Re)||ge.push(ie.add(Re))}),[ge.map(j).join(c)].concat(ae.map(function(me){return ge.map(function(Re){return j(me[Re])}).join(c)})).join(`
17
17
  `)},q.formatRows=function(ae){return ae.map(N).join(`
18
18
  `)};function N(ae){return ae.map(j).join(c)}function j(ae){return w.test(ae)?'"'+ae.replace(/\"/g,'""')+'"':ae}return q},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var oo,Go,Vo,vu,Pl=this[te(this,"requestAnimationFrame")]||function(c){setTimeout(c,17)};e.timer=function(){Rl.apply(this,arguments)};function Rl(c,g,w){var C=arguments.length;C<2&&(g=0),C<3&&(w=Date.now());var q=w+g,E={c,t:q,n:null};return Go?Go.n=E:oo=E,Go=E,Vo||(vu=clearTimeout(vu),Vo=1,Pl(_i)),E}function _i(){var c=lo(),g=Wo()-c;g>24?(isFinite(g)&&(clearTimeout(vu),vu=setTimeout(_i,g)),Vo=0):(Vo=1,Pl(_i))}e.timer.flush=function(){lo(),Wo()};function lo(){for(var c=Date.now(),g=oo;g;)c>=g.t&&g.c(c-g.t)&&(g.c=null),g=g.n;return c}function Wo(){for(var c,g=oo,w=1/0;g;)g.c?(g.t<w&&(w=g.t),g=(c=g).n):g=c?c.n=g.n:oo=g.n;return Go=c,w}e.round=function(c,g){return g?Math.round(c*(g=Math.pow(10,g)))/g:Math.round(c)},e.geom={};function zl(c){return c[0]}function bs(c){return c[1]}e.geom.hull=function(c){var g=zl,w=bs;if(arguments.length)return C(c);function C(q){if(q.length<3)return[];var E=At(g),G=At(w),N,j=q.length,ae=[],ie=[];for(N=0;N<j;N++)ae.push([+E.call(this,q[N],N),+G.call(this,q[N],N),N]);for(ae.sort(Zc),N=0;N<j;N++)ie.push([ae[N][0],-ae[N][1]]);var ge=Mf(ae),me=Mf(ie),Re=me[0]===ge[0],Ye=me[me.length-1]===ge[ge.length-1],ye=[];for(N=ge.length-1;N>=0;--N)ye.push(q[ae[ge[N]][2]]);for(N=+Re;N<me.length-Ye;++N)ye.push(q[ae[me[N]][2]]);return ye}return C.x=function(q){return arguments.length?(g=q,C):g},C.y=function(q){return arguments.length?(w=q,C):w},C};function Mf(c){for(var g=c.length,w=[0,1],C=2,q=2;q<g;q++){for(;C>1&&St(c[w[C-2]],c[w[C-1]],c[q])<=0;)--C;w[C++]=q}return w.slice(0,C)}function Zc(c,g){return c[0]-g[0]||c[1]-g[1]}e.geom.polygon=function(c){return Se(c,_s),c};var _s=e.geom.polygon.prototype=[];_s.area=function(){for(var c=-1,g=this.length,w,C=this[g-1],q=0;++c<g;)w=C,C=this[c],q+=w[1]*C[0]-w[0]*C[1];return q*.5},_s.centroid=function(c){var g=-1,w=this.length,C=0,q=0,E,G=this[w-1],N;for(arguments.length||(c=-1/(6*this.area()));++g<w;)E=G,G=this[g],N=E[0]*G[1]-G[0]*E[1],C+=(E[0]+G[0])*N,q+=(E[1]+G[1])*N;return[C*c,q*c]},_s.clip=function(c){for(var g,w=Zo(c),C=-1,q=this.length-Zo(this),E,G,N=this[q-1],j,ae,ie;++C<q;){for(g=c.slice(),c.length=0,j=this[C],ae=g[(G=g.length-w)-1],E=-1;++E<G;)ie=g[E],xs(ie,N,j)?(xs(ae,N,j)||c.push(ws(ae,ie,N,j)),c.push(ie)):xs(ae,N,j)&&c.push(ws(ae,ie,N,j)),ae=ie;w&&c.push(c[0]),N=j}return c};function xs(c,g,w){return(w[0]-g[0])*(c[1]-g[1])<(w[1]-g[1])*(c[0]-g[0])}function ws(c,g,w,C){var q=c[0],E=w[0],G=g[0]-q,N=C[0]-E,j=c[1],ae=w[1],ie=g[1]-j,ge=C[1]-ae,me=(N*(j-ae)-ge*(q-E))/(ge*G-N*ie);return[q+me*G,j+me*ie]}function Zo(c){var g=c[0],w=c[c.length-1];return!(g[0]-w[0]||g[1]-w[1])}var so,uo,Oi,Af=[],hu,Nl,Tf=[];function Xc(){$o(this),this.edge=this.site=this.circle=null}function Ms(c){var g=Af.pop()||new Xc;return g.site=c,g}function Ui(c){co(c),Oi.remove(c),Af.push(c),$o(c)}function As(c){var g=c.circle,w=g.x,C=g.cy,q={x:w,y:C},E=c.P,G=c.N,N=[c];Ui(c);for(var j=E;j.circle&&_(w-j.circle.x)<ke&&_(C-j.circle.cy)<ke;)E=j.P,N.unshift(j),Ui(j),j=E;N.unshift(j),co(j);for(var ae=G;ae.circle&&_(w-ae.circle.x)<ke&&_(C-ae.circle.cy)<ke;)G=ae.N,N.push(ae),Ui(ae),ae=G;N.push(ae),co(ae);var ie=N.length,ge;for(ge=1;ge<ie;++ge)ae=N[ge],j=N[ge-1],Gi(ae.edge,j.site,ae.site,q);j=N[0],ae=N[ie-1],ae.edge=Il(j.site,ae.site,null,q),fo(j),fo(ae)}function jc(c){for(var g=c.x,w=c.y,C,q,E,G,N=Oi._;N;)if(E=Ts(N,w)-g,E>ke)N=N.L;else if(G=g-Fv(N,w),G>ke){if(!N.R){C=N;break}N=N.R}else{E>-ke?(C=N.P,q=N):G>-ke?(C=N,q=N.N):C=q=N;break}var j=Ms(c);if(Oi.insert(C,j),!(!C&&!q)){if(C===q){co(C),q=Ms(C.site),Oi.insert(j,q),j.edge=q.edge=Il(C.site,j.site),fo(C),fo(q);return}if(!q){j.edge=Il(C.site,j.site);return}co(C),co(q);var ae=C.site,ie=ae.x,ge=ae.y,me=c.x-ie,Re=c.y-ge,Ye=q.site,ye=Ye.x-ie,Ce=Ye.y-ge,De=2*(me*Ce-Re*ye),Ue=me*me+Re*Re,Ge=ye*ye+Ce*Ce,Pe={x:(Ce*Ue-Re*Ge)/De+ie,y:(me*Ge-ye*Ue)/De+ge};Gi(q.edge,ae,Ye,Pe),j.edge=Il(ae,c,null,Pe),q.edge=Il(c,Ye,null,Pe),fo(C),fo(q)}}function Ts(c,g){var w=c.site,C=w.x,q=w.y,E=q-g;if(!E)return C;var G=c.P;if(!G)return-1/0;w=G.site;var N=w.x,j=w.y,ae=j-g;if(!ae)return N;var ie=N-C,ge=1/E-1/ae,me=ie/ae;return ge?(-me+Math.sqrt(me*me-2*ge*(ie*ie/(-2*ae)-j+ae/2+q-E/2)))/ge+C:(C+N)/2}function Fv(c,g){var w=c.N;if(w)return Ts(w,g);var C=c.site;return C.y===g?C.x:1/0}function Xo(c){this.site=c,this.edges=[]}Xo.prototype.prepare=function(){for(var c=this.edges,g=c.length,w;g--;)w=c[g].edge,(!w.b||!w.a)&&c.splice(g,1);return c.sort(Fl),c.length};function kf(c){for(var g=c[0][0],w=c[1][0],C=c[0][1],q=c[1][1],E,G,N,j,ae=uo,ie=ae.length,ge,me,Re,Ye,ye,Ce;ie--;)if(ge=ae[ie],!(!ge||!ge.prepare()))for(Re=ge.edges,Ye=Re.length,me=0;me<Ye;)Ce=Re[me].end(),N=Ce.x,j=Ce.y,ye=Re[++me%Ye].start(),E=ye.x,G=ye.y,(_(N-E)>ke||_(j-G)>ke)&&(Re.splice(me,0,new jo(Hv(ge.site,Ce,_(N-g)<ke&&q-j>ke?{x:g,y:_(E-g)<ke?G:q}:_(j-q)<ke&&w-N>ke?{x:_(G-q)<ke?E:w,y:q}:_(N-w)<ke&&j-C>ke?{x:w,y:_(E-w)<ke?G:C}:_(j-C)<ke&&N-g>ke?{x:_(G-C)<ke?E:g,y:C}:null),ge.site,null)),++Ye)}function Fl(c,g){return g.angle-c.angle}function Jc(){$o(this),this.x=this.y=this.arc=this.site=this.cy=null}function fo(c){var g=c.P,w=c.N;if(!(!g||!w)){var C=g.site,q=c.site,E=w.site;if(C!==E){var G=q.x,N=q.y,j=C.x-G,ae=C.y-N,ie=E.x-G,Ce=E.y-N,ge=2*(j*Ce-ae*ie);if(!(ge>=-$e)){var me=j*j+ae*ae,Re=ie*ie+Ce*Ce,Ye=(Ce*me-ae*Re)/ge,ye=(j*Re-ie*me)/ge,Ce=ye+N,De=Tf.pop()||new Jc;De.arc=c,De.site=q,De.x=Ye+G,De.y=Ce+Math.sqrt(Ye*Ye+ye*ye),De.cy=Ce,c.circle=De;for(var Ue=null,Ge=Nl._;Ge;)if(De.y<Ge.y||De.y===Ge.y&&De.x<=Ge.x)if(Ge.L)Ge=Ge.L;else{Ue=Ge.P;break}else if(Ge.R)Ge=Ge.R;else{Ue=Ge;break}Nl.insert(Ue,De),Ue||(hu=De)}}}}function co(c){var g=c.circle;g&&(g.P||(hu=g.N),Nl.remove(g),Tf.push(g),$o(g),c.circle=null)}function Sf(c,g,w,C){return function(q){var E=q.a,G=q.b,N=E.x,j=E.y,ae=G.x,ie=G.y,ge=0,me=1,Re=ae-N,Ye=ie-j,ye;if(ye=c-N,!(!Re&&ye>0)){if(ye/=Re,Re<0){if(ye<ge)return;ye<me&&(me=ye)}else if(Re>0){if(ye>me)return;ye>ge&&(ge=ye)}if(ye=w-N,!(!Re&&ye<0)){if(ye/=Re,Re<0){if(ye>me)return;ye>ge&&(ge=ye)}else if(Re>0){if(ye<ge)return;ye<me&&(me=ye)}if(ye=g-j,!(!Ye&&ye>0)){if(ye/=Ye,Ye<0){if(ye<ge)return;ye<me&&(me=ye)}else if(Ye>0){if(ye>me)return;ye>ge&&(ge=ye)}if(ye=C-j,!(!Ye&&ye<0)){if(ye/=Ye,Ye<0){if(ye>me)return;ye>ge&&(ge=ye)}else if(Ye>0){if(ye<ge)return;ye<me&&(me=ye)}return ge>0&&(q.a={x:N+ge*Re,y:j+ge*Ye}),me<1&&(q.b={x:N+me*Re,y:j+me*Ye}),q}}}}}}function xi(c){for(var g=so,w=Sf(c[0][0],c[0][1],c[1][0],c[1][1]),C=g.length,q;C--;)q=g[C],(!Iv(q,c)||!w(q)||_(q.a.x-q.b.x)<ke&&_(q.a.y-q.b.y)<ke)&&(q.a=q.b=null,g.splice(C,1))}function Iv(c,g){var w=c.b;if(w)return!0;var C=c.a,q=g[0][0],E=g[1][0],G=g[0][1],N=g[1][1],j=c.l,ae=c.r,ie=j.x,ge=j.y,me=ae.x,Re=ae.y,Ye=(ie+me)/2,ye=(ge+Re)/2,Ce,De;if(Re===ge){if(Ye<q||Ye>=E)return;if(ie>me){if(!C)C={x:Ye,y:G};else if(C.y>=N)return;w={x:Ye,y:N}}else{if(!C)C={x:Ye,y:N};else if(C.y<G)return;w={x:Ye,y:G}}}else if(Ce=(ie-me)/(Re-ge),De=ye-Ce*Ye,Ce<-1||Ce>1)if(ie>me){if(!C)C={x:(G-De)/Ce,y:G};else if(C.y>=N)return;w={x:(N-De)/Ce,y:N}}else{if(!C)C={x:(N-De)/Ce,y:N};else if(C.y<G)return;w={x:(G-De)/Ce,y:G}}else if(ge<Re){if(!C)C={x:q,y:Ce*q+De};else if(C.x>=E)return;w={x:E,y:Ce*E+De}}else{if(!C)C={x:E,y:Ce*E+De};else if(C.x<q)return;w={x:q,y:Ce*q+De}}return c.a=C,c.b=w,!0}function Yi(c,g){this.l=c,this.r=g,this.a=this.b=null}function Il(c,g,w,C){var q=new Yi(c,g);return so.push(q),w&&Gi(q,c,g,w),C&&Gi(q,g,c,C),uo[c.i].edges.push(new jo(q,c,g)),uo[g.i].edges.push(new jo(q,g,c)),q}function Hv(c,g,w){var C=new Yi(c,null);return C.a=g,C.b=w,so.push(C),C}function Gi(c,g,w,C){!c.a&&!c.b?(c.a=C,c.l=g,c.r=w):c.l===w?c.b=C:c.a=C}function jo(c,g,w){var C=c.a,q=c.b;this.edge=c,this.site=g,this.angle=w?Math.atan2(w.y-g.y,w.x-g.x):c.l===g?Math.atan2(q.x-C.x,C.y-q.y):Math.atan2(C.x-q.x,q.y-C.y)}jo.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function Jo(){this._=null}function $o(c){c.U=c.C=c.L=c.R=c.P=c.N=null}Jo.prototype={insert:function(c,g){var w,C,q;if(c){if(g.P=c,g.N=c.N,c.N&&(c.N.P=g),c.N=g,c.R){for(c=c.R;c.L;)c=c.L;c.L=g}else c.R=g;w=c}else this._?(c=du(this._),g.P=null,g.N=c,c.P=c.L=g,w=c):(g.P=g.N=null,this._=g,w=null);for(g.L=g.R=null,g.U=w,g.C=!0,c=g;w&&w.C;)C=w.U,w===C.L?(q=C.R,q&&q.C?(w.C=q.C=!1,C.C=!0,c=C):(c===w.R&&(vo(this,w),c=w,w=c.U),w.C=!1,C.C=!0,ks(this,C))):(q=C.L,q&&q.C?(w.C=q.C=!1,C.C=!0,c=C):(c===w.L&&(ks(this,w),c=w,w=c.U),w.C=!1,C.C=!0,vo(this,C))),w=c.U;this._.C=!1},remove:function(c){c.N&&(c.N.P=c.P),c.P&&(c.P.N=c.N),c.N=c.P=null;var g=c.U,w,C=c.L,q=c.R,E,G;if(C?q?E=du(q):E=C:E=q,g?g.L===c?g.L=E:g.R=E:this._=E,C&&q?(G=E.C,E.C=c.C,E.L=C,C.U=E,E!==q?(g=E.U,E.U=c.U,c=E.R,g.L=c,E.R=q,q.U=E):(E.U=g,g=E,c=E.R)):(G=c.C,c=E),c&&(c.U=g),!G){if(c&&c.C){c.C=!1;return}do{if(c===this._)break;if(c===g.L){if(w=g.R,w.C&&(w.C=!1,g.C=!0,vo(this,g),w=g.R),w.L&&w.L.C||w.R&&w.R.C){(!w.R||!w.R.C)&&(w.L.C=!1,w.C=!0,ks(this,w),w=g.R),w.C=g.C,g.C=w.R.C=!1,vo(this,g),c=this._;break}}else if(w=g.L,w.C&&(w.C=!1,g.C=!0,ks(this,g),w=g.L),w.L&&w.L.C||w.R&&w.R.C){(!w.L||!w.L.C)&&(w.R.C=!1,w.C=!0,vo(this,w),w=g.L),w.C=g.C,g.C=w.L.C=!1,ks(this,g),c=this._;break}w.C=!0,c=g,g=g.U}while(!c.C);c&&(c.C=!1)}}};function vo(c,g){var w=g,C=g.R,q=w.U;q?q.L===w?q.L=C:q.R=C:c._=C,C.U=q,w.U=C,w.R=C.L,w.R&&(w.R.U=w),C.L=w}function ks(c,g){var w=g,C=g.L,q=w.U;q?q.L===w?q.L=C:q.R=C:c._=C,C.U=q,w.U=C,w.L=C.R,w.L&&(w.L.U=w),C.R=w}function du(c){for(;c.L;)c=c.L;return c}function Ss(c,g){var w=c.sort(Cs).pop(),C,q,E;for(so=[],uo=new Array(c.length),Oi=new Jo,Nl=new Jo;;)if(E=hu,w&&(!E||w.y<E.y||w.y===E.y&&w.x<E.x))(w.x!==C||w.y!==q)&&(uo[w.i]=new Xo(w),jc(w),C=w.x,q=w.y),w=c.pop();else if(E)As(E.arc);else break;g&&(xi(g),kf(g));var G={cells:uo,edges:so};return Oi=Nl=so=uo=null,G}function Cs(c,g){return g.y-c.y||g.x-c.x}e.geom.voronoi=function(c){var g=zl,w=bs,C=g,q=w,E=Ko;if(c)return G(c);function G(j){var ae=new Array(j.length),ie=E[0][0],ge=E[0][1],me=E[1][0],Re=E[1][1];return Ss(N(j),E).cells.forEach(function(Ye,ye){var Ce=Ye.edges,De=Ye.site,Ue=ae[ye]=Ce.length?Ce.map(function(Ge){var Pe=Ge.start();return[Pe.x,Pe.y]}):De.x>=ie&&De.x<=me&&De.y>=ge&&De.y<=Re?[[ie,Re],[me,Re],[me,ge],[ie,ge]]:[];Ue.point=j[ye]}),ae}function N(j){return j.map(function(ae,ie){return{x:Math.round(C(ae,ie)/ke)*ke,y:Math.round(q(ae,ie)/ke)*ke,i:ie}})}return G.links=function(j){return Ss(N(j)).edges.filter(function(ae){return ae.l&&ae.r}).map(function(ae){return{source:j[ae.l.i],target:j[ae.r.i]}})},G.triangles=function(j){var ae=[];return Ss(N(j)).cells.forEach(function(ie,ge){for(var me=ie.site,Re=ie.edges.sort(Fl),Ye=-1,ye=Re.length,Ce,De,Ue=Re[ye-1].edge,Ge=Ue.l===me?Ue.r:Ue.l;++Ye<ye;)Ce=Ue,De=Ge,Ue=Re[Ye].edge,Ge=Ue.l===me?Ue.r:Ue.l,ge<De.i&&ge<Ge.i&&Hl(me,De,Ge)<0&&ae.push([j[ge],j[De.i],j[Ge.i]])}),ae},G.x=function(j){return arguments.length?(C=At(g=j),G):g},G.y=function(j){return arguments.length?(q=At(w=j),G):w},G.clipExtent=function(j){return arguments.length?(E=j==null?Ko:j,G):E===Ko?null:E},G.size=function(j){return arguments.length?G.clipExtent(j&&[[0,0],j]):E===Ko?null:E&&E[1]},G};var Ko=[[-1e6,-1e6],[1e6,1e6]];function Hl(c,g,w){return(c.x-w.x)*(g.y-c.y)-(c.x-g.x)*(w.y-c.y)}e.geom.delaunay=function(c){return e.geom.voronoi().triangles(c)},e.geom.quadtree=function(c,g,w,C,q){var E=zl,G=bs,N;if(N=arguments.length)return E=Bl,G=pu,N===3&&(q=w,C=g,w=g=0),j(c);function j(ae){var ie,ge=At(E),me=At(G),Re,Ye,ye,Ce,De,Ue,Ge,Pe;if(g!=null)De=g,Ue=w,Ge=C,Pe=q;else if(Ge=Pe=-(De=Ue=1/0),Re=[],Ye=[],Ce=ae.length,N)for(ye=0;ye<Ce;++ye)ie=ae[ye],ie.x<De&&(De=ie.x),ie.y<Ue&&(Ue=ie.y),ie.x>Ge&&(Ge=ie.x),ie.y>Pe&&(Pe=ie.y),Re.push(ie.x),Ye.push(ie.y);else for(ye=0;ye<Ce;++ye){var _r=+ge(ie=ae[ye],ye),Or=+me(ie,ye);_r<De&&(De=_r),Or<Ue&&(Ue=Or),_r>Ge&&(Ge=_r),Or>Pe&&(Pe=Or),Re.push(_r),Ye.push(Or)}var Wr=Ge-De,Gr=Pe-Ue;Wr>Gr?Pe=Ue+Wr:Ge=De+Gr;function Jr(Qr,ht,jt,Zn,on,Fr,_t,wt){if(!(isNaN(jt)||isNaN(Zn)))if(Qr.leaf){var Jt=Qr.x,Nn=Qr.y;if(Jt!=null)if(_(Jt-jt)+_(Nn-Zn)<.01)$r(Qr,ht,jt,Zn,on,Fr,_t,wt);else{var oa=Qr.point;Qr.x=Qr.y=Qr.point=null,$r(Qr,oa,Jt,Nn,on,Fr,_t,wt),$r(Qr,ht,jt,Zn,on,Fr,_t,wt)}else Qr.x=jt,Qr.y=Zn,Qr.point=ht}else $r(Qr,ht,jt,Zn,on,Fr,_t,wt)}function $r(Qr,ht,jt,Zn,on,Fr,_t,wt){var Jt=(on+_t)*.5,Nn=(Fr+wt)*.5,oa=jt>=Jt,Da=Zn>=Nn,ja=Da<<1|oa;Qr.leaf=!1,Qr=Qr.nodes[ja]||(Qr.nodes[ja]=gu()),oa?on=Jt:_t=Jt,Da?Fr=Nn:wt=Nn,Jr(Qr,ht,jt,Zn,on,Fr,_t,wt)}var bt=gu();if(bt.add=function(Qr){Jr(bt,Qr,+ge(Qr,++ye),+me(Qr,ye),De,Ue,Ge,Pe)},bt.visit=function(Qr){oi(Qr,bt,De,Ue,Ge,Pe)},bt.find=function(Qr){return mu(bt,Qr[0],Qr[1],De,Ue,Ge,Pe)},ye=-1,g==null){for(;++ye<Ce;)Jr(bt,ae[ye],Re[ye],Ye[ye],De,Ue,Ge,Pe);--ye}else ae.forEach(bt.add);return Re=Ye=ae=ie=null,bt}return j.x=function(ae){return arguments.length?(E=ae,j):E},j.y=function(ae){return arguments.length?(G=ae,j):G},j.extent=function(ae){return arguments.length?(ae==null?g=w=C=q=null:(g=+ae[0][0],w=+ae[0][1],C=+ae[1][0],q=+ae[1][1]),j):g==null?null:[[g,w],[C,q]]},j.size=function(ae){return arguments.length?(ae==null?g=w=C=q=null:(g=w=0,C=+ae[0],q=+ae[1]),j):g==null?null:[C-g,q-w]},j};function Bl(c){return c.x}function pu(c){return c.y}function gu(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function oi(c,g,w,C,q,E){if(!c(g,w,C,q,E)){var G=(w+q)*.5,N=(C+E)*.5,j=g.nodes;j[0]&&oi(c,j[0],w,C,G,N),j[1]&&oi(c,j[1],G,C,q,N),j[2]&&oi(c,j[2],w,N,G,E),j[3]&&oi(c,j[3],G,N,q,E)}}function mu(c,g,w,C,q,E,G){var N=1/0,j;return function ae(ie,ge,me,Re,Ye){if(!(ge>E||me>G||Re<C||Ye<q)){if(ye=ie.point){var ye,Ce=g-ie.x,De=w-ie.y,Ue=Ce*Ce+De*De;if(Ue<N){var Ge=Math.sqrt(N=Ue);C=g-Ge,q=w-Ge,E=g+Ge,G=w+Ge,j=ye}}for(var Pe=ie.nodes,_r=(ge+Re)*.5,Or=(me+Ye)*.5,Wr=g>=_r,Gr=w>=Or,Jr=Gr<<1|Wr,$r=Jr+4;Jr<$r;++Jr)if(ie=Pe[Jr&3])switch(Jr&3){case 0:ae(ie,ge,me,_r,Or);break;case 1:ae(ie,_r,me,Re,Or);break;case 2:ae(ie,ge,Or,_r,Ye);break;case 3:ae(ie,_r,Or,Re,Ye);break}}}(c,C,q,E,G),j}e.interpolateRgb=yu;function yu(c,g){c=e.rgb(c),g=e.rgb(g);var w=c.r,C=c.g,q=c.b,E=g.r-w,G=g.g-C,N=g.b-q;return function(j){return"#"+Kr(Math.round(w+E*j))+Kr(Math.round(C+G*j))+Kr(Math.round(q+N*j))}}e.interpolateObject=Fa;function Fa(c,g){var w={},C={},q;for(q in c)q in g?w[q]=Qo(c[q],g[q]):C[q]=c[q];for(q in g)q in c||(C[q]=g[q]);return function(E){for(q in w)C[q]=w[q](E);return C}}e.interpolateNumber=Kn;function Kn(c,g){return c=+c,g=+g,function(w){return c*(1-w)+g*w}}e.interpolateString=Aa;function Aa(c,g){var w=Vi.lastIndex=Ls.lastIndex=0,C,q,E,G=-1,N=[],j=[];for(c=c+"",g=g+"";(C=Vi.exec(c))&&(q=Ls.exec(g));)(E=q.index)>w&&(E=g.slice(w,E),N[G]?N[G]+=E:N[++G]=E),(C=C[0])===(q=q[0])?N[G]?N[G]+=q:N[++G]=q:(N[++G]=null,j.push({i:G,x:Kn(C,q)})),w=Ls.lastIndex;return w<g.length&&(E=g.slice(w),N[G]?N[G]+=E:N[++G]=E),N.length<2?j[0]?(g=j[0].x,function(ae){return g(ae)+""}):function(){return g}:(g=j.length,function(ae){for(var ie=0,ge;ie<g;++ie)N[(ge=j[ie]).i]=ge.x(ae);return N.join("")})}var Vi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ls=new RegExp(Vi.source,"g");e.interpolate=Qo;function Qo(c,g){for(var w=e.interpolators.length,C;--w>=0&&!(C=e.interpolators[w](c,g)););return C}e.interpolators=[function(c,g){var w=typeof g;return(w==="string"?Dn.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?yu:Aa:g instanceof pn?yu:Array.isArray(g)?Ol:w==="object"&&isNaN(g)?Fa:Kn)(c,g)}],e.interpolateArray=Ol;function Ol(c,g){var w=[],C=[],q=c.length,E=g.length,G=Math.min(c.length,g.length),N;for(N=0;N<G;++N)w.push(Qo(c[N],g[N]));for(;N<q;++N)C[N]=c[N];for(;N<E;++N)C[N]=g[N];return function(j){for(N=0;N<G;++N)C[N]=w[N](j);return C}}var Cf=function(){return V},$c=e.map({linear:Cf,poly:Qc,quad:function(){return Df},cubic:function(){return Ef},sin:function(){return qs},exp:function(){return Ds},circle:function(){return wi},elastic:bu,back:Es,bounce:function(){return _u}}),Bv=e.map({in:V,out:Lf,"in-out":qf,"out-in":function(c){return qf(Lf(c))}});e.ease=function(c){var g=c.indexOf("-"),w=g>=0?c.slice(0,g):c,C=g>=0?c.slice(g+1):"in";return w=$c.get(w)||Cf,C=Bv.get(C)||V,Ov(C(w.apply(null,r.call(arguments,1))))};function Ov(c){return function(g){return g<=0?0:g>=1?1:c(g)}}function Lf(c){return function(g){return 1-c(1-g)}}function qf(c){return function(g){return .5*(g<.5?c(2*g):2-c(2-2*g))}}function Df(c){return c*c}function Ef(c){return c*c*c}function Kc(c){if(c<=0)return 0;if(c>=1)return 1;var g=c*c,w=g*c;return 4*(c<.5?w:3*(c-g)+w-.75)}function Qc(c){return function(g){return Math.pow(g,c)}}function qs(c){return 1-Math.cos(c*Hr)}function Ds(c){return Math.pow(2,10*(c-1))}function wi(c){return 1-Math.sqrt(1-c*c)}function bu(c,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/qr*Math.asin(1/c):(c=1,w=g/4),function(C){return 1+c*Math.pow(2,-10*C)*Math.sin((C-w)*qr/g)}}function Es(c){return c||(c=1.70158),function(g){return g*g*((c+1)*g-c)}}function _u(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=e0;function e0(c,g){c=e.hcl(c),g=e.hcl(g);var w=c.h,C=c.c,q=c.l,E=g.h-w,G=g.c-C,N=g.l-q;return isNaN(G)&&(G=0,C=isNaN(C)?g.c:C),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return pa(w+E*j,C+G*j,q+N*j)+""}}e.interpolateHsl=Pf;function Pf(c,g){c=e.hsl(c),g=e.hsl(g);var w=c.h,C=c.s,q=c.l,E=g.h-w,G=g.s-C,N=g.l-q;return isNaN(G)&&(G=0,C=isNaN(C)?g.s:C),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return da(w+E*j,C+G*j,q+N*j)+""}}e.interpolateLab=Uv;function Uv(c,g){c=e.lab(c),g=e.lab(g);var w=c.l,C=c.a,q=c.b,E=g.l-w,G=g.a-C,N=g.b-q;return function(j){return ms(w+E*j,C+G*j,q+N*j)+""}}e.interpolateRound=ho;function ho(c,g){return g-=c,function(w){return Math.round(c+g*w)}}e.transform=function(c){var g=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var C=g.transform.baseVal.consolidate()}return new xu(C?C.matrix:Rf)})(c)};function xu(c){var g=[c.a,c.b],w=[c.c,c.d],C=Ps(g),q=Ul(g,w),E=Ps(Rs(w,g,-q))||0;g[0]*w[1]<w[0]*g[1]&&(g[0]*=-1,g[1]*=-1,C*=-1,q*=-1),this.rotate=(C?Math.atan2(g[1],g[0]):Math.atan2(-w[0],w[1]))*xt,this.translate=[c.e,c.f],this.scale=[C,E],this.skew=E?Math.atan2(q,E)*xt:0}xu.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Ul(c,g){return c[0]*g[0]+c[1]*g[1]}function Ps(c){var g=Math.sqrt(Ul(c,c));return g&&(c[0]/=g,c[1]/=g),g}function Rs(c,g,w){return c[0]+=w*g[0],c[1]+=w*g[1],c}var Rf={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=wu;function po(c){return c.length?c.pop()+",":""}function r0(c,g,w,C){if(c[0]!==g[0]||c[1]!==g[1]){var q=w.push("translate(",null,",",null,")");C.push({i:q-4,x:Kn(c[0],g[0])},{i:q-2,x:Kn(c[1],g[1])})}else(g[0]||g[1])&&w.push("translate("+g+")")}function zf(c,g,w,C){c!==g?(c-g>180?g+=360:g-c>180&&(c+=360),C.push({i:w.push(po(w)+"rotate(",null,")")-2,x:Kn(c,g)})):g&&w.push(po(w)+"rotate("+g+")")}function t0(c,g,w,C){c!==g?C.push({i:w.push(po(w)+"skewX(",null,")")-2,x:Kn(c,g)}):g&&w.push(po(w)+"skewX("+g+")")}function Nf(c,g,w,C){if(c[0]!==g[0]||c[1]!==g[1]){var q=w.push(po(w)+"scale(",null,",",null,")");C.push({i:q-4,x:Kn(c[0],g[0])},{i:q-2,x:Kn(c[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(po(w)+"scale("+g+")")}function wu(c,g){var w=[],C=[];return c=e.transform(c),g=e.transform(g),r0(c.translate,g.translate,w,C),zf(c.rotate,g.rotate,w,C),t0(c.skew,g.skew,w,C),Nf(c.scale,g.scale,w,C),c=g=null,function(q){for(var E=-1,G=C.length,N;++E<G;)w[(N=C[E]).i]=N.x(q);return w.join("")}}function Ff(c,g){return g=(g-=c=+c)||1/g,function(w){return(w-c)/g}}function If(c,g){return g=(g-=c=+c)||1/g,function(w){return Math.max(0,Math.min(1,(w-c)/g))}}e.layout={},e.layout.bundle=function(){return function(c){for(var g=[],w=-1,C=c.length;++w<C;)g.push(Yv(c[w]));return g}};function Yv(c){for(var g=c.source,w=c.target,C=Mi(g,w),q=[g];g!==C;)g=g.parent,q.push(g);for(var E=q.length;w!==C;)q.splice(E,0,w),w=w.parent;return q}function Hf(c){for(var g=[],w=c.parent;w!=null;)g.push(c),c=w,w=w.parent;return g.push(c),g}function Mi(c,g){if(c===g)return c;for(var w=Hf(c),C=Hf(g),q=w.pop(),E=C.pop(),G=null;q===E;)G=q,q=w.pop(),E=C.pop();return G}e.layout.chord=function(){var c={},g,w,C,q,E=0,G,N,j;function ae(){var ge={},me=[],Re=e.range(q),Ye=[],ye,Ce,De,Ue,Ge;for(g=[],w=[],ye=0,Ue=-1;++Ue<q;){for(Ce=0,Ge=-1;++Ge<q;)Ce+=C[Ue][Ge];me.push(Ce),Ye.push(e.range(q)),ye+=Ce}for(G&&Re.sort(function(bt,Qr){return G(me[bt],me[Qr])}),N&&Ye.forEach(function(bt,Qr){bt.sort(function(ht,jt){return N(C[Qr][ht],C[Qr][jt])})}),ye=(qr-E*q)/ye,Ce=0,Ue=-1;++Ue<q;){for(De=Ce,Ge=-1;++Ge<q;){var Pe=Re[Ue],_r=Ye[Pe][Ge],Or=C[Pe][_r],Wr=Ce,Gr=Ce+=Or*ye;ge[Pe+"-"+_r]={index:Pe,subindex:_r,startAngle:Wr,endAngle:Gr,value:Or}}w[Pe]={index:Pe,startAngle:De,endAngle:Ce,value:me[Pe]},Ce+=E}for(Ue=-1;++Ue<q;)for(Ge=Ue-1;++Ge<q;){var Jr=ge[Ue+"-"+Ge],$r=ge[Ge+"-"+Ue];(Jr.value||$r.value)&&g.push(Jr.value<$r.value?{source:$r,target:Jr}:{source:Jr,target:$r})}j&&ie()}function ie(){g.sort(function(ge,me){return j((ge.source.value+ge.target.value)/2,(me.source.value+me.target.value)/2)})}return c.matrix=function(ge){return arguments.length?(q=(C=ge)&&C.length,g=w=null,c):C},c.padding=function(ge){return arguments.length?(E=ge,g=w=null,c):E},c.sortGroups=function(ge){return arguments.length?(G=ge,g=w=null,c):G},c.sortSubgroups=function(ge){return arguments.length?(N=ge,g=null,c):N},c.sortChords=function(ge){return arguments.length?(j=ge,g&&ie(),c):j},c.chords=function(){return g||ae(),g},c.groups=function(){return w||ae(),w},c},e.layout.force=function(){var c={},g=e.dispatch("start","tick","end"),w,C=[1,1],q,E,G=.9,N=a0,j=Gv,ae=-30,ie=Vv,ge=.1,me=.64,Re=[],Ye=[],ye,Ce,De;function Ue(Pe){return function(_r,Or,Wr,Gr){if(_r.point!==Pe){var Jr=_r.cx-Pe.x,$r=_r.cy-Pe.y,bt=Gr-Or,Qr=Jr*Jr+$r*$r;if(bt*bt/me<Qr){if(Qr<ie){var ht=_r.charge/Qr;Pe.px-=Jr*ht,Pe.py-=$r*ht}return!0}if(_r.point&&Qr&&Qr<ie){var ht=_r.pointCharge/Qr;Pe.px-=Jr*ht,Pe.py-=$r*ht}}return!_r.charge}}c.tick=function(){if((E*=.99)<.005)return w=null,g.end({type:"end",alpha:E=0}),!0;var Pe=Re.length,_r=Ye.length,Or,Wr,Gr,Jr,$r,bt,Qr,ht,jt;for(Wr=0;Wr<_r;++Wr)Gr=Ye[Wr],Jr=Gr.source,$r=Gr.target,ht=$r.x-Jr.x,jt=$r.y-Jr.y,(bt=ht*ht+jt*jt)&&(bt=E*Ce[Wr]*((bt=Math.sqrt(bt))-ye[Wr])/bt,ht*=bt,jt*=bt,$r.x-=ht*(Qr=Jr.weight+$r.weight?Jr.weight/(Jr.weight+$r.weight):.5),$r.y-=jt*Qr,Jr.x+=ht*(Qr=1-Qr),Jr.y+=jt*Qr);if((Qr=E*ge)&&(ht=C[0]/2,jt=C[1]/2,Wr=-1,Qr))for(;++Wr<Pe;)Gr=Re[Wr],Gr.x+=(ht-Gr.x)*Qr,Gr.y+=(jt-Gr.y)*Qr;if(ae)for(el(Or=e.geom.quadtree(Re),E,De),Wr=-1;++Wr<Pe;)(Gr=Re[Wr]).fixed||Or.visit(Ue(Gr));for(Wr=-1;++Wr<Pe;)Gr=Re[Wr],Gr.fixed?(Gr.x=Gr.px,Gr.y=Gr.py):(Gr.x-=(Gr.px-(Gr.px=Gr.x))*G,Gr.y-=(Gr.py-(Gr.py=Gr.y))*G);g.tick({type:"tick",alpha:E})},c.nodes=function(Pe){return arguments.length?(Re=Pe,c):Re},c.links=function(Pe){return arguments.length?(Ye=Pe,c):Ye},c.size=function(Pe){return arguments.length?(C=Pe,c):C},c.linkDistance=function(Pe){return arguments.length?(N=typeof Pe=="function"?Pe:+Pe,c):N},c.distance=c.linkDistance,c.linkStrength=function(Pe){return arguments.length?(j=typeof Pe=="function"?Pe:+Pe,c):j},c.friction=function(Pe){return arguments.length?(G=+Pe,c):G},c.charge=function(Pe){return arguments.length?(ae=typeof Pe=="function"?Pe:+Pe,c):ae},c.chargeDistance=function(Pe){return arguments.length?(ie=Pe*Pe,c):Math.sqrt(ie)},c.gravity=function(Pe){return arguments.length?(ge=+Pe,c):ge},c.theta=function(Pe){return arguments.length?(me=Pe*Pe,c):Math.sqrt(me)},c.alpha=function(Pe){return arguments.length?(Pe=+Pe,E?Pe>0?E=Pe:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:E=0})):Pe>0&&(g.start({type:"start",alpha:E=Pe}),w=Rl(c.tick)),c):E},c.start=function(){var Pe,_r=Re.length,Or=Ye.length,Wr=C[0],Gr=C[1],Jr,$r;for(Pe=0;Pe<_r;++Pe)($r=Re[Pe]).index=Pe,$r.weight=0;for(Pe=0;Pe<Or;++Pe)$r=Ye[Pe],typeof $r.source=="number"&&($r.source=Re[$r.source]),typeof $r.target=="number"&&($r.target=Re[$r.target]),++$r.source.weight,++$r.target.weight;for(Pe=0;Pe<_r;++Pe)$r=Re[Pe],isNaN($r.x)&&($r.x=bt("x",Wr)),isNaN($r.y)&&($r.y=bt("y",Gr)),isNaN($r.px)&&($r.px=$r.x),isNaN($r.py)&&($r.py=$r.y);if(ye=[],typeof N=="function")for(Pe=0;Pe<Or;++Pe)ye[Pe]=+N.call(this,Ye[Pe],Pe);else for(Pe=0;Pe<Or;++Pe)ye[Pe]=N;if(Ce=[],typeof j=="function")for(Pe=0;Pe<Or;++Pe)Ce[Pe]=+j.call(this,Ye[Pe],Pe);else for(Pe=0;Pe<Or;++Pe)Ce[Pe]=j;if(De=[],typeof ae=="function")for(Pe=0;Pe<_r;++Pe)De[Pe]=+ae.call(this,Re[Pe],Pe);else for(Pe=0;Pe<_r;++Pe)De[Pe]=ae;function bt(Qr,ht){if(!Jr){for(Jr=new Array(_r),on=0;on<_r;++on)Jr[on]=[];for(on=0;on<Or;++on){var jt=Ye[on];Jr[jt.source.index].push(jt.target),Jr[jt.target.index].push(jt.source)}}for(var Zn=Jr[Pe],on=-1,Fr=Zn.length,_t;++on<Fr;)if(!isNaN(_t=Zn[on][Qr]))return _t;return Math.random()*ht}return c.resume()},c.resume=function(){return c.alpha(.1)},c.stop=function(){return c.alpha(0)},c.drag=function(){if(q||(q=e.behavior.drag().origin(V).on("dragstart.force",Bf).on("drag.force",Ge).on("dragend.force",Yl)),!arguments.length)return q;this.on("mouseover.force",Of).on("mouseout.force",n0).call(q)};function Ge(Pe){Pe.px=e.event.x,Pe.py=e.event.y,c.resume()}return e.rebind(c,g,"on")};function Bf(c){c.fixed|=2}function Yl(c){c.fixed&=-7}function Of(c){c.fixed|=4,c.px=c.x,c.py=c.y}function n0(c){c.fixed&=-5}function el(c,g,w){var C=0,q=0;if(c.charge=0,!c.leaf)for(var E=c.nodes,G=E.length,N=-1,j;++N<G;)j=E[N],j!=null&&(el(j,g,w),c.charge+=j.charge,C+=j.charge*j.cx,q+=j.charge*j.cy);if(c.point){c.leaf||(c.point.x+=Math.random()-.5,c.point.y+=Math.random()-.5);var ae=g*w[c.point.index];c.charge+=c.pointCharge=ae,C+=ae*c.point.x,q+=ae*c.point.y}c.cx=C/c.charge,c.cy=q/c.charge}var a0=20,Gv=1,Vv=1/0;e.layout.hierarchy=function(){var c=i0,g=Wv,w=Gl;function C(q){var E=[q],G=[],N;for(q.depth=0;(N=E.pop())!=null;)if(G.push(N),(ae=g.call(C,N,N.depth))&&(j=ae.length)){for(var j,ae,ie;--j>=0;)E.push(ie=ae[j]),ie.parent=N,ie.depth=N.depth+1;w&&(N.value=0),N.children=ae}else w&&(N.value=+w.call(C,N,N.depth)||0),delete N.children;return Ia(q,function(ge){var me,Re;c&&(me=ge.children)&&me.sort(c),w&&(Re=ge.parent)&&(Re.value+=ge.value)}),G}return C.sort=function(q){return arguments.length?(c=q,C):c},C.children=function(q){return arguments.length?(g=q,C):g},C.value=function(q){return arguments.length?(w=q,C):w},C.revalue=function(q){return w&&(Ai(q,function(E){E.children&&(E.value=0)}),Ia(q,function(E){var G;E.children||(E.value=+w.call(C,E,E.depth)||0),(G=E.parent)&&(G.value+=E.value)})),q},C};function Wi(c,g){return e.rebind(c,g,"sort","children","value"),c.nodes=c,c.links=Za,c}function Ai(c,g){for(var w=[c];(c=w.pop())!=null;)if(g(c),(q=c.children)&&(C=q.length))for(var C,q;--C>=0;)w.push(q[C])}function Ia(c,g){for(var w=[c],C=[];(c=w.pop())!=null;)if(C.push(c),(G=c.children)&&(E=G.length))for(var q=-1,E,G;++q<E;)w.push(G[q]);for(;(c=C.pop())!=null;)g(c)}function Wv(c){return c.children}function Gl(c){return c.value}function i0(c,g){return g.value-c.value}function Za(c){return e.merge(c.map(function(g){return(g.children||[]).map(function(w){return{source:g,target:w}})}))}e.layout.partition=function(){var c=e.layout.hierarchy(),g=[1,1];function w(E,G,N,j){var ae=E.children;if(E.x=G,E.y=E.depth*j,E.dx=N,E.dy=j,ae&&(ge=ae.length)){var ie=-1,ge,me,Re;for(N=E.value?N/E.value:0;++ie<ge;)w(me=ae[ie],G,Re=me.value*N,j),G+=Re}}function C(E){var G=E.children,N=0;if(G&&(ae=G.length))for(var j=-1,ae;++j<ae;)N=Math.max(N,C(G[j]));return 1+N}function q(E,G){var N=c.call(this,E,G);return w(N[0],0,g[0],g[1]/C(N[0])),N}return q.size=function(E){return arguments.length?(g=E,q):g},Wi(q,c)},e.layout.pie=function(){var c=Number,g=o0,w=0,C=qr,q=0;function E(G){var N=G.length,j=G.map(function(Ue,Ge){return+c.call(E,Ue,Ge)}),ae=+(typeof w=="function"?w.apply(this,arguments):w),ie=(typeof C=="function"?C.apply(this,arguments):C)-ae,ge=Math.min(Math.abs(ie)/N,+(typeof q=="function"?q.apply(this,arguments):q)),me=ge*(ie<0?-1:1),Re=e.sum(j),Ye=Re?(ie-N*me)/Re:0,ye=e.range(N),Ce=[],De;return g!=null&&ye.sort(g===o0?function(Ue,Ge){return j[Ge]-j[Ue]}:function(Ue,Ge){return g(G[Ue],G[Ge])}),ye.forEach(function(Ue){Ce[Ue]={data:G[Ue],value:De=j[Ue],startAngle:ae,endAngle:ae+=De*Ye+me,padAngle:ge}}),Ce}return E.value=function(G){return arguments.length?(c=G,E):c},E.sort=function(G){return arguments.length?(g=G,E):g},E.startAngle=function(G){return arguments.length?(w=G,E):w},E.endAngle=function(G){return arguments.length?(C=G,E):C},E.padAngle=function(G){return arguments.length?(q=G,E):q},E};var o0={};e.layout.stack=function(){var c=V,g=Au,w=Fs,C=s0,q=l0,E=zs;function G(N,j){if(!(Ye=N.length))return N;var ae=N.map(function(Ue,Ge){return c.call(G,Ue,Ge)}),ie=ae.map(function(Ue){return Ue.map(function(Ge,Pe){return[q.call(G,Ge,Pe),E.call(G,Ge,Pe)]})}),ge=g.call(G,ie,j);ae=e.permute(ae,ge),ie=e.permute(ie,ge);var me=w.call(G,ie,j),Re=ae[0].length,Ye,ye,Ce,De;for(Ce=0;Ce<Re;++Ce)for(C.call(G,ae[0][Ce],De=me[Ce],ie[0][Ce][1]),ye=1;ye<Ye;++ye)C.call(G,ae[ye][Ce],De+=ie[ye-1][Ce][1],ie[ye][Ce][1]);return N}return G.values=function(N){return arguments.length?(c=N,G):c},G.order=function(N){return arguments.length?(g=typeof N=="function"?N:Mu.get(N)||Au,G):g},G.offset=function(N){return arguments.length?(w=typeof N=="function"?N:Ns.get(N)||Fs,G):w},G.x=function(N){return arguments.length?(q=N,G):q},G.y=function(N){return arguments.length?(E=N,G):E},G.out=function(N){return arguments.length?(C=N,G):C},G};function l0(c){return c.x}function zs(c){return c.y}function s0(c,g,w){c.y0=g,c.y=w}var Mu=e.map({"inside-out":function(c){var g=c.length,w,C,q=c.map(Zv),E=c.map(Is),G=e.range(g).sort(function(ge,me){return q[ge]-q[me]}),N=0,j=0,ae=[],ie=[];for(w=0;w<g;++w)C=G[w],N<j?(N+=E[C],ae.push(C)):(j+=E[C],ie.push(C));return ie.reverse().concat(ae)},reverse:function(c){return e.range(c.length).reverse()},default:Au}),Ns=e.map({silhouette:function(c){var g=c.length,w=c[0].length,C=[],q=0,E,G,N,j=[];for(G=0;G<w;++G){for(E=0,N=0;E<g;E++)N+=c[E][G][1];N>q&&(q=N),C.push(N)}for(G=0;G<w;++G)j[G]=(q-C[G])/2;return j},wiggle:function(c){var g=c.length,w=c[0],C=w.length,q,E,G,N,j,ae,ie,ge,me,Re=[];for(Re[0]=ge=me=0,E=1;E<C;++E){for(q=0,N=0;q<g;++q)N+=c[q][E][1];for(q=0,j=0,ie=w[E][0]-w[E-1][0];q<g;++q){for(G=0,ae=(c[q][E][1]-c[q][E-1][1])/(2*ie);G<q;++G)ae+=(c[G][E][1]-c[G][E-1][1])/ie;j+=ae*c[q][E][1]}Re[E]=ge-=N?j/N*ie:0,ge<me&&(me=ge)}for(E=0;E<C;++E)Re[E]-=me;return Re},expand:function(c){var g=c.length,w=c[0].length,C=1/g,q,E,G,N=[];for(E=0;E<w;++E){for(q=0,G=0;q<g;q++)G+=c[q][E][1];if(G)for(q=0;q<g;q++)c[q][E][1]/=G;else for(q=0;q<g;q++)c[q][E][1]=C}for(E=0;E<w;++E)N[E]=0;return N},zero:Fs});function Au(c){return e.range(c.length)}function Fs(c){for(var g=-1,w=c[0].length,C=[];++g<w;)C[g]=0;return C}function Zv(c){for(var g=1,w=0,C=c[0][1],q,E=c.length;g<E;++g)(q=c[g][1])>C&&(w=g,C=q);return w}function Is(c){return c.reduce(rl,0)}function rl(c,g){return c+g[1]}e.layout.histogram=function(){var c=!0,g=Number,w=Vl,C=Hs;function q(E,me){for(var N=[],j=E.map(g,this),ae=w.call(this,j,me),ie=C.call(this,ae,j,me),ge,me=-1,Re=j.length,Ye=ie.length-1,ye=c?1:1/Re,Ce;++me<Ye;)ge=N[me]=[],ge.dx=ie[me+1]-(ge.x=ie[me]),ge.y=0;if(Ye>0)for(me=-1;++me<Re;)Ce=j[me],Ce>=ae[0]&&Ce<=ae[1]&&(ge=N[e.bisect(ie,Ce,1,Ye)-1],ge.y+=ye,ge.push(E[me]));return N}return q.value=function(E){return arguments.length?(g=E,q):g},q.range=function(E){return arguments.length?(w=At(E),q):w},q.bins=function(E){return arguments.length?(C=typeof E=="number"?function(G){return tl(G,E)}:At(E),q):C},q.frequency=function(E){return arguments.length?(c=!!E,q):c},q};function Hs(c,g){return tl(c,Math.ceil(Math.log(g.length)/Math.LN2+1))}function tl(c,g){for(var w=-1,C=+c[0],q=(c[1]-C)/g,E=[];++w<=g;)E[w]=q*w+C;return E}function Vl(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(Tu),g=0,w=[1,1],C;function q(E,G){var N=c.call(this,E,G),j=N[0],ae=w[0],ie=w[1],ge=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(j.x=j.y=0,Ia(j,function(Re){Re.r=+ge(Re.value)}),Ia(j,f0),g){var me=g*(C?1:Math.max(2*j.r/ae,2*j.r/ie))/2;Ia(j,function(Re){Re.r+=me}),Ia(j,f0),Ia(j,function(Re){Re.r-=me})}return Su(j,ae/2,ie/2,C?1:1/Math.max(2*j.r/ae,2*j.r/ie)),N}return q.size=function(E){return arguments.length?(w=E,q):w},q.radius=function(E){return arguments.length?(C=E==null||typeof E=="function"?E:+E,q):C},q.padding=function(E){return arguments.length?(g=+E,q):g},Wi(q,c)};function Tu(c,g){return c.value-g.value}function Bs(c,g){var w=c._pack_next;c._pack_next=g,g._pack_prev=c,g._pack_next=w,w._pack_prev=g}function u0(c,g){c._pack_next=g,g._pack_prev=c}function ku(c,g){var w=g.x-c.x,C=g.y-c.y,q=c.r+g.r;return .999*q*q>w*w+C*C}function f0(c){if(!(g=c.children)||!(me=g.length))return;var g,w=1/0,C=-1/0,q=1/0,E=-1/0,G,N,j,ae,ie,ge,me;function Re(Pe){w=Math.min(Pe.x-Pe.r,w),C=Math.max(Pe.x+Pe.r,C),q=Math.min(Pe.y-Pe.r,q),E=Math.max(Pe.y+Pe.r,E)}if(g.forEach(c0),G=g[0],G.x=-G.r,G.y=0,Re(G),me>1&&(N=g[1],N.x=N.r,N.y=0,Re(N),me>2))for(j=g[2],Wn(G,N,j),Re(j),Bs(G,j),G._pack_prev=j,Bs(j,N),N=G._pack_next,ae=3;ae<me;ae++){Wn(G,N,j=g[ae]);var Ye=0,ye=1,Ce=1;for(ie=N._pack_next;ie!==N;ie=ie._pack_next,ye++)if(ku(ie,j)){Ye=1;break}if(Ye==1)for(ge=G._pack_prev;ge!==ie._pack_prev&&!ku(ge,j);ge=ge._pack_prev,Ce++);Ye?(ye<Ce||ye==Ce&&N.r<G.r?u0(G,N=ie):u0(G=ge,N),ae--):(Bs(G,j),N=j,Re(j))}var De=(w+C)/2,Ue=(q+E)/2,Ge=0;for(ae=0;ae<me;ae++)j=g[ae],j.x-=De,j.y-=Ue,Ge=Math.max(Ge,j.r+Math.sqrt(j.x*j.x+j.y*j.y));c.r=Ge,g.forEach(Uf)}function c0(c){c._pack_next=c._pack_prev=c}function Uf(c){delete c._pack_next,delete c._pack_prev}function Su(c,g,w,C){var q=c.children;if(c.x=g+=C*c.x,c.y=w+=C*c.y,c.r*=C,q)for(var E=-1,G=q.length;++E<G;)Su(q[E],g,w,C)}function Wn(c,g,w){var C=c.r+w.r,q=g.x-c.x,E=g.y-c.y;if(C&&(q||E)){var G=g.r+w.r,N=q*q+E*E;G*=G,C*=C;var j=.5+(C-G)/(2*N),ae=Math.sqrt(Math.max(0,2*G*(C+N)-(C-=N)*C-G*G))/(2*N);w.x=c.x+j*q+ae*E,w.y=c.y+j*E-ae*q}else w.x=c.x+C,w.y=c.y}e.layout.tree=function(){var c=e.layout.hierarchy().sort(null).value(null),g=li,w=[1,1],C=null;function q(ie,ge){var me=c.call(this,ie,ge),Re=me[0],Ye=E(Re);if(Ia(Ye,G),Ye.parent.m=-Ye.z,Ai(Ye,N),C)Ai(Re,ae);else{var ye=Re,Ce=Re,De=Re;Ai(Re,function(_r){_r.x<ye.x&&(ye=_r),_r.x>Ce.x&&(Ce=_r),_r.depth>De.depth&&(De=_r)});var Ue=g(ye,Ce)/2-ye.x,Ge=w[0]/(Ce.x+g(Ce,ye)/2+Ue),Pe=w[1]/(De.depth||1);Ai(Re,function(_r){_r.x=(_r.x+Ue)*Ge,_r.y=_r.depth*Pe})}return me}function E(ie){for(var ge={A:null,children:[ie]},me=[ge],Re;(Re=me.pop())!=null;)for(var Ye=Re.children,ye,Ce=0,De=Ye.length;Ce<De;++Ce)me.push((Ye[Ce]=ye={_:Ye[Ce],parent:Re,children:(ye=Ye[Ce].children)&&ye.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Ce}).a=ye);return ge.children[0]}function G(ie){var ge=ie.children,me=ie.parent.children,Re=ie.i?me[ie.i-1]:null;if(ge.length){Yf(ie);var Ye=(ge[0].z+ge[ge.length-1].z)/2;Re?(ie.z=Re.z+g(ie._,Re._),ie.m=ie.z-Ye):ie.z=Ye}else Re&&(ie.z=Re.z+g(ie._,Re._));ie.parent.A=j(ie,Re,ie.parent.A||me[0])}function N(ie){ie._.x=ie.z+ie.parent.m,ie.m+=ie.parent.m}function j(ie,ge,me){if(ge){for(var Re=ie,Ye=ie,ye=ge,Ce=Re.parent.children[0],De=Re.m,Ue=Ye.m,Ge=ye.m,Pe=Ce.m,_r;ye=Cu(ye),Re=Wl(Re),ye&&Re;)Ce=Wl(Ce),Ye=Cu(Ye),Ye.a=ie,_r=ye.z+Ge-Re.z-De+g(ye._,Re._),_r>0&&(Os(I(ye,ie,me),ie,_r),De+=_r,Ue+=_r),Ge+=ye.m,De+=Re.m,Pe+=Ce.m,Ue+=Ye.m;ye&&!Cu(Ye)&&(Ye.t=ye,Ye.m+=Ge-Ue),Re&&!Wl(Ce)&&(Ce.t=Re,Ce.m+=De-Pe,me=ie)}return me}function ae(ie){ie.x*=w[0],ie.y=ie.depth*w[1]}return q.separation=function(ie){return arguments.length?(g=ie,q):g},q.size=function(ie){return arguments.length?(C=(w=ie)==null?ae:null,q):C?null:w},q.nodeSize=function(ie){return arguments.length?(C=(w=ie)==null?null:ae,q):C?w:null},Wi(q,c)};function li(c,g){return c.parent==g.parent?1:2}function Wl(c){var g=c.children;return g.length?g[0]:c.t}function Cu(c){var g=c.children,w;return(w=g.length)?g[w-1]:c.t}function Os(c,g,w){var C=w/(g.i-c.i);g.c-=C,g.s+=w,c.c+=C,g.z+=w,g.m+=w}function Yf(c){for(var g=0,w=0,C=c.children,q=C.length,E;--q>=0;)E=C[q],E.z+=g,E.m+=g,g+=E.s+(w+=E.c)}function I(c,g,w){return c.a.parent===g.parent?c.a:w}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),g=li,w=[1,1],C=!1;function q(E,G){var N=c.call(this,E,G),j=N[0],ae,ie=0;Ia(j,function(ye){var Ce=ye.children;Ce&&Ce.length?(ye.x=ce(Ce),ye.y=J(Ce)):(ye.x=ae?ie+=g(ye,ae):0,ye.y=0,ae=ye)});var ge=oe(j),me=we(j),Re=ge.x-g(ge,me)/2,Ye=me.x+g(me,ge)/2;return Ia(j,C?function(ye){ye.x=(ye.x-j.x)*w[0],ye.y=(j.y-ye.y)*w[1]}:function(ye){ye.x=(ye.x-Re)/(Ye-Re)*w[0],ye.y=(1-(j.y?ye.y/j.y:1))*w[1]}),N}return q.separation=function(E){return arguments.length?(g=E,q):g},q.size=function(E){return arguments.length?(C=(w=E)==null,q):C?null:w},q.nodeSize=function(E){return arguments.length?(C=(w=E)!=null,q):C?w:null},Wi(q,c)};function J(c){return 1+e.max(c,function(g){return g.y})}function ce(c){return c.reduce(function(g,w){return g+w.x},0)/c.length}function oe(c){var g=c.children;return g&&g.length?oe(g[0]):c}function we(c){var g=c.children,w;return g&&(w=g.length)?we(g[w-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),g=Math.round,w=[1,1],C=null,q=He,E=!1,G,N="squarify",j=.5*(1+Math.sqrt(5));function ae(ye,Ce){for(var De=-1,Ue=ye.length,Ge,Pe;++De<Ue;)Pe=(Ge=ye[De]).value*(Ce<0?0:Ce),Ge.area=isNaN(Pe)||Pe<=0?0:Pe}function ie(ye){var Ce=ye.children;if(Ce&&Ce.length){var De=q(ye),Ue=[],Ge=Ce.slice(),Pe,_r=1/0,Or,Wr=N==="slice"?De.dx:N==="dice"?De.dy:N==="slice-dice"?ye.depth&1?De.dy:De.dx:Math.min(De.dx,De.dy),Gr;for(ae(Ge,De.dx*De.dy/ye.value),Ue.area=0;(Gr=Ge.length)>0;)Ue.push(Pe=Ge[Gr-1]),Ue.area+=Pe.area,N!=="squarify"||(Or=me(Ue,Wr))<=_r?(Ge.pop(),_r=Or):(Ue.area-=Ue.pop().area,Re(Ue,Wr,De,!1),Wr=Math.min(De.dx,De.dy),Ue.length=Ue.area=0,_r=1/0);Ue.length&&(Re(Ue,Wr,De,!0),Ue.length=Ue.area=0),Ce.forEach(ie)}}function ge(ye){var Ce=ye.children;if(Ce&&Ce.length){var De=q(ye),Ue=Ce.slice(),Ge,Pe=[];for(ae(Ue,De.dx*De.dy/ye.value),Pe.area=0;Ge=Ue.pop();)Pe.push(Ge),Pe.area+=Ge.area,Ge.z!=null&&(Re(Pe,Ge.z?De.dx:De.dy,De,!Ue.length),Pe.length=Pe.area=0);Ce.forEach(ge)}}function me(ye,Ce){for(var De=ye.area,Ue,Ge=0,Pe=1/0,_r=-1,Or=ye.length;++_r<Or;)(Ue=ye[_r].area)&&(Ue<Pe&&(Pe=Ue),Ue>Ge&&(Ge=Ue));return De*=De,Ce*=Ce,De?Math.max(Ce*Ge*j/De,De/(Ce*Pe*j)):1/0}function Re(ye,Ce,De,Ue){var Ge=-1,Pe=ye.length,_r=De.x,Or=De.y,Wr=Ce?g(ye.area/Ce):0,Gr;if(Ce==De.dx){for((Ue||Wr>De.dy)&&(Wr=De.dy);++Ge<Pe;)Gr=ye[Ge],Gr.x=_r,Gr.y=Or,Gr.dy=Wr,_r+=Gr.dx=Math.min(De.x+De.dx-_r,Wr?g(Gr.area/Wr):0);Gr.z=!0,Gr.dx+=De.x+De.dx-_r,De.y+=Wr,De.dy-=Wr}else{for((Ue||Wr>De.dx)&&(Wr=De.dx);++Ge<Pe;)Gr=ye[Ge],Gr.x=_r,Gr.y=Or,Gr.dx=Wr,Or+=Gr.dy=Math.min(De.y+De.dy-Or,Wr?g(Gr.area/Wr):0);Gr.z=!1,Gr.dy+=De.y+De.dy-Or,De.x+=Wr,De.dx-=Wr}}function Ye(ye){var Ce=G||c(ye),De=Ce[0];return De.x=De.y=0,De.value?(De.dx=w[0],De.dy=w[1]):De.dx=De.dy=0,G&&c.revalue(De),ae([De],De.dx*De.dy/De.value),(G?ge:ie)(De),E&&(G=Ce),Ce}return Ye.size=function(ye){return arguments.length?(w=ye,Ye):w},Ye.padding=function(ye){if(!arguments.length)return C;function Ce(Ge){var Pe=ye.call(Ye,Ge,Ge.depth);return Pe==null?He(Ge):Je(Ge,typeof Pe=="number"?[Pe,Pe,Pe,Pe]:Pe)}function De(Ge){return Je(Ge,ye)}var Ue;return q=(C=ye)==null?He:(Ue=typeof ye)=="function"?Ce:(Ue==="number"&&(ye=[ye,ye,ye,ye]),De),Ye},Ye.round=function(ye){return arguments.length?(g=ye?Math.round:Number,Ye):g!=Number},Ye.sticky=function(ye){return arguments.length?(E=ye,G=null,Ye):E},Ye.ratio=function(ye){return arguments.length?(j=ye,Ye):j},Ye.mode=function(ye){return arguments.length?(N=ye+"",Ye):N},Wi(Ye,c)};function He(c){return{x:c.x,y:c.y,dx:c.dx,dy:c.dy}}function Je(c,g){var w=c.x+g[3],C=c.y+g[0],q=c.dx-g[1]-g[3],E=c.dy-g[0]-g[2];return q<0&&(w+=q/2,q=0),E<0&&(C+=E/2,E=0),{x:w,y:C,dx:q,dy:E}}e.random={normal:function(c,g){var w=arguments.length;return w<2&&(g=1),w<1&&(c=0),function(){var C,q,E;do C=Math.random()*2-1,q=Math.random()*2-1,E=C*C+q*q;while(!E||E>1);return c+g*C*Math.sqrt(-2*Math.log(E)/E)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var g=e.random.irwinHall(c);return function(){return g()/c}},irwinHall:function(c){return function(){for(var g=0,w=0;w<c;w++)g+=Math.random();return g}}},e.scale={};function or(c){var g=c[0],w=c[c.length-1];return g<w?[g,w]:[w,g]}function ur(c){return c.rangeExtent?c.rangeExtent():or(c.range())}function br(c,g,w,C){var q=w(c[0],c[1]),E=C(g[0],g[1]);return function(G){return E(q(G))}}function Qe(c,g){var w=0,C=c.length-1,q=c[w],E=c[C],G;return E<q&&(G=w,w=C,C=G,G=q,q=E,E=G),c[w]=g.floor(q),c[C]=g.ceil(E),c}function hr(c){return c?{floor:function(g){return Math.floor(g/c)*c},ceil:function(g){return Math.ceil(g/c)*c}}:cr}var cr={floor:V,ceil:V};function wr(c,g,w,C){var q=[],E=[],G=0,N=Math.min(c.length,g.length)-1;for(c[N]<c[0]&&(c=c.slice().reverse(),g=g.slice().reverse());++G<=N;)q.push(w(c[G-1],c[G])),E.push(C(g[G-1],g[G]));return function(j){var ae=e.bisect(c,j,1,N)-1;return E[ae](q[ae](j))}}e.scale.linear=function(){return Lr([0,1],[0,1],Qo,!1)};function Lr(c,g,w,C){var q,E;function G(){var j=Math.min(c.length,g.length)>2?wr:br,ae=C?If:Ff;return q=j(c,g,ae,w),E=j(g,c,ae,Qo),N}function N(j){return q(j)}return N.invert=function(j){return E(j)},N.domain=function(j){return arguments.length?(c=j.map(Number),G()):c},N.range=function(j){return arguments.length?(g=j,G()):g},N.rangeRound=function(j){return N.range(j).interpolate(ho)},N.clamp=function(j){return arguments.length?(C=j,G()):C},N.interpolate=function(j){return arguments.length?(w=j,G()):w},N.ticks=function(j){return nt(c,j)},N.tickFormat=function(j,ae){return d3_scale_linearTickFormat(c,j,ae)},N.nice=function(j){return jr(c,j),G()},N.copy=function(){return Lr(c,g,w,C)},G()}function et(c,g){return e.rebind(c,g,"range","rangeRound","interpolate","clamp")}function jr(c,g){return Qe(c,hr(tt(c,g)[2])),Qe(c,hr(tt(c,g)[2])),c}function tt(c,g){g==null&&(g=10);var w=or(c),C=w[1]-w[0],q=Math.pow(10,Math.floor(Math.log(C/g)/Math.LN10)),E=g/C*q;return E<=.15?q*=10:E<=.35?q*=5:E<=.75&&(q*=2),w[0]=Math.ceil(w[0]/q)*q,w[1]=Math.floor(w[1]/q)*q+q*.5,w[2]=q,w}function nt(c,g){return e.range.apply(e,tt(c,g))}var Dr={s:1,g:1,p:1,r:1,e:1};function Ir(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function it(c,g){var w=Ir(g[2]);return c in Dr?Math.abs(w-Ir(Math.max(_(g[0]),_(g[1]))))+ +(c!=="e"):w-(c==="%")*2}e.scale.log=function(){return pt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function pt(c,g,w,C){function q(N){return(w?Math.log(N<0?0:N):-Math.log(N>0?0:-N))/Math.log(g)}function E(N){return w?Math.pow(g,N):-Math.pow(g,-N)}function G(N){return c(q(N))}return G.invert=function(N){return E(c.invert(N))},G.domain=function(N){return arguments.length?(w=N[0]>=0,c.domain((C=N.map(Number)).map(q)),G):C},G.base=function(N){return arguments.length?(g=+N,c.domain(C.map(q)),G):g},G.nice=function(){var N=Qe(C.map(q),w?Math:Yt);return c.domain(N),C=N.map(E),G},G.ticks=function(){var N=or(C),j=[],ae=N[0],ie=N[1],ge=Math.floor(q(ae)),me=Math.ceil(q(ie)),Re=g%1?2:g;if(isFinite(me-ge)){if(w){for(;ge<me;ge++)for(var Ye=1;Ye<Re;Ye++)j.push(E(ge)*Ye);j.push(E(ge))}else for(j.push(E(ge));ge++<me;)for(var Ye=Re-1;Ye>0;Ye--)j.push(E(ge)*Ye);for(ge=0;j[ge]<ae;ge++);for(me=j.length;j[me-1]>ie;me--);j=j.slice(ge,me)}return j},G.copy=function(){return pt(c.copy(),g,w,C)},et(G,c)}var Yt={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return en(e.scale.linear(),1,[0,1])};function en(c,g,w){var C=Wt(g),q=Wt(1/g);function E(G){return c(C(G))}return E.invert=function(G){return q(c.invert(G))},E.domain=function(G){return arguments.length?(c.domain((w=G.map(Number)).map(C)),E):w},E.ticks=function(G){return nt(w,G)},E.tickFormat=function(G,N){return d3_scale_linearTickFormat(w,G,N)},E.nice=function(G){return E.domain(jr(w,G))},E.exponent=function(G){return arguments.length?(C=Wt(g=G),q=Wt(1/g),c.domain(w.map(C)),E):g},E.copy=function(){return en(c.copy(),g,w)},et(E,c)}function Wt(c){return function(g){return g<0?-Math.pow(-g,c):Math.pow(g,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return gn([],{t:"range",a:[[]]})};function gn(c,g){var w,C,q;function E(N){return C[((w.get(N)||(g.t==="range"?w.set(N,c.push(N)):NaN))-1)%C.length]}function G(N,j){return e.range(c.length).map(function(ae){return N+j*ae})}return E.domain=function(N){if(!arguments.length)return c;c=[],w=new b;for(var j=-1,ae=N.length,ie;++j<ae;)w.has(ie=N[j])||w.set(ie,c.push(ie));return E[g.t].apply(E,g.a)},E.range=function(N){return arguments.length?(C=N,q=0,g={t:"range",a:arguments},E):C},E.rangePoints=function(N,j){arguments.length<2&&(j=0);var ae=N[0],ie=N[1],ge=c.length<2?(ae=(ae+ie)/2,0):(ie-ae)/(c.length-1+j);return C=G(ae+ge*j/2,ge),q=0,g={t:"rangePoints",a:arguments},E},E.rangeRoundPoints=function(N,j){arguments.length<2&&(j=0);var ae=N[0],ie=N[1],ge=c.length<2?(ae=ie=Math.round((ae+ie)/2),0):(ie-ae)/(c.length-1+j)|0;return C=G(ae+Math.round(ge*j/2+(ie-ae-(c.length-1+j)*ge)/2),ge),q=0,g={t:"rangeRoundPoints",a:arguments},E},E.rangeBands=function(N,j,ae){arguments.length<2&&(j=0),arguments.length<3&&(ae=j);var ie=N[1]<N[0],ge=N[ie-0],me=N[1-ie],Re=(me-ge)/(c.length-j+2*ae);return C=G(ge+Re*ae,Re),ie&&C.reverse(),q=Re*(1-j),g={t:"rangeBands",a:arguments},E},E.rangeRoundBands=function(N,j,ae){arguments.length<2&&(j=0),arguments.length<3&&(ae=j);var ie=N[1]<N[0],ge=N[ie-0],me=N[1-ie],Re=Math.floor((me-ge)/(c.length-j+2*ae));return C=G(ge+Math.round((me-ge-(c.length-j)*Re)/2),Re),ie&&C.reverse(),q=Math.round(Re*(1-j)),g={t:"rangeRoundBands",a:arguments},E},E.rangeBand=function(){return q},E.rangeExtent=function(){return or(g.a[0])},E.copy=function(){return gn(c,g)},E.domain(c)}e.scale.category10=function(){return e.scale.ordinal().range(qt)},e.scale.category20=function(){return e.scale.ordinal().range(ia)},e.scale.category20b=function(){return e.scale.ordinal().range(Rn)},e.scale.category20c=function(){return e.scale.ordinal().range(mn)};var qt=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Uo),ia=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Uo),Rn=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Uo),mn=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Uo);e.scale.quantile=function(){return Yr([],[])};function Yr(c,g){var w;function C(){var E=0,G=g.length;for(w=[];++E<G;)w[E-1]=e.quantile(c,E/G);return q}function q(E){if(!isNaN(E=+E))return g[e.bisect(w,E)]}return q.domain=function(E){return arguments.length?(c=E.map(h).filter(d).sort(v),C()):c},q.range=function(E){return arguments.length?(g=E,C()):g},q.quantiles=function(){return w},q.invertExtent=function(E){return E=g.indexOf(E),E<0?[NaN,NaN]:[E>0?w[E-1]:c[0],E<w.length?w[E]:c[c.length-1]]},q.copy=function(){return Yr(c,g)},C()}e.scale.quantize=function(){return Gt(0,1,[0,1])};function Gt(c,g,w){var C,q;function E(N){return w[Math.max(0,Math.min(q,Math.floor(C*(N-c))))]}function G(){return C=w.length/(g-c),q=w.length-1,E}return E.domain=function(N){return arguments.length?(c=+N[0],g=+N[N.length-1],G()):[c,g]},E.range=function(N){return arguments.length?(w=N,G()):w},E.invertExtent=function(N){return N=w.indexOf(N),N=N<0?NaN:N/C+c,[N,N+1/C]},E.copy=function(){return Gt(c,g,w)},G()}e.scale.threshold=function(){return Bn([.5],[0,1])};function Bn(c,g){function w(C){if(C<=C)return g[e.bisect(c,C)]}return w.domain=function(C){return arguments.length?(c=C,w):c},w.range=function(C){return arguments.length?(g=C,w):g},w.invertExtent=function(C){return C=g.indexOf(C),[c[C-1],c[C]]},w.copy=function(){return Bn(c,g)},w}e.scale.identity=function(){return ga([0,1])};function ga(c){function g(w){return+w}return g.invert=g,g.domain=g.range=function(w){return arguments.length?(c=w.map(g),g):c},g.ticks=function(w){return nt(c,w)},g.tickFormat=function(w,C){return d3_scale_linearTickFormat(c,w,C)},g.copy=function(){return ga(c)},g}e.svg={};function Xa(){return 0}e.svg.arc=function(){var c=Ti,g=nl,w=Xa,C=Zi,q=si,E=al,G=Zl;function N(){var ae=Math.max(0,+c.apply(this,arguments)),ie=Math.max(0,+g.apply(this,arguments)),ge=q.apply(this,arguments)-Hr,me=E.apply(this,arguments)-Hr,Re=Math.abs(me-ge),Ye=ge>me?0:1;if(ie<ae&&(ye=ie,ie=ae,ae=ye),Re>=Vr)return j(ie,Ye)+(ae?j(ae,1-Ye):"")+"Z";var ye,Ce,De,Ue,Ge=0,Pe=0,_r,Or,Wr,Gr,Jr,$r,bt,Qr,ht=[];if((Ue=(+G.apply(this,arguments)||0)/2)&&(De=C===Zi?Math.sqrt(ae*ae+ie*ie):+C.apply(this,arguments),Ye||(Pe*=-1),ie&&(Pe=Fn(De/ie*Math.sin(Ue))),ae&&(Ge=Fn(De/ae*Math.sin(Ue)))),ie){_r=ie*Math.cos(ge+Pe),Or=ie*Math.sin(ge+Pe),Wr=ie*Math.cos(me-Pe),Gr=ie*Math.sin(me-Pe);var jt=Math.abs(me-ge-2*Pe)<=We?0:1;if(Pe&&Lu(_r,Or,Wr,Gr)===Ye^jt){var Zn=(ge+me)/2;_r=ie*Math.cos(Zn),Or=ie*Math.sin(Zn),Wr=Gr=null}}else _r=Or=0;if(ae){Jr=ae*Math.cos(me-Ge),$r=ae*Math.sin(me-Ge),bt=ae*Math.cos(ge+Ge),Qr=ae*Math.sin(ge+Ge);var on=Math.abs(ge-me+2*Ge)<=We?0:1;if(Ge&&Lu(Jr,$r,bt,Qr)===1-Ye^on){var Fr=(ge+me)/2;Jr=ae*Math.cos(Fr),$r=ae*Math.sin(Fr),bt=Qr=null}}else Jr=$r=0;if(Re>ke&&(ye=Math.min(Math.abs(ie-ae)/2,+w.apply(this,arguments)))>.001){Ce=ae<ie^Ye?0:1;var _t=ye,wt=ye;if(Re<We){var Jt=bt==null?[Jr,$r]:Wr==null?[_r,Or]:ws([_r,Or],[bt,Qr],[Wr,Gr],[Jr,$r]),Nn=_r-Jt[0],oa=Or-Jt[1],Da=Wr-Jt[0],ja=Gr-Jt[1],fi=1/Math.sin(Math.acos((Nn*Da+oa*ja)/(Math.sqrt(Nn*Nn+oa*oa)*Math.sqrt(Da*Da+ja*ja)))/2),Ja=Math.sqrt(Jt[0]*Jt[0]+Jt[1]*Jt[1]);wt=Math.min(ye,(ae-Ja)/(fi-1)),_t=Math.min(ye,(ie-Ja)/(fi+1))}if(Wr!=null){var Si=v0(bt==null?[Jr,$r]:[bt,Qr],[_r,Or],ie,_t,Ye),Ha=v0([Wr,Gr],[Jr,$r],ie,_t,Ye);ye===_t?ht.push("M",Si[0],"A",_t,",",_t," 0 0,",Ce," ",Si[1],"A",ie,",",ie," 0 ",1-Ye^Lu(Si[1][0],Si[1][1],Ha[1][0],Ha[1][1]),",",Ye," ",Ha[1],"A",_t,",",_t," 0 0,",Ce," ",Ha[0]):ht.push("M",Si[0],"A",_t,",",_t," 0 1,",Ce," ",Ha[0])}else ht.push("M",_r,",",Or);if(bt!=null){var Ci=v0([_r,Or],[bt,Qr],ae,-wt,Ye),Zf=v0([Jr,$r],Wr==null?[_r,Or]:[Wr,Gr],ae,-wt,Ye);ye===wt?ht.push("L",Zf[0],"A",wt,",",wt," 0 0,",Ce," ",Zf[1],"A",ae,",",ae," 0 ",Ye^Lu(Zf[1][0],Zf[1][1],Ci[1][0],Ci[1][1]),",",1-Ye," ",Ci[1],"A",wt,",",wt," 0 0,",Ce," ",Ci[0]):ht.push("L",Zf[0],"A",wt,",",wt," 0 0,",Ce," ",Ci[0])}else ht.push("L",Jr,",",$r)}else ht.push("M",_r,",",Or),Wr!=null&&ht.push("A",ie,",",ie," 0 ",jt,",",Ye," ",Wr,",",Gr),ht.push("L",Jr,",",$r),bt!=null&&ht.push("A",ae,",",ae," 0 ",on,",",1-Ye," ",bt,",",Qr);return ht.push("Z"),ht.join("")}function j(ae,ie){return"M0,"+ae+"A"+ae+","+ae+" 0 1,"+ie+" 0,"+-ae+"A"+ae+","+ae+" 0 1,"+ie+" 0,"+ae}return N.innerRadius=function(ae){return arguments.length?(c=At(ae),N):c},N.outerRadius=function(ae){return arguments.length?(g=At(ae),N):g},N.cornerRadius=function(ae){return arguments.length?(w=At(ae),N):w},N.padRadius=function(ae){return arguments.length?(C=ae==Zi?Zi:At(ae),N):C},N.startAngle=function(ae){return arguments.length?(q=At(ae),N):q},N.endAngle=function(ae){return arguments.length?(E=At(ae),N):E},N.padAngle=function(ae){return arguments.length?(G=At(ae),N):G},N.centroid=function(){var ae=(+c.apply(this,arguments)+ +g.apply(this,arguments))/2,ie=(+q.apply(this,arguments)+ +E.apply(this,arguments))/2-Hr;return[Math.cos(ie)*ae,Math.sin(ie)*ae]},N};var Zi="auto";function Ti(c){return c.innerRadius}function nl(c){return c.outerRadius}function si(c){return c.startAngle}function al(c){return c.endAngle}function Zl(c){return c&&c.padAngle}function Lu(c,g,w,C){return(c-w)*g-(g-C)*c>0?0:1}function v0(c,g,w,C,q){var E=c[0]-g[0],G=c[1]-g[1],N=(q?C:-C)/Math.sqrt(E*E+G*G),j=N*G,ae=-N*E,ie=c[0]+j,ge=c[1]+ae,me=g[0]+j,Re=g[1]+ae,Ye=(ie+me)/2,ye=(ge+Re)/2,Ce=me-ie,De=Re-ge,Ue=Ce*Ce+De*De,Ge=w-C,Pe=ie*Re-me*ge,_r=(De<0?-1:1)*Math.sqrt(Math.max(0,Ge*Ge*Ue-Pe*Pe)),Or=(Pe*De-Ce*_r)/Ue,Wr=(-Pe*Ce-De*_r)/Ue,Gr=(Pe*De+Ce*_r)/Ue,Jr=(-Pe*Ce+De*_r)/Ue,$r=Or-Ye,bt=Wr-ye,Qr=Gr-Ye,ht=Jr-ye;return $r*$r+bt*bt>Qr*Qr+ht*ht&&(Or=Gr,Wr=Jr),[[Or-j,Wr-ae],[Or*w/Ge,Wr*w/Ge]]}function h0(){return!0}function Uh(c){var g=zl,w=bs,C=h0,q=Xi,E=q.key,G=.7;function N(j){var ae=[],ie=[],ge=-1,me=j.length,Re,Ye=At(g),ye=At(w);function Ce(){ae.push("M",q(c(ie),G))}for(;++ge<me;)C.call(this,Re=j[ge],ge)?ie.push([+Ye.call(this,Re,ge),+ye.call(this,Re,ge)]):ie.length&&(Ce(),ie=[]);return ie.length&&Ce(),ae.length?ae.join(""):null}return N.x=function(j){return arguments.length?(g=j,N):g},N.y=function(j){return arguments.length?(w=j,N):w},N.defined=function(j){return arguments.length?(C=j,N):C},N.interpolate=function(j){return arguments.length?(typeof j=="function"?E=q=j:E=(q=Gf.get(j)||Xi).key,N):E},N.tension=function(j){return arguments.length?(G=j,N):G},N}e.svg.line=function(){return Uh(V)};var Gf=e.map({linear:Xi,"linear-closed":Yh,step:Gh,"step-before":d0,"step-after":Xv,basis:Xh,"basis-open":jv,"basis-closed":_y,bundle:Jv,cardinal:Zh,"cardinal-open":Vh,"cardinal-closed":Wh,monotone:ue});Gf.forEach(function(c,g){g.key=c,g.closed=/-closed$/.test(c)});function Xi(c){return c.length>1?c.join("L"):c+"Z"}function Yh(c){return c.join("L")+"Z"}function Gh(c){for(var g=0,w=c.length,C=c[0],q=[C[0],",",C[1]];++g<w;)q.push("H",(C[0]+(C=c[g])[0])/2,"V",C[1]);return w>1&&q.push("H",C[0]),q.join("")}function d0(c){for(var g=0,w=c.length,C=c[0],q=[C[0],",",C[1]];++g<w;)q.push("V",(C=c[g])[1],"H",C[0]);return q.join("")}function Xv(c){for(var g=0,w=c.length,C=c[0],q=[C[0],",",C[1]];++g<w;)q.push("H",(C=c[g])[0],"V",C[1]);return q.join("")}function Vh(c,g){return c.length<4?Xi(c):c[1]+p0(c.slice(1,-1),Vf(c,g))}function Wh(c,g){return c.length<3?Yh(c):c[0]+p0((c.push(c[0]),c),Vf([c[c.length-2]].concat(c,[c[1]]),g))}function Zh(c,g){return c.length<3?Xi(c):c[0]+p0(c,Vf(c,g))}function p0(c,g){if(g.length<1||c.length!=g.length&&c.length!=g.length+2)return Xi(c);var w=c.length!=g.length,C="",q=c[0],E=c[1],G=g[0],N=G,j=1;if(w&&(C+="Q"+(E[0]-G[0]*2/3)+","+(E[1]-G[1]*2/3)+","+E[0]+","+E[1],q=c[1],j=2),g.length>1){N=g[1],E=c[j],j++,C+="C"+(q[0]+G[0])+","+(q[1]+G[1])+","+(E[0]-N[0])+","+(E[1]-N[1])+","+E[0]+","+E[1];for(var ae=2;ae<g.length;ae++,j++)E=c[j],N=g[ae],C+="S"+(E[0]-N[0])+","+(E[1]-N[1])+","+E[0]+","+E[1]}if(w){var ie=c[j];C+="Q"+(E[0]+N[0]*2/3)+","+(E[1]+N[1]*2/3)+","+ie[0]+","+ie[1]}return C}function Vf(c,g){for(var w=[],C=(1-g)/2,q,E=c[0],G=c[1],N=1,j=c.length;++N<j;)q=E,E=G,G=c[N],w.push([C*(G[0]-q[0]),C*(G[1]-q[1])]);return w}function Xh(c){if(c.length<3)return Xi(c);var g=1,w=c.length,C=c[0],q=C[0],E=C[1],G=[q,q,q,(C=c[1])[0]],N=[E,E,E,C[1]],j=[q,",",E,"L",ki(P,G),",",ki(P,N)];for(c.push(c[w-1]);++g<=w;)C=c[g],G.shift(),G.push(C[0]),N.shift(),N.push(C[1]),R(j,G,N);return c.pop(),j.push("L",C),j.join("")}function jv(c){if(c.length<4)return Xi(c);for(var g=[],w=-1,C=c.length,q,E=[0],G=[0];++w<3;)q=c[w],E.push(q[0]),G.push(q[1]);for(g.push(ki(P,E)+","+ki(P,G)),--w;++w<C;)q=c[w],E.shift(),E.push(q[0]),G.shift(),G.push(q[1]),R(g,E,G);return g.join("")}function _y(c){for(var g,w=-1,C=c.length,q=C+4,E,G=[],N=[];++w<4;)E=c[w%C],G.push(E[0]),N.push(E[1]);for(g=[ki(P,G),",",ki(P,N)],--w;++w<q;)E=c[w%C],G.shift(),G.push(E[0]),N.shift(),N.push(E[1]),R(g,G,N);return g.join("")}function Jv(c,g){var w=c.length-1;if(w)for(var C=c[0][0],q=c[0][1],E=c[w][0]-C,G=c[w][1]-q,N=-1,j,ae;++N<=w;)j=c[N],ae=N/w,j[0]=g*j[0]+(1-g)*(C+ae*E),j[1]=g*j[1]+(1-g)*(q+ae*G);return Xh(c)}function ki(c,g){return c[0]*g[0]+c[1]*g[1]+c[2]*g[2]+c[3]*g[3]}var T=[0,2/3,1/3,0],L=[0,1/3,2/3,0],P=[0,1/6,2/3,1/6];function R(c,g,w){c.push("C",ki(T,g),",",ki(T,w),",",ki(L,g),",",ki(L,w),",",ki(P,g),",",ki(P,w))}function U(c,g){return(g[1]-c[1])/(g[0]-c[0])}function B(c){for(var g=0,w=c.length-1,C=[],q=c[0],E=c[1],G=C[0]=U(q,E);++g<w;)C[g]=(G+(G=U(q=E,E=c[g+1])))/2;return C[g]=G,C}function Z(c){for(var g=[],w,C,q,E,G=B(c),N=-1,j=c.length-1;++N<j;)w=U(c[N],c[N+1]),_(w)<ke?G[N]=G[N+1]=0:(C=G[N]/w,q=G[N+1]/w,E=C*C+q*q,E>9&&(E=w*3/Math.sqrt(E),G[N]=E*C,G[N+1]=E*q));for(N=-1;++N<=j;)E=(c[Math.min(j,N+1)][0]-c[Math.max(0,N-1)][0])/(6*(1+G[N]*G[N])),g.push([E||0,G[N]*E||0]);return g}function ue(c){return c.length<3?Xi(c):c[0]+p0(c,Z(c))}e.svg.line.radial=function(){var c=Uh(ve);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function ve(c){for(var g,w=-1,C=c.length,q,E;++w<C;)g=c[w],q=g[0],E=g[1]-Hr,g[0]=q*Math.cos(E),g[1]=q*Math.sin(E);return c}function le(c){var g=zl,w=zl,C=0,q=bs,E=h0,G=Xi,N=G.key,j=G,ae="L",ie=.7;function ge(me){var Re=[],Ye=[],ye=[],Ce=-1,De=me.length,Ue,Ge=At(g),Pe=At(C),_r=g===w?function(){return Wr}:At(w),Or=C===q?function(){return Gr}:At(q),Wr,Gr;function Jr(){Re.push("M",G(c(ye),ie),ae,j(c(Ye.reverse()),ie),"Z")}for(;++Ce<De;)E.call(this,Ue=me[Ce],Ce)?(Ye.push([Wr=+Ge.call(this,Ue,Ce),Gr=+Pe.call(this,Ue,Ce)]),ye.push([+_r.call(this,Ue,Ce),+Or.call(this,Ue,Ce)])):Ye.length&&(Jr(),Ye=[],ye=[]);return Ye.length&&Jr(),Re.length?Re.join(""):null}return ge.x=function(me){return arguments.length?(g=w=me,ge):w},ge.x0=function(me){return arguments.length?(g=me,ge):g},ge.x1=function(me){return arguments.length?(w=me,ge):w},ge.y=function(me){return arguments.length?(C=q=me,ge):q},ge.y0=function(me){return arguments.length?(C=me,ge):C},ge.y1=function(me){return arguments.length?(q=me,ge):q},ge.defined=function(me){return arguments.length?(E=me,ge):E},ge.interpolate=function(me){return arguments.length?(typeof me=="function"?N=G=me:N=(G=Gf.get(me)||Xi).key,j=G.reverse||G,ae=G.closed?"M":"L",ge):N},ge.tension=function(me){return arguments.length?(ie=me,ge):ie},ge}d0.reverse=Xv,Xv.reverse=d0,e.svg.area=function(){return le(V)},e.svg.area.radial=function(){var c=le(ve);return c.radius=c.x,delete c.x,c.innerRadius=c.x0,delete c.x0,c.outerRadius=c.x1,delete c.x1,c.angle=c.y,delete c.y,c.startAngle=c.y0,delete c.y0,c.endAngle=c.y1,delete c.y1,c};function he(c){return c.source}function xe(c){return c.target}e.svg.chord=function(){var c=he,g=xe,w=Le,C=si,q=al;function E(ie,ge){var me=G(this,c,ie,ge),Re=G(this,g,ie,ge);return"M"+me.p0+j(me.r,me.p1,me.a1-me.a0)+(N(me,Re)?ae(me.r,me.p1,me.r,me.p0):ae(me.r,me.p1,Re.r,Re.p0)+j(Re.r,Re.p1,Re.a1-Re.a0)+ae(Re.r,Re.p1,me.r,me.p0))+"Z"}function G(ie,ge,me,Re){var Ye=ge.call(ie,me,Re),ye=w.call(ie,Ye,Re),Ce=C.call(ie,Ye,Re)-Hr,De=q.call(ie,Ye,Re)-Hr;return{r:ye,a0:Ce,a1:De,p0:[ye*Math.cos(Ce),ye*Math.sin(Ce)],p1:[ye*Math.cos(De),ye*Math.sin(De)]}}function N(ie,ge){return ie.a0==ge.a0&&ie.a1==ge.a1}function j(ie,ge,me){return"A"+ie+","+ie+" 0 "+ +(me>We)+",1 "+ge}function ae(ie,ge,me,Re){return"Q 0,0 "+Re}return E.radius=function(ie){return arguments.length?(w=At(ie),E):w},E.source=function(ie){return arguments.length?(c=At(ie),E):c},E.target=function(ie){return arguments.length?(g=At(ie),E):g},E.startAngle=function(ie){return arguments.length?(C=At(ie),E):C},E.endAngle=function(ie){return arguments.length?(q=At(ie),E):q},E};function Le(c){return c.radius}e.svg.diagonal=function(){var c=he,g=xe,w=ze;function C(q,E){var G=c.call(this,q,E),N=g.call(this,q,E),j=(G.y+N.y)/2,ae=[G,{x:G.x,y:j},{x:N.x,y:j},N];return ae=ae.map(w),"M"+ae[0]+"C"+ae[1]+" "+ae[2]+" "+ae[3]}return C.source=function(q){return arguments.length?(c=At(q),C):c},C.target=function(q){return arguments.length?(g=At(q),C):g},C.projection=function(q){return arguments.length?(w=q,C):w},C};function ze(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),g=ze,w=c.projection;return c.projection=function(C){return arguments.length?w(tr(g=C)):g},c};function tr(c){return function(){var g=c.apply(this,arguments),w=g[0],C=g[1]-Hr;return[w*Math.cos(C),w*Math.sin(C)]}}e.svg.symbol=function(){var c=Ar,g=vr;function w(C,q){return(at.get(c.call(this,C,q))||Zr)(g.call(this,C,q))}return w.type=function(C){return arguments.length?(c=At(C),w):c},w.size=function(C){return arguments.length?(g=At(C),w):g},w};function vr(){return 64}function Ar(){return"circle"}function Zr(c){var g=Math.sqrt(c/We);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var at=e.map({circle:Zr,cross:function(c){var g=Math.sqrt(c/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(c){var g=Math.sqrt(c/(2*st)),w=g*st;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(c){var g=Math.sqrt(c)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=at.keys();var ot=Math.sqrt(3),st=Math.tan(30*lt);pe.transition=function(c){for(var g=ma||++zn,w=La(c),C=[],q,E,G=ui||{time:Date.now(),ease:Kc,delay:0,duration:250},N=-1,j=this.length;++N<j;){C.push(q=[]);for(var ae=this[N],ie=-1,ge=ae.length;++ie<ge;)(E=ae[ie])&&qa(E,ie,w,g,G),q.push(E)}return Mn(C,w,g)},pe.interrupt=function(c){return this.each(c==null?vt:an(La(c)))};var vt=an(La());function an(c){return function(){var g,w,C;(g=this[c])&&(C=g[w=g.active])&&(C.timer.c=null,C.timer.t=NaN,--g.count?delete g[w]:delete this[c],g.active+=.5,C.event&&C.event.interrupt.call(this,this.__data__,C.index))}}function Mn(c,g,w){return Se(c,Ft),c.namespace=g,c.id=w,c}var Ft=[],zn=0,ma,ui;Ft.call=pe.call,Ft.empty=pe.empty,Ft.node=pe.node,Ft.size=pe.size,e.transition=function(c,g){return c&&c.transition?ma?c.transition(g):c:e.selection().transition(c)},e.transition.prototype=Ft,Ft.select=function(c){var g=this.id,w=this.namespace,C=[],q,E,G;c=W(c);for(var N=-1,j=this.length;++N<j;){C.push(q=[]);for(var ae=this[N],ie=-1,ge=ae.length;++ie<ge;)(G=ae[ie])&&(E=c.call(G,G.__data__,ie,N))?("__data__"in G&&(E.__data__=G.__data__),qa(E,ie,w,g,G[w][g]),q.push(E)):q.push(null)}return Mn(C,w,g)},Ft.selectAll=function(c){var g=this.id,w=this.namespace,C=[],q,E,G,N,j;c=Q(c);for(var ae=-1,ie=this.length;++ae<ie;)for(var ge=this[ae],me=-1,Re=ge.length;++me<Re;)if(G=ge[me]){j=G[w][g],E=c.call(G,G.__data__,me,ae),C.push(q=[]);for(var Ye=-1,ye=E.length;++Ye<ye;)(N=E[Ye])&&qa(N,Ye,w,g,j),q.push(N)}return Mn(C,w,g)},Ft.filter=function(c){var g=[],w,C,q;typeof c!="function"&&(c=Ae(c));for(var E=0,G=this.length;E<G;E++){g.push(w=[]);for(var C=this[E],N=0,j=C.length;N<j;N++)(q=C[N])&&c.call(q,q.__data__,N,E)&&w.push(q)}return Mn(g,this.namespace,this.id)},Ft.tween=function(c,g){var w=this.id,C=this.namespace;return arguments.length<2?this.node()[C][w].tween.get(c):je(this,g==null?function(q){q[C][w].tween.remove(c)}:function(q){q[C][w].tween.set(c,g)})};function il(c,g,w,C){var q=c.id,E=c.namespace;return je(c,typeof w=="function"?function(G,N,j){G[E][q].tween.set(g,C(w.call(G,G.__data__,N,j)))}:(w=C(w),function(G){G[E][q].tween.set(g,w)}))}Ft.attr=function(c,g){if(arguments.length<2){for(g in c)this.attr(g,c[g]);return this}var w=c=="transform"?wu:Qo,C=e.ns.qualify(c);function q(){this.removeAttribute(C)}function E(){this.removeAttributeNS(C.space,C.local)}function G(j){return j==null?q:(j+="",function(){var ae=this.getAttribute(C),ie;return ae!==j&&(ie=w(ae,j),function(ge){this.setAttribute(C,ie(ge))})})}function N(j){return j==null?E:(j+="",function(){var ae=this.getAttributeNS(C.space,C.local),ie;return ae!==j&&(ie=w(ae,j),function(ge){this.setAttributeNS(C.space,C.local,ie(ge))})})}return il(this,"attr."+c,g,C.local?N:G)},Ft.attrTween=function(c,g){var w=e.ns.qualify(c);function C(E,G){var N=g.call(this,E,G,this.getAttribute(w));return N&&function(j){this.setAttribute(w,N(j))}}function q(E,G){var N=g.call(this,E,G,this.getAttributeNS(w.space,w.local));return N&&function(j){this.setAttributeNS(w.space,w.local,N(j))}}return this.tween("attr."+c,w.local?q:C)},Ft.style=function(c,g,w){var C=arguments.length;if(C<3){if(typeof c!="string"){C<2&&(g="");for(w in c)this.style(w,c[w],g);return this}w=""}function q(){this.style.removeProperty(c)}function E(G){return G==null?q:(G+="",function(){var N=i(this).getComputedStyle(this,null).getPropertyValue(c),j;return N!==G&&(j=Qo(N,G),function(ae){this.style.setProperty(c,j(ae),w)})})}return il(this,"style."+c,g,E)},Ft.styleTween=function(c,g,w){arguments.length<3&&(w="");function C(q,E){var G=g.call(this,q,E,i(this).getComputedStyle(this,null).getPropertyValue(c));return G&&function(N){this.style.setProperty(c,G(N),w)}}return this.tween("style."+c,C)},Ft.text=function(c){return il(this,"text",c,Us)};function Us(c){return c==null&&(c=""),function(){this.textContent=c}}Ft.remove=function(){var c=this.namespace;return this.each("end.transition",function(){var g;this[c].count<2&&(g=this.parentNode)&&g.removeChild(this)})},Ft.ease=function(c){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].ease:(typeof c!="function"&&(c=e.ease.apply(e,arguments)),je(this,function(C){C[w][g].ease=c}))},Ft.delay=function(c){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].delay:je(this,typeof c=="function"?function(C,q,E){C[w][g].delay=+c.call(C,C.__data__,q,E)}:(c=+c,function(C){C[w][g].delay=c}))},Ft.duration=function(c){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].duration:je(this,typeof c=="function"?function(C,q,E){C[w][g].duration=Math.max(1,c.call(C,C.__data__,q,E))}:(c=Math.max(1,c),function(C){C[w][g].duration=c}))},Ft.each=function(c,g){var w=this.id,C=this.namespace;if(arguments.length<2){var q=ui,E=ma;try{ma=w,je(this,function(G,N,j){ui=G[C][w],c.call(G,G.__data__,N,j)})}finally{ui=q,ma=E}}else je(this,function(G){var N=G[C][w];(N.event||(N.event=e.dispatch("start","end","interrupt"))).on(c,g)});return this},Ft.transition=function(){for(var c=this.id,g=++zn,w=this.namespace,C=[],q,E,G,N,j=0,ae=this.length;j<ae;j++){C.push(q=[]);for(var E=this[j],ie=0,ge=E.length;ie<ge;ie++)(G=E[ie])&&(N=G[w][c],qa(G,ie,w,g,{time:N.time,ease:N.ease,delay:N.delay+N.duration,duration:N.duration})),q.push(G)}return Mn(C,w,g)};function La(c){return c==null?"__transition__":"__transition_"+c+"__"}function qa(c,g,w,C,q){var E=c[w]||(c[w]={active:0,count:0}),G=E[C],N,j,ae,ie,ge;function me(ye){var Ce=G.delay;if(j.t=Ce+N,Ce<=ye)return Re(ye-Ce);j.c=Re}function Re(ye){var Ce=E.active,De=E[Ce];De&&(De.timer.c=null,De.timer.t=NaN,--E.count,delete E[Ce],De.event&&De.event.interrupt.call(c,c.__data__,De.index));for(var Ue in E)if(+Ue<C){var Ge=E[Ue];Ge.timer.c=null,Ge.timer.t=NaN,--E.count,delete E[Ue]}j.c=Ye,Rl(function(){return j.c&&Ye(ye||1)&&(j.c=null,j.t=NaN),1},0,N),E.active=C,G.event&&G.event.start.call(c,c.__data__,g),ge=[],G.tween.forEach(function(Pe,_r){(_r=_r.call(c,c.__data__,g))&&ge.push(_r)}),ie=G.ease,ae=G.duration}function Ye(ye){for(var Ce=ye/ae,De=ie(Ce),Ue=ge.length;Ue>0;)ge[--Ue].call(c,De);if(Ce>=1)return G.event&&G.event.end.call(c,c.__data__,g),--E.count?delete E[C]:delete c[w],1}G||(N=q.time,j=Rl(me,0,N),G=E[C]={tween:new b,time:N,timer:j,delay:q.delay,duration:q.duration,ease:q.ease,index:g},q=null,++E.count)}e.svg.axis=function(){var c=e.scale.linear(),g=ji,w=6,C=6,q=3,E=[10],G=null,N;function j(ae){ae.each(function(){var ie=e.select(this),ge=this.__chart__||c,me=this.__chart__=c.copy(),Re=G==null?me.ticks?me.ticks.apply(me,E):me.domain():G,Ye=N==null?me.tickFormat?me.tickFormat.apply(me,E):V:N,ye=ie.selectAll(".tick").data(Re,me),Ce=ye.enter().insert("g",".domain").attr("class","tick").style("opacity",ke),De=e.transition(ye.exit()).style("opacity",ke).remove(),Ue=e.transition(ye.order()).style("opacity",1),Ge=Math.max(w,0)+q,Pe,_r=ur(me),Or=ie.selectAll(".domain").data([0]),Wr=(Or.enter().append("path").attr("class","domain"),e.transition(Or));Ce.append("line"),Ce.append("text");var Gr=Ce.select("line"),Jr=Ue.select("line"),$r=ye.select("text").text(Ye),bt=Ce.select("text"),Qr=Ue.select("text"),ht=g==="top"||g==="left"?-1:1,jt,Zn,on,Fr;if(g==="bottom"||g==="top"?(Pe=ll,jt="x",on="y",Zn="x2",Fr="y2",$r.attr("dy",ht<0?"0em":".71em").style("text-anchor","middle"),Wr.attr("d","M"+_r[0]+","+ht*C+"V0H"+_r[1]+"V"+ht*C)):(Pe=sl,jt="y",on="x",Zn="y2",Fr="x2",$r.attr("dy",".32em").style("text-anchor",ht<0?"end":"start"),Wr.attr("d","M"+ht*C+","+_r[0]+"H0V"+_r[1]+"H"+ht*C)),Gr.attr(Fr,ht*w),bt.attr(on,ht*Ge),Jr.attr(Zn,0).attr(Fr,ht*w),Qr.attr(jt,0).attr(on,ht*Ge),me.rangeBand){var _t=me,wt=_t.rangeBand()/2;ge=me=function(Jt){return _t(Jt)+wt}}else ge.rangeBand?ge=me:De.call(Pe,me,ge);Ce.call(Pe,ge,me),Ue.call(Pe,me,me)})}return j.scale=function(ae){return arguments.length?(c=ae,j):c},j.orient=function(ae){return arguments.length?(g=ae in ol?ae+"":ji,j):g},j.ticks=function(){return arguments.length?(E=t(arguments),j):E},j.tickValues=function(ae){return arguments.length?(G=ae,j):G},j.tickFormat=function(ae){return arguments.length?(N=ae,j):N},j.tickSize=function(ae){var ie=arguments.length;return ie?(w=+ae,C=+arguments[ie-1],j):w},j.innerTickSize=function(ae){return arguments.length?(w=+ae,j):w},j.outerTickSize=function(ae){return arguments.length?(C=+ae,j):C},j.tickPadding=function(ae){return arguments.length?(q=+ae,j):q},j.tickSubdivide=function(){return arguments.length&&j},j};var ji="bottom",ol={top:1,right:1,bottom:1,left:1};function ll(c,g,w){c.attr("transform",function(C){var q=g(C);return"translate("+(isFinite(q)?q:w(C))+",0)"})}function sl(c,g,w){c.attr("transform",function(C){var q=g(C);return"translate(0,"+(isFinite(q)?q:w(C))+")"})}e.svg.brush=function(){var c=Ne(ie,"brushstart","brush","brushend"),g=null,w=null,C=[0,0],q=[0,0],E,G,N=!0,j=!0,ae=go[0];function ie(ye){ye.each(function(){var Ce=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ye).on("touchstart.brush",Ye),De=Ce.selectAll(".background").data([0]);De.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ce.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ue=Ce.selectAll(".resize").data(ae,V);Ue.exit().remove(),Ue.enter().append("g").attr("class",function(Or){return"resize "+Or}).style("cursor",function(Or){return Xl[Or]}).append("rect").attr("x",function(Or){return/[ew]$/.test(Or)?-3:null}).attr("y",function(Or){return/^[ns]/.test(Or)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ue.style("display",ie.empty()?"none":null);var Ge=e.transition(Ce),Pe=e.transition(De),_r;g&&(_r=ur(g),Pe.attr("x",_r[0]).attr("width",_r[1]-_r[0]),me(Ge)),w&&(_r=ur(w),Pe.attr("y",_r[0]).attr("height",_r[1]-_r[0]),Re(Ge)),ge(Ge)})}ie.event=function(ye){ye.each(function(){var Ce=c.of(this,arguments),De={x:C,y:q,i:E,j:G},Ue=this.__chart__||De;this.__chart__=De,ma?e.select(this).transition().each("start.brush",function(){E=Ue.i,G=Ue.j,C=Ue.x,q=Ue.y,Ce({type:"brushstart"})}).tween("brush:brush",function(){var Ge=Ol(C,De.x),Pe=Ol(q,De.y);return E=G=null,function(_r){C=De.x=Ge(_r),q=De.y=Pe(_r),Ce({type:"brush",mode:"resize"})}}).each("end.brush",function(){E=De.i,G=De.j,Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"})}):(Ce({type:"brushstart"}),Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"}))})};function ge(ye){ye.selectAll(".resize").attr("transform",function(Ce){return"translate("+C[+/e$/.test(Ce)]+","+q[+/^s/.test(Ce)]+")"})}function me(ye){ye.select(".extent").attr("x",C[0]),ye.selectAll(".extent,.n>rect,.s>rect").attr("width",C[1]-C[0])}function Re(ye){ye.select(".extent").attr("y",q[0]),ye.selectAll(".extent,.e>rect,.w>rect").attr("height",q[1]-q[0])}function Ye(){var ye=this,Ce=e.select(e.event.target),De=c.of(ye,arguments),Ue=e.select(ye),Ge=Ce.datum(),Pe=!/^(n|s)$/.test(Ge)&&g,_r=!/^(e|w)$/.test(Ge)&&w,Or=Ce.classed("extent"),Wr=Pr(ye),Gr,Jr=e.mouse(ye),$r,bt=e.select(i(ye)).on("keydown.brush",jt).on("keyup.brush",Zn);if(e.event.changedTouches?bt.on("touchmove.brush",on).on("touchend.brush",_t):bt.on("mousemove.brush",on).on("mouseup.brush",_t),Ue.interrupt().selectAll("*").interrupt(),Or)Jr[0]=C[0]-Jr[0],Jr[1]=q[0]-Jr[1];else if(Ge){var Qr=+/w$/.test(Ge),ht=+/^n/.test(Ge);$r=[C[1-Qr]-Jr[0],q[1-ht]-Jr[1]],Jr[0]=C[Qr],Jr[1]=q[ht]}else e.event.altKey&&(Gr=Jr.slice());Ue.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ce.style("cursor")),De({type:"brushstart"}),on();function jt(){e.event.keyCode==32&&(Or||(Gr=null,Jr[0]-=C[1],Jr[1]-=q[1],Or=2),qe())}function Zn(){e.event.keyCode==32&&Or==2&&(Jr[0]+=C[1],Jr[1]+=q[1],Or=0,qe())}function on(){var wt=e.mouse(ye),Jt=!1;$r&&(wt[0]+=$r[0],wt[1]+=$r[1]),Or||(e.event.altKey?(Gr||(Gr=[(C[0]+C[1])/2,(q[0]+q[1])/2]),Jr[0]=C[+(wt[0]<Gr[0])],Jr[1]=q[+(wt[1]<Gr[1])]):Gr=null),Pe&&Fr(wt,g,0)&&(me(Ue),Jt=!0),_r&&Fr(wt,w,1)&&(Re(Ue),Jt=!0),Jt&&(ge(Ue),De({type:"brush",mode:Or?"move":"resize"}))}function Fr(wt,Jt,Nn){var oa=ur(Jt),Da=oa[0],ja=oa[1],fi=Jr[Nn],Ja=Nn?q:C,Si=Ja[1]-Ja[0],Ha,Ci;if(Or&&(Da-=fi,ja-=Si+fi),Ha=(Nn?j:N)?Math.max(Da,Math.min(ja,wt[Nn])):wt[Nn],Or?Ci=(Ha+=fi)+Si:(Gr&&(fi=Math.max(Da,Math.min(ja,2*Gr[Nn]-Ha))),fi<Ha?(Ci=Ha,Ha=fi):Ci=fi),Ja[0]!=Ha||Ja[1]!=Ci)return Nn?G=null:E=null,Ja[0]=Ha,Ja[1]=Ci,!0}function _t(){on(),Ue.style("pointer-events","all").selectAll(".resize").style("display",ie.empty()?"none":null),e.select("body").style("cursor",null),bt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),Wr(),De({type:"brushend"})}}return ie.x=function(ye){return arguments.length?(g=ye,ae=go[!g<<1|!w],ie):g},ie.y=function(ye){return arguments.length?(w=ye,ae=go[!g<<1|!w],ie):w},ie.clamp=function(ye){return arguments.length?(g&&w?(N=!!ye[0],j=!!ye[1]):g?N=!!ye:w&&(j=!!ye),ie):g&&w?[N,j]:g?N:w?j:null},ie.extent=function(ye){var Ce,De,Ue,Ge,Pe;return arguments.length?(g&&(Ce=ye[0],De=ye[1],w&&(Ce=Ce[0],De=De[0]),E=[Ce,De],g.invert&&(Ce=g(Ce),De=g(De)),De<Ce&&(Pe=Ce,Ce=De,De=Pe),(Ce!=C[0]||De!=C[1])&&(C=[Ce,De])),w&&(Ue=ye[0],Ge=ye[1],g&&(Ue=Ue[1],Ge=Ge[1]),G=[Ue,Ge],w.invert&&(Ue=w(Ue),Ge=w(Ge)),Ge<Ue&&(Pe=Ue,Ue=Ge,Ge=Pe),(Ue!=q[0]||Ge!=q[1])&&(q=[Ue,Ge])),ie):(g&&(E?(Ce=E[0],De=E[1]):(Ce=C[0],De=C[1],g.invert&&(Ce=g.invert(Ce),De=g.invert(De)),De<Ce&&(Pe=Ce,Ce=De,De=Pe))),w&&(G?(Ue=G[0],Ge=G[1]):(Ue=q[0],Ge=q[1],w.invert&&(Ue=w.invert(Ue),Ge=w.invert(Ge)),Ge<Ue&&(Pe=Ue,Ue=Ge,Ge=Pe))),g&&w?[[Ce,Ue],[De,Ge]]:g?[Ce,De]:w&&[Ue,Ge])},ie.clear=function(){return ie.empty()||(C=[0,0],q=[0,0],E=G=null),ie},ie.empty=function(){return!!g&&C[0]==C[1]||!!w&&q[0]==q[1]},e.rebind(ie,c,"on")};var Xl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},go=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=Wa(function(c){return c.responseText}),e.json=function(c,g){return Yo(c,"application/json",Ys,g)};function Ys(c){return JSON.parse(c.responseText)}e.html=function(c,g){return Yo(c,"text/html",Wf,g)};function Wf(c){var g=n.createRange();return g.selectNode(n.body),g.createContextualFragment(c.responseText)}e.xml=Wa(function(c){return c.responseXML}),typeof Kh=="object"&&Kh.exports?Kh.exports=e:this.d3=e}).apply(self)});var xy=ne((Qh,V_)=>{(function(e,r){typeof Qh=="object"&&typeof V_!="undefined"?r(Qh):(e=e||self,r(e.d3=e.d3||{}))})(Qh,function(e){"use strict";var r=new Date,t=new Date;function n(Ae,Ve,je,zr){function kr(er){return Ae(er=arguments.length===0?new Date:new Date(+er)),er}return kr.floor=function(er){return Ae(er=new Date(+er)),er},kr.ceil=function(er){return Ae(er=new Date(er-1)),Ve(er,1),Ae(er),er},kr.round=function(er){var Ke=kr(er),mr=kr.ceil(er);return er-Ke<mr-er?Ke:mr},kr.offset=function(er,Ke){return Ve(er=new Date(+er),Ke==null?1:Math.floor(Ke)),er},kr.range=function(er,Ke,mr){var Mr=[],gr;if(er=kr.ceil(er),mr=mr==null?1:Math.floor(mr),!(er<Ke)||!(mr>0))return Mr;do Mr.push(gr=new Date(+er)),Ve(er,mr),Ae(er);while(gr<er&&er<Ke);return Mr},kr.filter=function(er){return n(function(Ke){if(Ke>=Ke)for(;Ae(Ke),!er(Ke);)Ke.setTime(Ke-1)},function(Ke,mr){if(Ke>=Ke)if(mr<0)for(;++mr<=0;)for(;Ve(Ke,-1),!er(Ke););else for(;--mr>=0;)for(;Ve(Ke,1),!er(Ke););})},je&&(kr.count=function(er,Ke){return r.setTime(+er),t.setTime(+Ke),Ae(r),Ae(t),Math.floor(je(r,t))},kr.every=function(er){return er=Math.floor(er),!isFinite(er)||!(er>0)?null:er>1?kr.filter(zr?function(Ke){return zr(Ke)%er===0}:function(Ke){return kr.count(0,Ke)%er===0}):kr}),kr}var a=n(function(){},function(Ae,Ve){Ae.setTime(+Ae+Ve)},function(Ae,Ve){return Ve-Ae});a.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?n(function(Ve){Ve.setTime(Math.floor(Ve/Ae)*Ae)},function(Ve,je){Ve.setTime(+Ve+je*Ae)},function(Ve,je){return(je-Ve)/Ae}):a};var i=a.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,v=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds())},function(Ae,Ve){Ae.setTime(+Ae+Ve*o)},function(Ae,Ve){return(Ve-Ae)/o},function(Ae){return Ae.getUTCSeconds()}),h=v.range,d=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o)},function(Ae,Ve){Ae.setTime(+Ae+Ve*l)},function(Ae,Ve){return(Ve-Ae)/l},function(Ae){return Ae.getMinutes()}),m=d.range,p=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o-Ae.getMinutes()*l)},function(Ae,Ve){Ae.setTime(+Ae+Ve*s)},function(Ae,Ve){return(Ve-Ae)/s},function(Ae){return Ae.getHours()}),y=p.range,_=n(function(Ae){Ae.setHours(0,0,0,0)},function(Ae,Ve){Ae.setDate(Ae.getDate()+Ve)},function(Ae,Ve){return(Ve-Ae-(Ve.getTimezoneOffset()-Ae.getTimezoneOffset())*l)/u},function(Ae){return Ae.getDate()-1}),S=_.range;function x(Ae){return n(function(Ve){Ve.setDate(Ve.getDate()-(Ve.getDay()+7-Ae)%7),Ve.setHours(0,0,0,0)},function(Ve,je){Ve.setDate(Ve.getDate()+je*7)},function(Ve,je){return(je-Ve-(je.getTimezoneOffset()-Ve.getTimezoneOffset())*l)/f})}var b=x(0),A=x(1),k=x(2),M=x(3),D=x(4),z=x(5),F=x(6),H=b.range,Y=A.range,O=k.range,X=M.range,V=D.range,ee=z.range,te=F.range,K=n(function(Ae){Ae.setDate(1),Ae.setHours(0,0,0,0)},function(Ae,Ve){Ae.setMonth(Ae.getMonth()+Ve)},function(Ae,Ve){return Ve.getMonth()-Ae.getMonth()+(Ve.getFullYear()-Ae.getFullYear())*12},function(Ae){return Ae.getMonth()}),re=K.range,fe=n(function(Ae){Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,Ve){Ae.setFullYear(Ae.getFullYear()+Ve)},function(Ae,Ve){return Ve.getFullYear()-Ae.getFullYear()},function(Ae){return Ae.getFullYear()});fe.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(Ve){Ve.setFullYear(Math.floor(Ve.getFullYear()/Ae)*Ae),Ve.setMonth(0,1),Ve.setHours(0,0,0,0)},function(Ve,je){Ve.setFullYear(Ve.getFullYear()+je*Ae)})};var de=fe.range,qe=n(function(Ae){Ae.setUTCSeconds(0,0)},function(Ae,Ve){Ae.setTime(+Ae+Ve*l)},function(Ae,Ve){return(Ve-Ae)/l},function(Ae){return Ae.getUTCMinutes()}),Be=qe.range,Ne=n(function(Ae){Ae.setUTCMinutes(0,0,0)},function(Ae,Ve){Ae.setTime(+Ae+Ve*s)},function(Ae,Ve){return(Ve-Ae)/s},function(Ae){return Ae.getUTCHours()}),Ie=Ne.range,Se=n(function(Ae){Ae.setUTCHours(0,0,0,0)},function(Ae,Ve){Ae.setUTCDate(Ae.getUTCDate()+Ve)},function(Ae,Ve){return(Ve-Ae)/u},function(Ae){return Ae.getUTCDate()-1}),Xe=Se.range;function se(Ae){return n(function(Ve){Ve.setUTCDate(Ve.getUTCDate()-(Ve.getUTCDay()+7-Ae)%7),Ve.setUTCHours(0,0,0,0)},function(Ve,je){Ve.setUTCDate(Ve.getUTCDate()+je*7)},function(Ve,je){return(je-Ve)/f})}var be=se(0),Te=se(1),pe=se(2),W=se(3),Q=se(4),$=se(5),Me=se(6),Fe=be.range,Oe=Te.range,fr=pe.range,nr=W.range,Ze=Q.range,ar=$.range,lr=Me.range,ir=n(function(Ae){Ae.setUTCDate(1),Ae.setUTCHours(0,0,0,0)},function(Ae,Ve){Ae.setUTCMonth(Ae.getUTCMonth()+Ve)},function(Ae,Ve){return Ve.getUTCMonth()-Ae.getUTCMonth()+(Ve.getUTCFullYear()-Ae.getUTCFullYear())*12},function(Ae){return Ae.getUTCMonth()}),rr=ir.range,Cr=n(function(Ae){Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,Ve){Ae.setUTCFullYear(Ae.getUTCFullYear()+Ve)},function(Ae,Ve){return Ve.getUTCFullYear()-Ae.getUTCFullYear()},function(Ae){return Ae.getUTCFullYear()});Cr.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(Ve){Ve.setUTCFullYear(Math.floor(Ve.getUTCFullYear()/Ae)*Ae),Ve.setUTCMonth(0,1),Ve.setUTCHours(0,0,0,0)},function(Ve,je){Ve.setUTCFullYear(Ve.getUTCFullYear()+je*Ae)})};var yr=Cr.range;e.timeDay=_,e.timeDays=S,e.timeFriday=z,e.timeFridays=ee,e.timeHour=p,e.timeHours=y,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=Y,e.timeMonth=K,e.timeMonths=re,e.timeSaturday=F,e.timeSaturdays=te,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=H,e.timeThursday=D,e.timeThursdays=V,e.timeTuesday=k,e.timeTuesdays=O,e.timeWednesday=M,e.timeWednesdays=X,e.timeWeek=b,e.timeWeeks=H,e.timeYear=fe,e.timeYears=de,e.utcDay=Se,e.utcDays=Xe,e.utcFriday=$,e.utcFridays=ar,e.utcHour=Ne,e.utcHours=Ie,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=qe,e.utcMinutes=Be,e.utcMonday=Te,e.utcMondays=Oe,e.utcMonth=ir,e.utcMonths=rr,e.utcSaturday=Me,e.utcSaturdays=lr,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=Fe,e.utcThursday=Q,e.utcThursdays=Ze,e.utcTuesday=pe,e.utcTuesdays=fr,e.utcWednesday=W,e.utcWednesdays=nr,e.utcWeek=be,e.utcWeeks=Fe,e.utcYear=Cr,e.utcYears=yr,Object.defineProperty(e,"__esModule",{value:!0})})});var m0=ne((ed,W_)=>{(function(e,r){typeof ed=="object"&&typeof W_!="undefined"?r(ed,xy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ed,function(e,r){"use strict";function t(_e){if(0<=_e.y&&_e.y<100){var ke=new Date(-1,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L);return ke.setFullYear(_e.y),ke}return new Date(_e.y,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L)}function n(_e){if(0<=_e.y&&_e.y<100){var ke=new Date(Date.UTC(-1,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L));return ke.setUTCFullYear(_e.y),ke}return new Date(Date.UTC(_e.y,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L))}function a(_e,ke,$e){return{y:_e,m:ke,d:$e,H:0,M:0,S:0,L:0}}function i(_e){var ke=_e.dateTime,$e=_e.date,We=_e.time,qr=_e.periods,Vr=_e.days,Hr=_e.shortDays,lt=_e.months,xt=_e.shortMonths,Rt=h(qr),St=d(qr),hn=h(Vr),Fn=d(Vr),$n=h(Hr),Xt=d(Hr),cn=h(lt),sn=d(lt),Kt=h(xt),aa=d(xt),rt={a:gi,A:io,b:mi,B:ms,c:null,d:K,e:K,f:Be,H:re,I:fe,j:de,L:qe,m:Ne,M:Ie,p:El,q:Bo,Q:Ke,s:mr,S:Se,u:Xe,U:se,V:be,w:Te,W:pe,x:null,X:null,y:W,Y:Q,Z:$,"%":er},Qt={a:ys,A:Oo,b:Hn,B:yi,c:null,d:Me,e:Me,f:Ze,H:Fe,I:Oe,j:fr,L:nr,m:ar,M:lr,p:Uo,q:bi,Q:Ke,s:mr,S:ir,u:rr,U:Cr,V:yr,w:Ae,W:Ve,x:null,X:null,y:je,Y:zr,Z:kr,"%":er},Ct={a:da,A:Sn,b:Na,B:pa,c:wn,d:D,e:D,f:X,H:F,I:F,j:z,L:O,m:M,M:H,p:un,q:k,Q:ee,s:te,S:Y,u:p,U:y,V:_,w:m,W:S,x:It,X:In,y:b,Y:x,Z:A,"%":V};rt.x=dn($e,rt),rt.X=dn(We,rt),rt.c=dn(ke,rt),Qt.x=dn($e,Qt),Qt.X=dn(We,Qt),Qt.c=dn(ke,Qt);function dn(Kr,Lt){return function(Ht){var Br=[],Vn=-1,nn=0,Dn=Kr.length,At,Wa,Yo;for(Ht instanceof Date||(Ht=new Date(+Ht));++Vn<Dn;)Kr.charCodeAt(Vn)===37&&(Br.push(Kr.slice(nn,Vn)),(Wa=o[At=Kr.charAt(++Vn)])!=null?At=Kr.charAt(++Vn):Wa=At==="e"?" ":"0",(Yo=Lt[At])&&(At=Yo(Ht,Wa)),Br.push(At),nn=Vn+1);return Br.push(Kr.slice(nn,Vn)),Br.join("")}}function pn(Kr,Lt){return function(Ht){var Br=a(1900,void 0,1),Vn=tn(Br,Kr,Ht+="",0),nn,Dn;if(Vn!=Ht.length)return null;if("Q"in Br)return new Date(Br.Q);if("s"in Br)return new Date(Br.s*1e3+("L"in Br?Br.L:0));if(Lt&&!("Z"in Br)&&(Br.Z=0),"p"in Br&&(Br.H=Br.H%12+Br.p*12),Br.m===void 0&&(Br.m="q"in Br?Br.q:0),"V"in Br){if(Br.V<1||Br.V>53)return null;"w"in Br||(Br.w=1),"Z"in Br?(nn=n(a(Br.y,0,1)),Dn=nn.getUTCDay(),nn=Dn>4||Dn===0?r.utcMonday.ceil(nn):r.utcMonday(nn),nn=r.utcDay.offset(nn,(Br.V-1)*7),Br.y=nn.getUTCFullYear(),Br.m=nn.getUTCMonth(),Br.d=nn.getUTCDate()+(Br.w+6)%7):(nn=t(a(Br.y,0,1)),Dn=nn.getDay(),nn=Dn>4||Dn===0?r.timeMonday.ceil(nn):r.timeMonday(nn),nn=r.timeDay.offset(nn,(Br.V-1)*7),Br.y=nn.getFullYear(),Br.m=nn.getMonth(),Br.d=nn.getDate()+(Br.w+6)%7)}else("W"in Br||"U"in Br)&&("w"in Br||(Br.w="u"in Br?Br.u%7:"W"in Br?1:0),Dn="Z"in Br?n(a(Br.y,0,1)).getUTCDay():t(a(Br.y,0,1)).getDay(),Br.m=0,Br.d="W"in Br?(Br.w+6)%7+Br.W*7-(Dn+5)%7:Br.w+Br.U*7-(Dn+6)%7);return"Z"in Br?(Br.H+=Br.Z/100|0,Br.M+=Br.Z%100,n(Br)):t(Br)}}function tn(Kr,Lt,Ht,Br){for(var Vn=0,nn=Lt.length,Dn=Ht.length,At,Wa;Vn<nn;){if(Br>=Dn)return-1;if(At=Lt.charCodeAt(Vn++),At===37){if(At=Lt.charAt(Vn++),Wa=Ct[At in o?Lt.charAt(Vn++):At],!Wa||(Br=Wa(Kr,Ht,Br))<0)return-1}else if(At!=Ht.charCodeAt(Br++))return-1}return Br}function un(Kr,Lt,Ht){var Br=Rt.exec(Lt.slice(Ht));return Br?(Kr.p=St[Br[0].toLowerCase()],Ht+Br[0].length):-1}function da(Kr,Lt,Ht){var Br=$n.exec(Lt.slice(Ht));return Br?(Kr.w=Xt[Br[0].toLowerCase()],Ht+Br[0].length):-1}function Sn(Kr,Lt,Ht){var Br=hn.exec(Lt.slice(Ht));return Br?(Kr.w=Fn[Br[0].toLowerCase()],Ht+Br[0].length):-1}function Na(Kr,Lt,Ht){var Br=Kt.exec(Lt.slice(Ht));return Br?(Kr.m=aa[Br[0].toLowerCase()],Ht+Br[0].length):-1}function pa(Kr,Lt,Ht){var Br=cn.exec(Lt.slice(Ht));return Br?(Kr.m=sn[Br[0].toLowerCase()],Ht+Br[0].length):-1}function wn(Kr,Lt,Ht){return tn(Kr,ke,Lt,Ht)}function It(Kr,Lt,Ht){return tn(Kr,$e,Lt,Ht)}function In(Kr,Lt,Ht){return tn(Kr,We,Lt,Ht)}function gi(Kr){return Hr[Kr.getDay()]}function io(Kr){return Vr[Kr.getDay()]}function mi(Kr){return xt[Kr.getMonth()]}function ms(Kr){return lt[Kr.getMonth()]}function El(Kr){return qr[+(Kr.getHours()>=12)]}function Bo(Kr){return 1+~~(Kr.getMonth()/3)}function ys(Kr){return Hr[Kr.getUTCDay()]}function Oo(Kr){return Vr[Kr.getUTCDay()]}function Hn(Kr){return xt[Kr.getUTCMonth()]}function yi(Kr){return lt[Kr.getUTCMonth()]}function Uo(Kr){return qr[+(Kr.getUTCHours()>=12)]}function bi(Kr){return 1+~~(Kr.getUTCMonth()/3)}return{format:function(Kr){var Lt=dn(Kr+="",rt);return Lt.toString=function(){return Kr},Lt},parse:function(Kr){var Lt=pn(Kr+="",!1);return Lt.toString=function(){return Kr},Lt},utcFormat:function(Kr){var Lt=dn(Kr+="",Qt);return Lt.toString=function(){return Kr},Lt},utcParse:function(Kr){var Lt=pn(Kr+="",!0);return Lt.toString=function(){return Kr},Lt}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(_e,ke,$e){var We=_e<0?"-":"",qr=(We?-_e:_e)+"",Vr=qr.length;return We+(Vr<$e?new Array($e-Vr+1).join(ke)+qr:qr)}function v(_e){return _e.replace(u,"\\$&")}function h(_e){return new RegExp("^(?:"+_e.map(v).join("|")+")","i")}function d(_e){for(var ke={},$e=-1,We=_e.length;++$e<We;)ke[_e[$e].toLowerCase()]=$e;return ke}function m(_e,ke,$e){var We=l.exec(ke.slice($e,$e+1));return We?(_e.w=+We[0],$e+We[0].length):-1}function p(_e,ke,$e){var We=l.exec(ke.slice($e,$e+1));return We?(_e.u=+We[0],$e+We[0].length):-1}function y(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.U=+We[0],$e+We[0].length):-1}function _(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.V=+We[0],$e+We[0].length):-1}function S(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.W=+We[0],$e+We[0].length):-1}function x(_e,ke,$e){var We=l.exec(ke.slice($e,$e+4));return We?(_e.y=+We[0],$e+We[0].length):-1}function b(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.y=+We[0]+(+We[0]>68?1900:2e3),$e+We[0].length):-1}function A(_e,ke,$e){var We=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ke.slice($e,$e+6));return We?(_e.Z=We[1]?0:-(We[2]+(We[3]||"00")),$e+We[0].length):-1}function k(_e,ke,$e){var We=l.exec(ke.slice($e,$e+1));return We?(_e.q=We[0]*3-3,$e+We[0].length):-1}function M(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.m=We[0]-1,$e+We[0].length):-1}function D(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.d=+We[0],$e+We[0].length):-1}function z(_e,ke,$e){var We=l.exec(ke.slice($e,$e+3));return We?(_e.m=0,_e.d=+We[0],$e+We[0].length):-1}function F(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.H=+We[0],$e+We[0].length):-1}function H(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.M=+We[0],$e+We[0].length):-1}function Y(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.S=+We[0],$e+We[0].length):-1}function O(_e,ke,$e){var We=l.exec(ke.slice($e,$e+3));return We?(_e.L=+We[0],$e+We[0].length):-1}function X(_e,ke,$e){var We=l.exec(ke.slice($e,$e+6));return We?(_e.L=Math.floor(We[0]/1e3),$e+We[0].length):-1}function V(_e,ke,$e){var We=s.exec(ke.slice($e,$e+1));return We?$e+We[0].length:-1}function ee(_e,ke,$e){var We=l.exec(ke.slice($e));return We?(_e.Q=+We[0],$e+We[0].length):-1}function te(_e,ke,$e){var We=l.exec(ke.slice($e));return We?(_e.s=+We[0],$e+We[0].length):-1}function K(_e,ke){return f(_e.getDate(),ke,2)}function re(_e,ke){return f(_e.getHours(),ke,2)}function fe(_e,ke){return f(_e.getHours()%12||12,ke,2)}function de(_e,ke){return f(1+r.timeDay.count(r.timeYear(_e),_e),ke,3)}function qe(_e,ke){return f(_e.getMilliseconds(),ke,3)}function Be(_e,ke){return qe(_e,ke)+"000"}function Ne(_e,ke){return f(_e.getMonth()+1,ke,2)}function Ie(_e,ke){return f(_e.getMinutes(),ke,2)}function Se(_e,ke){return f(_e.getSeconds(),ke,2)}function Xe(_e){var ke=_e.getDay();return ke===0?7:ke}function se(_e,ke){return f(r.timeSunday.count(r.timeYear(_e)-1,_e),ke,2)}function be(_e,ke){var $e=_e.getDay();return _e=$e>=4||$e===0?r.timeThursday(_e):r.timeThursday.ceil(_e),f(r.timeThursday.count(r.timeYear(_e),_e)+(r.timeYear(_e).getDay()===4),ke,2)}function Te(_e){return _e.getDay()}function pe(_e,ke){return f(r.timeMonday.count(r.timeYear(_e)-1,_e),ke,2)}function W(_e,ke){return f(_e.getFullYear()%100,ke,2)}function Q(_e,ke){return f(_e.getFullYear()%1e4,ke,4)}function $(_e){var ke=_e.getTimezoneOffset();return(ke>0?"-":(ke*=-1,"+"))+f(ke/60|0,"0",2)+f(ke%60,"0",2)}function Me(_e,ke){return f(_e.getUTCDate(),ke,2)}function Fe(_e,ke){return f(_e.getUTCHours(),ke,2)}function Oe(_e,ke){return f(_e.getUTCHours()%12||12,ke,2)}function fr(_e,ke){return f(1+r.utcDay.count(r.utcYear(_e),_e),ke,3)}function nr(_e,ke){return f(_e.getUTCMilliseconds(),ke,3)}function Ze(_e,ke){return nr(_e,ke)+"000"}function ar(_e,ke){return f(_e.getUTCMonth()+1,ke,2)}function lr(_e,ke){return f(_e.getUTCMinutes(),ke,2)}function ir(_e,ke){return f(_e.getUTCSeconds(),ke,2)}function rr(_e){var ke=_e.getUTCDay();return ke===0?7:ke}function Cr(_e,ke){return f(r.utcSunday.count(r.utcYear(_e)-1,_e),ke,2)}function yr(_e,ke){var $e=_e.getUTCDay();return _e=$e>=4||$e===0?r.utcThursday(_e):r.utcThursday.ceil(_e),f(r.utcThursday.count(r.utcYear(_e),_e)+(r.utcYear(_e).getUTCDay()===4),ke,2)}function Ae(_e){return _e.getUTCDay()}function Ve(_e,ke){return f(r.utcMonday.count(r.utcYear(_e)-1,_e),ke,2)}function je(_e,ke){return f(_e.getUTCFullYear()%100,ke,2)}function zr(_e,ke){return f(_e.getUTCFullYear()%1e4,ke,4)}function kr(){return"+0000"}function er(){return"%"}function Ke(_e){return+_e}function mr(_e){return Math.floor(+_e/1e3)}var Mr;gr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function gr(_e){return Mr=i(_e),e.timeFormat=Mr.format,e.timeParse=Mr.parse,e.utcFormat=Mr.utcFormat,e.utcParse=Mr.utcParse,Mr}var dr="%Y-%m-%dT%H:%M:%S.%LZ";function Tr(_e){return _e.toISOString()}var Pr=Date.prototype.toISOString?Tr:e.utcFormat(dr);function Ur(_e){var ke=new Date(_e);return isNaN(ke)?null:ke}var sr=+new Date("2000-01-01T00:00:00.000Z")?Ur:e.utcParse(dr);e.isoFormat=Pr,e.isoParse=sr,e.timeFormatDefaultLocale=gr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var wy=ne((rd,Z_)=>{(function(e,r){typeof rd=="object"&&typeof Z_!="undefined"?r(rd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(rd,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,D){if((z=(M=D?M.toExponential(D-1):M.toExponential()).indexOf("e"))<0)return null;var z,F=M.slice(0,z);return[F.length>1?F[0]+F.slice(2):F,+M.slice(z+1)]}function n(M){return M=t(Math.abs(M)),M?M[1]:NaN}function a(M,D){return function(z,F){for(var H=z.length,Y=[],O=0,X=M[0],V=0;H>0&&X>0&&(V+X+1>F&&(X=Math.max(1,F-V)),Y.push(z.substring(H-=X,H+X)),!((V+=X+1)>F));)X=M[O=(O+1)%M.length];return Y.reverse().join(D)}}function i(M){return function(D){return D.replace(/[0-9]/g,function(z){return M[+z]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(D=o.exec(M)))throw new Error("invalid format: "+M);var D;return new s({fill:D[1],align:D[2],sign:D[3],symbol:D[4],zero:D[5],width:D[6],comma:D[7],precision:D[8]&&D[8].slice(1),trim:D[9],type:D[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var D=M.length,z=1,F=-1,H;z<D;++z)switch(M[z]){case".":F=H=z;break;case"0":F===0&&(F=z),H=z;break;default:if(!+M[z])break e;F>0&&(F=0);break}return F>0?M.slice(0,F)+M.slice(H+1):M}var f;function v(M,D){var z=t(M,D);if(!z)return M+"";var F=z[0],H=z[1],Y=H-(f=Math.max(-8,Math.min(8,Math.floor(H/3)))*3)+1,O=F.length;return Y===O?F:Y>O?F+new Array(Y-O+1).join("0"):Y>0?F.slice(0,Y)+"."+F.slice(Y):"0."+new Array(1-Y).join("0")+t(M,Math.max(0,D+Y-1))[0]}function h(M,D){var z=t(M,D);if(!z)return M+"";var F=z[0],H=z[1];return H<0?"0."+new Array(-H).join("0")+F:F.length>H+1?F.slice(0,H+1)+"."+F.slice(H+1):F+new Array(H-F.length+2).join("0")}var d={"%":function(M,D){return(M*100).toFixed(D)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,D){return M.toExponential(D)},f:function(M,D){return M.toFixed(D)},g:function(M,D){return M.toPrecision(D)},o:function(M){return Math.round(M).toString(8)},p:function(M,D){return h(M*100,D)},r:h,s:v,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function m(M){return M}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _(M){var D=M.grouping===void 0||M.thousands===void 0?m:a(p.call(M.grouping,Number),M.thousands+""),z=M.currency===void 0?"":M.currency[0]+"",F=M.currency===void 0?"":M.currency[1]+"",H=M.decimal===void 0?".":M.decimal+"",Y=M.numerals===void 0?m:i(p.call(M.numerals,String)),O=M.percent===void 0?"%":M.percent+"",X=M.minus===void 0?"-":M.minus+"",V=M.nan===void 0?"NaN":M.nan+"";function ee(K){K=l(K);var re=K.fill,fe=K.align,de=K.sign,qe=K.symbol,Be=K.zero,Ne=K.width,Ie=K.comma,Se=K.precision,Xe=K.trim,se=K.type;se==="n"?(Ie=!0,se="g"):d[se]||(Se===void 0&&(Se=12),Xe=!0,se="g"),(Be||re==="0"&&fe==="=")&&(Be=!0,re="0",fe="=");var be=qe==="$"?z:qe==="#"&&/[boxX]/.test(se)?"0"+se.toLowerCase():"",Te=qe==="$"?F:/[%p]/.test(se)?O:"",pe=d[se],W=/[defgprs%]/.test(se);Se=Se===void 0?6:/[gprs]/.test(se)?Math.max(1,Math.min(21,Se)):Math.max(0,Math.min(20,Se));function Q($){var Me=be,Fe=Te,Oe,fr,nr;if(se==="c")Fe=pe($)+Fe,$="";else{$=+$;var Ze=$<0||1/$<0;if($=isNaN($)?V:pe(Math.abs($),Se),Xe&&($=u($)),Ze&&+$==0&&de!=="+"&&(Ze=!1),Me=(Ze?de==="("?de:X:de==="-"||de==="("?"":de)+Me,Fe=(se==="s"?y[8+f/3]:"")+Fe+(Ze&&de==="("?")":""),W){for(Oe=-1,fr=$.length;++Oe<fr;)if(nr=$.charCodeAt(Oe),48>nr||nr>57){Fe=(nr===46?H+$.slice(Oe+1):$.slice(Oe))+Fe,$=$.slice(0,Oe);break}}}Ie&&!Be&&($=D($,1/0));var ar=Me.length+$.length+Fe.length,lr=ar<Ne?new Array(Ne-ar+1).join(re):"";switch(Ie&&Be&&($=D(lr+$,lr.length?Ne-Fe.length:1/0),lr=""),fe){case"<":$=Me+$+Fe+lr;break;case"=":$=Me+lr+$+Fe;break;case"^":$=lr.slice(0,ar=lr.length>>1)+Me+$+Fe+lr.slice(ar);break;default:$=lr+Me+$+Fe;break}return Y($)}return Q.toString=function(){return K+""},Q}function te(K,re){var fe=ee((K=l(K),K.type="f",K)),de=Math.max(-8,Math.min(8,Math.floor(n(re)/3)))*3,qe=Math.pow(10,-de),Be=y[8+de/3];return function(Ne){return fe(qe*Ne)+Be}}return{format:ee,formatPrefix:te}}var S;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(M){return S=_(M),e.format=S.format,e.formatPrefix=S.formatPrefix,S}function b(M){return Math.max(0,-n(Math.abs(M)))}function A(M,D){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(D)/3)))*3-n(Math.abs(M)))}function k(M,D){return M=Math.abs(M),D=Math.abs(D)-M,Math.max(0,n(D)-n(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=_,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=A,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var j_=ne((Voe,X_)=>{"use strict";X_.exports=function(e){for(var r=e.length,t,n=0;n<r;n++)if(t=e.charCodeAt(n),(t<9||t>13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Bt=ne((Woe,J_)=>{"use strict";var ZI=j_();J_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&ZI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var En=ne((Zoe,$_)=>{"use strict";$_.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var My=ne((td,K_)=>{(function(e,r){typeof td=="object"&&typeof K_!="undefined"?r(td):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(td,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n<r.length;n++)t[r.charCodeAt(n)]=n;var a=function(o){var l=new Uint8Array(o),s,u=l.length,f="";for(s=0;s<u;s+=3)f+=r[l[s]>>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,v,h,d,m;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var p=new ArrayBuffer(l),y=new Uint8Array(p);for(u=0;u<s;u+=4)v=t[o.charCodeAt(u)],h=t[o.charCodeAt(u+1)],d=t[o.charCodeAt(u+2)],m=t[o.charCodeAt(u+3)],y[f++]=v<<2|h>>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return p};e.decode=i,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Gs=ne((Xoe,Q_)=>{"use strict";Q_.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Ji=ne(fl=>{"use strict";var XI=My().decode,jI=Gs(),Ay=Array.isArray,JI=ArrayBuffer,$I=DataView;function e6(e){return JI.isView(e)&&!(e instanceof $I)}fl.isTypedArray=e6;function nd(e){return Ay(e)||e6(e)}fl.isArrayOrTypedArray=nd;function KI(e){return!nd(e[0])}fl.isArray1D=KI;fl.ensureArray=function(e,r){return Ay(e)||(e=[]),e.length=r,e};var Ta={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ta.uint8c=Ta.u1c;Ta.uint8=Ta.u1;Ta.int8=Ta.i1;Ta.uint16=Ta.u2;Ta.int16=Ta.i2;Ta.uint32=Ta.u4;Ta.int32=Ta.i4;Ta.float32=Ta.f4;Ta.float64=Ta.f8;function Ty(e){return e.constructor===ArrayBuffer}fl.isArrayBuffer=Ty;fl.decodeTypedArraySpec=function(e){var r=[],t=QI(e),n=t.dtype,a=Ta[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var i=a.BYTES_PER_ELEMENT,o=t.bdata;Ty(o)||(o=XI(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,v=+l[0],h=i*v,d=0;if(s===1)r=new a(o);else if(s===2)for(u=+l[1],f=0;f<u;f++)r[f]=new a(o,d,v),d+=h;else if(s===3){u=+l[1];for(var m=+l[2],p=0;p<m;p++)for(r[p]=[],f=0;f<u;f++)r[p][f]=new a(o,d,v),d+=h}else throw new Error("ndim: "+s+'is not supported with the shape:"'+t.shape+'"');return r.bdata=t.bdata,r.dtype=t.dtype,r.shape=l.reverse().join(","),e._inputArray=r,r};fl.isTypedArraySpec=function(e){return jI(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||Ty(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function QI(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}fl.concat=function(){var e=[],r=!0,t=0,n,a,i,o,l,s,u,f;for(i=0;i<arguments.length;i++)o=arguments[i],s=o.length,s&&(a?e.push(o):(a=o,l=s),Ay(o)?n=!1:(r=!1,t?n!==o.constructor&&(n=!1):n=o.constructor),t+=s);if(!t)return[];if(!e.length)return a;if(r)return a.concat.apply(a,e);if(n){for(u=new n(t),u.set(a),i=0;i<e.length;i++)o=e[i],u.set(o,l),l+=o.length;return u}for(u=new Array(t),f=0;f<a.length;f++)u[f]=a[f];for(i=0;i<e.length;i++){for(o=e[i],f=0;f<o.length;f++)u[l+f]=o[f];l+=f}return u};fl.maxRowLength=function(e){return r6(e,Math.max,0)};fl.minRowLength=function(e){return r6(e,Math.min,1/0)};function r6(e,r,t){if(nd(e))if(nd(e[0])){for(var n=t,a=0;a<e.length;a++)n=r(n,e[a].length);return n}else return e.length;return 0}});var $v=ne((Joe,o6)=>{"use strict";var t6=Bt(),Sy=Ji().isArrayOrTypedArray;o6.exports=function(r,t){if(t6(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var n=t.split("."),a,i,o,l;for(l=0;l<n.length;l++)if(String(n[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<n.length;){if(a=String(n[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),a){if(a[1])n[l]=a[1];else if(l===0)n.splice(0,1);else throw"bad property string";for(i=a[2].substr(1,a[2].length-2).split("]["),o=0;o<i.length;o++)l++,n.splice(l,0,Number(i[o]))}l++}return typeof r!="object"?nH(r,t,n):{set:a6(r,n,t),get:n6(r,n),astr:t,parts:n,obj:r}};function n6(e,r){return function(t){var n=e,a,i,o,l,s;for(l=0;l<r.length-1;l++){if(a=r[l],a===-1){for(i=!0,o=[],s=0;s<n.length;s++)o[s]=n6(n[s],r.slice(l+1))(t),o[s]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof a=="number"&&!Sy(n)||(n=n[a],typeof n!="object"||n===null))return}if(!(typeof n!="object"||n===null)&&(o=n[r[l]],!(!t&&o===null)))return o}}var eH=/(^|\.)args\[/;function ky(e,r){return e===void 0||e===null&&!r.match(eH)}function a6(e,r,t){return function(n){var a=e,i="",o=[[e,i]],l=ky(n,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!Sy(a))throw"array index but container is not an array";if(s===-1){if(l=!tH(a,r.slice(u+1),n,t),l)break;return}if(!i6(a,s,r[u+1],l))break;if(a=a[s],typeof a!="object"||a===null)throw"container is not an object";i=rH(i,s),o.push([a,i])}if(l){if(u===r.length-1&&(delete a[r[u]],Array.isArray(a)&&+r[u]===a.length-1))for(;a.length&&a[a.length-1]===void 0;)a.pop()}else a[r[u]]=n}}function rH(e,r){var t=r;return t6(r)?t="["+r+"]":e&&(t="."+r),e+t}function tH(e,r,t,n){var a=Sy(t),i=!0,o=t,l=n.replace("-1",0),s=a?!1:ky(t,l),u=r[0],f;for(f=0;f<e.length;f++)l=n.replace("-1",f),a&&(o=t[f%t.length],s=ky(o,l)),s&&(i=!1),i6(e,f,u,s)&&a6(e[f],r,n.replace("-1",f))(o);return i}function i6(e,r,t,n){if(e[r]===void 0){if(n)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function nH(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var f6=ne(($oe,u6)=>{"use strict";var y0=$v(),aH=/^\w*$/,iH=0,l6=1,ad=2,s6=3,jf=4;u6.exports=function(r,t,n,a){n=n||"name",a=a||"value";var i,o,l,s={};t&&t.length?(l=y0(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i<o.length;i++)u[o[i][n]]=i;var f=aH.test(a),v={set:function(h,d){var m=d===null?jf:iH;if(!o){if(!l||m===jf)return;o=[],l.set(o)}var p=u[h];if(p===void 0){if(m===jf)return;m=m|s6,p=o.length,u[h]=p}else d!==(f?o[p][a]:y0(o[p],a).get())&&(m=m|ad);var y=o[p]=o[p]||{};return y[n]=h,f?y[a]=d:y0(y,a).set(d),d!==null&&(m=m&~jf),s[p]=s[p]|m,v},get:function(h){if(o){var d=u[h];if(d!==void 0)return f?o[d][a]:y0(o[d],a).get()}},rename:function(h,d){var m=u[h];return m===void 0||(s[m]=s[m]|l6,u[d]=m,delete u[h],o[m][n]=d),v},remove:function(h){var d=u[h];if(d===void 0)return v;var m=o[d];if(Object.keys(m).length>2)return s[d]=s[d]|ad,v.set(h,null);if(f){for(i=d;i<o.length;i++)s[i]=s[i]|s6;for(i=d;i<o.length;i++)u[o[i][n]]--;o.splice(d,1),delete u[h]}else y0(m,a).set(null),s[d]=s[d]|ad|jf;return v},constructUpdate:function(){for(var h,d,m={},p=Object.keys(s),y=0;y<p.length;y++)d=p[y],h=t+"["+d+"]",o[d]?(s[d]&l6&&(m[h+"."+n]=o[d][n]),s[d]&ad&&(f?m[h+"."+a]=s[d]&jf?null:o[d][a]:m[h+"."+a]=s[d]&jf?null:y0(o[d],a).get())):m[h]=null;return m}};return v}});var v6=ne((Koe,c6)=>{"use strict";var oH=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,lH=/^[^\.\[\]]+$/;c6.exports=function(e,r){for(;r;){var t=e.match(oH);if(t)e=t[1];else if(e.match(lH))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var id=ne((Qoe,h6)=>{"use strict";var sH=Bt();h6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return sH(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var g6=ne((ele,p6)=>{"use strict";var d6=Ji().isArrayOrTypedArray,Kv=Gs();p6.exports=function e(r,t){for(var n in t){var a=t[n],i=r[n];if(i!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(d6(a)&&d6(i)&&Kv(a[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(a.length,i.length),l=0;l<o;l++)i[l]!==a[l]&&Kv(a[l])&&Kv(i[l])&&e(i[l],a[l])}else Kv(a)&&Kv(i)&&(e(i,a),Object.keys(i).length||delete r[n])}}});var b0=ne((rle,m6)=>{"use strict";function uH(e,r){var t=e%r;return t<0?t+r:t}function fH(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}m6.exports={mod:uH,modHalf:fH}});var Jl=ne((tle,od)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,i=e.min,o=e.max,l=e.random;function s(W,Q){if(W=W||"",Q=Q||{},W instanceof s)return W;if(!(this instanceof s))return new s(W,Q);var $=u(W);this._originalInput=W,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=a(100*this._a)/100,this._format=Q.format||$.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=$.ok,this._tc_id=n++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),Q,$,Me,Fe,Oe,fr;return Q=W.r/255,$=W.g/255,Me=W.b/255,Q<=.03928?Fe=Q/12.92:Fe=e.pow((Q+.055)/1.055,2.4),$<=.03928?Oe=$/12.92:Oe=e.pow(($+.055)/1.055,2.4),Me<=.03928?fr=Me/12.92:fr=e.pow((Me+.055)/1.055,2.4),.2126*Fe+.7152*Oe+.0722*fr},setAlpha:function(W){return this._a=K(W),this._roundA=a(100*this._a)/100,this},toHsv:function(){var W=d(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=d(this._r,this._g,this._b),Q=a(W.h*360),$=a(W.s*100),Me=a(W.v*100);return this._a==1?"hsv("+Q+", "+$+"%, "+Me+"%)":"hsva("+Q+", "+$+"%, "+Me+"%, "+this._roundA+")"},toHsl:function(){var W=v(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=v(this._r,this._g,this._b),Q=a(W.h*360),$=a(W.s*100),Me=a(W.l*100);return this._a==1?"hsl("+Q+", "+$+"%, "+Me+"%)":"hsla("+Q+", "+$+"%, "+Me+"%, "+this._roundA+")"},toHex:function(W){return p(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return y(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(re(this._r,255)*100)+"%",g:a(re(this._g,255)*100)+"%",b:a(re(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(re(this._r,255)*100)+"%, "+a(re(this._g,255)*100)+"%, "+a(re(this._b,255)*100)+"%)":"rgba("+a(re(this._r,255)*100)+"%, "+a(re(this._g,255)*100)+"%, "+a(re(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ee[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var Q="#"+_(this._r,this._g,this._b,this._a),$=Q,Me=this._gradientType?"GradientType = 1, ":"";if(W){var Fe=s(W);$="#"+_(Fe._r,Fe._g,Fe._b,Fe._a)}return"progid:DXImageTransform.Microsoft.gradient("+Me+"startColorstr="+Q+",endColorstr="+$+")"},toString:function(W){var Q=!!W;W=W||this._format;var $=!1,Me=this._a<1&&this._a>=0,Fe=!Q&&Me&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return Fe?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&($=this.toRgbString()),W==="prgb"&&($=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&($=this.toHexString()),W==="hex3"&&($=this.toHexString(!0)),W==="hex4"&&($=this.toHex8String(!0)),W==="hex8"&&($=this.toHex8String()),W==="name"&&($=this.toName()),W==="hsl"&&($=this.toHslString()),W==="hsv"&&($=this.toHsvString()),$||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(W,Q){var $=W.apply(null,[this].concat([].slice.call(Q)));return this._r=$._r,this._g=$._g,this._b=$._b,this.setAlpha($._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(W,Q){return W.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(z,arguments)},monochromatic:function(){return this._applyCombination(X,arguments)},splitcomplement:function(){return this._applyCombination(Y,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(H,arguments)}},s.fromRatio=function(W,Q){if(typeof W=="object"){var $={};for(var Me in W)W.hasOwnProperty(Me)&&(Me==="a"?$[Me]=W[Me]:$[Me]=Ie(W[Me]));W=$}return s(W,Q)};function u(W){var Q={r:0,g:0,b:0},$=1,Me=null,Fe=null,Oe=null,fr=!1,nr=!1;return typeof W=="string"&&(W=Te(W)),typeof W=="object"&&(be(W.r)&&be(W.g)&&be(W.b)?(Q=f(W.r,W.g,W.b),fr=!0,nr=String(W.r).substr(-1)==="%"?"prgb":"rgb"):be(W.h)&&be(W.s)&&be(W.v)?(Me=Ie(W.s),Fe=Ie(W.v),Q=m(W.h,Me,Fe),fr=!0,nr="hsv"):be(W.h)&&be(W.s)&&be(W.l)&&(Me=Ie(W.s),Oe=Ie(W.l),Q=h(W.h,Me,Oe),fr=!0,nr="hsl"),W.hasOwnProperty("a")&&($=W.a)),$=K($),{ok:fr,format:W.format||nr,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:$}}function f(W,Q,$){return{r:re(W,255)*255,g:re(Q,255)*255,b:re($,255)*255}}function v(W,Q,$){W=re(W,255),Q=re(Q,255),$=re($,255);var Me=o(W,Q,$),Fe=i(W,Q,$),Oe,fr,nr=(Me+Fe)/2;if(Me==Fe)Oe=fr=0;else{var Ze=Me-Fe;switch(fr=nr>.5?Ze/(2-Me-Fe):Ze/(Me+Fe),Me){case W:Oe=(Q-$)/Ze+(Q<$?6:0);break;case Q:Oe=($-W)/Ze+2;break;case $:Oe=(W-Q)/Ze+4;break}Oe/=6}return{h:Oe,s:fr,l:nr}}function h(W,Q,$){var Me,Fe,Oe;W=re(W,360),Q=re(Q,100),$=re($,100);function fr(ar,lr,ir){return ir<0&&(ir+=1),ir>1&&(ir-=1),ir<1/6?ar+(lr-ar)*6*ir:ir<1/2?lr:ir<2/3?ar+(lr-ar)*(2/3-ir)*6:ar}if(Q===0)Me=Fe=Oe=$;else{var nr=$<.5?$*(1+Q):$+Q-$*Q,Ze=2*$-nr;Me=fr(Ze,nr,W+1/3),Fe=fr(Ze,nr,W),Oe=fr(Ze,nr,W-1/3)}return{r:Me*255,g:Fe*255,b:Oe*255}}function d(W,Q,$){W=re(W,255),Q=re(Q,255),$=re($,255);var Me=o(W,Q,$),Fe=i(W,Q,$),Oe,fr,nr=Me,Ze=Me-Fe;if(fr=Me===0?0:Ze/Me,Me==Fe)Oe=0;else{switch(Me){case W:Oe=(Q-$)/Ze+(Q<$?6:0);break;case Q:Oe=($-W)/Ze+2;break;case $:Oe=(W-Q)/Ze+4;break}Oe/=6}return{h:Oe,s:fr,v:nr}}function m(W,Q,$){W=re(W,360)*6,Q=re(Q,100),$=re($,100);var Me=e.floor(W),Fe=W-Me,Oe=$*(1-Q),fr=$*(1-Fe*Q),nr=$*(1-(1-Fe)*Q),Ze=Me%6,ar=[$,fr,Oe,Oe,nr,$][Ze],lr=[nr,$,$,fr,Oe,Oe][Ze],ir=[Oe,Oe,nr,$,$,fr][Ze];return{r:ar*255,g:lr*255,b:ir*255}}function p(W,Q,$,Me){var Fe=[Ne(a(W).toString(16)),Ne(a(Q).toString(16)),Ne(a($).toString(16))];return Me&&Fe[0].charAt(0)==Fe[0].charAt(1)&&Fe[1].charAt(0)==Fe[1].charAt(1)&&Fe[2].charAt(0)==Fe[2].charAt(1)?Fe[0].charAt(0)+Fe[1].charAt(0)+Fe[2].charAt(0):Fe.join("")}function y(W,Q,$,Me,Fe){var Oe=[Ne(a(W).toString(16)),Ne(a(Q).toString(16)),Ne(a($).toString(16)),Ne(Se(Me))];return Fe&&Oe[0].charAt(0)==Oe[0].charAt(1)&&Oe[1].charAt(0)==Oe[1].charAt(1)&&Oe[2].charAt(0)==Oe[2].charAt(1)&&Oe[3].charAt(0)==Oe[3].charAt(1)?Oe[0].charAt(0)+Oe[1].charAt(0)+Oe[2].charAt(0)+Oe[3].charAt(0):Oe.join("")}function _(W,Q,$,Me){var Fe=[Ne(Se(Me)),Ne(a(W).toString(16)),Ne(a(Q).toString(16)),Ne(a($).toString(16))];return Fe.join("")}s.equals=function(W,Q){return!W||!Q?!1:s(W).toRgbString()==s(Q).toRgbString()},s.random=function(){return s.fromRatio({r:l(),g:l(),b:l()})};function S(W,Q){Q=Q===0?0:Q||10;var $=s(W).toHsl();return $.s-=Q/100,$.s=fe($.s),s($)}function x(W,Q){Q=Q===0?0:Q||10;var $=s(W).toHsl();return $.s+=Q/100,$.s=fe($.s),s($)}function b(W){return s(W).desaturate(100)}function A(W,Q){Q=Q===0?0:Q||10;var $=s(W).toHsl();return $.l+=Q/100,$.l=fe($.l),s($)}function k(W,Q){Q=Q===0?0:Q||10;var $=s(W).toRgb();return $.r=o(0,i(255,$.r-a(255*-(Q/100)))),$.g=o(0,i(255,$.g-a(255*-(Q/100)))),$.b=o(0,i(255,$.b-a(255*-(Q/100)))),s($)}function M(W,Q){Q=Q===0?0:Q||10;var $=s(W).toHsl();return $.l-=Q/100,$.l=fe($.l),s($)}function D(W,Q){var $=s(W).toHsl(),Me=($.h+Q)%360;return $.h=Me<0?360+Me:Me,s($)}function z(W){var Q=s(W).toHsl();return Q.h=(Q.h+180)%360,s(Q)}function F(W){var Q=s(W).toHsl(),$=Q.h;return[s(W),s({h:($+120)%360,s:Q.s,l:Q.l}),s({h:($+240)%360,s:Q.s,l:Q.l})]}function H(W){var Q=s(W).toHsl(),$=Q.h;return[s(W),s({h:($+90)%360,s:Q.s,l:Q.l}),s({h:($+180)%360,s:Q.s,l:Q.l}),s({h:($+270)%360,s:Q.s,l:Q.l})]}function Y(W){var Q=s(W).toHsl(),$=Q.h;return[s(W),s({h:($+72)%360,s:Q.s,l:Q.l}),s({h:($+216)%360,s:Q.s,l:Q.l})]}function O(W,Q,$){Q=Q||6,$=$||30;var Me=s(W).toHsl(),Fe=360/$,Oe=[s(W)];for(Me.h=(Me.h-(Fe*Q>>1)+720)%360;--Q;)Me.h=(Me.h+Fe)%360,Oe.push(s(Me));return Oe}function X(W,Q){Q=Q||6;for(var $=s(W).toHsv(),Me=$.h,Fe=$.s,Oe=$.v,fr=[],nr=1/Q;Q--;)fr.push(s({h:Me,s:Fe,v:Oe})),Oe=(Oe+nr)%1;return fr}s.mix=function(W,Q,$){$=$===0?0:$||50;var Me=s(W).toRgb(),Fe=s(Q).toRgb(),Oe=$/100,fr={r:(Fe.r-Me.r)*Oe+Me.r,g:(Fe.g-Me.g)*Oe+Me.g,b:(Fe.b-Me.b)*Oe+Me.b,a:(Fe.a-Me.a)*Oe+Me.a};return s(fr)},s.readability=function(W,Q){var $=s(W),Me=s(Q);return(e.max($.getLuminance(),Me.getLuminance())+.05)/(e.min($.getLuminance(),Me.getLuminance())+.05)},s.isReadable=function(W,Q,$){var Me=s.readability(W,Q),Fe,Oe;switch(Oe=!1,Fe=pe($),Fe.level+Fe.size){case"AAsmall":case"AAAlarge":Oe=Me>=4.5;break;case"AAlarge":Oe=Me>=3;break;case"AAAsmall":Oe=Me>=7;break}return Oe},s.mostReadable=function(W,Q,$){var Me=null,Fe=0,Oe,fr,nr,Ze;$=$||{},fr=$.includeFallbackColors,nr=$.level,Ze=$.size;for(var ar=0;ar<Q.length;ar++)Oe=s.readability(W,Q[ar]),Oe>Fe&&(Fe=Oe,Me=s(Q[ar]));return s.isReadable(W,Me,{level:nr,size:Ze})||!fr?Me:($.includeFallbackColors=!1,s.mostReadable(W,["#fff","#000"],$))};var V=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ee=s.hexNames=te(V);function te(W){var Q={};for(var $ in W)W.hasOwnProperty($)&&(Q[W[$]]=$);return Q}function K(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function re(W,Q){qe(W)&&(W="100%");var $=Be(W);return W=i(Q,o(0,parseFloat(W))),$&&(W=parseInt(W*Q,10)/100),e.abs(W-Q)<1e-6?1:W%Q/parseFloat(Q)}function fe(W){return i(1,o(0,W))}function de(W){return parseInt(W,16)}function qe(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function Be(W){return typeof W=="string"&&W.indexOf("%")!=-1}function Ne(W){return W.length==1?"0"+W:""+W}function Ie(W){return W<=1&&(W=W*100+"%"),W}function Se(W){return e.round(parseFloat(W)*255).toString(16)}function Xe(W){return de(W)/255}var se=function(){var W="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",$="(?:"+Q+")|(?:"+W+")",Me="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",Fe="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+Me),rgba:new RegExp("rgba"+Fe),hsl:new RegExp("hsl"+Me),hsla:new RegExp("hsla"+Fe),hsv:new RegExp("hsv"+Me),hsva:new RegExp("hsva"+Fe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function be(W){return!!se.CSS_UNIT.exec(W)}function Te(W){W=W.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(V[W])W=V[W],Q=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=se.rgb.exec(W))?{r:$[1],g:$[2],b:$[3]}:($=se.rgba.exec(W))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=se.hsl.exec(W))?{h:$[1],s:$[2],l:$[3]}:($=se.hsla.exec(W))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=se.hsv.exec(W))?{h:$[1],s:$[2],v:$[3]}:($=se.hsva.exec(W))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=se.hex8.exec(W))?{r:de($[1]),g:de($[2]),b:de($[3]),a:Xe($[4]),format:Q?"name":"hex8"}:($=se.hex6.exec(W))?{r:de($[1]),g:de($[2]),b:de($[3]),format:Q?"name":"hex"}:($=se.hex4.exec(W))?{r:de($[1]+""+$[1]),g:de($[2]+""+$[2]),b:de($[3]+""+$[3]),a:Xe($[4]+""+$[4]),format:Q?"name":"hex8"}:($=se.hex3.exec(W))?{r:de($[1]+""+$[1]),g:de($[2]+""+$[2]),b:de($[3]+""+$[3]),format:Q?"name":"hex"}:!1}function pe(W){var Q,$;return W=W||{level:"AA",size:"small"},Q=(W.level||"AA").toUpperCase(),$=(W.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),$!=="small"&&$!=="large"&&($="small"),{level:Q,size:$}}typeof od!="undefined"&&od.exports?od.exports=s:window.tinycolor=s})(Math)});var la=ne(r1=>{"use strict";var y6=Gs(),Qv=Array.isArray;function cH(e,r){var t,n;for(t=0;t<e.length;t++){if(n=e[t],n!==null&&typeof n=="object")return!1;n!==void 0&&(r[t]=n)}return!0}r1.extendFlat=function(){return e1(arguments,!1,!1,!1)};r1.extendDeep=function(){return e1(arguments,!0,!1,!1)};r1.extendDeepAll=function(){return e1(arguments,!0,!0,!1)};r1.extendDeepNoArrays=function(){return e1(arguments,!0,!1,!0)};function e1(e,r,t,n){var a=e[0],i=e.length,o,l,s,u,f,v,h;if(i===2&&Qv(a)&&Qv(e[1])&&a.length===0){if(h=cH(e[1],a),h)return a;a.splice(0,a.length)}for(var d=1;d<i;d++){o=e[d];for(l in o)s=a[l],u=o[l],n&&Qv(u)?a[l]=u:r&&u&&(y6(u)||(f=Qv(u)))?(f?(f=!1,v=s&&Qv(s)?s:[]):v=s&&y6(s)?s:{},a[l]=e1([v,u],r,t,n)):(typeof u!="undefined"||t)&&(a[l]=u)}return a}});var $a=ne((ale,b6)=>{"use strict";b6.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var t1=ne((ile,_6)=>{"use strict";_6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _0=ne((ole,M6)=>{"use strict";var x6=t1(),w6=$a(),Cy=w6({editType:"none"});Cy.family.dflt=x6.HOVERFONT;Cy.size.dflt=x6.HOVERFONTSIZE;M6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Cy,grouptitlefont:w6({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var ud=ne((lle,A6)=>{"use strict";var vH=$a(),ld=_0().hoverlabel,sd=la().extendFlat;A6.exports={hoverlabel:{bgcolor:sd({},ld.bgcolor,{arrayOk:!0}),bordercolor:sd({},ld.bordercolor,{arrayOk:!0}),font:vH({arrayOk:!0,editType:"none"}),align:sd({},ld.align,{arrayOk:!0}),namelength:sd({},ld.namelength,{arrayOk:!0}),editType:"none"}}});var bo=ne((sle,T6)=>{"use strict";var hH=$a(),dH=ud();T6.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:hH({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:dH.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Jf=ne((ule,C6)=>{"use strict";var pH=Jl(),fd={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},k6=fd.RdBu;function gH(e,r){if(r||(r=k6),!e)return r;function t(){try{e=fd[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),S6(e)?e:r}function S6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t<e.length;t++){var n=e[t];if(n.length!==2||+n[0]<r||!pH(n[1]).isValid())return!1;r=+n[0]}return!0}function mH(e){return fd[e]!==void 0?!0:S6(e)}C6.exports={scales:fd,defaultScale:k6,get:gH,isValid:mH}});var cl=ne($f=>{"use strict";$f.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];$f.defaultLine="#444";$f.lightLine="#eee";$f.background="#fff";$f.borderLine="#BEC8D9";$f.lightFraction=100*10/11});var zt=ne((cle,L6)=>{"use strict";var Li=Jl(),yH=Bt(),bH=Ji().isTypedArray,ya=L6.exports={},cd=cl();ya.defaults=cd.defaults;var _H=ya.defaultLine=cd.defaultLine;ya.lightLine=cd.lightLine;var qy=ya.background=cd.background;ya.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};ya.rgb=function(e){return ya.tinyRGB(Li(e))};ya.opacity=function(e){return e?Li(e).getAlpha():0};ya.addOpacity=function(e,r){var t=Li(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};ya.combine=function(e,r){var t=Li(e).toRgb();if(t.a===1)return Li(e).toRgbString();var n=Li(r||qy).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},i={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return Li(i).toRgbString()};ya.interpolate=function(e,r,t){var n=Li(e).toRgb(),a=Li(r).toRgb(),i={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return Li(i).toRgbString()};ya.contrast=function(e,r,t){var n=Li(e);n.getAlpha()!==1&&(n=Li(ya.combine(e,qy)));var a=n.isDark()?r?n.lighten(r):qy:t?n.darken(t):_H;return a.toString()};ya.stroke=function(e,r){var t=Li(r);e.style({stroke:ya.tinyRGB(t),"stroke-opacity":t.getAlpha()})};ya.fill=function(e,r){var t=Li(r);e.style({fill:ya.tinyRGB(t),"fill-opacity":t.getAlpha()})};ya.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,i;for(t=0;t<r.length;t++)if(a=r[t],i=e[a],a.substr(a.length-5)==="color")if(Array.isArray(i))for(n=0;n<i.length;n++)i[n]=Ly(i[n]);else e[a]=Ly(i);else if(a.substr(a.length-10)==="colorscale"&&Array.isArray(i))for(n=0;n<i.length;n++)Array.isArray(i[n])&&(i[n][1]=Ly(i[n][1]));else if(Array.isArray(i)){var o=i[0];if(!Array.isArray(o)&&o&&typeof o=="object")for(n=0;n<i.length;n++)ya.clean(i[n])}else i&&typeof i=="object"&&!bH(i)&&ya.clean(i)}};function Ly(e){if(yH(e)||typeof e!="string")return e;var r=e.trim();if(r.substr(0,3)!=="rgb")return e;var t=r.match(/^rgba?\s*\(([^()]*)\)$/);if(!t)return e;var n=t[1].trim().split(/\s*[\s,]\s*/),a=r.charAt(3)==="a"&&n.length===4;if(!a&&n.length!==3)return e;for(var i=0;i<n.length;i++){if(!n[i].length||(n[i]=Number(n[i]),!(n[i]>=0)))return e;if(i===3)n[i]>1&&(n[i]=1);else if(n[i]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var vd=ne((vle,q6)=>{"use strict";q6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var x0=ne(D6=>{"use strict";D6.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),i=n===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}});var z6=ne(qi=>{"use strict";var Dy=Bt(),E6=Jl(),P6=la().extendFlat,xH=bo(),wH=Jf(),MH=zt(),AH=vd().DESELECTDIM,w0=$v(),R6=x0().counter,TH=b0().modHalf,$l=Ji().isArrayOrTypedArray,Du=Ji().isTypedArraySpec,Eu=Ji().decodeTypedArraySpec;qi.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set($l(e)?e:Du(e)?Eu(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;n<t.length;n++){var a=String(t[n]);if(a.charAt(0)==="/"&&a.charAt(a.length-1)==="/"){var i=new RegExp(a.substr(1,a.length-2));if(i.test(e))return!0}else if(e===t[n])return!0}return!1}},boolean:{coerceFunction:function(e,r,t){e===!0||e===!1?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,n){Du(e)&&(e=Eu(e)),!Dy(e)||n.min!==void 0&&e<n.min||n.max!==void 0&&e>n.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Du(e)&&(e=Eu(e)),e%1||!Dy(e)||n.min!==void 0&&e<n.min||n.max!==void 0&&e>n.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Du(e)&&(e=Eu(e)),E6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return E6(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(wH.get(e,t))}},angle:{coerceFunction:function(e,r,t){Du(e)&&(e=Eu(e)),e==="auto"?r.set("auto"):Dy(e)?r.set(TH(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||R6(t);if(typeof e=="string"&&a.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!R6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),i=0;i<a.length;){var o=a[i];n.flags.indexOf(o)===-1||a.indexOf(o)<i?a.splice(i,1):i++}a.length?r.set(a.join("+")):r.set(t)}},any:{coerceFunction:function(e,r,t){e===void 0?r.set(t):r.set(Du(e)?Eu(e):e)}},info_array:{coerceFunction:function(e,r,t,n){function a(S,x,b){var A,k={set:function(M){A=M}};return b===void 0&&(b=x.dflt),qi.valObjectMeta[x.valType].coerceFunction(S,k,b,x),A}if(Du(e)&&(e=Eu(e)),!$l(e)){r.set(t);return}var i=n.dimensions===2||n.dimensions==="1-2"&&Array.isArray(e)&&$l(e[0]),o=n.items,l=[],s=Array.isArray(o),u=s&&i&&$l(o[0]),f=i&&s&&!u,v=s&&!f?o.length:e.length,h,d,m,p,y,_;if(t=Array.isArray(t)?t:[],i)for(h=0;h<v;h++)for(l[h]=[],m=$l(e[h])?e[h]:[],f?y=o.length:s?y=o[h].length:y=m.length,d=0;d<y;d++)f?p=o[d]:s?p=o[h][d]:p=o,_=a(m[d],p,(t[h]||[])[d]),_!==void 0&&(l[h][d]=_);else for(h=0;h<v;h++)_=a(e[h],s?o[h]:o,t[h]),_!==void 0&&(l[h]=_);r.set(l)},validateFunction:function(e,r){if(!$l(e))return!1;var t=r.items,n=Array.isArray(t),a=r.dimensions===2;if(!r.freeLength&&e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(a){if(!$l(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!hd(e[i][o],n?t[i][o]:t))return!1}else if(!hd(e[i],n?t[i]:t))return!1;return!0}}};qi.coerce=function(e,r,t,n,a){var i=w0(t,n).get(),o=w0(e,n),l=w0(r,n),s=o.get(),u=r._template;if(s===void 0&&u&&(s=w0(u,n).get(),u=0),a===void 0&&(a=i.dflt),i.arrayOk){if($l(s))return l.set(s),s;if(Du(s))return s=Eu(s),l.set(s),s}var f=qi.valObjectMeta[i.valType].coerceFunction;f(s,l,a,i);var v=l.get();return u&&v===a&&!hd(s,i)&&(s=w0(u,n).get(),f(s,l,a,i),v=l.get()),v};qi.coerce2=function(e,r,t,n,a){var i=w0(e,n),o=qi.coerce(e,r,t,n,a),l=i.get();return l!=null?o:!1};qi.coerceFont=function(e,r,t,n){n||(n={}),t=P6({},t),t=P6(t,n.overrideDflt||{});var a={family:e(r+".family",t.family),size:e(r+".size",t.size),color:e(r+".color",t.color),weight:e(r+".weight",t.weight),style:e(r+".style",t.style)};if(n.noFontVariant||(a.variant=e(r+".variant",t.variant)),n.noFontLineposition||(a.lineposition=e(r+".lineposition",t.lineposition)),n.noFontTextcase||(a.textcase=e(r+".textcase",t.textcase)),!n.noFontShadow){var i=t.shadow;i==="none"&&n.autoShadowDflt&&(i="auto"),a.shadow=e(r+".shadow",i)}return a};qi.coercePattern=function(e,r,t,n){var a=e(r+".shape");if(a){e(r+".solidity"),e(r+".size");var i=e(r+".fillmode"),o=i==="overlay";if(!n){var l=e(r+".bgcolor",o?t:void 0);e(r+".fgcolor",o?MH.contrast(l):t)}e(r+".fgopacity",o?.5:1)}};qi.coerceHoverinfo=function(e,r,t){var n=r._module.attributes,a=n.hoverinfo?n:xH,i=a.hoverinfo,o;if(t._dataLength===1){var l=i.dflt==="all"?i.flags.slice():i.dflt.split("+");l.splice(l.indexOf("name"),1),o=l.join("+")}return qi.coerce(e,r,a,"hoverinfo",o)};qi.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var n,a;!$l(t)&&!e.selected&&!e.unselected&&(n=t,a=AH*t),r("selected.marker.opacity",n),r("unselected.marker.opacity",a)}}};function hd(e,r){var t=qi.valObjectMeta[r.valType];if(r.arrayOk&&$l(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var n={},a=n,i={set:function(o){a=o}};return t.coerceFunction(e,i,n,r),a!==n}qi.validate=hd});var Kf=ne((ple,H6)=>{"use strict";var N6={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},F6={};function I6(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),I6(n,r[t]))}}I6(N6,F6);H6.exports={configAttributes:N6,dfltConfig:F6}});var Py=ne((gle,B6)=>{"use strict";var Ey=kt(),kH=Bt(),n1=[];B6.exports=function(e,r){if(n1.indexOf(e)!==-1)return;n1.push(e);var t=1e3;kH(r)?t=r:r==="long"&&(t=3e3);var n=Ey.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(n1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=n1.indexOf(l);s!==-1&&n1.splice(s,1),Ey.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=Ey.select(this);l.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(/<br\s*\/?>/g),f=0;f<u.length;f++)f&&s.append("br"),s.append("span").text(u[f]);r==="stick"?l.transition().duration(350).style("opacity",1):l.transition().duration(700).style("opacity",1).transition().delay(t).call(i)})}});var Pu=ne((mle,O6)=>{"use strict";var M0=Kf().dfltConfig,Ry=Py(),zy=O6.exports={};zy.log=function(){var e;if(M0.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(M0.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Ry(t.join("<br>"),"long")}};zy.warn=function(){var e;if(M0.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(M0.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Ry(t.join("<br>"),"stick")}};zy.error=function(){var e;if(M0.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(M0.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Ry(t.join("<br>"),"stick")}}});var dd=ne((yle,U6)=>{"use strict";U6.exports=function(){}});var Ny=ne((ble,Y6)=>{"use strict";Y6.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a<r.length;a++)if(r[a]instanceof RegExp&&r[a].toString()===n)return r;r.push(t)}else(t||t===0)&&r.indexOf(t)===-1&&r.push(t);return r}});var V6=ne((_le,G6)=>{G6.exports=SH;function SH(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Z6=ne((xle,W6)=>{W6.exports=CH;function CH(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var j6=ne((wle,X6)=>{X6.exports=LH;function LH(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Fy=ne((Mle,J6)=>{J6.exports=qH;function qH(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var K6=ne((Ale,$6)=>{$6.exports=DH;function DH(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=i,e[11]=r[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var ex=ne((Tle,Q6)=>{Q6.exports=EH;function EH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],_=r[15],S=t*l-n*o,x=t*s-a*o,b=t*u-i*o,A=n*s-a*l,k=n*u-i*l,M=a*u-i*s,D=f*p-v*m,z=f*y-h*m,F=f*_-d*m,H=v*y-h*p,Y=v*_-d*p,O=h*_-d*y,X=S*O-x*Y+b*H+A*F-k*z+M*D;return X?(X=1/X,e[0]=(l*O-s*Y+u*H)*X,e[1]=(a*Y-n*O-i*H)*X,e[2]=(p*M-y*k+_*A)*X,e[3]=(h*k-v*M-d*A)*X,e[4]=(s*F-o*O-u*z)*X,e[5]=(t*O-a*F+i*z)*X,e[6]=(y*b-m*M-_*x)*X,e[7]=(f*M-h*b+d*x)*X,e[8]=(o*Y-l*F+u*D)*X,e[9]=(n*F-t*Y-i*D)*X,e[10]=(m*k-p*b+_*S)*X,e[11]=(v*b-f*k-d*S)*X,e[12]=(l*z-o*H-s*D)*X,e[13]=(t*H-n*z+a*D)*X,e[14]=(p*x-m*A-y*S)*X,e[15]=(f*A-v*x+h*S)*X,e):null}});var tx=ne((kle,rx)=>{rx.exports=PH;function PH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],_=r[15];return e[0]=l*(h*_-d*y)-v*(s*_-u*y)+p*(s*d-u*h),e[1]=-(n*(h*_-d*y)-v*(a*_-i*y)+p*(a*d-i*h)),e[2]=n*(s*_-u*y)-l*(a*_-i*y)+p*(a*u-i*s),e[3]=-(n*(s*d-u*h)-l*(a*d-i*h)+v*(a*u-i*s)),e[4]=-(o*(h*_-d*y)-f*(s*_-u*y)+m*(s*d-u*h)),e[5]=t*(h*_-d*y)-f*(a*_-i*y)+m*(a*d-i*h),e[6]=-(t*(s*_-u*y)-o*(a*_-i*y)+m*(a*u-i*s)),e[7]=t*(s*d-u*h)-o*(a*d-i*h)+f*(a*u-i*s),e[8]=o*(v*_-d*p)-f*(l*_-u*p)+m*(l*d-u*v),e[9]=-(t*(v*_-d*p)-f*(n*_-i*p)+m*(n*d-i*v)),e[10]=t*(l*_-u*p)-o*(n*_-i*p)+m*(n*u-i*l),e[11]=-(t*(l*d-u*v)-o*(n*d-i*v)+f*(n*u-i*l)),e[12]=-(o*(v*y-h*p)-f*(l*y-s*p)+m*(l*h-s*v)),e[13]=t*(v*y-h*p)-f*(n*y-a*p)+m*(n*h-a*v),e[14]=-(t*(l*y-s*p)-o*(n*y-a*p)+m*(n*s-a*l)),e[15]=t*(l*h-s*v)-o*(n*h-a*v)+f*(n*s-a*l),e}});var ax=ne((Sle,nx)=>{nx.exports=RH;function RH(e){var r=e[0],t=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15],_=r*o-t*i,S=r*l-n*i,x=r*s-a*i,b=t*l-n*o,A=t*s-a*o,k=n*s-a*l,M=u*m-f*d,D=u*p-v*d,z=u*y-h*d,F=f*p-v*m,H=f*y-h*m,Y=v*y-h*p;return _*Y-S*H+x*F+b*z-A*D+k*M}});var ox=ne((Cle,ix)=>{ix.exports=zH;function zH(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],p=r[12],y=r[13],_=r[14],S=r[15],x=t[0],b=t[1],A=t[2],k=t[3];return e[0]=x*n+b*l+A*v+k*p,e[1]=x*a+b*s+A*h+k*y,e[2]=x*i+b*u+A*d+k*_,e[3]=x*o+b*f+A*m+k*S,x=t[4],b=t[5],A=t[6],k=t[7],e[4]=x*n+b*l+A*v+k*p,e[5]=x*a+b*s+A*h+k*y,e[6]=x*i+b*u+A*d+k*_,e[7]=x*o+b*f+A*m+k*S,x=t[8],b=t[9],A=t[10],k=t[11],e[8]=x*n+b*l+A*v+k*p,e[9]=x*a+b*s+A*h+k*y,e[10]=x*i+b*u+A*d+k*_,e[11]=x*o+b*f+A*m+k*S,x=t[12],b=t[13],A=t[14],k=t[15],e[12]=x*n+b*l+A*v+k*p,e[13]=x*a+b*s+A*h+k*y,e[14]=x*i+b*u+A*d+k*_,e[15]=x*o+b*f+A*m+k*S,e}});var sx=ne((Lle,lx)=>{lx.exports=NH;function NH(e,r,t){var n=t[0],a=t[1],i=t[2],o,l,s,u,f,v,h,d,m,p,y,_;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*i+r[12],e[13]=r[1]*n+r[5]*a+r[9]*i+r[13],e[14]=r[2]*n+r[6]*a+r[10]*i+r[14],e[15]=r[3]*n+r[7]*a+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],p=r[9],y=r[10],_=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=p,e[10]=y,e[11]=_,e[12]=o*n+f*a+m*i+r[12],e[13]=l*n+v*a+p*i+r[13],e[14]=s*n+h*a+y*i+r[14],e[15]=u*n+d*a+_*i+r[15]),e}});var fx=ne((qle,ux)=>{ux.exports=FH;function FH(e,r,t){var n=t[0],a=t[1],i=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var vx=ne((Dle,cx)=>{cx.exports=IH;function IH(e,r,t,n){var a=n[0],i=n[1],o=n[2],l=Math.sqrt(a*a+i*i+o*o),s,u,f,v,h,d,m,p,y,_,S,x,b,A,k,M,D,z,F,H,Y,O,X,V;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],p=r[4],y=r[5],_=r[6],S=r[7],x=r[8],b=r[9],A=r[10],k=r[11],M=a*a*f+u,D=i*a*f+o*s,z=o*a*f-i*s,F=a*i*f-o*s,H=i*i*f+u,Y=o*i*f+a*s,O=a*o*f+i*s,X=i*o*f-a*s,V=o*o*f+u,e[0]=v*M+p*D+x*z,e[1]=h*M+y*D+b*z,e[2]=d*M+_*D+A*z,e[3]=m*M+S*D+k*z,e[4]=v*F+p*H+x*Y,e[5]=h*F+y*H+b*Y,e[6]=d*F+_*H+A*Y,e[7]=m*F+S*H+k*Y,e[8]=v*O+p*X+x*V,e[9]=h*O+y*X+b*V,e[10]=d*O+_*X+A*V,e[11]=m*O+S*X+k*V,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var dx=ne((Ele,hx)=>{hx.exports=HH;function HH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*a+u*n,e[5]=o*a+f*n,e[6]=l*a+v*n,e[7]=s*a+h*n,e[8]=u*a-i*n,e[9]=f*a-o*n,e[10]=v*a-l*n,e[11]=h*a-s*n,e}});var gx=ne((Ple,px)=>{px.exports=BH;function BH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a-u*n,e[1]=o*a-f*n,e[2]=l*a-v*n,e[3]=s*a-h*n,e[8]=i*n+u*a,e[9]=o*n+f*a,e[10]=l*n+v*a,e[11]=s*n+h*a,e}});var yx=ne((Rle,mx)=>{mx.exports=OH;function OH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a+u*n,e[1]=o*a+f*n,e[2]=l*a+v*n,e[3]=s*a+h*n,e[4]=u*a-i*n,e[5]=f*a-o*n,e[6]=v*a-l*n,e[7]=h*a-s*n,e}});var _x=ne((zle,bx)=>{bx.exports=UH;function UH(e,r,t){var n,a,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,n=Math.sin(r),a=Math.cos(r),i=1-a,e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var wx=ne((Nle,xx)=>{xx.exports=YH;function YH(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=n+n,s=a+a,u=i+i,f=n*l,v=n*s,h=n*u,d=a*s,m=a*u,p=i*u,y=o*l,_=o*s,S=o*u;return e[0]=1-(d+p),e[1]=v+S,e[2]=h-_,e[3]=0,e[4]=v-S,e[5]=1-(f+p),e[6]=m+y,e[7]=0,e[8]=h+_,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Ax=ne((Fle,Mx)=>{Mx.exports=GH;function GH(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var kx=ne((Ile,Tx)=>{Tx.exports=VH;function VH(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Cx=ne((Hle,Sx)=>{Sx.exports=WH;function WH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var qx=ne((Ble,Lx)=>{Lx.exports=ZH;function ZH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Ex=ne((Ole,Dx)=>{Dx.exports=XH;function XH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Iy=ne((Ule,Px)=>{Px.exports=jH;function jH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=t+t,l=n+n,s=a+a,u=t*o,f=n*o,v=n*l,h=a*o,d=a*l,m=a*s,p=i*o,y=i*l,_=i*s;return e[0]=1-v-m,e[1]=f+_,e[2]=h-y,e[3]=0,e[4]=f-_,e[5]=1-u-m,e[6]=d+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var zx=ne((Yle,Rx)=>{Rx.exports=JH;function JH(e,r,t,n,a,i,o){var l=1/(t-r),s=1/(a-n),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var Fx=ne((Gle,Nx)=>{Nx.exports=$H;function $H(e,r,t,n,a){var i=1/Math.tan(r/2),o=1/(n-a);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}});var Hx=ne((Vle,Ix)=>{Ix.exports=KH;function KH(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(a-i)*u*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var Ox=ne((Wle,Bx)=>{Bx.exports=QH;function QH(e,r,t,n,a,i,o){var l=1/(r-t),s=1/(n-a),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*s,e[14]=(o+i)*u,e[15]=1,e}});var Yx=ne((Zle,Ux)=>{var eB=Fy();Ux.exports=rB;function rB(e,r,t,n){var a,i,o,l,s,u,f,v,h,d,m=r[0],p=r[1],y=r[2],_=n[0],S=n[1],x=n[2],b=t[0],A=t[1],k=t[2];return Math.abs(m-b)<1e-6&&Math.abs(p-A)<1e-6&&Math.abs(y-k)<1e-6?eB(e):(f=m-b,v=p-A,h=y-k,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,a=S*h-x*v,i=x*f-_*h,o=_*v-S*f,d=Math.sqrt(a*a+i*i+o*o),d?(d=1/d,a*=d,i*=d,o*=d):(a=0,i=0,o=0),l=v*o-h*i,s=h*a-f*o,u=f*i-v*a,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(a*m+i*p+o*y),e[13]=-(l*m+s*p+u*y),e[14]=-(f*m+v*p+h*y),e[15]=1,e)}});var Vx=ne((Xle,Gx)=>{Gx.exports=tB;function tB(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Hy=ne((jle,Wx)=>{Wx.exports={create:V6(),clone:Z6(),copy:j6(),identity:Fy(),transpose:K6(),invert:ex(),adjoint:tx(),determinant:ax(),multiply:ox(),translate:sx(),scale:fx(),rotate:vx(),rotateX:dx(),rotateY:gx(),rotateZ:yx(),fromRotation:_x(),fromRotationTranslation:wx(),fromScaling:Ax(),fromTranslation:kx(),fromXRotation:Cx(),fromYRotation:qx(),fromZRotation:Ex(),fromQuat:Iy(),frustum:zx(),perspective:Fx(),perspectiveFromFieldOfView:Hx(),ortho:Ox(),lookAt:Yx(),str:Vx()}});var pd=ne(Xn=>{"use strict";var nB=Hy();Xn.init2dArray=function(e,r){for(var t=new Array(e),n=0;n<e;n++)t[n]=new Array(r);return t};Xn.transposeRagged=function(e){var r=0,t=e.length,n,a;for(n=0;n<t;n++)r=Math.max(r,e[n].length);var i=new Array(r);for(n=0;n<r;n++)for(i[n]=new Array(t),a=0;a<t;a++)i[n][a]=e[a][n];return i};Xn.dot=function(e,r){if(!(e.length&&r.length)||e.length!==r.length)return null;var t=e.length,n,a;if(e[0].length)for(n=new Array(t),a=0;a<t;a++)n[a]=Xn.dot(e[a],r);else if(r[0].length){var i=Xn.transposeRagged(r);for(n=new Array(i.length),a=0;a<i.length;a++)n[a]=Xn.dot(e,i[a])}else for(n=0,a=0;a<t;a++)n+=e[a]*r[a];return n};Xn.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};Xn.rotationMatrix=function(e){var r=e*Math.PI/180;return[[Math.cos(r),-Math.sin(r),0],[Math.sin(r),Math.cos(r),0],[0,0,1]]};Xn.rotationXYMatrix=function(e,r,t){return Xn.dot(Xn.dot(Xn.translationMatrix(r,t),Xn.rotationMatrix(e)),Xn.translationMatrix(-r,-t))};Xn.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return Xn.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};Xn.apply2DTransform=function(e){return function(){var r=arguments;r.length===3&&(r=r[0]);var t=arguments.length===1?r[0]:[r[0],r[1]];return Xn.dot(e,[t[0],t[1],1]).slice(0,2)}};Xn.apply2DTransform2=function(e){var r=Xn.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};Xn.convertCssMatrix=function(e){if(e){var r=e.length;if(r===16)return e;if(r===6)return[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]};Xn.inverseTransformMatrix=function(e){var r=[];return nB.invert(r,e),[[r[0],r[1],r[2],r[3]],[r[4],r[5],r[6],r[7]],[r[8],r[9],r[10],r[11]],[r[12],r[13],r[14],r[15]]]}});var a1=ne(($le,Kx)=>{"use strict";var aB=kt(),Zx=Pu(),iB=pd(),oB=Hy();function lB(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function sB(e){var r=aB.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function Xx(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function uB(e,r){jx("global",e,r)}function jx(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var i=a.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):Zx.warn("addStyleRule failed"):Zx.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function fB(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&Xx(t)}function cB(e,r,t,n,a,i){var o=n.split(":"),l=a.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function vB(e){var r=$x(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=Jx(n);if(a){var i=iB.convertCssMatrix(a);t=oB.multiply(t,t,i)}}),t}function Jx(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function $x(e){for(var r=[];hB(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function hB(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function dB(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}Kx.exports={getGraphDiv:lB,isPlotDiv:sB,removeElement:Xx,addStyleRule:uB,addRelatedStyleRule:jx,deleteRelatedStyleRule:fB,setStyleOnHover:cB,getFullTransformMatrix:vB,getElementTransformMatrix:Jx,getElementAndAncestors:$x,equalDomRects:dB}});var i1=ne((Kle,Qx)=>{"use strict";Qx.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var _o=ne((Qle,o7)=>{"use strict";var r7=la().extendFlat,pB=Gs(),t7={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},n7={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},gB=t7.flags.slice().concat(["fullReplot"]),mB=n7.flags.slice().concat("layoutReplot");o7.exports={traces:t7,layout:n7,traceFlags:function(){return e7(gB)},layoutFlags:function(){return e7(mB)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a<n.length;a++)e[n[a]]=!0},overrideAll:a7};function e7(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function a7(e,r,t){var n=r7({},e);for(var a in n){var i=n[a];pB(i)&&(n[a]=i7(i,r,t,a))}return t==="from-root"&&(n.editType=r),n}function i7(e,r,t,n){if(e.valType){var a=r7({},e);if(a.editType=r,Array.isArray(e.items)){a.items=new Array(e.items.length);for(var i=0;i<e.items.length;i++)a.items[i]=i7(e.items[i],r,"from-root")}return a}else return a7(e,r,n.charAt(0)==="_"?"nested":"from-root")}});var Kl=ne(By=>{"use strict";By.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};By.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Oy=ne((rse,l7)=>{"use strict";l7.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Ru=ne(gd=>{"use strict";var s7=Oy(),tse=s7.FORMAT_LINK,nse=s7.DATE_FORMAT_LINK;function Uy(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var n=[],a=0;a<t.length;a++)n[a]="`"+t[a]+"`";r=r+"Finally, the template string has access to ",t.length===1?r=r+"variable "+n[0]:r=r+"variables "+n.slice(0,-1).join(", ")+" and "+n.slice(-1)+"."}return r}gd.hovertemplateAttrs=function(e,r){e=e||{},r=r||{};var t=Uy(r),n={valType:"string",dflt:"",editType:e.editType||"none"};return e.arrayOk!==!1&&(n.arrayOk=!0),n};gd.texttemplateAttrs=function(e,r){e=e||{},r=r||{};var t=Uy(r),n={valType:"string",dflt:"",editType:e.editType||"calc"};return e.arrayOk!==!1&&(n.arrayOk=!0),n};gd.shapeTexttemplateAttrs=function(e,r){e=e||{},r=r||{};var t=e.newshape?"new ":"",n=Uy(r),a={valType:"string",dflt:"",editType:e.editType||"arraydraw"};return a}});var bd=ne((ise,d7)=>{"use strict";function zu(e,r){return r?r.d2l(e):e}function u7(e,r){return r?r.l2d(e):e}function yB(e){return e.x0}function bB(e){return e.x1}function _B(e){return e.y0}function xB(e){return e.y1}function f7(e){return e.x0shift||0}function c7(e){return e.x1shift||0}function v7(e){return e.y0shift||0}function h7(e){return e.y1shift||0}function md(e,r){return zu(e.x1,r)+c7(e)-zu(e.x0,r)-f7(e)}function yd(e,r,t){return zu(e.y1,t)+h7(e)-zu(e.y0,t)-v7(e)}function wB(e,r){return Math.abs(md(e,r))}function MB(e,r,t){return Math.abs(yd(e,r,t))}function AB(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(md(e,r),2)+Math.pow(yd(e,r,t),2))}function TB(e,r){return u7((zu(e.x1,r)+c7(e)+zu(e.x0,r)+f7(e))/2,r)}function kB(e,r,t){return u7((zu(e.y1,t)+h7(e)+zu(e.y0,t)+v7(e))/2,t)}function SB(e,r,t){return e.type!=="line"?void 0:yd(e,r,t)/md(e,r)}d7.exports={x0:yB,x1:bB,y0:_B,y1:xB,slope:SB,dx:md,dy:yd,width:wB,height:MB,length:AB,xcenter:TB,ycenter:kB}});var m7=ne((ose,g7)=>{"use strict";var CB=_o().overrideAll,Qf=bo(),p7=$a(),LB=Kl().dash,Nu=la().extendFlat,qB=Ru().shapeTexttemplateAttrs,DB=bd();g7.exports=CB({newshape:{visible:Nu({},Qf.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Nu({},Qf.legend,{}),legendgroup:Nu({},Qf.legendgroup,{}),legendgrouptitle:{text:Nu({},Qf.legendgrouptitle.text,{}),font:p7({})},legendrank:Nu({},Qf.legendrank,{}),legendwidth:Nu({},Qf.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Nu({},LB,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Nu({},Qf.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:qB({newshape:!0},{keys:Object.keys(DB)}),font:p7({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var b7=ne((lse,y7)=>{"use strict";var EB=Kl().dash,PB=la().extendFlat;y7.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:PB({},EB,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var _d=ne((sse,_7)=>{"use strict";_7.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var A0=ne((use,A7)=>{"use strict";var Yy=$a(),RB=i1(),xd=cl(),x7=m7(),w7=b7(),zB=_d(),M7=la().extendFlat,wd=Yy({editType:"calc"});wd.family.dflt='"Open Sans", verdana, arial, sans-serif';wd.size.dflt=12;wd.color.dflt=xd.defaultLine;A7.exports={font:wd,title:{text:{valType:"string",editType:"layoutstyle"},font:Yy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Yy({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:M7(zB({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:xd.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:xd.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:xd.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:x7.newshape,activeshape:x7.activeshape,newselection:w7.newselection,activeselection:w7.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:M7({},RB.transition,{editType:"none"})}});var T7=O_(()=>{});var NB={};var k7=O_(()=>{T7()});var dt=ne(Dt=>{"use strict";var T0=Pu(),S7=dd(),C7=Ny(),FB=Gs(),IB=a1().addStyleRule,L7=la(),HB=bo(),BB=A0(),OB=L7.extendFlat,Gy=L7.extendDeepAll;Dt.modules={};Dt.allCategories={};Dt.allTypes=[];Dt.subplotsRegistry={};Dt.componentsRegistry={};Dt.layoutArrayContainers=[];Dt.layoutArrayRegexes=[];Dt.traceLayoutAttributes={};Dt.localeRegistry={};Dt.apiMethodRegistry={};Dt.collectableSubplotTypes=null;Dt.register=function(r){if(Dt.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t<r.length;t++){var n=r[t];if(!n)throw new Error("Invalid module was attempted to be registered!");switch(n.moduleType){case"trace":UB(n);break;case"transform":VB(n);break;case"component":GB(n);break;case"locale":WB(n);break;case"apiMethod":var a=n.name;Dt.apiMethodRegistry[a]=n.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};Dt.getModule=function(e){var r=Dt.modules[P7(e)];return r?r._module:!1};Dt.traceIs=function(e,r){if(e=P7(e),e==="various")return!1;var t=Dt.modules[e];return t||(e&&T0.log("Unrecognized trace type "+e+"."),t=Dt.modules[HB.type.dflt]),!!t.categories[r]};Dt.getComponentMethod=function(e,r){var t=Dt.componentsRegistry[e];return t&&t[r]||S7};Dt.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Dt.apiMethodRegistry[e].apply(null,r)};function UB(e){var r=e.name,t=e.categories,n=e.meta;if(Dt.modules[r]){T0.log("Type "+r+" already registered");return}Dt.subplotsRegistry[e.basePlotModule.name]||YB(e.basePlotModule);for(var a={},i=0;i<t.length;i++)a[t[i]]=!0,Dt.allCategories[t[i]]=!0;Dt.modules[r]={_module:e,categories:a},n&&Object.keys(n).length&&(Dt.modules[r].meta=n),Dt.allTypes.push(r);for(var o in Dt.componentsRegistry)D7(o,r);e.layoutAttributes&&OB(Dt.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,s=l.name;if(s==="mapbox"){var u=l.constants.styleRules;for(var f in u)IB(".js-plotly-plot .plotly .mapboxgl-"+f,u[f])}s==="map"&&(k7(),WI(NB)),(s==="geo"||s==="mapbox"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function YB(e){var r=e.name;if(Dt.subplotsRegistry[r]){T0.log("Plot type "+r+" already registered.");return}q7(e),Dt.subplotsRegistry[r]=e;for(var t in Dt.componentsRegistry)E7(t,e.name)}function GB(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;Dt.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&C7(Dt.layoutArrayContainers,r),q7(e));for(var t in Dt.modules)D7(r,t);for(var n in Dt.subplotsRegistry)E7(r,n);e.schema&&e.schema.layout&&Gy(BB,e.schema.layout)}function VB(e){if(typeof e.name!="string")throw new Error("Transform module *name* must be a string.");var r="Transform module "+e.name,t=typeof e.transform=="function",n=typeof e.calcTransform=="function";if(!t&&!n)throw new Error(r+" is missing a *transform* or *calcTransform* method.");t&&n&&T0.log([r+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),FB(e.attributes)||T0.log(r+" registered without an *attributes* object."),typeof e.supplyDefaults!="function"&&T0.log(r+" registered without a *supplyDefaults* method.")}function WB(e){var r=e.name,t=r.split("-")[0],n=e.dictionary,a=e.format,i=n&&Object.keys(n).length,o=a&&Object.keys(a).length,l=Dt.localeRegistry,s=l[r];if(s||(l[r]=s={}),t!==r){var u=l[t];u||(l[t]=u={}),i&&u.dictionary===s.dictionary&&(u.dictionary=n),o&&u.format===s.format&&(u.format=a)}i&&(s.dictionary=n),o&&(s.format=a)}function q7(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)C7(Dt.layoutArrayRegexes,r[t])}}function D7(e,r){var t=Dt.componentsRegistry[e].schema;if(!(!t||!t.traces)){var n=t.traces[r];n&&Gy(Dt.modules[r]._module.attributes,n)}}function E7(e,r){var t=Dt.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var n=Dt.subplotsRegistry[r],a=n.layoutAttributes,i=n.attr==="subplot"?n.name:n.attr;Array.isArray(i)&&(i=i[0]);var o=t.subplots[i];a&&o&&Gy(a,o)}}function P7(e){return typeof e=="object"&&(e=e.type),e}});var U7=ne(jn=>{"use strict";var ZB=m0().timeFormat,B7=Bt(),Vy=Pu(),Iu=b0().mod,C0=En(),xo=C0.BADNUM,Di=C0.ONEDAY,o1=C0.ONEHOUR,Fu=C0.ONEMIN,S0=C0.ONESEC,l1=C0.EPOCHJD,Vs=dt(),R7=m0().utcFormat,XB=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,jB=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,z7=new Date().getFullYear()-70;function Ws(e){return e&&Vs.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}jn.dateTick0=function(e,r){var t=JB(e,!!r);if(r<2)return t;var n=jn.dateTime2ms(t,e);return n+=Di*(r-1),jn.ms2DateTime(n,0,e)};function JB(e,r){return Ws(e)?r?Vs.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Vs.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}jn.dfltRange=function(e){return Ws(e)?Vs.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};jn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ad,Td;jn.dateTime2ms=function(e,r){if(jn.isJSDate(e)){var t=e.getTimezoneOffset()*Fu,n=(e.getUTCMinutes()-e.getMinutes())*Fu+(e.getUTCSeconds()-e.getSeconds())*S0+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Fu;t=t-a/2+Iu(n-t+a/2,a)}return e=Number(e)-t,e>=Ad&&e<=Td?e:xo}if(typeof e!="string"&&typeof e!="number")return xo;e=String(e);var i=Ws(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?jB:XB);if(!s)return xo;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return xo;u=Number(u);var p;try{var y=Vs.getComponentMethod("calendars","getCal")(r);if(l){var _=f.charAt(f.length-1)==="i";f=parseInt(f,10),p=y.newDate(u,y.toMonthIndex(u,f,_),v)}else p=y.newDate(u,Number(f),v)}catch(x){return xo}return p?(p.toJD()-l1)*Di+h*o1+d*Fu+m*S0:xo}u.length===2?u=(Number(u)+2e3-z7)%100+z7:u=Number(u),f-=1;var S=new Date(Date.UTC(2e3,f,v,h,d));return S.setUTCFullYear(u),S.getUTCMonth()!==f||S.getUTCDate()!==v?xo:S.getTime()+m*S0};Ad=jn.MIN_MS=jn.dateTime2ms("-9999");Td=jn.MAX_MS=jn.dateTime2ms("9999-12-31 23:59:59.9999");jn.isDateTime=function(e,r){return jn.dateTime2ms(e,r)!==xo};function k0(e,r){return String(e+Math.pow(10,r)).substr(1)}var Md=90*Di,N7=3*o1,F7=5*Fu;jn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ad&&e<=Td))return xo;r||(r=0);var n=Math.floor(Iu(e+.05,1)*10),a=Math.round(e-n/10),i,o,l,s,u,f;if(Ws(t)){var v=Math.floor(a/Di)+l1,h=Math.floor(Iu(e,Di));try{i=Vs.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=R7("G%Y-%m-%d")(new Date(a))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r<Md?Math.floor(h/o1):0,l=r<Md?Math.floor(h%o1/Fu):0,s=r<N7?Math.floor(h%Fu/S0):0,u=r<F7?h%S0*10+n:0}else f=new Date(a),i=R7("%Y-%m-%d")(f),o=r<Md?f.getUTCHours():0,l=r<Md?f.getUTCMinutes():0,s=r<N7?f.getUTCSeconds():0,u=r<F7?f.getUTCMilliseconds()*10+n:0;return O7(i,o,l,s,u)};jn.ms2DateTimeLocal=function(e){if(!(e>=Ad+Di&&e<=Td-Di))return xo;var r=Math.floor(Iu(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=ZB("%Y-%m-%d")(t),a=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return O7(n,a,i,o,l)};function O7(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+k0(r,2)+":"+k0(t,2),(n||a)&&(e+=":"+k0(n,2),a))){for(var i=4;a%10===0;)i-=1,a/=10;e+="."+k0(a,i)}return e}jn.cleanDate=function(e,r,t){if(e===xo)return r;if(jn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ws(t))return Vy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=jn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!jn.isDateTime(e,t))return Vy.error("unrecognized date",e),r;return e};var $B=/%\d?f/g,KB=/%h/g,QB={1:"1",2:"1",3:"2",4:"2"};function I7(e,r,t,n){e=e.replace($B,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(KB,function(){return QB[t("%q")(a)]}),Ws(n))try{e=Vs.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(i){return"Invalid"}return t(e)(a)}var eO=[59,59.9,59.99,59.999,59.9999];function rO(e,r){var t=Iu(e+.05,Di),n=k0(Math.floor(t/o1),2)+":"+k0(Iu(Math.floor(t/Fu),60),2);if(r!=="M"){B7(r)||(r=0);var a=Math.min(Iu(e/S0,60),eO[r]),i=(100+a).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+i}return n}jn.formatDate=function(e,r,t,n,a,i){if(a=Ws(a)&&a,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+`