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.
- package/CHANGELOG.md +5 -0
- package/CITATION.cff +2 -2
- package/README.md +3 -3
- package/dist/README.md +18 -18
- package/dist/plot-schema.json +281 -281
- package/dist/plotly-basic.js +2 -2
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +2 -2
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +2 -2
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +2 -2
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +2 -2
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +2 -2
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +2 -2
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +2 -2
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +5 -11
- package/dist/plotly.js +2 -2
- package/dist/plotly.min.js +2 -2
- package/package.json +1 -1
- package/src/plots/font_attributes.js +3 -9
- package/src/version.js +1 -1
package/dist/plotly-gl2d.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (gl2d - minified) v3.0.
|
|
2
|
+
* plotly.js (gl2d - 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 Fne=Object.create;var Oy=Object.defineProperty;var Rne=Object.getOwnPropertyDescriptor;var Pne=Object.getOwnPropertyNames;var Nne=Object.getPrototypeOf,Ine=Object.prototype.hasOwnProperty;var Qv=(e,r)=>()=>(e&&(r=e(e=0)),r);var R=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),One=(e,r)=>{for(var t in r)Oy(e,t,{get:r[t],enumerable:!0})},hM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Pne(r))!Ine.call(e,n)&&n!==t&&Oy(e,n,{get:()=>r[n],enumerable:!(a=Rne(r,n))||a.enumerable});return e};var zne=(e,r,t)=>(t=e!=null?Fne(Nne(e)):{},hM(r||!e||!e.__esModule?Oy(t,"default",{value:e,enumerable:!0}):t,e)),dM=e=>hM(Oy({},"__esModule",{value:!0}),e);var zy=R(pM=>{"use strict";pM.version="3.0.2"});var yM=R((mM,By)=>{(function(r,t,a){t[r]=t[r]||a(),typeof By!="undefined"&&By.exports&&(By.exports=t[r])})("Promise",typeof window!="undefined"?window:mM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,A,x,T){return Object.defineProperty(_,A,{value:x,writable:!0,configurable:T!==!1})}}catch(b){r=function(A,x,T){return A[x]=T,A}}a=function(){var _,A,x;function T(S,M){this.fn=S,this.self=M,this.next=void 0}return{add:function(M,k){x=new T(M,k),A?A.next=x:_=x,A=x,x=void 0},drain:function(){var M=_;for(_=A=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(b,_){a.add(b,_),t||(t=i(a.drain))}function l(b){var _,A=typeof b;return b!=null&&(A=="object"||A=="function")&&(_=b.then),typeof _=="function"?_:!1}function s(){for(var b=0;b<this.chain.length;b++)u(this,this.state===1?this.chain[b].success:this.chain[b].failure,this.chain[b]);this.chain.length=0}function u(b,_,A){var x,T;try{_===!1?A.reject(b.msg):(_===!0?x=b.msg:x=_.call(void 0,b.msg),x===A.promise?A.reject(TypeError("Promise-chain cycle")):(T=l(x))?T.call(x,A.resolve,A.reject):A.resolve(x))}catch(S){A.reject(S)}}function f(b){var _,A=this;if(!A.triggered){A.triggered=!0,A.def&&(A=A.def);try{(_=l(b))?o(function(){var x=new d(A);try{_.call(b,function(){f.apply(x,arguments)},function(){c.apply(x,arguments)})}catch(T){c.call(x,T)}}):(A.msg=b,A.state=1,A.chain.length>0&&o(s,A))}catch(x){c.call(new d(A),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&o(s,_))}function v(b,_,A,x){for(var T=0;T<_.length;T++)(function(M){b.resolve(_[M]).then(function(D){A(M,D)},x)})(T)}function d(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function g(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(x,T){var S={success:typeof x=="function"?x:!0,failure:typeof T=="function"?T:!1};return S.promise=new this.constructor(function(k,D){if(typeof k!="function"||typeof D!="function")throw TypeError("Not a function");S.resolve=k,S.reject=D}),_.chain.push(S),_.state!==0&&o(s,_),S.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(A){c.call(_,A)}}var m=r({},"constructor",g,!1);return g.prototype=m,r(m,"__NPO__",0,!1),r(g,"resolve",function(_){var A=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new A(function(T,S){if(typeof T!="function"||typeof S!="function")throw TypeError("Not a function");T(_)})}),r(g,"reject",function(_){return new this(function(x,T){if(typeof x!="function"||typeof T!="function")throw TypeError("Not a function");T(_)})}),r(g,"all",function(_){var A=this;return n.call(_)!="[object Array]"?A.reject(TypeError("Not an array")):_.length===0?A.resolve([]):new A(function(T,S){if(typeof T!="function"||typeof S!="function")throw TypeError("Not a function");var M=_.length,k=Array(M),D=0;v(A,_,function(N,q){k[N]=q,++D===M&&T(k)},S)})}),r(g,"race",function(_){var A=this;return n.call(_)!="[object Array]"?A.reject(TypeError("Not an array")):new A(function(T,S){if(typeof T!="function"||typeof S!="function")throw TypeError("Not a function");v(A,_,function(k,D){T(D)},S)})}),g})});var ta=R((ZSe,Uy)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(y){for(var w=y.length,C=new Array(w);w--;)C[w]=y[w];return C}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(y,w){l.call(this,y,w+"")},o.setAttributeNS=function(y,w,C){s.call(this,y,w,C+"")},u.setProperty=function(y,w,C){f.call(this,y,w+"",C)}}e.ascending=c;function c(h,y){return h<y?-1:h>y?1:h>=y?0:NaN}e.descending=function(h,y){return y<h?-1:y>h?1:y>=h?0:NaN},e.min=function(h,y){var w=-1,C=h.length,E,L;if(arguments.length===1){for(;++w<C;)if((L=h[w])!=null&&L>=L){E=L;break}for(;++w<C;)(L=h[w])!=null&&E>L&&(E=L)}else{for(;++w<C;)if((L=y.call(h,h[w],w))!=null&&L>=L){E=L;break}for(;++w<C;)(L=y.call(h,h[w],w))!=null&&E>L&&(E=L)}return E},e.max=function(h,y){var w=-1,C=h.length,E,L;if(arguments.length===1){for(;++w<C;)if((L=h[w])!=null&&L>=L){E=L;break}for(;++w<C;)(L=h[w])!=null&&L>E&&(E=L)}else{for(;++w<C;)if((L=y.call(h,h[w],w))!=null&&L>=L){E=L;break}for(;++w<C;)(L=y.call(h,h[w],w))!=null&&L>E&&(E=L)}return E},e.extent=function(h,y){var w=-1,C=h.length,E,L,I;if(arguments.length===1){for(;++w<C;)if((L=h[w])!=null&&L>=L){E=I=L;break}for(;++w<C;)(L=h[w])!=null&&(E>L&&(E=L),I<L&&(I=L))}else{for(;++w<C;)if((L=y.call(h,h[w],w))!=null&&L>=L){E=I=L;break}for(;++w<C;)(L=y.call(h,h[w],w))!=null&&(E>L&&(E=L),I<L&&(I=L))}return[E,I]};function v(h){return h===null?NaN:+h}function d(h){return!isNaN(h)}e.sum=function(h,y){var w=0,C=h.length,E,L=-1;if(arguments.length===1)for(;++L<C;)d(E=+h[L])&&(w+=E);else for(;++L<C;)d(E=+y.call(h,h[L],L))&&(w+=E);return w},e.mean=function(h,y){var w=0,C=h.length,E,L=-1,I=C;if(arguments.length===1)for(;++L<C;)d(E=v(h[L]))?w+=E:--I;else for(;++L<C;)d(E=v(y.call(h,h[L],L)))?w+=E:--I;if(I)return w/I},e.quantile=function(h,y){var w=(h.length-1)*y+1,C=Math.floor(w),E=+h[C-1],L=w-C;return L?E+L*(h[C]-E):E},e.median=function(h,y){var w=[],C=h.length,E,L=-1;if(arguments.length===1)for(;++L<C;)d(E=v(h[L]))&&w.push(E);else for(;++L<C;)d(E=v(y.call(h,h[L],L)))&&w.push(E);if(w.length)return e.quantile(w.sort(c),.5)},e.variance=function(h,y){var w=h.length,C=0,E,L,I=0,F=-1,z=0;if(arguments.length===1)for(;++F<w;)d(E=v(h[F]))&&(L=E-C,C+=L/++z,I+=L*(E-C));else for(;++F<w;)d(E=v(y.call(h,h[F],F)))&&(L=E-C,C+=L/++z,I+=L*(E-C));if(z>1)return I/(z-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(y,w,C,E){for(arguments.length<3&&(C=0),arguments.length<4&&(E=y.length);C<E;){var L=C+E>>>1;h(y[L],w)<0?C=L+1:E=L}return C},right:function(y,w,C,E){for(arguments.length<3&&(C=0),arguments.length<4&&(E=y.length);C<E;){var L=C+E>>>1;h(y[L],w)>0?E=L:C=L+1}return C}}}var g=p(c);e.bisectLeft=g.left,e.bisect=e.bisectRight=g.right,e.bisector=function(h){return p(h.length===1?function(y,w){return c(h(y),w)}:h)},e.shuffle=function(h,y,w){(C=arguments.length)<3&&(w=h.length,C<2&&(y=0));for(var C=w-y,E,L;C;)L=Math.random()*C--|0,E=h[C+y],h[C+y]=h[L+y],h[L+y]=E;return h},e.permute=function(h,y){for(var w=y.length,C=new Array(w);w--;)C[w]=h[y[w]];return C},e.pairs=function(h){for(var y=0,w=h.length-1,C,E=h[0],L=new Array(w<0?0:w);y<w;)L[y]=[C=E,E=h[++y]];return L},e.transpose=function(h){if(!(L=h.length))return[];for(var y=-1,w=e.min(h,m),C=new Array(w);++y<w;)for(var E=-1,L,I=C[y]=new Array(L);++E<L;)I[E]=h[E][y];return C};function m(h){return h.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(h){var y=[];for(var w in h)y.push(w);return y},e.values=function(h){var y=[];for(var w in h)y.push(h[w]);return y},e.entries=function(h){var y=[];for(var w in h)y.push({key:w,value:h[w]});return y},e.merge=function(h){for(var y=h.length,w,C=-1,E=0,L,I;++C<y;)E+=h[C].length;for(L=new Array(E);--y>=0;)for(I=h[y],w=I.length;--w>=0;)L[--E]=I[w];return L};var b=Math.abs;e.range=function(h,y,w){if(arguments.length<3&&(w=1,arguments.length<2&&(y=h,h=0)),(y-h)/w===1/0)throw new Error("infinite range");var C=[],E=_(b(w)),L=-1,I;if(h*=E,y*=E,w*=E,w<0)for(;(I=h+w*++L)>y;)C.push(I/E);else for(;(I=h+w*++L)<y;)C.push(I/E);return C};function _(h){for(var y=1;h*y%1;)y*=10;return y}function A(h,y){for(var w in y)Object.defineProperty(h.prototype,w,{value:y[w],enumerable:!1})}e.map=function(h,y){var w=new x;if(h instanceof x)h.forEach(function(F,z){w.set(F,z)});else if(Array.isArray(h)){var C=-1,E=h.length,L;if(arguments.length===1)for(;++C<E;)w.set(C,h[C]);else for(;++C<E;)w.set(y.call(h,L=h[C],C),L)}else for(var I in h)w.set(I,h[I]);return w};function x(){this._=Object.create(null)}var T="__proto__",S="\0";A(x,{has:D,get:function(h){return this._[M(h)]},set:function(h,y){return this._[M(h)]=y},remove:P,keys:N,values:function(){var h=[];for(var y in this._)h.push(this._[y]);return h},entries:function(){var h=[];for(var y in this._)h.push({key:k(y),value:this._[y]});return h},size:q,empty:O,forEach:function(h){for(var y in this._)h.call(this,k(y),this._[y])}});function M(h){return(h+="")===T||h[0]===S?S+h:h}function k(h){return(h+="")[0]===S?h.slice(1):h}function D(h){return M(h)in this._}function P(h){return(h=M(h))in this._&&delete this._[h]}function N(){var h=[];for(var y in this._)h.push(k(y));return h}function q(){var h=0;for(var y in this._)++h;return h}function O(){for(var h in this._)return!1;return!0}e.nest=function(){var h={},y=[],w=[],C,E;function L(F,z,X){if(X>=y.length)return E?E.call(h,z):C?z.sort(C):z;for(var J=-1,K=z.length,ee=y[X++],Me,qe,ne,he=new x,we;++J<K;)(we=he.get(Me=ee(qe=z[J])))?we.push(qe):he.set(Me,[qe]);return F?(qe=F(),ne=function(Fe,Re){qe.set(Fe,L(F,Re,X))}):(qe={},ne=function(Fe,Re){qe[Fe]=L(F,Re,X)}),he.forEach(ne),qe}function I(F,z){if(z>=y.length)return F;var X=[],J=w[z++];return F.forEach(function(K,ee){X.push({key:K,values:I(ee,z)})}),J?X.sort(function(K,ee){return J(K.key,ee.key)}):X}return h.map=function(F,z){return L(z,F,0)},h.entries=function(F){return I(L(e.map,F,0),0)},h.key=function(F){return y.push(F),h},h.sortKeys=function(F){return w[y.length-1]=F,h},h.sortValues=function(F){return C=F,h},h.rollup=function(F){return E=F,h},h},e.set=function(h){var y=new U;if(h)for(var w=0,C=h.length;w<C;++w)y.add(h[w]);return y};function U(){this._=Object.create(null)}A(U,{has:D,add:function(h){return this._[M(h+="")]=!0,h},remove:P,values:N,size:q,empty:O,forEach:function(h){for(var y in this._)h.call(this,k(y))}}),e.behavior={};function $(h){return h}e.rebind=function(h,y){for(var w=1,C=arguments.length,E;++w<C;)h[E=arguments[w]]=W(h,y,y[E]);return h};function W(h,y,w){return function(){var C=w.apply(y,arguments);return C===y?h:C}}function H(h,y){if(y in h)return y;y=y.charAt(0).toUpperCase()+y.slice(1);for(var w=0,C=B.length;w<C;++w){var E=B[w]+y;if(E in h)return E}}var B=["webkit","ms","moz","Moz","o","O"];function V(){}e.dispatch=function(){for(var h=new j,y=-1,w=arguments.length;++y<w;)h[arguments[y]]=Q(h);return h};function j(){}j.prototype.on=function(h,y){var w=h.indexOf("."),C="";if(w>=0&&(C=h.slice(w+1),h=h.slice(0,w)),h)return arguments.length<2?this[h].on(C):this[h].on(C,y);if(arguments.length===2){if(y==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(C,null);return this}};function Q(h){var y=[],w=new x;function C(){for(var E=y,L=-1,I=E.length,F;++L<I;)(F=E[L].on)&&F.apply(this,arguments);return h}return C.on=function(E,L){var I=w.get(E),F;return arguments.length<2?I&&I.on:(I&&(I.on=null,y=y.slice(0,F=y.indexOf(I)).concat(y.slice(F+1)),w.remove(E)),L&&y.push(w.set(E,{on:L})),h)},C}e.event=null;function ve(){e.event.preventDefault()}function xe(){for(var h=e.event,y;y=h.sourceEvent;)h=y;return h}function se(h){for(var y=new j,w=0,C=arguments.length;++w<C;)y[arguments[w]]=Q(y);return y.of=function(E,L){return function(I){try{var F=I.sourceEvent=e.event;I.target=h,e.event=I,y[I.type].apply(E,L)}finally{e.event=F}}},y}e.requote=function(h){return h.replace(be,"\\$&")};var be=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,re={}.__proto__?function(h,y){h.__proto__=y}:function(h,y){for(var w in y)h[w]=y[w]};function ke(h){return re(h,Ce),h}var ge=function(h,y){return y.querySelector(h)},Ee=function(h,y){return y.querySelectorAll(h)},De=function(h,y){var w=h.matches||h[H(h,"matchesSelector")];return De=function(C,E){return w.call(C,E)},De(h,y)};typeof Sizzle=="function"&&(ge=function(h,y){return Sizzle(h,y)[0]||null},Ee=Sizzle,De=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var Ce=e.selection.prototype=[];Ce.select=function(h){var y=[],w,C,E,L;h=Y(h);for(var I=-1,F=this.length;++I<F;){y.push(w=[]),w.parentNode=(E=this[I]).parentNode;for(var z=-1,X=E.length;++z<X;)(L=E[z])?(w.push(C=h.call(L,L.__data__,z,I)),C&&"__data__"in L&&(C.__data__=L.__data__)):w.push(null)}return ke(y)};function Y(h){return typeof h=="function"?h:function(){return ge(h,this)}}Ce.selectAll=function(h){var y=[],w,C;h=ae(h);for(var E=-1,L=this.length;++E<L;)for(var I=this[E],F=-1,z=I.length;++F<z;)(C=I[F])&&(y.push(w=t(h.call(C,C.__data__,F,E))),w.parentNode=C);return ke(y)};function ae(h){return typeof h=="function"?h:function(){return Ee(h,this)}}var Z="http://www.w3.org/1999/xhtml",Te={svg:"http://www.w3.org/2000/svg",xhtml:Z,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:Te,qualify:function(h){var y=h.indexOf(":"),w=h;return y>=0&&(w=h.slice(0,y))!=="xmlns"&&(h=h.slice(y+1)),Te.hasOwnProperty(w)?{space:Te[w],local:h}:h}},Ce.attr=function(h,y){if(arguments.length<2){if(typeof h=="string"){var w=this.node();return h=e.ns.qualify(h),h.local?w.getAttributeNS(h.space,h.local):w.getAttribute(h)}for(y in h)this.each(Pe(y,h[y]));return this}return this.each(Pe(h,y))};function Pe(h,y){h=e.ns.qualify(h);function w(){this.removeAttribute(h)}function C(){this.removeAttributeNS(h.space,h.local)}function E(){this.setAttribute(h,y)}function L(){this.setAttributeNS(h.space,h.local,y)}function I(){var z=y.apply(this,arguments);z==null?this.removeAttribute(h):this.setAttribute(h,z)}function F(){var z=y.apply(this,arguments);z==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,z)}return y==null?h.local?C:w:typeof y=="function"?h.local?F:I:h.local?L:E}function Ne(h){return h.trim().replace(/\s+/g," ")}Ce.classed=function(h,y){if(arguments.length<2){if(typeof h=="string"){var w=this.node(),C=(h=Qe(h)).length,E=-1;if(y=w.classList){for(;++E<C;)if(!y.contains(h[E]))return!1}else for(y=w.getAttribute("class");++E<C;)if(!lr(h[E]).test(y))return!1;return!0}for(y in h)this.each(Je(y,h[y]));return this}return this.each(Je(h,y))};function lr(h){return new RegExp("(?:^|\\s+)"+e.requote(h)+"(?:\\s+|$)","g")}function Qe(h){return(h+"").trim().split(/^|\s+/)}function Je(h,y){h=Qe(h).map(or);var w=h.length;function C(){for(var L=-1;++L<w;)h[L](this,y)}function E(){for(var L=-1,I=y.apply(this,arguments);++L<w;)h[L](this,I)}return typeof y=="function"?E:C}function or(h){var y=lr(h);return function(w,C){if(E=w.classList)return C?E.add(h):E.remove(h);var E=w.getAttribute("class")||"";C?(y.lastIndex=0,y.test(E)||w.setAttribute("class",Ne(E+" "+h))):w.setAttribute("class",Ne(E.replace(y," ")))}}Ce.style=function(h,y,w){var C=arguments.length;if(C<3){if(typeof h!="string"){C<2&&(y="");for(w in h)this.each(yr(w,h[w],y));return this}if(C<2){var E=this.node();return i(E).getComputedStyle(E,null).getPropertyValue(h)}w=""}return this.each(yr(h,y,w))};function yr(h,y,w){function C(){this.style.removeProperty(h)}function E(){this.style.setProperty(h,y,w)}function L(){var I=y.apply(this,arguments);I==null?this.style.removeProperty(h):this.style.setProperty(h,I,w)}return y==null?C:typeof y=="function"?L:E}Ce.property=function(h,y){if(arguments.length<2){if(typeof h=="string")return this.node()[h];for(y in h)this.each(ir(y,h[y]));return this}return this.each(ir(h,y))};function ir(h,y){function w(){delete this[h]}function C(){this[h]=y}function E(){var L=y.apply(this,arguments);L==null?delete this[h]:this[h]=L}return y==null?w:typeof y=="function"?E:C}Ce.text=function(h){return arguments.length?this.each(typeof h=="function"?function(){var y=h.apply(this,arguments);this.textContent=y==null?"":y}:h==null?function(){this.textContent=""}:function(){this.textContent=h}):this.node().textContent},Ce.html=function(h){return arguments.length?this.each(typeof h=="function"?function(){var y=h.apply(this,arguments);this.innerHTML=y==null?"":y}:h==null?function(){this.innerHTML=""}:function(){this.innerHTML=h}):this.node().innerHTML},Ce.append=function(h){return h=Xe(h),this.select(function(){return this.appendChild(h.apply(this,arguments))})};function Xe(h){function y(){var C=this.ownerDocument,E=this.namespaceURI;return E===Z&&C.documentElement.namespaceURI===Z?C.createElement(h):C.createElementNS(E,h)}function w(){return this.ownerDocument.createElementNS(h.space,h.local)}return typeof h=="function"?h:(h=e.ns.qualify(h)).local?w:y}Ce.insert=function(h,y){return h=Xe(h),y=Y(y),this.select(function(){return this.insertBefore(h.apply(this,arguments),y.apply(this,arguments)||null)})},Ce.remove=function(){return this.each(Lr)};function Lr(){var h=this.parentNode;h&&h.removeChild(this)}Ce.data=function(h,y){var w=-1,C=this.length,E,L;if(!arguments.length){for(h=new Array(C=(E=this[0]).length);++w<C;)(L=E[w])&&(h[w]=L.__data__);return h}function I(J,K){var ee,Me=J.length,qe=K.length,ne=Math.min(Me,qe),he=new Array(qe),we=new Array(qe),Fe=new Array(Me),Re,me;if(y){var cr=new x,Mr=new Array(Me),Pr;for(ee=-1;++ee<Me;)(Re=J[ee])&&(cr.has(Pr=y.call(Re,Re.__data__,ee))?Fe[ee]=Re:cr.set(Pr,Re),Mr[ee]=Pr);for(ee=-1;++ee<qe;)(Re=cr.get(Pr=y.call(K,me=K[ee],ee)))?Re!==!0&&(he[ee]=Re,Re.__data__=me):we[ee]=Ar(me),cr.set(Pr,!0);for(ee=-1;++ee<Me;)ee in Mr&&cr.get(Mr[ee])!==!0&&(Fe[ee]=J[ee])}else{for(ee=-1;++ee<ne;)Re=J[ee],me=K[ee],Re?(Re.__data__=me,he[ee]=Re):we[ee]=Ar(me);for(;ee<qe;++ee)we[ee]=Ar(K[ee]);for(;ee<Me;++ee)Fe[ee]=J[ee]}we.update=he,we.parentNode=he.parentNode=Fe.parentNode=J.parentNode,F.push(we),z.push(he),X.push(Fe)}var F=rt([]),z=ke([]),X=ke([]);if(typeof h=="function")for(;++w<C;)I(E=this[w],h.call(E,E.parentNode.__data__,w));else for(;++w<C;)I(E=this[w],h);return z.enter=function(){return F},z.exit=function(){return X},z};function Ar(h){return{__data__:h}}Ce.datum=function(h){return arguments.length?this.property("__data__",h):this.property("__data__")},Ce.filter=function(h){var y=[],w,C,E;typeof h!="function"&&(h=de(h));for(var L=0,I=this.length;L<I;L++){y.push(w=[]),w.parentNode=(C=this[L]).parentNode;for(var F=0,z=C.length;F<z;F++)(E=C[F])&&h.call(E,E.__data__,F,L)&&w.push(E)}return ke(y)};function de(h){return function(){return De(this,h)}}Ce.order=function(){for(var h=-1,y=this.length;++h<y;)for(var w=this[h],C=w.length-1,E=w[C],L;--C>=0;)(L=w[C])&&(E&&E!==L.nextSibling&&E.parentNode.insertBefore(L,E),E=L);return this},Ce.sort=function(h){h=Oe.apply(this,arguments);for(var y=-1,w=this.length;++y<w;)this[y].sort(h);return this.order()};function Oe(h){return arguments.length||(h=c),function(y,w){return y&&w?h(y.__data__,w.__data__):!y-!w}}Ce.each=function(h){return Ue(this,function(y,w,C){h.call(y,y.__data__,w,C)})};function Ue(h,y){for(var w=0,C=h.length;w<C;w++)for(var E=h[w],L=0,I=E.length,F;L<I;L++)(F=E[L])&&y(F,L,w);return h}Ce.call=function(h){var y=t(arguments);return h.apply(y[0]=this,y),this},Ce.empty=function(){return!this.node()},Ce.node=function(){for(var h=0,y=this.length;h<y;h++)for(var w=this[h],C=0,E=w.length;C<E;C++){var L=w[C];if(L)return L}return null},Ce.size=function(){var h=0;return Ue(this,function(){++h}),h};function rt(h){return re(h,Ur),h}var Ur=[];e.selection.enter=rt,e.selection.enter.prototype=Ur,Ur.append=Ce.append,Ur.empty=Ce.empty,Ur.node=Ce.node,Ur.call=Ce.call,Ur.size=Ce.size,Ur.select=function(h){for(var y=[],w,C,E,L,I,F=-1,z=this.length;++F<z;){E=(L=this[F]).update,y.push(w=[]),w.parentNode=L.parentNode;for(var X=-1,J=L.length;++X<J;)(I=L[X])?(w.push(E[X]=C=h.call(L.parentNode,I.__data__,X,F)),C.__data__=I.__data__):w.push(null)}return ke(y)},Ur.insert=function(h,y){return arguments.length<2&&(y=Ye(this)),Ce.insert.call(this,h,y)};function Ye(h){var y,w;return function(C,E,L){var I=h[L].update,F=I.length,z;for(L!=w&&(w=L,y=0),E>=y&&(y=E+1);!(z=I[y])&&++y<F;);return z}}e.select=function(h){var y;return typeof h=="string"?(y=[ge(h,a)],y.parentNode=a.documentElement):(y=[h],y.parentNode=n(h)),ke([y])},e.selectAll=function(h){var y;return typeof h=="string"?(y=t(Ee(h,a)),y.parentNode=a.documentElement):(y=t(h),y.parentNode=null),ke([y])},Ce.on=function(h,y,w){var C=arguments.length;if(C<3){if(typeof h!="string"){C<2&&(y=!1);for(w in h)this.each(Ve(w,h[w],y));return this}if(C<2)return(C=this.node()["__on"+h])&&C._;w=!1}return this.each(Ve(h,y,w))};function Ve(h,y,w){var C="__on"+h,E=h.indexOf("."),L=Tr;E>0&&(h=h.slice(0,E));var I=pr.get(h);I&&(h=I,L=mr);function F(){var J=this[C];J&&(this.removeEventListener(h,J,J.$),delete this[C])}function z(){var J=L(y,t(arguments));F.call(this),this.addEventListener(h,this[C]=J,J.$=w),J._=y}function X(){var J=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),K;for(var ee in this)if(K=ee.match(J)){var Me=this[ee];this.removeEventListener(K[1],Me,Me.$),delete this[ee]}}return E?y?z:F:y?V:X}var pr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&pr.forEach(function(h){"on"+h in a&&pr.remove(h)});function Tr(h,y){return function(w){var C=e.event;e.event=w,y[0]=this.__data__;try{h.apply(this,y)}finally{e.event=C}}}function mr(h,y){var w=Tr(h,y);return function(C){var E=this,L=C.relatedTarget;(!L||L!==E&&!(L.compareDocumentPosition(E)&8))&&w.call(E,C)}}var vr,Cr=0;function Ir(h){var y=".dragsuppress-"+ ++Cr,w="click"+y,C=e.select(i(h)).on("touchmove"+y,ve).on("dragstart"+y,ve).on("selectstart"+y,ve);if(vr==null&&(vr="onselectstart"in h?!1:H(h.style,"userSelect")),vr){var E=n(h).style,L=E[vr];E[vr]="none"}return function(I){if(C.on(y,null),vr&&(E[vr]=L),I){var F=function(){C.on(w,null)};C.on(w,function(){ve(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Ze(h,xe())};var Gr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ze(h,y){y.changedTouches&&(y=y.changedTouches[0]);var w=h.ownerSVGElement||h;if(w.createSVGPoint){var C=w.createSVGPoint();if(Gr<0){var E=i(h);if(E.scrollX||E.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=w[0][0].getScreenCTM();Gr=!(L.f||L.e),w.remove()}}return Gr?(C.x=y.pageX,C.y=y.pageY):(C.x=y.clientX,C.y=y.clientY),C=C.matrixTransform(h.getScreenCTM().inverse()),[C.x,C.y]}var I=h.getBoundingClientRect();return[y.clientX-I.left-h.clientLeft,y.clientY-I.top-h.clientTop]}e.touch=function(h,y,w){if(arguments.length<3&&(w=y,y=xe().changedTouches),y){for(var C=0,E=y.length,L;C<E;++C)if((L=y[C]).identifier===w)return Ze(h,L)}},e.behavior.drag=function(){var h=se(E,"drag","dragstart","dragend"),y=null,w=L(V,e.mouse,i,"mousemove","mouseup"),C=L(oe,e.touch,$,"touchmove","touchend");function E(){this.on("mousedown.drag",w).on("touchstart.drag",C)}function L(I,F,z,X,J){return function(){var K=this,ee=e.event.target.correspondingElement||e.event.target,Me=K.parentNode,qe=h.of(K,arguments),ne=0,he=I(),we=".drag"+(he==null?"":"-"+he),Fe,Re=e.select(z(ee)).on(X+we,Mr).on(J+we,Pr),me=Ir(ee),cr=F(Me,he);y?(Fe=y.apply(K,arguments),Fe=[Fe.x-cr[0],Fe.y-cr[1]]):Fe=[0,0],qe({type:"dragstart"});function Mr(){var Yr=F(Me,he),it,ot;Yr&&(it=Yr[0]-cr[0],ot=Yr[1]-cr[1],ne|=it|ot,cr=Yr,qe({type:"drag",x:Yr[0]+Fe[0],y:Yr[1]+Fe[1],dx:it,dy:ot}))}function Pr(){F(Me,he)&&(Re.on(X+we,null).on(J+we,null),me(ne),qe({type:"dragend"}))}}}return E.origin=function(I){return arguments.length?(y=I,E):y},e.rebind(E,h,"on")};function oe(){return e.event.changedTouches[0].identifier}e.touches=function(h,y){return arguments.length<2&&(y=xe().touches),y?t(y).map(function(w){var C=Ze(h,w);return C.identifier=w.identifier,C}):[]};var ye=1e-6,Ge=ye*ye,Ie=Math.PI,Wr=2*Ie,tt=Wr-ye,$r=Ie/2,St=Ie/180,ea=180/Ie;function ma(h){return h>0?1:h<0?-1:0}function aa(h,y,w){return(y[0]-h[0])*(w[1]-h[1])-(y[1]-h[1])*(w[0]-h[0])}function en(h){return h>1?0:h<-1?Ie:Math.acos(h)}function Ln(h){return h>1?$r:h<-1?-$r:Math.asin(h)}function si(h){return((h=Math.exp(h))-1/h)/2}function Dn(h){return((h=Math.exp(h))+1/h)/2}function Vi(h){return((h=Math.exp(2*h))-1)/(h+1)}function Bn(h){return(h=Math.sin(h/2))*h}var qn=Math.SQRT2,yi=2,_t=4;e.interpolateZoom=function(h,y){var w=h[0],C=h[1],E=h[2],L=y[0],I=y[1],F=y[2],z=L-w,X=I-C,J=z*z+X*X,K,ee;if(J<Ge)ee=Math.log(F/E)/qn,K=function(Fe){return[w+Fe*z,C+Fe*X,E*Math.exp(qn*Fe*ee)]};else{var Me=Math.sqrt(J),qe=(F*F-E*E+_t*J)/(2*E*yi*Me),ne=(F*F-E*E-_t*J)/(2*F*yi*Me),he=Math.log(Math.sqrt(qe*qe+1)-qe),we=Math.log(Math.sqrt(ne*ne+1)-ne);ee=(we-he)/qn,K=function(Fe){var Re=Fe*ee,me=Dn(he),cr=E/(yi*Me)*(me*Vi(qn*Re+he)-si(he));return[w+cr*z,C+cr*X,E*me/Dn(qn*Re+he)]}}return K.duration=ee*1e3,K},e.behavior.zoom=function(){var h={x:0,y:0,k:1},y,w,C,E=[960,500],L=Ma,I=250,F=0,z="mousedown.zoom",X="mousemove.zoom",J="mouseup.zoom",K,ee="touchstart.zoom",Me,qe=se(Re,"zoomstart","zoom","zoomend"),ne,he,we,Fe;Ra||(Ra="onwheel"in a?(ra=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(ra=function(){return e.event.wheelDelta},"mousewheel"):(ra=function(){return-e.event.detail},"MozMousePixelScroll"));function Re(zr){zr.on(z,kt).on(Ra+".zoom",an).on("dblclick.zoom",_a).on(ee,ha)}Re.event=function(zr){zr.each(function(){var Ft=qe.of(this,arguments),Ut=h;$l?e.select(this).transition().each("start.zoom",function(){h=this.__chart__||{x:0,y:0,k:1},ot(Ft)}).tween("zoom:zoom",function(){var ua=E[0],Ba=E[1],cn=w?w[0]:ua/2,Hn=w?w[1]:Ba/2,Kn=e.interpolateZoom([(cn-h.x)/h.k,(Hn-h.y)/h.k,ua/h.k],[(cn-Ut.x)/Ut.k,(Hn-Ut.y)/Ut.k,ua/Ut.k]);return function(gi){var G=Kn(gi),ie=ua/G[2];this.__chart__=h={x:cn-G[0]*ie,y:Hn-G[1]*ie,k:ie},qt(Ft)}}).each("interrupt.zoom",function(){ct(Ft)}).each("end.zoom",function(){ct(Ft)}):(this.__chart__=h,ot(Ft),qt(Ft),ct(Ft))})},Re.translate=function(zr){return arguments.length?(h={x:+zr[0],y:+zr[1],k:h.k},it(),Re):[h.x,h.y]},Re.scale=function(zr){return arguments.length?(h={x:h.x,y:h.y,k:null},Mr(+zr),it(),Re):h.k},Re.scaleExtent=function(zr){return arguments.length?(L=zr==null?Ma:[+zr[0],+zr[1]],Re):L},Re.center=function(zr){return arguments.length?(C=zr&&[+zr[0],+zr[1]],Re):C},Re.size=function(zr){return arguments.length?(E=zr&&[+zr[0],+zr[1]],Re):E},Re.duration=function(zr){return arguments.length?(I=+zr,Re):I},Re.x=function(zr){return arguments.length?(he=zr,ne=zr.copy(),h={x:0,y:0,k:1},Re):he},Re.y=function(zr){return arguments.length?(Fe=zr,we=zr.copy(),h={x:0,y:0,k:1},Re):Fe};function me(zr){return[(zr[0]-h.x)/h.k,(zr[1]-h.y)/h.k]}function cr(zr){return[zr[0]*h.k+h.x,zr[1]*h.k+h.y]}function Mr(zr){h.k=Math.max(L[0],Math.min(L[1],zr))}function Pr(zr,Ft){Ft=cr(Ft),h.x+=zr[0]-Ft[0],h.y+=zr[1]-Ft[1]}function Yr(zr,Ft,Ut,ua){zr.__chart__={x:h.x,y:h.y,k:h.k},Mr(Math.pow(2,ua)),Pr(w=Ft,Ut),zr=e.select(zr),I>0&&(zr=zr.transition().duration(I)),zr.call(Re.event)}function it(){he&&he.domain(ne.range().map(function(zr){return(zr-h.x)/h.k}).map(ne.invert)),Fe&&Fe.domain(we.range().map(function(zr){return(zr-h.y)/h.k}).map(we.invert))}function ot(zr){F++||zr({type:"zoomstart"})}function qt(zr){it(),zr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function ct(zr){--F||(zr({type:"zoomend"}),w=null)}function kt(){var zr=this,Ft=qe.of(zr,arguments),Ut=0,ua=e.select(i(zr)).on(X,Hn).on(J,Kn),Ba=me(e.mouse(zr)),cn=Ir(zr);Xv.call(zr),ot(Ft);function Hn(){Ut=1,Pr(e.mouse(zr),Ba),qt(Ft)}function Kn(){ua.on(X,null).on(J,null),cn(Ut),ct(Ft)}}function ha(){var zr=this,Ft=qe.of(zr,arguments),Ut={},ua=0,Ba,cn=".zoom-"+e.event.changedTouches[0].identifier,Hn="touchmove"+cn,Kn="touchend"+cn,gi=[],G=e.select(zr),ie=Ir(zr);We(),ot(Ft),G.on(z,null).on(ee,We);function ue(){var $e=e.touches(zr);return Ba=h.k,$e.forEach(function(br){br.identifier in Ut&&(Ut[br.identifier]=me(br))}),$e}function We(){var $e=e.event.target;e.select($e).on(Hn,Ke).on(Kn,ar),gi.push($e);for(var br=e.event.changedTouches,Dr=0,qr=br.length;Dr<qr;++Dr)Ut[br[Dr].identifier]=null;var Fr=ue(),xt=Date.now();if(Fr.length===1){if(xt-Me<500){var ft=Fr[0];Yr(zr,ft,Ut[ft.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),ve()}Me=xt}else if(Fr.length>1){var ft=Fr[0],Zr=Fr[1],hr=ft[0]-Zr[0],ze=ft[1]-Zr[1];ua=hr*hr+ze*ze}}function Ke(){var $e=e.touches(zr),br,Dr,qr,Fr;Xv.call(zr);for(var xt=0,ft=$e.length;xt<ft;++xt,Fr=null)if(qr=$e[xt],Fr=Ut[qr.identifier]){if(Dr)break;br=qr,Dr=Fr}if(Fr){var Zr=(Zr=qr[0]-br[0])*Zr+(Zr=qr[1]-br[1])*Zr,hr=ua&&Math.sqrt(Zr/ua);br=[(br[0]+qr[0])/2,(br[1]+qr[1])/2],Dr=[(Dr[0]+Fr[0])/2,(Dr[1]+Fr[1])/2],Mr(hr*Ba)}Me=null,Pr(br,Dr),qt(Ft)}function ar(){if(e.event.touches.length){for(var $e=e.event.changedTouches,br=0,Dr=$e.length;br<Dr;++br)delete Ut[$e[br].identifier];for(var qr in Ut)return void ue()}e.selectAll(gi).on(cn,null),G.on(z,kt).on(ee,ha),ie(),ct(Ft)}}function an(){var zr=qe.of(this,arguments);K?clearTimeout(K):(Xv.call(this),y=me(w=C||e.mouse(this)),ot(zr)),K=setTimeout(function(){K=null,ct(zr)},50),ve(),Mr(Math.pow(2,ra()*.002)*h.k),Pr(w,y),qt(zr)}function _a(){var zr=e.mouse(this),Ft=Math.log(h.k)/Math.LN2;Yr(this,zr,me(zr),e.event.shiftKey?Math.ceil(Ft)-1:Math.floor(Ft)+1)}return e.rebind(Re,qe,"on")};var Ma=[0,1/0],ra,Ra;e.color=Xa;function Xa(){}Xa.prototype.toString=function(){return this.rgb()+""},e.hsl=Sa;function Sa(h,y,w){return this instanceof Sa?(this.h=+h,this.s=+y,void(this.l=+w)):arguments.length<2?h instanceof Sa?new Sa(h.h,h.s,h.l):jt(""+h,va,Sa):new Sa(h,y,w)}var La=Sa.prototype=new Xa;La.brighter=function(h){return h=Math.pow(.7,arguments.length?h:1),new Sa(this.h,this.s,this.l/h)},La.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new Sa(this.h,this.s,h*this.l)},La.rgb=function(){return rn(this.h,this.s,this.l)};function rn(h,y,w){var C,E;h=isNaN(h)?0:(h%=360)<0?h+360:h,y=isNaN(y)||y<0?0:y>1?1:y,w=w<0?0:w>1?1:w,E=w<=.5?w*(1+y):w+y-w*y,C=2*w-E;function L(F){return F>360?F-=360:F<0&&(F+=360),F<60?C+(E-C)*F/60:F<180?E:F<240?C+(E-C)*(240-F)/60:C}function I(F){return Math.round(L(F)*255)}return new ui(I(h+120),I(h),I(h-120))}e.hcl=on;function on(h,y,w){return this instanceof on?(this.h=+h,this.c=+y,void(this.l=+w)):arguments.length<2?h instanceof on?new on(h.h,h.c,h.l):h instanceof xn?As(h.l,h.a,h.b):As((h=jr((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new on(h,y,w)}var Yi=on.prototype=new Xa;Yi.brighter=function(h){return new on(this.h,this.c,Math.min(100,this.l+Aa*(arguments.length?h:1)))},Yi.darker=function(h){return new on(this.h,this.c,Math.max(0,this.l-Aa*(arguments.length?h:1)))},Yi.rgb=function(){return Wi(this.h,this.c,this.l).rgb()};function Wi(h,y,w){return isNaN(h)&&(h=0),isNaN(y)&&(y=0),new xn(w,Math.cos(h*=St)*y,Math.sin(h)*y)}e.lab=xn;function xn(h,y,w){return this instanceof xn?(this.l=+h,this.a=+y,void(this.b=+w)):arguments.length<2?h instanceof xn?new xn(h.l,h.a,h.b):h instanceof on?Wi(h.h,h.c,h.l):jr((h=ui(h)).r,h.g,h.b):new xn(h,y,w)}var Aa=18,Un=.95047,_s=1,ws=1.08883,Bl=xn.prototype=new Xa;Bl.brighter=function(h){return new xn(Math.min(100,this.l+Aa*(arguments.length?h:1)),this.a,this.b)},Bl.darker=function(h){return new xn(Math.max(0,this.l-Aa*(arguments.length?h:1)),this.a,this.b)},Bl.rgb=function(){return _v(this.l,this.a,this.b)};function _v(h,y,w){var C=(h+16)/116,E=C+y/500,L=C-w/200;return E=Bf(E)*Un,C=Bf(C)*_s,L=Bf(L)*ws,new ui(ol(3.2404542*E-1.5371385*C-.4985314*L),ol(-.969266*E+1.8760108*C+.041556*L),ol(.0556434*E-.2040259*C+1.0572252*L))}function As(h,y,w){return h>0?new on(Math.atan2(w,y)*ea,Math.sqrt(y*y+w*w),h):new on(NaN,NaN,h)}function Bf(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function Uf(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function ol(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=ui;function ui(h,y,w){return this instanceof ui?(this.r=~~h,this.g=~~y,void(this.b=~~w)):arguments.length<2?h instanceof ui?new ui(h.r,h.g,h.b):jt(""+h,ui,rn):new ui(h,y,w)}function ll(h){return new ui(h>>16,h>>8&255,h&255)}function Ts(h){return ll(h)+""}var go=ui.prototype=new Xa;go.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var y=this.r,w=this.g,C=this.b,E=30;return!y&&!w&&!C?new ui(E,E,E):(y&&y<E&&(y=E),w&&w<E&&(w=E),C&&C<E&&(C=E),new ui(Math.min(255,y/h),Math.min(255,w/h),Math.min(255,C/h)))},go.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new ui(h*this.r,h*this.g,h*this.b)},go.hsl=function(){return va(this.r,this.g,this.b)},go.toString=function(){return"#"+yt(this.r)+yt(this.g)+yt(this.b)};function yt(h){return h<16?"0"+Math.max(0,h).toString(16):Math.min(255,h).toString(16)}function jt(h,y,w){var C=0,E=0,L=0,I,F,z;if(I=/([a-z]+)\((.*)\)/.exec(h=h.toLowerCase()),I)switch(F=I[2].split(","),I[1]){case"hsl":return w(parseFloat(F[0]),parseFloat(F[1])/100,parseFloat(F[2])/100);case"rgb":return y(Ea(F[0]),Ea(F[1]),Ea(F[2]))}return(z=Fn.get(h))?y(z.r,z.g,z.b):(h!=null&&h.charAt(0)==="#"&&!isNaN(z=parseInt(h.slice(1),16))&&(h.length===4?(C=(z&3840)>>4,C=C>>4|C,E=z&240,E=E>>4|E,L=z&15,L=L<<4|L):h.length===7&&(C=(z&16711680)>>16,E=(z&65280)>>8,L=z&255)),y(C,E,L))}function va(h,y,w){var C=Math.min(h/=255,y/=255,w/=255),E=Math.max(h,y,w),L=E-C,I,F,z=(E+C)/2;return L?(F=z<.5?L/(E+C):L/(2-E-C),h==E?I=(y-w)/L+(y<w?6:0):y==E?I=(w-h)/L+2:I=(h-y)/L+4,I*=60):(I=NaN,F=z>0&&z<1?0:I),new Sa(I,F,z)}function jr(h,y,w){h=Gn(h),y=Gn(y),w=Gn(w);var C=Uf((.4124564*h+.3575761*y+.1804375*w)/Un),E=Uf((.2126729*h+.7151522*y+.072175*w)/_s),L=Uf((.0193339*h+.119192*y+.9503041*w)/ws);return xn(116*E-16,500*(C-E),200*(E-L))}function Gn(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ea(h){var y=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(y*2.55):y}var Fn=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});Fn.forEach(function(h,y){Fn.set(h,ll(y))});function Vt(h){return typeof h=="function"?h:function(){return h}}e.functor=Vt,e.xhr=bo($);function bo(h){return function(y,w,C){return arguments.length===2&&typeof w=="function"&&(C=w,w=null),Ul(y,w,h,C)}}function Ul(h,y,w,C){var E={},L=e.dispatch("beforesend","progress","load","error"),I={},F=new XMLHttpRequest,z=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=X:F.onreadystatechange=function(){F.readyState>3&&X()};function X(){var J=F.status,K;if(!J&&P5(F)||J>=200&&J<300||J===304){try{K=w.call(E,F)}catch(ee){L.error.call(E,ee);return}L.load.call(E,K)}else L.error.call(E,F)}return F.onprogress=function(J){var K=e.event;e.event=J;try{L.progress.call(E,F)}finally{e.event=K}},E.header=function(J,K){return J=(J+"").toLowerCase(),arguments.length<2?I[J]:(K==null?delete I[J]:I[J]=K+"",E)},E.mimeType=function(J){return arguments.length?(y=J==null?null:J+"",E):y},E.responseType=function(J){return arguments.length?(z=J,E):z},E.response=function(J){return w=J,E},["get","post"].forEach(function(J){E[J]=function(){return E.send.apply(E,[J].concat(t(arguments)))}}),E.send=function(J,K,ee){if(arguments.length===2&&typeof K=="function"&&(ee=K,K=null),F.open(J,h,!0),y!=null&&!("accept"in I)&&(I.accept=y+",*/*"),F.setRequestHeader)for(var Me in I)F.setRequestHeader(Me,I[Me]);return y!=null&&F.overrideMimeType&&F.overrideMimeType(y),z!=null&&(F.responseType=z),ee!=null&&E.on("error",ee).on("load",function(qe){ee(null,qe)}),L.beforesend.call(E,F),F.send(K==null?null:K),E},E.abort=function(){return F.abort(),E},e.rebind(E,L,"on"),C==null?E:E.get(Gl(C))}function Gl(h){return h.length===1?function(y,w){h(y==null?w:null)}:h}function P5(h){var y=h.responseType;return y&&y!=="text"?h.response:h.responseText}e.dsv=function(h,y){var w=new RegExp('["'+h+`
|
|
15
|
+
"use strict";var Plotly=(()=>{var Fne=Object.create;var Oy=Object.defineProperty;var Rne=Object.getOwnPropertyDescriptor;var Pne=Object.getOwnPropertyNames;var Nne=Object.getPrototypeOf,Ine=Object.prototype.hasOwnProperty;var Qv=(e,r)=>()=>(e&&(r=e(e=0)),r);var R=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),One=(e,r)=>{for(var t in r)Oy(e,t,{get:r[t],enumerable:!0})},hM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Pne(r))!Ine.call(e,n)&&n!==t&&Oy(e,n,{get:()=>r[n],enumerable:!(a=Rne(r,n))||a.enumerable});return e};var zne=(e,r,t)=>(t=e!=null?Fne(Nne(e)):{},hM(r||!e||!e.__esModule?Oy(t,"default",{value:e,enumerable:!0}):t,e)),dM=e=>hM(Oy({},"__esModule",{value:!0}),e);var zy=R(pM=>{"use strict";pM.version="3.0.3"});var yM=R((mM,By)=>{(function(r,t,a){t[r]=t[r]||a(),typeof By!="undefined"&&By.exports&&(By.exports=t[r])})("Promise",typeof window!="undefined"?window:mM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,A,x,T){return Object.defineProperty(_,A,{value:x,writable:!0,configurable:T!==!1})}}catch(b){r=function(A,x,T){return A[x]=T,A}}a=function(){var _,A,x;function T(S,M){this.fn=S,this.self=M,this.next=void 0}return{add:function(M,k){x=new T(M,k),A?A.next=x:_=x,A=x,x=void 0},drain:function(){var M=_;for(_=A=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(b,_){a.add(b,_),t||(t=i(a.drain))}function l(b){var _,A=typeof b;return b!=null&&(A=="object"||A=="function")&&(_=b.then),typeof _=="function"?_:!1}function s(){for(var b=0;b<this.chain.length;b++)u(this,this.state===1?this.chain[b].success:this.chain[b].failure,this.chain[b]);this.chain.length=0}function u(b,_,A){var x,T;try{_===!1?A.reject(b.msg):(_===!0?x=b.msg:x=_.call(void 0,b.msg),x===A.promise?A.reject(TypeError("Promise-chain cycle")):(T=l(x))?T.call(x,A.resolve,A.reject):A.resolve(x))}catch(S){A.reject(S)}}function f(b){var _,A=this;if(!A.triggered){A.triggered=!0,A.def&&(A=A.def);try{(_=l(b))?o(function(){var x=new d(A);try{_.call(b,function(){f.apply(x,arguments)},function(){c.apply(x,arguments)})}catch(T){c.call(x,T)}}):(A.msg=b,A.state=1,A.chain.length>0&&o(s,A))}catch(x){c.call(new d(A),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&o(s,_))}function v(b,_,A,x){for(var T=0;T<_.length;T++)(function(M){b.resolve(_[M]).then(function(D){A(M,D)},x)})(T)}function d(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function g(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(x,T){var S={success:typeof x=="function"?x:!0,failure:typeof T=="function"?T:!1};return S.promise=new this.constructor(function(k,D){if(typeof k!="function"||typeof D!="function")throw TypeError("Not a function");S.resolve=k,S.reject=D}),_.chain.push(S),_.state!==0&&o(s,_),S.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(A){c.call(_,A)}}var m=r({},"constructor",g,!1);return g.prototype=m,r(m,"__NPO__",0,!1),r(g,"resolve",function(_){var A=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new A(function(T,S){if(typeof T!="function"||typeof S!="function")throw TypeError("Not a function");T(_)})}),r(g,"reject",function(_){return new this(function(x,T){if(typeof x!="function"||typeof T!="function")throw TypeError("Not a function");T(_)})}),r(g,"all",function(_){var A=this;return n.call(_)!="[object Array]"?A.reject(TypeError("Not an array")):_.length===0?A.resolve([]):new A(function(T,S){if(typeof T!="function"||typeof S!="function")throw TypeError("Not a function");var M=_.length,k=Array(M),D=0;v(A,_,function(N,q){k[N]=q,++D===M&&T(k)},S)})}),r(g,"race",function(_){var A=this;return n.call(_)!="[object Array]"?A.reject(TypeError("Not an array")):new A(function(T,S){if(typeof T!="function"||typeof S!="function")throw TypeError("Not a function");v(A,_,function(k,D){T(D)},S)})}),g})});var ta=R((ZSe,Uy)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(y){for(var w=y.length,C=new Array(w);w--;)C[w]=y[w];return C}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(y,w){l.call(this,y,w+"")},o.setAttributeNS=function(y,w,C){s.call(this,y,w,C+"")},u.setProperty=function(y,w,C){f.call(this,y,w+"",C)}}e.ascending=c;function c(h,y){return h<y?-1:h>y?1:h>=y?0:NaN}e.descending=function(h,y){return y<h?-1:y>h?1:y>=h?0:NaN},e.min=function(h,y){var w=-1,C=h.length,E,L;if(arguments.length===1){for(;++w<C;)if((L=h[w])!=null&&L>=L){E=L;break}for(;++w<C;)(L=h[w])!=null&&E>L&&(E=L)}else{for(;++w<C;)if((L=y.call(h,h[w],w))!=null&&L>=L){E=L;break}for(;++w<C;)(L=y.call(h,h[w],w))!=null&&E>L&&(E=L)}return E},e.max=function(h,y){var w=-1,C=h.length,E,L;if(arguments.length===1){for(;++w<C;)if((L=h[w])!=null&&L>=L){E=L;break}for(;++w<C;)(L=h[w])!=null&&L>E&&(E=L)}else{for(;++w<C;)if((L=y.call(h,h[w],w))!=null&&L>=L){E=L;break}for(;++w<C;)(L=y.call(h,h[w],w))!=null&&L>E&&(E=L)}return E},e.extent=function(h,y){var w=-1,C=h.length,E,L,I;if(arguments.length===1){for(;++w<C;)if((L=h[w])!=null&&L>=L){E=I=L;break}for(;++w<C;)(L=h[w])!=null&&(E>L&&(E=L),I<L&&(I=L))}else{for(;++w<C;)if((L=y.call(h,h[w],w))!=null&&L>=L){E=I=L;break}for(;++w<C;)(L=y.call(h,h[w],w))!=null&&(E>L&&(E=L),I<L&&(I=L))}return[E,I]};function v(h){return h===null?NaN:+h}function d(h){return!isNaN(h)}e.sum=function(h,y){var w=0,C=h.length,E,L=-1;if(arguments.length===1)for(;++L<C;)d(E=+h[L])&&(w+=E);else for(;++L<C;)d(E=+y.call(h,h[L],L))&&(w+=E);return w},e.mean=function(h,y){var w=0,C=h.length,E,L=-1,I=C;if(arguments.length===1)for(;++L<C;)d(E=v(h[L]))?w+=E:--I;else for(;++L<C;)d(E=v(y.call(h,h[L],L)))?w+=E:--I;if(I)return w/I},e.quantile=function(h,y){var w=(h.length-1)*y+1,C=Math.floor(w),E=+h[C-1],L=w-C;return L?E+L*(h[C]-E):E},e.median=function(h,y){var w=[],C=h.length,E,L=-1;if(arguments.length===1)for(;++L<C;)d(E=v(h[L]))&&w.push(E);else for(;++L<C;)d(E=v(y.call(h,h[L],L)))&&w.push(E);if(w.length)return e.quantile(w.sort(c),.5)},e.variance=function(h,y){var w=h.length,C=0,E,L,I=0,F=-1,z=0;if(arguments.length===1)for(;++F<w;)d(E=v(h[F]))&&(L=E-C,C+=L/++z,I+=L*(E-C));else for(;++F<w;)d(E=v(y.call(h,h[F],F)))&&(L=E-C,C+=L/++z,I+=L*(E-C));if(z>1)return I/(z-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(y,w,C,E){for(arguments.length<3&&(C=0),arguments.length<4&&(E=y.length);C<E;){var L=C+E>>>1;h(y[L],w)<0?C=L+1:E=L}return C},right:function(y,w,C,E){for(arguments.length<3&&(C=0),arguments.length<4&&(E=y.length);C<E;){var L=C+E>>>1;h(y[L],w)>0?E=L:C=L+1}return C}}}var g=p(c);e.bisectLeft=g.left,e.bisect=e.bisectRight=g.right,e.bisector=function(h){return p(h.length===1?function(y,w){return c(h(y),w)}:h)},e.shuffle=function(h,y,w){(C=arguments.length)<3&&(w=h.length,C<2&&(y=0));for(var C=w-y,E,L;C;)L=Math.random()*C--|0,E=h[C+y],h[C+y]=h[L+y],h[L+y]=E;return h},e.permute=function(h,y){for(var w=y.length,C=new Array(w);w--;)C[w]=h[y[w]];return C},e.pairs=function(h){for(var y=0,w=h.length-1,C,E=h[0],L=new Array(w<0?0:w);y<w;)L[y]=[C=E,E=h[++y]];return L},e.transpose=function(h){if(!(L=h.length))return[];for(var y=-1,w=e.min(h,m),C=new Array(w);++y<w;)for(var E=-1,L,I=C[y]=new Array(L);++E<L;)I[E]=h[E][y];return C};function m(h){return h.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(h){var y=[];for(var w in h)y.push(w);return y},e.values=function(h){var y=[];for(var w in h)y.push(h[w]);return y},e.entries=function(h){var y=[];for(var w in h)y.push({key:w,value:h[w]});return y},e.merge=function(h){for(var y=h.length,w,C=-1,E=0,L,I;++C<y;)E+=h[C].length;for(L=new Array(E);--y>=0;)for(I=h[y],w=I.length;--w>=0;)L[--E]=I[w];return L};var b=Math.abs;e.range=function(h,y,w){if(arguments.length<3&&(w=1,arguments.length<2&&(y=h,h=0)),(y-h)/w===1/0)throw new Error("infinite range");var C=[],E=_(b(w)),L=-1,I;if(h*=E,y*=E,w*=E,w<0)for(;(I=h+w*++L)>y;)C.push(I/E);else for(;(I=h+w*++L)<y;)C.push(I/E);return C};function _(h){for(var y=1;h*y%1;)y*=10;return y}function A(h,y){for(var w in y)Object.defineProperty(h.prototype,w,{value:y[w],enumerable:!1})}e.map=function(h,y){var w=new x;if(h instanceof x)h.forEach(function(F,z){w.set(F,z)});else if(Array.isArray(h)){var C=-1,E=h.length,L;if(arguments.length===1)for(;++C<E;)w.set(C,h[C]);else for(;++C<E;)w.set(y.call(h,L=h[C],C),L)}else for(var I in h)w.set(I,h[I]);return w};function x(){this._=Object.create(null)}var T="__proto__",S="\0";A(x,{has:D,get:function(h){return this._[M(h)]},set:function(h,y){return this._[M(h)]=y},remove:P,keys:N,values:function(){var h=[];for(var y in this._)h.push(this._[y]);return h},entries:function(){var h=[];for(var y in this._)h.push({key:k(y),value:this._[y]});return h},size:q,empty:O,forEach:function(h){for(var y in this._)h.call(this,k(y),this._[y])}});function M(h){return(h+="")===T||h[0]===S?S+h:h}function k(h){return(h+="")[0]===S?h.slice(1):h}function D(h){return M(h)in this._}function P(h){return(h=M(h))in this._&&delete this._[h]}function N(){var h=[];for(var y in this._)h.push(k(y));return h}function q(){var h=0;for(var y in this._)++h;return h}function O(){for(var h in this._)return!1;return!0}e.nest=function(){var h={},y=[],w=[],C,E;function L(F,z,X){if(X>=y.length)return E?E.call(h,z):C?z.sort(C):z;for(var J=-1,K=z.length,ee=y[X++],Me,qe,ne,he=new x,we;++J<K;)(we=he.get(Me=ee(qe=z[J])))?we.push(qe):he.set(Me,[qe]);return F?(qe=F(),ne=function(Fe,Re){qe.set(Fe,L(F,Re,X))}):(qe={},ne=function(Fe,Re){qe[Fe]=L(F,Re,X)}),he.forEach(ne),qe}function I(F,z){if(z>=y.length)return F;var X=[],J=w[z++];return F.forEach(function(K,ee){X.push({key:K,values:I(ee,z)})}),J?X.sort(function(K,ee){return J(K.key,ee.key)}):X}return h.map=function(F,z){return L(z,F,0)},h.entries=function(F){return I(L(e.map,F,0),0)},h.key=function(F){return y.push(F),h},h.sortKeys=function(F){return w[y.length-1]=F,h},h.sortValues=function(F){return C=F,h},h.rollup=function(F){return E=F,h},h},e.set=function(h){var y=new U;if(h)for(var w=0,C=h.length;w<C;++w)y.add(h[w]);return y};function U(){this._=Object.create(null)}A(U,{has:D,add:function(h){return this._[M(h+="")]=!0,h},remove:P,values:N,size:q,empty:O,forEach:function(h){for(var y in this._)h.call(this,k(y))}}),e.behavior={};function $(h){return h}e.rebind=function(h,y){for(var w=1,C=arguments.length,E;++w<C;)h[E=arguments[w]]=W(h,y,y[E]);return h};function W(h,y,w){return function(){var C=w.apply(y,arguments);return C===y?h:C}}function H(h,y){if(y in h)return y;y=y.charAt(0).toUpperCase()+y.slice(1);for(var w=0,C=B.length;w<C;++w){var E=B[w]+y;if(E in h)return E}}var B=["webkit","ms","moz","Moz","o","O"];function V(){}e.dispatch=function(){for(var h=new j,y=-1,w=arguments.length;++y<w;)h[arguments[y]]=Q(h);return h};function j(){}j.prototype.on=function(h,y){var w=h.indexOf("."),C="";if(w>=0&&(C=h.slice(w+1),h=h.slice(0,w)),h)return arguments.length<2?this[h].on(C):this[h].on(C,y);if(arguments.length===2){if(y==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(C,null);return this}};function Q(h){var y=[],w=new x;function C(){for(var E=y,L=-1,I=E.length,F;++L<I;)(F=E[L].on)&&F.apply(this,arguments);return h}return C.on=function(E,L){var I=w.get(E),F;return arguments.length<2?I&&I.on:(I&&(I.on=null,y=y.slice(0,F=y.indexOf(I)).concat(y.slice(F+1)),w.remove(E)),L&&y.push(w.set(E,{on:L})),h)},C}e.event=null;function ve(){e.event.preventDefault()}function xe(){for(var h=e.event,y;y=h.sourceEvent;)h=y;return h}function se(h){for(var y=new j,w=0,C=arguments.length;++w<C;)y[arguments[w]]=Q(y);return y.of=function(E,L){return function(I){try{var F=I.sourceEvent=e.event;I.target=h,e.event=I,y[I.type].apply(E,L)}finally{e.event=F}}},y}e.requote=function(h){return h.replace(be,"\\$&")};var be=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,re={}.__proto__?function(h,y){h.__proto__=y}:function(h,y){for(var w in y)h[w]=y[w]};function ke(h){return re(h,Ce),h}var ge=function(h,y){return y.querySelector(h)},Ee=function(h,y){return y.querySelectorAll(h)},De=function(h,y){var w=h.matches||h[H(h,"matchesSelector")];return De=function(C,E){return w.call(C,E)},De(h,y)};typeof Sizzle=="function"&&(ge=function(h,y){return Sizzle(h,y)[0]||null},Ee=Sizzle,De=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var Ce=e.selection.prototype=[];Ce.select=function(h){var y=[],w,C,E,L;h=Y(h);for(var I=-1,F=this.length;++I<F;){y.push(w=[]),w.parentNode=(E=this[I]).parentNode;for(var z=-1,X=E.length;++z<X;)(L=E[z])?(w.push(C=h.call(L,L.__data__,z,I)),C&&"__data__"in L&&(C.__data__=L.__data__)):w.push(null)}return ke(y)};function Y(h){return typeof h=="function"?h:function(){return ge(h,this)}}Ce.selectAll=function(h){var y=[],w,C;h=ae(h);for(var E=-1,L=this.length;++E<L;)for(var I=this[E],F=-1,z=I.length;++F<z;)(C=I[F])&&(y.push(w=t(h.call(C,C.__data__,F,E))),w.parentNode=C);return ke(y)};function ae(h){return typeof h=="function"?h:function(){return Ee(h,this)}}var Z="http://www.w3.org/1999/xhtml",Te={svg:"http://www.w3.org/2000/svg",xhtml:Z,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:Te,qualify:function(h){var y=h.indexOf(":"),w=h;return y>=0&&(w=h.slice(0,y))!=="xmlns"&&(h=h.slice(y+1)),Te.hasOwnProperty(w)?{space:Te[w],local:h}:h}},Ce.attr=function(h,y){if(arguments.length<2){if(typeof h=="string"){var w=this.node();return h=e.ns.qualify(h),h.local?w.getAttributeNS(h.space,h.local):w.getAttribute(h)}for(y in h)this.each(Pe(y,h[y]));return this}return this.each(Pe(h,y))};function Pe(h,y){h=e.ns.qualify(h);function w(){this.removeAttribute(h)}function C(){this.removeAttributeNS(h.space,h.local)}function E(){this.setAttribute(h,y)}function L(){this.setAttributeNS(h.space,h.local,y)}function I(){var z=y.apply(this,arguments);z==null?this.removeAttribute(h):this.setAttribute(h,z)}function F(){var z=y.apply(this,arguments);z==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,z)}return y==null?h.local?C:w:typeof y=="function"?h.local?F:I:h.local?L:E}function Ne(h){return h.trim().replace(/\s+/g," ")}Ce.classed=function(h,y){if(arguments.length<2){if(typeof h=="string"){var w=this.node(),C=(h=Qe(h)).length,E=-1;if(y=w.classList){for(;++E<C;)if(!y.contains(h[E]))return!1}else for(y=w.getAttribute("class");++E<C;)if(!lr(h[E]).test(y))return!1;return!0}for(y in h)this.each(Je(y,h[y]));return this}return this.each(Je(h,y))};function lr(h){return new RegExp("(?:^|\\s+)"+e.requote(h)+"(?:\\s+|$)","g")}function Qe(h){return(h+"").trim().split(/^|\s+/)}function Je(h,y){h=Qe(h).map(or);var w=h.length;function C(){for(var L=-1;++L<w;)h[L](this,y)}function E(){for(var L=-1,I=y.apply(this,arguments);++L<w;)h[L](this,I)}return typeof y=="function"?E:C}function or(h){var y=lr(h);return function(w,C){if(E=w.classList)return C?E.add(h):E.remove(h);var E=w.getAttribute("class")||"";C?(y.lastIndex=0,y.test(E)||w.setAttribute("class",Ne(E+" "+h))):w.setAttribute("class",Ne(E.replace(y," ")))}}Ce.style=function(h,y,w){var C=arguments.length;if(C<3){if(typeof h!="string"){C<2&&(y="");for(w in h)this.each(yr(w,h[w],y));return this}if(C<2){var E=this.node();return i(E).getComputedStyle(E,null).getPropertyValue(h)}w=""}return this.each(yr(h,y,w))};function yr(h,y,w){function C(){this.style.removeProperty(h)}function E(){this.style.setProperty(h,y,w)}function L(){var I=y.apply(this,arguments);I==null?this.style.removeProperty(h):this.style.setProperty(h,I,w)}return y==null?C:typeof y=="function"?L:E}Ce.property=function(h,y){if(arguments.length<2){if(typeof h=="string")return this.node()[h];for(y in h)this.each(ir(y,h[y]));return this}return this.each(ir(h,y))};function ir(h,y){function w(){delete this[h]}function C(){this[h]=y}function E(){var L=y.apply(this,arguments);L==null?delete this[h]:this[h]=L}return y==null?w:typeof y=="function"?E:C}Ce.text=function(h){return arguments.length?this.each(typeof h=="function"?function(){var y=h.apply(this,arguments);this.textContent=y==null?"":y}:h==null?function(){this.textContent=""}:function(){this.textContent=h}):this.node().textContent},Ce.html=function(h){return arguments.length?this.each(typeof h=="function"?function(){var y=h.apply(this,arguments);this.innerHTML=y==null?"":y}:h==null?function(){this.innerHTML=""}:function(){this.innerHTML=h}):this.node().innerHTML},Ce.append=function(h){return h=Xe(h),this.select(function(){return this.appendChild(h.apply(this,arguments))})};function Xe(h){function y(){var C=this.ownerDocument,E=this.namespaceURI;return E===Z&&C.documentElement.namespaceURI===Z?C.createElement(h):C.createElementNS(E,h)}function w(){return this.ownerDocument.createElementNS(h.space,h.local)}return typeof h=="function"?h:(h=e.ns.qualify(h)).local?w:y}Ce.insert=function(h,y){return h=Xe(h),y=Y(y),this.select(function(){return this.insertBefore(h.apply(this,arguments),y.apply(this,arguments)||null)})},Ce.remove=function(){return this.each(Lr)};function Lr(){var h=this.parentNode;h&&h.removeChild(this)}Ce.data=function(h,y){var w=-1,C=this.length,E,L;if(!arguments.length){for(h=new Array(C=(E=this[0]).length);++w<C;)(L=E[w])&&(h[w]=L.__data__);return h}function I(J,K){var ee,Me=J.length,qe=K.length,ne=Math.min(Me,qe),he=new Array(qe),we=new Array(qe),Fe=new Array(Me),Re,me;if(y){var cr=new x,Mr=new Array(Me),Pr;for(ee=-1;++ee<Me;)(Re=J[ee])&&(cr.has(Pr=y.call(Re,Re.__data__,ee))?Fe[ee]=Re:cr.set(Pr,Re),Mr[ee]=Pr);for(ee=-1;++ee<qe;)(Re=cr.get(Pr=y.call(K,me=K[ee],ee)))?Re!==!0&&(he[ee]=Re,Re.__data__=me):we[ee]=Ar(me),cr.set(Pr,!0);for(ee=-1;++ee<Me;)ee in Mr&&cr.get(Mr[ee])!==!0&&(Fe[ee]=J[ee])}else{for(ee=-1;++ee<ne;)Re=J[ee],me=K[ee],Re?(Re.__data__=me,he[ee]=Re):we[ee]=Ar(me);for(;ee<qe;++ee)we[ee]=Ar(K[ee]);for(;ee<Me;++ee)Fe[ee]=J[ee]}we.update=he,we.parentNode=he.parentNode=Fe.parentNode=J.parentNode,F.push(we),z.push(he),X.push(Fe)}var F=rt([]),z=ke([]),X=ke([]);if(typeof h=="function")for(;++w<C;)I(E=this[w],h.call(E,E.parentNode.__data__,w));else for(;++w<C;)I(E=this[w],h);return z.enter=function(){return F},z.exit=function(){return X},z};function Ar(h){return{__data__:h}}Ce.datum=function(h){return arguments.length?this.property("__data__",h):this.property("__data__")},Ce.filter=function(h){var y=[],w,C,E;typeof h!="function"&&(h=de(h));for(var L=0,I=this.length;L<I;L++){y.push(w=[]),w.parentNode=(C=this[L]).parentNode;for(var F=0,z=C.length;F<z;F++)(E=C[F])&&h.call(E,E.__data__,F,L)&&w.push(E)}return ke(y)};function de(h){return function(){return De(this,h)}}Ce.order=function(){for(var h=-1,y=this.length;++h<y;)for(var w=this[h],C=w.length-1,E=w[C],L;--C>=0;)(L=w[C])&&(E&&E!==L.nextSibling&&E.parentNode.insertBefore(L,E),E=L);return this},Ce.sort=function(h){h=Oe.apply(this,arguments);for(var y=-1,w=this.length;++y<w;)this[y].sort(h);return this.order()};function Oe(h){return arguments.length||(h=c),function(y,w){return y&&w?h(y.__data__,w.__data__):!y-!w}}Ce.each=function(h){return Ue(this,function(y,w,C){h.call(y,y.__data__,w,C)})};function Ue(h,y){for(var w=0,C=h.length;w<C;w++)for(var E=h[w],L=0,I=E.length,F;L<I;L++)(F=E[L])&&y(F,L,w);return h}Ce.call=function(h){var y=t(arguments);return h.apply(y[0]=this,y),this},Ce.empty=function(){return!this.node()},Ce.node=function(){for(var h=0,y=this.length;h<y;h++)for(var w=this[h],C=0,E=w.length;C<E;C++){var L=w[C];if(L)return L}return null},Ce.size=function(){var h=0;return Ue(this,function(){++h}),h};function rt(h){return re(h,Ur),h}var Ur=[];e.selection.enter=rt,e.selection.enter.prototype=Ur,Ur.append=Ce.append,Ur.empty=Ce.empty,Ur.node=Ce.node,Ur.call=Ce.call,Ur.size=Ce.size,Ur.select=function(h){for(var y=[],w,C,E,L,I,F=-1,z=this.length;++F<z;){E=(L=this[F]).update,y.push(w=[]),w.parentNode=L.parentNode;for(var X=-1,J=L.length;++X<J;)(I=L[X])?(w.push(E[X]=C=h.call(L.parentNode,I.__data__,X,F)),C.__data__=I.__data__):w.push(null)}return ke(y)},Ur.insert=function(h,y){return arguments.length<2&&(y=Ye(this)),Ce.insert.call(this,h,y)};function Ye(h){var y,w;return function(C,E,L){var I=h[L].update,F=I.length,z;for(L!=w&&(w=L,y=0),E>=y&&(y=E+1);!(z=I[y])&&++y<F;);return z}}e.select=function(h){var y;return typeof h=="string"?(y=[ge(h,a)],y.parentNode=a.documentElement):(y=[h],y.parentNode=n(h)),ke([y])},e.selectAll=function(h){var y;return typeof h=="string"?(y=t(Ee(h,a)),y.parentNode=a.documentElement):(y=t(h),y.parentNode=null),ke([y])},Ce.on=function(h,y,w){var C=arguments.length;if(C<3){if(typeof h!="string"){C<2&&(y=!1);for(w in h)this.each(Ve(w,h[w],y));return this}if(C<2)return(C=this.node()["__on"+h])&&C._;w=!1}return this.each(Ve(h,y,w))};function Ve(h,y,w){var C="__on"+h,E=h.indexOf("."),L=Tr;E>0&&(h=h.slice(0,E));var I=pr.get(h);I&&(h=I,L=mr);function F(){var J=this[C];J&&(this.removeEventListener(h,J,J.$),delete this[C])}function z(){var J=L(y,t(arguments));F.call(this),this.addEventListener(h,this[C]=J,J.$=w),J._=y}function X(){var J=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),K;for(var ee in this)if(K=ee.match(J)){var Me=this[ee];this.removeEventListener(K[1],Me,Me.$),delete this[ee]}}return E?y?z:F:y?V:X}var pr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&pr.forEach(function(h){"on"+h in a&&pr.remove(h)});function Tr(h,y){return function(w){var C=e.event;e.event=w,y[0]=this.__data__;try{h.apply(this,y)}finally{e.event=C}}}function mr(h,y){var w=Tr(h,y);return function(C){var E=this,L=C.relatedTarget;(!L||L!==E&&!(L.compareDocumentPosition(E)&8))&&w.call(E,C)}}var vr,Cr=0;function Ir(h){var y=".dragsuppress-"+ ++Cr,w="click"+y,C=e.select(i(h)).on("touchmove"+y,ve).on("dragstart"+y,ve).on("selectstart"+y,ve);if(vr==null&&(vr="onselectstart"in h?!1:H(h.style,"userSelect")),vr){var E=n(h).style,L=E[vr];E[vr]="none"}return function(I){if(C.on(y,null),vr&&(E[vr]=L),I){var F=function(){C.on(w,null)};C.on(w,function(){ve(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Ze(h,xe())};var Gr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ze(h,y){y.changedTouches&&(y=y.changedTouches[0]);var w=h.ownerSVGElement||h;if(w.createSVGPoint){var C=w.createSVGPoint();if(Gr<0){var E=i(h);if(E.scrollX||E.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=w[0][0].getScreenCTM();Gr=!(L.f||L.e),w.remove()}}return Gr?(C.x=y.pageX,C.y=y.pageY):(C.x=y.clientX,C.y=y.clientY),C=C.matrixTransform(h.getScreenCTM().inverse()),[C.x,C.y]}var I=h.getBoundingClientRect();return[y.clientX-I.left-h.clientLeft,y.clientY-I.top-h.clientTop]}e.touch=function(h,y,w){if(arguments.length<3&&(w=y,y=xe().changedTouches),y){for(var C=0,E=y.length,L;C<E;++C)if((L=y[C]).identifier===w)return Ze(h,L)}},e.behavior.drag=function(){var h=se(E,"drag","dragstart","dragend"),y=null,w=L(V,e.mouse,i,"mousemove","mouseup"),C=L(oe,e.touch,$,"touchmove","touchend");function E(){this.on("mousedown.drag",w).on("touchstart.drag",C)}function L(I,F,z,X,J){return function(){var K=this,ee=e.event.target.correspondingElement||e.event.target,Me=K.parentNode,qe=h.of(K,arguments),ne=0,he=I(),we=".drag"+(he==null?"":"-"+he),Fe,Re=e.select(z(ee)).on(X+we,Mr).on(J+we,Pr),me=Ir(ee),cr=F(Me,he);y?(Fe=y.apply(K,arguments),Fe=[Fe.x-cr[0],Fe.y-cr[1]]):Fe=[0,0],qe({type:"dragstart"});function Mr(){var Yr=F(Me,he),it,ot;Yr&&(it=Yr[0]-cr[0],ot=Yr[1]-cr[1],ne|=it|ot,cr=Yr,qe({type:"drag",x:Yr[0]+Fe[0],y:Yr[1]+Fe[1],dx:it,dy:ot}))}function Pr(){F(Me,he)&&(Re.on(X+we,null).on(J+we,null),me(ne),qe({type:"dragend"}))}}}return E.origin=function(I){return arguments.length?(y=I,E):y},e.rebind(E,h,"on")};function oe(){return e.event.changedTouches[0].identifier}e.touches=function(h,y){return arguments.length<2&&(y=xe().touches),y?t(y).map(function(w){var C=Ze(h,w);return C.identifier=w.identifier,C}):[]};var ye=1e-6,Ge=ye*ye,Ie=Math.PI,Wr=2*Ie,tt=Wr-ye,$r=Ie/2,St=Ie/180,ea=180/Ie;function ma(h){return h>0?1:h<0?-1:0}function aa(h,y,w){return(y[0]-h[0])*(w[1]-h[1])-(y[1]-h[1])*(w[0]-h[0])}function en(h){return h>1?0:h<-1?Ie:Math.acos(h)}function Ln(h){return h>1?$r:h<-1?-$r:Math.asin(h)}function si(h){return((h=Math.exp(h))-1/h)/2}function Dn(h){return((h=Math.exp(h))+1/h)/2}function Vi(h){return((h=Math.exp(2*h))-1)/(h+1)}function Bn(h){return(h=Math.sin(h/2))*h}var qn=Math.SQRT2,yi=2,_t=4;e.interpolateZoom=function(h,y){var w=h[0],C=h[1],E=h[2],L=y[0],I=y[1],F=y[2],z=L-w,X=I-C,J=z*z+X*X,K,ee;if(J<Ge)ee=Math.log(F/E)/qn,K=function(Fe){return[w+Fe*z,C+Fe*X,E*Math.exp(qn*Fe*ee)]};else{var Me=Math.sqrt(J),qe=(F*F-E*E+_t*J)/(2*E*yi*Me),ne=(F*F-E*E-_t*J)/(2*F*yi*Me),he=Math.log(Math.sqrt(qe*qe+1)-qe),we=Math.log(Math.sqrt(ne*ne+1)-ne);ee=(we-he)/qn,K=function(Fe){var Re=Fe*ee,me=Dn(he),cr=E/(yi*Me)*(me*Vi(qn*Re+he)-si(he));return[w+cr*z,C+cr*X,E*me/Dn(qn*Re+he)]}}return K.duration=ee*1e3,K},e.behavior.zoom=function(){var h={x:0,y:0,k:1},y,w,C,E=[960,500],L=Ma,I=250,F=0,z="mousedown.zoom",X="mousemove.zoom",J="mouseup.zoom",K,ee="touchstart.zoom",Me,qe=se(Re,"zoomstart","zoom","zoomend"),ne,he,we,Fe;Ra||(Ra="onwheel"in a?(ra=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(ra=function(){return e.event.wheelDelta},"mousewheel"):(ra=function(){return-e.event.detail},"MozMousePixelScroll"));function Re(zr){zr.on(z,kt).on(Ra+".zoom",an).on("dblclick.zoom",_a).on(ee,ha)}Re.event=function(zr){zr.each(function(){var Ft=qe.of(this,arguments),Ut=h;$l?e.select(this).transition().each("start.zoom",function(){h=this.__chart__||{x:0,y:0,k:1},ot(Ft)}).tween("zoom:zoom",function(){var ua=E[0],Ba=E[1],cn=w?w[0]:ua/2,Hn=w?w[1]:Ba/2,Kn=e.interpolateZoom([(cn-h.x)/h.k,(Hn-h.y)/h.k,ua/h.k],[(cn-Ut.x)/Ut.k,(Hn-Ut.y)/Ut.k,ua/Ut.k]);return function(gi){var G=Kn(gi),ie=ua/G[2];this.__chart__=h={x:cn-G[0]*ie,y:Hn-G[1]*ie,k:ie},qt(Ft)}}).each("interrupt.zoom",function(){ct(Ft)}).each("end.zoom",function(){ct(Ft)}):(this.__chart__=h,ot(Ft),qt(Ft),ct(Ft))})},Re.translate=function(zr){return arguments.length?(h={x:+zr[0],y:+zr[1],k:h.k},it(),Re):[h.x,h.y]},Re.scale=function(zr){return arguments.length?(h={x:h.x,y:h.y,k:null},Mr(+zr),it(),Re):h.k},Re.scaleExtent=function(zr){return arguments.length?(L=zr==null?Ma:[+zr[0],+zr[1]],Re):L},Re.center=function(zr){return arguments.length?(C=zr&&[+zr[0],+zr[1]],Re):C},Re.size=function(zr){return arguments.length?(E=zr&&[+zr[0],+zr[1]],Re):E},Re.duration=function(zr){return arguments.length?(I=+zr,Re):I},Re.x=function(zr){return arguments.length?(he=zr,ne=zr.copy(),h={x:0,y:0,k:1},Re):he},Re.y=function(zr){return arguments.length?(Fe=zr,we=zr.copy(),h={x:0,y:0,k:1},Re):Fe};function me(zr){return[(zr[0]-h.x)/h.k,(zr[1]-h.y)/h.k]}function cr(zr){return[zr[0]*h.k+h.x,zr[1]*h.k+h.y]}function Mr(zr){h.k=Math.max(L[0],Math.min(L[1],zr))}function Pr(zr,Ft){Ft=cr(Ft),h.x+=zr[0]-Ft[0],h.y+=zr[1]-Ft[1]}function Yr(zr,Ft,Ut,ua){zr.__chart__={x:h.x,y:h.y,k:h.k},Mr(Math.pow(2,ua)),Pr(w=Ft,Ut),zr=e.select(zr),I>0&&(zr=zr.transition().duration(I)),zr.call(Re.event)}function it(){he&&he.domain(ne.range().map(function(zr){return(zr-h.x)/h.k}).map(ne.invert)),Fe&&Fe.domain(we.range().map(function(zr){return(zr-h.y)/h.k}).map(we.invert))}function ot(zr){F++||zr({type:"zoomstart"})}function qt(zr){it(),zr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function ct(zr){--F||(zr({type:"zoomend"}),w=null)}function kt(){var zr=this,Ft=qe.of(zr,arguments),Ut=0,ua=e.select(i(zr)).on(X,Hn).on(J,Kn),Ba=me(e.mouse(zr)),cn=Ir(zr);Xv.call(zr),ot(Ft);function Hn(){Ut=1,Pr(e.mouse(zr),Ba),qt(Ft)}function Kn(){ua.on(X,null).on(J,null),cn(Ut),ct(Ft)}}function ha(){var zr=this,Ft=qe.of(zr,arguments),Ut={},ua=0,Ba,cn=".zoom-"+e.event.changedTouches[0].identifier,Hn="touchmove"+cn,Kn="touchend"+cn,gi=[],G=e.select(zr),ie=Ir(zr);We(),ot(Ft),G.on(z,null).on(ee,We);function ue(){var $e=e.touches(zr);return Ba=h.k,$e.forEach(function(br){br.identifier in Ut&&(Ut[br.identifier]=me(br))}),$e}function We(){var $e=e.event.target;e.select($e).on(Hn,Ke).on(Kn,ar),gi.push($e);for(var br=e.event.changedTouches,Dr=0,qr=br.length;Dr<qr;++Dr)Ut[br[Dr].identifier]=null;var Fr=ue(),xt=Date.now();if(Fr.length===1){if(xt-Me<500){var ft=Fr[0];Yr(zr,ft,Ut[ft.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),ve()}Me=xt}else if(Fr.length>1){var ft=Fr[0],Zr=Fr[1],hr=ft[0]-Zr[0],ze=ft[1]-Zr[1];ua=hr*hr+ze*ze}}function Ke(){var $e=e.touches(zr),br,Dr,qr,Fr;Xv.call(zr);for(var xt=0,ft=$e.length;xt<ft;++xt,Fr=null)if(qr=$e[xt],Fr=Ut[qr.identifier]){if(Dr)break;br=qr,Dr=Fr}if(Fr){var Zr=(Zr=qr[0]-br[0])*Zr+(Zr=qr[1]-br[1])*Zr,hr=ua&&Math.sqrt(Zr/ua);br=[(br[0]+qr[0])/2,(br[1]+qr[1])/2],Dr=[(Dr[0]+Fr[0])/2,(Dr[1]+Fr[1])/2],Mr(hr*Ba)}Me=null,Pr(br,Dr),qt(Ft)}function ar(){if(e.event.touches.length){for(var $e=e.event.changedTouches,br=0,Dr=$e.length;br<Dr;++br)delete Ut[$e[br].identifier];for(var qr in Ut)return void ue()}e.selectAll(gi).on(cn,null),G.on(z,kt).on(ee,ha),ie(),ct(Ft)}}function an(){var zr=qe.of(this,arguments);K?clearTimeout(K):(Xv.call(this),y=me(w=C||e.mouse(this)),ot(zr)),K=setTimeout(function(){K=null,ct(zr)},50),ve(),Mr(Math.pow(2,ra()*.002)*h.k),Pr(w,y),qt(zr)}function _a(){var zr=e.mouse(this),Ft=Math.log(h.k)/Math.LN2;Yr(this,zr,me(zr),e.event.shiftKey?Math.ceil(Ft)-1:Math.floor(Ft)+1)}return e.rebind(Re,qe,"on")};var Ma=[0,1/0],ra,Ra;e.color=Xa;function Xa(){}Xa.prototype.toString=function(){return this.rgb()+""},e.hsl=Sa;function Sa(h,y,w){return this instanceof Sa?(this.h=+h,this.s=+y,void(this.l=+w)):arguments.length<2?h instanceof Sa?new Sa(h.h,h.s,h.l):jt(""+h,va,Sa):new Sa(h,y,w)}var La=Sa.prototype=new Xa;La.brighter=function(h){return h=Math.pow(.7,arguments.length?h:1),new Sa(this.h,this.s,this.l/h)},La.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new Sa(this.h,this.s,h*this.l)},La.rgb=function(){return rn(this.h,this.s,this.l)};function rn(h,y,w){var C,E;h=isNaN(h)?0:(h%=360)<0?h+360:h,y=isNaN(y)||y<0?0:y>1?1:y,w=w<0?0:w>1?1:w,E=w<=.5?w*(1+y):w+y-w*y,C=2*w-E;function L(F){return F>360?F-=360:F<0&&(F+=360),F<60?C+(E-C)*F/60:F<180?E:F<240?C+(E-C)*(240-F)/60:C}function I(F){return Math.round(L(F)*255)}return new ui(I(h+120),I(h),I(h-120))}e.hcl=on;function on(h,y,w){return this instanceof on?(this.h=+h,this.c=+y,void(this.l=+w)):arguments.length<2?h instanceof on?new on(h.h,h.c,h.l):h instanceof xn?As(h.l,h.a,h.b):As((h=jr((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new on(h,y,w)}var Yi=on.prototype=new Xa;Yi.brighter=function(h){return new on(this.h,this.c,Math.min(100,this.l+Aa*(arguments.length?h:1)))},Yi.darker=function(h){return new on(this.h,this.c,Math.max(0,this.l-Aa*(arguments.length?h:1)))},Yi.rgb=function(){return Wi(this.h,this.c,this.l).rgb()};function Wi(h,y,w){return isNaN(h)&&(h=0),isNaN(y)&&(y=0),new xn(w,Math.cos(h*=St)*y,Math.sin(h)*y)}e.lab=xn;function xn(h,y,w){return this instanceof xn?(this.l=+h,this.a=+y,void(this.b=+w)):arguments.length<2?h instanceof xn?new xn(h.l,h.a,h.b):h instanceof on?Wi(h.h,h.c,h.l):jr((h=ui(h)).r,h.g,h.b):new xn(h,y,w)}var Aa=18,Un=.95047,_s=1,ws=1.08883,Bl=xn.prototype=new Xa;Bl.brighter=function(h){return new xn(Math.min(100,this.l+Aa*(arguments.length?h:1)),this.a,this.b)},Bl.darker=function(h){return new xn(Math.max(0,this.l-Aa*(arguments.length?h:1)),this.a,this.b)},Bl.rgb=function(){return _v(this.l,this.a,this.b)};function _v(h,y,w){var C=(h+16)/116,E=C+y/500,L=C-w/200;return E=Bf(E)*Un,C=Bf(C)*_s,L=Bf(L)*ws,new ui(ol(3.2404542*E-1.5371385*C-.4985314*L),ol(-.969266*E+1.8760108*C+.041556*L),ol(.0556434*E-.2040259*C+1.0572252*L))}function As(h,y,w){return h>0?new on(Math.atan2(w,y)*ea,Math.sqrt(y*y+w*w),h):new on(NaN,NaN,h)}function Bf(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function Uf(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function ol(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=ui;function ui(h,y,w){return this instanceof ui?(this.r=~~h,this.g=~~y,void(this.b=~~w)):arguments.length<2?h instanceof ui?new ui(h.r,h.g,h.b):jt(""+h,ui,rn):new ui(h,y,w)}function ll(h){return new ui(h>>16,h>>8&255,h&255)}function Ts(h){return ll(h)+""}var go=ui.prototype=new Xa;go.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var y=this.r,w=this.g,C=this.b,E=30;return!y&&!w&&!C?new ui(E,E,E):(y&&y<E&&(y=E),w&&w<E&&(w=E),C&&C<E&&(C=E),new ui(Math.min(255,y/h),Math.min(255,w/h),Math.min(255,C/h)))},go.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new ui(h*this.r,h*this.g,h*this.b)},go.hsl=function(){return va(this.r,this.g,this.b)},go.toString=function(){return"#"+yt(this.r)+yt(this.g)+yt(this.b)};function yt(h){return h<16?"0"+Math.max(0,h).toString(16):Math.min(255,h).toString(16)}function jt(h,y,w){var C=0,E=0,L=0,I,F,z;if(I=/([a-z]+)\((.*)\)/.exec(h=h.toLowerCase()),I)switch(F=I[2].split(","),I[1]){case"hsl":return w(parseFloat(F[0]),parseFloat(F[1])/100,parseFloat(F[2])/100);case"rgb":return y(Ea(F[0]),Ea(F[1]),Ea(F[2]))}return(z=Fn.get(h))?y(z.r,z.g,z.b):(h!=null&&h.charAt(0)==="#"&&!isNaN(z=parseInt(h.slice(1),16))&&(h.length===4?(C=(z&3840)>>4,C=C>>4|C,E=z&240,E=E>>4|E,L=z&15,L=L<<4|L):h.length===7&&(C=(z&16711680)>>16,E=(z&65280)>>8,L=z&255)),y(C,E,L))}function va(h,y,w){var C=Math.min(h/=255,y/=255,w/=255),E=Math.max(h,y,w),L=E-C,I,F,z=(E+C)/2;return L?(F=z<.5?L/(E+C):L/(2-E-C),h==E?I=(y-w)/L+(y<w?6:0):y==E?I=(w-h)/L+2:I=(h-y)/L+4,I*=60):(I=NaN,F=z>0&&z<1?0:I),new Sa(I,F,z)}function jr(h,y,w){h=Gn(h),y=Gn(y),w=Gn(w);var C=Uf((.4124564*h+.3575761*y+.1804375*w)/Un),E=Uf((.2126729*h+.7151522*y+.072175*w)/_s),L=Uf((.0193339*h+.119192*y+.9503041*w)/ws);return xn(116*E-16,500*(C-E),200*(E-L))}function Gn(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ea(h){var y=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(y*2.55):y}var Fn=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});Fn.forEach(function(h,y){Fn.set(h,ll(y))});function Vt(h){return typeof h=="function"?h:function(){return h}}e.functor=Vt,e.xhr=bo($);function bo(h){return function(y,w,C){return arguments.length===2&&typeof w=="function"&&(C=w,w=null),Ul(y,w,h,C)}}function Ul(h,y,w,C){var E={},L=e.dispatch("beforesend","progress","load","error"),I={},F=new XMLHttpRequest,z=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=X:F.onreadystatechange=function(){F.readyState>3&&X()};function X(){var J=F.status,K;if(!J&&P5(F)||J>=200&&J<300||J===304){try{K=w.call(E,F)}catch(ee){L.error.call(E,ee);return}L.load.call(E,K)}else L.error.call(E,F)}return F.onprogress=function(J){var K=e.event;e.event=J;try{L.progress.call(E,F)}finally{e.event=K}},E.header=function(J,K){return J=(J+"").toLowerCase(),arguments.length<2?I[J]:(K==null?delete I[J]:I[J]=K+"",E)},E.mimeType=function(J){return arguments.length?(y=J==null?null:J+"",E):y},E.responseType=function(J){return arguments.length?(z=J,E):z},E.response=function(J){return w=J,E},["get","post"].forEach(function(J){E[J]=function(){return E.send.apply(E,[J].concat(t(arguments)))}}),E.send=function(J,K,ee){if(arguments.length===2&&typeof K=="function"&&(ee=K,K=null),F.open(J,h,!0),y!=null&&!("accept"in I)&&(I.accept=y+",*/*"),F.setRequestHeader)for(var Me in I)F.setRequestHeader(Me,I[Me]);return y!=null&&F.overrideMimeType&&F.overrideMimeType(y),z!=null&&(F.responseType=z),ee!=null&&E.on("error",ee).on("load",function(qe){ee(null,qe)}),L.beforesend.call(E,F),F.send(K==null?null:K),E},E.abort=function(){return F.abort(),E},e.rebind(E,L,"on"),C==null?E:E.get(Gl(C))}function Gl(h){return h.length===1?function(y,w){h(y==null?w:null)}:h}function P5(h){var y=h.responseType;return y&&y!=="text"?h.response:h.responseText}e.dsv=function(h,y){var w=new RegExp('["'+h+`
|
|
16
16
|
]`),C=h.charCodeAt(0);function E(X,J,K){arguments.length<3&&(K=J,J=null);var ee=Ul(X,y,J==null?L:I(J),K);return ee.row=function(Me){return arguments.length?ee.response((J=Me)==null?L:I(Me)):J},ee}function L(X){return E.parse(X.responseText)}function I(X){return function(J){return E.parse(J.responseText,X)}}E.parse=function(X,J){var K;return E.parseRows(X,function(ee,Me){if(K)return K(ee,Me-1);var qe=function(ne){for(var he={},we=ee.length,Fe=0;Fe<we;++Fe)he[ee[Fe]]=ne[Fe];return he};K=J?function(ne,he){return J(qe(ne),he)}:qe})},E.parseRows=function(X,J){var K={},ee={},Me=[],qe=X.length,ne=0,he=0,we,Fe;function Re(){if(ne>=qe)return ee;if(Fe)return Fe=!1,K;var cr=ne;if(X.charCodeAt(cr)===34){for(var Mr=cr;Mr++<qe;)if(X.charCodeAt(Mr)===34){if(X.charCodeAt(Mr+1)!==34)break;++Mr}ne=Mr+2;var Pr=X.charCodeAt(Mr+1);return Pr===13?(Fe=!0,X.charCodeAt(Mr+2)===10&&++ne):Pr===10&&(Fe=!0),X.slice(cr+1,Mr).replace(/""/g,'"')}for(;ne<qe;){var Pr=X.charCodeAt(ne++),Yr=1;if(Pr===10)Fe=!0;else if(Pr===13)Fe=!0,X.charCodeAt(ne)===10&&(++ne,++Yr);else if(Pr!==C)continue;return X.slice(cr,ne-Yr)}return X.slice(cr)}for(;(we=Re())!==ee;){for(var me=[];we!==K&&we!==ee;)me.push(we),we=Re();J&&(me=J(me,he++))==null||Me.push(me)}return Me},E.format=function(X){if(Array.isArray(X[0]))return E.formatRows(X);var J=new U,K=[];return X.forEach(function(ee){for(var Me in ee)J.has(Me)||K.push(J.add(Me))}),[K.map(z).join(h)].concat(X.map(function(ee){return K.map(function(Me){return z(ee[Me])}).join(h)})).join(`
|
|
17
17
|
`)},E.formatRows=function(X){return X.map(F).join(`
|
|
18
18
|
`)};function F(X){return X.map(z).join(h)}function z(X){return w.test(X)?'"'+X.replace(/\"/g,'""')+'"':X}return E},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Pi,hu,Ms,Do,wv=this[H(this,"requestAnimationFrame")]||function(h){setTimeout(h,17)};e.timer=function(){Ss.apply(this,arguments)};function Ss(h,y,w){var C=arguments.length;C<2&&(y=0),C<3&&(w=Date.now());var E=w+y,L={c:h,t:E,n:null};return hu?hu.n=L:Pi=L,hu=L,Ms||(Do=clearTimeout(Do),Ms=1,wv(ks)),L}function ks(){var h=Gf(),y=ad()-h;y>24?(isFinite(y)&&(clearTimeout(Do),Do=setTimeout(ks,y)),Ms=0):(Ms=1,wv(ks))}e.timer.flush=function(){Gf(),ad()};function Gf(){for(var h=Date.now(),y=Pi;y;)h>=y.t&&y.c(h-y.t)&&(y.c=null),y=y.n;return h}function ad(){for(var h,y=Pi,w=1/0;y;)y.c?(y.t<w&&(w=y.t),y=(h=y).n):y=h?h.n=y.n:Pi=y.n;return hu=h,w}e.round=function(h,y){return y?Math.round(h*(y=Math.pow(10,y)))/y:Math.round(h)},e.geom={};function Hl(h){return h[0]}function du(h){return h[1]}e.geom.hull=function(h){var y=Hl,w=du;if(arguments.length)return C(h);function C(E){if(E.length<3)return[];var L=Vt(y),I=Vt(w),F,z=E.length,X=[],J=[];for(F=0;F<z;F++)X.push([+L.call(this,E[F],F),+I.call(this,E[F],F),F]);for(X.sort(N5),F=0;F<z;F++)J.push([X[F][0],-X[F][1]]);var K=Nm(X),ee=Nm(J),Me=ee[0]===K[0],qe=ee[ee.length-1]===K[K.length-1],ne=[];for(F=K.length-1;F>=0;--F)ne.push(E[X[K[F]][2]]);for(F=+Me;F<ee.length-qe;++F)ne.push(E[X[ee[F]][2]]);return ne}return C.x=function(E){return arguments.length?(y=E,C):y},C.y=function(E){return arguments.length?(w=E,C):w},C};function Nm(h){for(var y=h.length,w=[0,1],C=2,E=2;E<y;E++){for(;C>1&&aa(h[w[C-2]],h[w[C-1]],h[E])<=0;)--C;w[C++]=E}return w.slice(0,C)}function N5(h,y){return h[0]-y[0]||h[1]-y[1]}e.geom.polygon=function(h){return re(h,Av),h};var Av=e.geom.polygon.prototype=[];Av.area=function(){for(var h=-1,y=this.length,w,C=this[y-1],E=0;++h<y;)w=C,C=this[h],E+=w[1]*C[0]-w[0]*C[1];return E*.5},Av.centroid=function(h){var y=-1,w=this.length,C=0,E=0,L,I=this[w-1],F;for(arguments.length||(h=-1/(6*this.area()));++y<w;)L=I,I=this[y],F=L[0]*I[1]-I[0]*L[1],C+=(L[0]+I[0])*F,E+=(L[1]+I[1])*F;return[C*h,E*h]},Av.clip=function(h){for(var y,w=Vf(h),C=-1,E=this.length-Vf(this),L,I,F=this[E-1],z,X,J;++C<E;){for(y=h.slice(),h.length=0,z=this[C],X=y[(I=y.length-w)-1],L=-1;++L<I;)J=y[L],nd(J,F,z)?(nd(X,F,z)||h.push(Hf(X,J,F,z)),h.push(J)):nd(X,F,z)&&h.push(Hf(X,J,F,z)),X=J;w&&h.push(h[0]),F=z}return h};function nd(h,y,w){return(w[0]-y[0])*(h[1]-y[1])<(w[1]-y[1])*(h[0]-y[0])}function Hf(h,y,w,C){var E=h[0],L=w[0],I=y[0]-E,F=C[0]-L,z=h[1],X=w[1],J=y[1]-z,K=C[1]-X,ee=(F*(z-X)-K*(E-L))/(K*I-F*J);return[E+ee*I,z+ee*J]}function Vf(h){var y=h[0],w=h[h.length-1];return!(y[0]-w[0]||y[1]-w[1])}var Vl,sl,xo,Tv=[],Yf,Cs,Mv=[];function Im(){Xf(this),this.edge=this.site=this.circle=null}function id(h){var y=Tv.pop()||new Im;return y.site=h,y}function Sv(h){mu(h),xo.remove(h),Tv.push(h),Xf(h)}function Om(h){var y=h.circle,w=y.x,C=y.cy,E={x:w,y:C},L=h.P,I=h.N,F=[h];Sv(h);for(var z=L;z.circle&&b(w-z.circle.x)<ye&&b(C-z.circle.cy)<ye;)L=z.P,F.unshift(z),Sv(z),z=L;F.unshift(z),mu(z);for(var X=I;X.circle&&b(w-X.circle.x)<ye&&b(C-X.circle.cy)<ye;)I=X.N,F.push(X),Sv(X),X=I;F.push(X),mu(X);var J=F.length,K;for(K=1;K<J;++K)X=F[K],z=F[K-1],yu(X.edge,z.site,X.site,E);z=F[0],X=F[J-1],X.edge=Wf(z.site,X.site,null,E),qo(z),qo(X)}function zm(h){for(var y=h.x,w=h.y,C,E,L,I,F=xo._;F;)if(L=od(F,w)-y,L>ye)F=F.L;else if(I=y-Bm(F,w),I>ye){if(!F.R){C=F;break}F=F.R}else{L>-ye?(C=F.P,E=F):I>-ye?(C=F,E=F.N):C=E=F;break}var z=id(h);if(xo.insert(C,z),!(!C&&!E)){if(C===E){mu(C),E=id(C.site),xo.insert(z,E),z.edge=E.edge=Wf(C.site,z.site),qo(C),qo(E);return}if(!E){z.edge=Wf(C.site,z.site);return}mu(C),mu(E);var X=C.site,J=X.x,K=X.y,ee=h.x-J,Me=h.y-K,qe=E.site,ne=qe.x-J,he=qe.y-K,we=2*(ee*he-Me*ne),Fe=ee*ee+Me*Me,Re=ne*ne+he*he,me={x:(he*Fe-Me*Re)/we+J,y:(ee*Re-ne*Fe)/we+K};yu(E.edge,X,qe,me),z.edge=Wf(X,h,null,me),E.edge=Wf(h,qe,null,me),qo(C),qo(E)}}function od(h,y){var w=h.site,C=w.x,E=w.y,L=E-y;if(!L)return C;var I=h.P;if(!I)return-1/0;w=I.site;var F=w.x,z=w.y,X=z-y;if(!X)return F;var J=F-C,K=1/L-1/X,ee=J/X;return K?(-ee+Math.sqrt(ee*ee-2*K*(J*J/(-2*X)-z+X/2+E-L/2)))/K+C:(C+F)/2}function Bm(h,y){var w=h.N;if(w)return od(w,y);var C=h.site;return C.y===y?C.x:1/0}function ld(h){this.site=h,this.edges=[]}ld.prototype.prepare=function(){for(var h=this.edges,y=h.length,w;y--;)w=h[y].edge,(!w.b||!w.a)&&h.splice(y,1);return h.sort(kv),h.length};function pu(h){for(var y=h[0][0],w=h[1][0],C=h[0][1],E=h[1][1],L,I,F,z,X=sl,J=X.length,K,ee,Me,qe,ne,he;J--;)if(K=X[J],!(!K||!K.prepare()))for(Me=K.edges,qe=Me.length,ee=0;ee<qe;)he=Me[ee].end(),F=he.x,z=he.y,ne=Me[++ee%qe].start(),L=ne.x,I=ne.y,(b(F-L)>ye||b(z-I)>ye)&&(Me.splice(ee,0,new Cv(z5(K.site,he,b(F-y)<ye&&E-z>ye?{x:y,y:b(L-y)<ye?I:E}:b(z-E)<ye&&w-F>ye?{x:b(I-E)<ye?L:w,y:E}:b(F-w)<ye&&z-C>ye?{x:w,y:b(L-w)<ye?I:C}:b(z-C)<ye&&F-y>ye?{x:b(I-C)<ye?L:y,y:C}:null),K.site,null)),++qe)}function kv(h,y){return y.angle-h.angle}function sd(){Xf(this),this.x=this.y=this.arc=this.site=this.cy=null}function qo(h){var y=h.P,w=h.N;if(!(!y||!w)){var C=y.site,E=h.site,L=w.site;if(C!==L){var I=E.x,F=E.y,z=C.x-I,X=C.y-F,J=L.x-I,he=L.y-F,K=2*(z*he-X*J);if(!(K>=-Ge)){var ee=z*z+X*X,Me=J*J+he*he,qe=(he*ee-X*Me)/K,ne=(z*Me-J*ee)/K,he=ne+F,we=Mv.pop()||new sd;we.arc=h,we.site=E,we.x=qe+I,we.y=he+Math.sqrt(qe*qe+ne*ne),we.cy=he,h.circle=we;for(var Fe=null,Re=Cs._;Re;)if(we.y<Re.y||we.y===Re.y&&we.x<=Re.x)if(Re.L)Re=Re.L;else{Fe=Re.P;break}else if(Re.R)Re=Re.R;else{Fe=Re;break}Cs.insert(Fe,we),Fe||(Yf=we)}}}}function mu(h){var y=h.circle;y&&(y.P||(Yf=y.N),Cs.remove(y),Mv.push(y),Xf(y),h.circle=null)}function I5(h,y,w,C){return function(E){var L=E.a,I=E.b,F=L.x,z=L.y,X=I.x,J=I.y,K=0,ee=1,Me=X-F,qe=J-z,ne;if(ne=h-F,!(!Me&&ne>0)){if(ne/=Me,Me<0){if(ne<K)return;ne<ee&&(ee=ne)}else if(Me>0){if(ne>ee)return;ne>K&&(K=ne)}if(ne=w-F,!(!Me&&ne<0)){if(ne/=Me,Me<0){if(ne>ee)return;ne>K&&(K=ne)}else if(Me>0){if(ne<K)return;ne<ee&&(ee=ne)}if(ne=y-z,!(!qe&&ne>0)){if(ne/=qe,qe<0){if(ne<K)return;ne<ee&&(ee=ne)}else if(qe>0){if(ne>ee)return;ne>K&&(K=ne)}if(ne=C-z,!(!qe&&ne<0)){if(ne/=qe,qe<0){if(ne>ee)return;ne>K&&(K=ne)}else if(qe>0){if(ne<K)return;ne<ee&&(ee=ne)}return K>0&&(E.a={x:F+K*Me,y:z+K*qe}),ee<1&&(E.b={x:F+ee*Me,y:z+ee*qe}),E}}}}}}function O5(h){for(var y=Vl,w=I5(h[0][0],h[0][1],h[1][0],h[1][1]),C=y.length,E;C--;)E=y[C],(!ud(E,h)||!w(E)||b(E.a.x-E.b.x)<ye&&b(E.a.y-E.b.y)<ye)&&(E.a=E.b=null,y.splice(C,1))}function ud(h,y){var w=h.b;if(w)return!0;var C=h.a,E=y[0][0],L=y[1][0],I=y[0][1],F=y[1][1],z=h.l,X=h.r,J=z.x,K=z.y,ee=X.x,Me=X.y,qe=(J+ee)/2,ne=(K+Me)/2,he,we;if(Me===K){if(qe<E||qe>=L)return;if(J>ee){if(!C)C={x:qe,y:I};else if(C.y>=F)return;w={x:qe,y:F}}else{if(!C)C={x:qe,y:F};else if(C.y<I)return;w={x:qe,y:I}}}else if(he=(J-ee)/(Me-K),we=ne-he*qe,he<-1||he>1)if(J>ee){if(!C)C={x:(I-we)/he,y:I};else if(C.y>=F)return;w={x:(F-we)/he,y:F}}else{if(!C)C={x:(F-we)/he,y:F};else if(C.y<I)return;w={x:(I-we)/he,y:I}}else if(K<Me){if(!C)C={x:E,y:he*E+we};else if(C.x>=L)return;w={x:L,y:he*L+we}}else{if(!C)C={x:L,y:he*L+we};else if(C.x<E)return;w={x:E,y:he*E+we}}return h.a=C,h.b=w,!0}function Um(h,y){this.l=h,this.r=y,this.a=this.b=null}function Wf(h,y,w,C){var E=new Um(h,y);return Vl.push(E),w&&yu(E,h,y,w),C&&yu(E,y,h,C),sl[h.i].edges.push(new Cv(E,h,y)),sl[y.i].edges.push(new Cv(E,y,h)),E}function z5(h,y,w){var C=new Um(h,null);return C.a=y,C.b=w,Vl.push(C),C}function yu(h,y,w,C){!h.a&&!h.b?(h.a=C,h.l=y,h.r=w):h.l===w?h.b=C:h.a=C}function Cv(h,y,w){var C=h.a,E=h.b;this.edge=h,this.site=y,this.angle=w?Math.atan2(w.y-y.y,w.x-y.x):h.l===y?Math.atan2(E.x-C.x,C.y-E.y):Math.atan2(C.x-E.x,E.y-C.y)}Cv.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 jf(){this._=null}function Xf(h){h.U=h.C=h.L=h.R=h.P=h.N=null}jf.prototype={insert:function(h,y){var w,C,E;if(h){if(y.P=h,y.N=h.N,h.N&&(h.N.P=y),h.N=y,h.R){for(h=h.R;h.L;)h=h.L;h.L=y}else h.R=y;w=h}else this._?(h=Gm(this._),y.P=null,y.N=h,h.P=h.L=y,w=h):(y.P=y.N=null,this._=y,w=null);for(y.L=y.R=null,y.U=w,y.C=!0,h=y;w&&w.C;)C=w.U,w===C.L?(E=C.R,E&&E.C?(w.C=E.C=!1,C.C=!0,h=C):(h===w.R&&(gu(this,w),h=w,w=h.U),w.C=!1,C.C=!0,Es(this,C))):(E=C.L,E&&E.C?(w.C=E.C=!1,C.C=!0,h=C):(h===w.L&&(Es(this,w),h=w,w=h.U),w.C=!1,C.C=!0,gu(this,C))),w=h.U;this._.C=!1},remove:function(h){h.N&&(h.N.P=h.P),h.P&&(h.P.N=h.N),h.N=h.P=null;var y=h.U,w,C=h.L,E=h.R,L,I;if(C?E?L=Gm(E):L=C:L=E,y?y.L===h?y.L=L:y.R=L:this._=L,C&&E?(I=L.C,L.C=h.C,L.L=C,C.U=L,L!==E?(y=L.U,L.U=h.U,h=L.R,y.L=h,L.R=E,E.U=L):(L.U=y,y=L,h=L.R)):(I=h.C,h=L),h&&(h.U=y),!I){if(h&&h.C){h.C=!1;return}do{if(h===this._)break;if(h===y.L){if(w=y.R,w.C&&(w.C=!1,y.C=!0,gu(this,y),w=y.R),w.L&&w.L.C||w.R&&w.R.C){(!w.R||!w.R.C)&&(w.L.C=!1,w.C=!0,Es(this,w),w=y.R),w.C=y.C,y.C=w.R.C=!1,gu(this,y),h=this._;break}}else if(w=y.L,w.C&&(w.C=!1,y.C=!0,Es(this,y),w=y.L),w.L&&w.L.C||w.R&&w.R.C){(!w.L||!w.L.C)&&(w.R.C=!1,w.C=!0,gu(this,w),w=y.L),w.C=y.C,y.C=w.L.C=!1,Es(this,y),h=this._;break}w.C=!0,h=y,y=y.U}while(!h.C);h&&(h.C=!1)}}};function gu(h,y){var w=y,C=y.R,E=w.U;E?E.L===w?E.L=C:E.R=C:h._=C,C.U=E,w.U=C,w.R=C.L,w.R&&(w.R.U=w),C.L=w}function Es(h,y){var w=y,C=y.L,E=w.U;E?E.L===w?E.L=C:E.R=C:h._=C,C.U=E,w.U=C,w.L=C.R,w.L&&(w.L.U=w),C.R=w}function Gm(h){for(;h.L;)h=h.L;return h}function bu(h,y){var w=h.sort(B5).pop(),C,E,L;for(Vl=[],sl=new Array(h.length),xo=new jf,Cs=new jf;;)if(L=Yf,w&&(!L||w.y<L.y||w.y===L.y&&w.x<L.x))(w.x!==C||w.y!==E)&&(sl[w.i]=new ld(w),zm(w),C=w.x,E=w.y),w=h.pop();else if(L)Om(L.arc);else break;y&&(O5(y),pu(y));var I={cells:sl,edges:Vl};return xo=Cs=Vl=sl=null,I}function B5(h,y){return y.y-h.y||y.x-h.x}e.geom.voronoi=function(h){var y=Hl,w=du,C=y,E=w,L=Ev;if(h)return I(h);function I(z){var X=new Array(z.length),J=L[0][0],K=L[0][1],ee=L[1][0],Me=L[1][1];return bu(F(z),L).cells.forEach(function(qe,ne){var he=qe.edges,we=qe.site,Fe=X[ne]=he.length?he.map(function(Re){var me=Re.start();return[me.x,me.y]}):we.x>=J&&we.x<=ee&&we.y>=K&&we.y<=Me?[[J,Me],[ee,Me],[ee,K],[J,K]]:[];Fe.point=z[ne]}),X}function F(z){return z.map(function(X,J){return{x:Math.round(C(X,J)/ye)*ye,y:Math.round(E(X,J)/ye)*ye,i:J}})}return I.links=function(z){return bu(F(z)).edges.filter(function(X){return X.l&&X.r}).map(function(X){return{source:z[X.l.i],target:z[X.r.i]}})},I.triangles=function(z){var X=[];return bu(F(z)).cells.forEach(function(J,K){for(var ee=J.site,Me=J.edges.sort(kv),qe=-1,ne=Me.length,he,we,Fe=Me[ne-1].edge,Re=Fe.l===ee?Fe.r:Fe.l;++qe<ne;)he=Fe,we=Re,Fe=Me[qe].edge,Re=Fe.l===ee?Fe.r:Fe.l,K<we.i&&K<Re.i&&U5(ee,we,Re)<0&&X.push([z[K],z[we.i],z[Re.i]])}),X},I.x=function(z){return arguments.length?(C=Vt(y=z),I):y},I.y=function(z){return arguments.length?(E=Vt(w=z),I):w},I.clipExtent=function(z){return arguments.length?(L=z==null?Ev:z,I):L===Ev?null:L},I.size=function(z){return arguments.length?I.clipExtent(z&&[[0,0],z]):L===Ev?null:L&&L[1]},I};var Ev=[[-1e6,-1e6],[1e6,1e6]];function U5(h,y,w){return(h.x-w.x)*(y.y-h.y)-(h.x-y.x)*(w.y-h.y)}e.geom.delaunay=function(h){return e.geom.voronoi().triangles(h)},e.geom.quadtree=function(h,y,w,C,E){var L=Hl,I=du,F;if(F=arguments.length)return L=G5,I=H5,F===3&&(E=w,C=y,w=y=0),z(h);function z(X){var J,K=Vt(L),ee=Vt(I),Me,qe,ne,he,we,Fe,Re,me;if(y!=null)we=y,Fe=w,Re=C,me=E;else if(Re=me=-(we=Fe=1/0),Me=[],qe=[],he=X.length,F)for(ne=0;ne<he;++ne)J=X[ne],J.x<we&&(we=J.x),J.y<Fe&&(Fe=J.y),J.x>Re&&(Re=J.x),J.y>me&&(me=J.y),Me.push(J.x),qe.push(J.y);else for(ne=0;ne<he;++ne){var cr=+K(J=X[ne],ne),Mr=+ee(J,ne);cr<we&&(we=cr),Mr<Fe&&(Fe=Mr),cr>Re&&(Re=cr),Mr>me&&(me=Mr),Me.push(cr),qe.push(Mr)}var Pr=Re-we,Yr=me-Fe;Pr>Yr?me=Fe+Pr:Re=we+Yr;function it(ct,kt,ha,an,_a,zr,Ft,Ut){if(!(isNaN(ha)||isNaN(an)))if(ct.leaf){var ua=ct.x,Ba=ct.y;if(ua!=null)if(b(ua-ha)+b(Ba-an)<.01)ot(ct,kt,ha,an,_a,zr,Ft,Ut);else{var cn=ct.point;ct.x=ct.y=ct.point=null,ot(ct,cn,ua,Ba,_a,zr,Ft,Ut),ot(ct,kt,ha,an,_a,zr,Ft,Ut)}else ct.x=ha,ct.y=an,ct.point=kt}else ot(ct,kt,ha,an,_a,zr,Ft,Ut)}function ot(ct,kt,ha,an,_a,zr,Ft,Ut){var ua=(_a+Ft)*.5,Ba=(zr+Ut)*.5,cn=ha>=ua,Hn=an>=Ba,Kn=Hn<<1|cn;ct.leaf=!1,ct=ct.nodes[Kn]||(ct.nodes[Kn]=Hm()),cn?_a=ua:Ft=ua,Hn?zr=Ba:Ut=Ba,it(ct,kt,ha,an,_a,zr,Ft,Ut)}var qt=Hm();if(qt.add=function(ct){it(qt,ct,+K(ct,++ne),+ee(ct,ne),we,Fe,Re,me)},qt.visit=function(ct){Zf(ct,qt,we,Fe,Re,me)},qt.find=function(ct){return Vm(qt,ct[0],ct[1],we,Fe,Re,me)},ne=-1,y==null){for(;++ne<he;)it(qt,X[ne],Me[ne],qe[ne],we,Fe,Re,me);--ne}else X.forEach(qt.add);return Me=qe=X=J=null,qt}return z.x=function(X){return arguments.length?(L=X,z):L},z.y=function(X){return arguments.length?(I=X,z):I},z.extent=function(X){return arguments.length?(X==null?y=w=C=E=null:(y=+X[0][0],w=+X[0][1],C=+X[1][0],E=+X[1][1]),z):y==null?null:[[y,w],[C,E]]},z.size=function(X){return arguments.length?(X==null?y=w=C=E=null:(y=w=0,C=+X[0],E=+X[1]),z):y==null?null:[C-y,E-w]},z};function G5(h){return h.x}function H5(h){return h.y}function Hm(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Zf(h,y,w,C,E,L){if(!h(y,w,C,E,L)){var I=(w+E)*.5,F=(C+L)*.5,z=y.nodes;z[0]&&Zf(h,z[0],w,C,I,F),z[1]&&Zf(h,z[1],I,C,E,F),z[2]&&Zf(h,z[2],w,F,I,L),z[3]&&Zf(h,z[3],I,F,E,L)}}function Vm(h,y,w,C,E,L,I){var F=1/0,z;return function X(J,K,ee,Me,qe){if(!(K>L||ee>I||Me<C||qe<E)){if(ne=J.point){var ne,he=y-J.x,we=w-J.y,Fe=he*he+we*we;if(Fe<F){var Re=Math.sqrt(F=Fe);C=y-Re,E=w-Re,L=y+Re,I=w+Re,z=ne}}for(var me=J.nodes,cr=(K+Me)*.5,Mr=(ee+qe)*.5,Pr=y>=cr,Yr=w>=Mr,it=Yr<<1|Pr,ot=it+4;it<ot;++it)if(J=me[it&3])switch(it&3){case 0:X(J,K,ee,cr,Mr);break;case 1:X(J,cr,ee,Me,Mr);break;case 2:X(J,K,Mr,cr,qe);break;case 3:X(J,cr,Mr,Me,qe);break}}}(h,C,E,L,I),z}e.interpolateRgb=Ls;function Ls(h,y){h=e.rgb(h),y=e.rgb(y);var w=h.r,C=h.g,E=h.b,L=y.r-w,I=y.g-C,F=y.b-E;return function(z){return"#"+yt(Math.round(w+L*z))+yt(Math.round(C+I*z))+yt(Math.round(E+F*z))}}e.interpolateObject=Ym;function Ym(h,y){var w={},C={},E;for(E in h)E in y?w[E]=Wl(h[E],y[E]):C[E]=h[E];for(E in y)E in h||(C[E]=y[E]);return function(L){for(E in w)C[E]=w[E](L);return C}}e.interpolateNumber=ji;function ji(h,y){return h=+h,y=+y,function(w){return h*(1-w)+y*w}}e.interpolateString=Xi;function Xi(h,y){var w=Yl.lastIndex=Lv.lastIndex=0,C,E,L,I=-1,F=[],z=[];for(h=h+"",y=y+"";(C=Yl.exec(h))&&(E=Lv.exec(y));)(L=E.index)>w&&(L=y.slice(w,L),F[I]?F[I]+=L:F[++I]=L),(C=C[0])===(E=E[0])?F[I]?F[I]+=E:F[++I]=E:(F[++I]=null,z.push({i:I,x:ji(C,E)})),w=Lv.lastIndex;return w<y.length&&(L=y.slice(w),F[I]?F[I]+=L:F[++I]=L),F.length<2?z[0]?(y=z[0].x,function(X){return y(X)+""}):function(){return y}:(y=z.length,function(X){for(var J=0,K;J<y;++J)F[(K=z[J]).i]=K.x(X);return F.join("")})}var Yl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lv=new RegExp(Yl.source,"g");e.interpolate=Wl;function Wl(h,y){for(var w=e.interpolators.length,C;--w>=0&&!(C=e.interpolators[w](h,y)););return C}e.interpolators=[function(h,y){var w=typeof y;return(w==="string"?Fn.has(y.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(y)?Ls:Xi:y instanceof Xa?Ls:Array.isArray(y)?Jf:w==="object"&&isNaN(y)?Ym:ji)(h,y)}],e.interpolateArray=Jf;function Jf(h,y){var w=[],C=[],E=h.length,L=y.length,I=Math.min(h.length,y.length),F;for(F=0;F<I;++F)w.push(Wl(h[F],y[F]));for(;F<E;++F)C[F]=h[F];for(;F<L;++F)C[F]=y[F];return function(z){for(F=0;F<I;++F)C[F]=w[F](z);return C}}var fd=function(){return $},Wm=e.map({linear:fd,poly:Jm,quad:function(){return Xm},cubic:function(){return Zm},sin:function(){return $m},exp:function(){return Y5},circle:function(){return W5},elastic:j5,back:X5,bounce:function(){return cd}}),jm=e.map({in:$,out:Ds,"in-out":Rn,"out-in":function(h){return Rn(Ds(h))}});e.ease=function(h){var y=h.indexOf("-"),w=y>=0?h.slice(0,y):h,C=y>=0?h.slice(y+1):"in";return w=Wm.get(w)||fd,C=jm.get(C)||$,V5(C(w.apply(null,r.call(arguments,1))))};function V5(h){return function(y){return y<=0?0:y>=1?1:h(y)}}function Ds(h){return function(y){return 1-h(1-y)}}function Rn(h){return function(y){return .5*(y<.5?h(2*y):2-h(2-2*y))}}function Xm(h){return h*h}function Zm(h){return h*h*h}function qs(h){if(h<=0)return 0;if(h>=1)return 1;var y=h*h,w=y*h;return 4*(h<.5?w:3*(h-y)+w-.75)}function Jm(h){return function(y){return Math.pow(y,h)}}function $m(h){return 1-Math.cos(h*$r)}function Y5(h){return Math.pow(2,10*(h-1))}function W5(h){return 1-Math.sqrt(1-h*h)}function j5(h,y){var w;return arguments.length<2&&(y=.45),arguments.length?w=y/Wr*Math.asin(1/h):(h=1,w=y/4),function(C){return 1+h*Math.pow(2,-10*C)*Math.sin((C-w)*Wr/y)}}function X5(h){return h||(h=1.70158),function(y){return y*y*((h+1)*y-h)}}function cd(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=Qm;function Qm(h,y){h=e.hcl(h),y=e.hcl(y);var w=h.h,C=h.c,E=h.l,L=y.h-w,I=y.c-C,F=y.l-E;return isNaN(I)&&(I=0,C=isNaN(C)?y.c:C),isNaN(L)?(L=0,w=isNaN(w)?y.h:w):L>180?L-=360:L<-180&&(L+=360),function(z){return Wi(w+L*z,C+I*z,E+F*z)+""}}e.interpolateHsl=Z5;function Z5(h,y){h=e.hsl(h),y=e.hsl(y);var w=h.h,C=h.s,E=h.l,L=y.h-w,I=y.s-C,F=y.l-E;return isNaN(I)&&(I=0,C=isNaN(C)?y.s:C),isNaN(L)?(L=0,w=isNaN(w)?y.h:w):L>180?L-=360:L<-180&&(L+=360),function(z){return rn(w+L*z,C+I*z,E+F*z)+""}}e.interpolateLab=Km;function Km(h,y){h=e.lab(h),y=e.lab(y);var w=h.l,C=h.a,E=h.b,L=y.l-w,I=y.a-C,F=y.b-E;return function(z){return _v(w+L*z,C+I*z,E+F*z)+""}}e.interpolateRound=vd;function vd(h,y){return y-=h,function(w){return Math.round(h+y*w)}}e.transform=function(h){var y=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){y.setAttribute("transform",w);var C=y.transform.baseVal.consolidate()}return new ey(C?C.matrix:Dv)})(h)};function ey(h){var y=[h.a,h.b],w=[h.c,h.d],C=ry(y),E=$f(y,w),L=ry(jl(w,y,-E))||0;y[0]*w[1]<w[0]*y[1]&&(y[0]*=-1,y[1]*=-1,C*=-1,E*=-1),this.rotate=(C?Math.atan2(y[1],y[0]):Math.atan2(-w[0],w[1]))*ea,this.translate=[h.e,h.f],this.scale=[C,L],this.skew=L?Math.atan2(E,L)*ea:0}ey.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function $f(h,y){return h[0]*y[0]+h[1]*y[1]}function ry(h){var y=Math.sqrt($f(h,h));return y&&(h[0]/=y,h[1]/=y),y}function jl(h,y,w){return h[0]+=w*y[0],h[1]+=w*y[1],h}var Dv={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=hd;function Fs(h){return h.length?h.pop()+",":""}function ty(h,y,w,C){if(h[0]!==y[0]||h[1]!==y[1]){var E=w.push("translate(",null,",",null,")");C.push({i:E-4,x:ji(h[0],y[0])},{i:E-2,x:ji(h[1],y[1])})}else(y[0]||y[1])&&w.push("translate("+y+")")}function ay(h,y,w,C){h!==y?(h-y>180?y+=360:y-h>180&&(h+=360),C.push({i:w.push(Fs(w)+"rotate(",null,")")-2,x:ji(h,y)})):y&&w.push(Fs(w)+"rotate("+y+")")}function ny(h,y,w,C){h!==y?C.push({i:w.push(Fs(w)+"skewX(",null,")")-2,x:ji(h,y)}):y&&w.push(Fs(w)+"skewX("+y+")")}function iy(h,y,w,C){if(h[0]!==y[0]||h[1]!==y[1]){var E=w.push(Fs(w)+"scale(",null,",",null,")");C.push({i:E-4,x:ji(h[0],y[0])},{i:E-2,x:ji(h[1],y[1])})}else(y[0]!==1||y[1]!==1)&&w.push(Fs(w)+"scale("+y+")")}function hd(h,y){var w=[],C=[];return h=e.transform(h),y=e.transform(y),ty(h.translate,y.translate,w,C),ay(h.rotate,y.rotate,w,C),ny(h.skew,y.skew,w,C),iy(h.scale,y.scale,w,C),h=y=null,function(E){for(var L=-1,I=C.length,F;++L<I;)w[(F=C[L]).i]=F.x(E);return w.join("")}}function oy(h,y){return y=(y-=h=+h)||1/y,function(w){return(w-h)/y}}function ly(h,y){return y=(y-=h=+h)||1/y,function(w){return Math.max(0,Math.min(1,(w-h)/y))}}e.layout={},e.layout.bundle=function(){return function(h){for(var y=[],w=-1,C=h.length;++w<C;)y.push(sy(h[w]));return y}};function sy(h){for(var y=h.source,w=h.target,C=uy(y,w),E=[y];y!==C;)y=y.parent,E.push(y);for(var L=E.length;w!==C;)E.splice(L,0,w),w=w.parent;return E}function Zi(h){for(var y=[],w=h.parent;w!=null;)y.push(h),h=w,w=w.parent;return y.push(h),y}function uy(h,y){if(h===y)return h;for(var w=Zi(h),C=Zi(y),E=w.pop(),L=C.pop(),I=null;E===L;)I=E,E=w.pop(),L=C.pop();return I}e.layout.chord=function(){var h={},y,w,C,E,L=0,I,F,z;function X(){var K={},ee=[],Me=e.range(E),qe=[],ne,he,we,Fe,Re;for(y=[],w=[],ne=0,Fe=-1;++Fe<E;){for(he=0,Re=-1;++Re<E;)he+=C[Fe][Re];ee.push(he),qe.push(e.range(E)),ne+=he}for(I&&Me.sort(function(qt,ct){return I(ee[qt],ee[ct])}),F&&qe.forEach(function(qt,ct){qt.sort(function(kt,ha){return F(C[ct][kt],C[ct][ha])})}),ne=(Wr-L*E)/ne,he=0,Fe=-1;++Fe<E;){for(we=he,Re=-1;++Re<E;){var me=Me[Fe],cr=qe[me][Re],Mr=C[me][cr],Pr=he,Yr=he+=Mr*ne;K[me+"-"+cr]={index:me,subindex:cr,startAngle:Pr,endAngle:Yr,value:Mr}}w[me]={index:me,startAngle:we,endAngle:he,value:ee[me]},he+=L}for(Fe=-1;++Fe<E;)for(Re=Fe-1;++Re<E;){var it=K[Fe+"-"+Re],ot=K[Re+"-"+Fe];(it.value||ot.value)&&y.push(it.value<ot.value?{source:ot,target:it}:{source:it,target:ot})}z&&J()}function J(){y.sort(function(K,ee){return z((K.source.value+K.target.value)/2,(ee.source.value+ee.target.value)/2)})}return h.matrix=function(K){return arguments.length?(E=(C=K)&&C.length,y=w=null,h):C},h.padding=function(K){return arguments.length?(L=K,y=w=null,h):L},h.sortGroups=function(K){return arguments.length?(I=K,y=w=null,h):I},h.sortSubgroups=function(K){return arguments.length?(F=K,y=null,h):F},h.sortChords=function(K){return arguments.length?(z=K,y&&J(),h):z},h.chords=function(){return y||X(),y},h.groups=function(){return w||X(),w},h},e.layout.force=function(){var h={},y=e.dispatch("start","tick","end"),w,C=[1,1],E,L,I=.9,F=fy,z=cy,X=-30,J=vy,K=.1,ee=.64,Me=[],qe=[],ne,he,we;function Fe(me){return function(cr,Mr,Pr,Yr){if(cr.point!==me){var it=cr.cx-me.x,ot=cr.cy-me.y,qt=Yr-Mr,ct=it*it+ot*ot;if(qt*qt/ee<ct){if(ct<J){var kt=cr.charge/ct;me.px-=it*kt,me.py-=ot*kt}return!0}if(cr.point&&ct&&ct<J){var kt=cr.pointCharge/ct;me.px-=it*kt,me.py-=ot*kt}}return!cr.charge}}h.tick=function(){if((L*=.99)<.005)return w=null,y.end({type:"end",alpha:L=0}),!0;var me=Me.length,cr=qe.length,Mr,Pr,Yr,it,ot,qt,ct,kt,ha;for(Pr=0;Pr<cr;++Pr)Yr=qe[Pr],it=Yr.source,ot=Yr.target,kt=ot.x-it.x,ha=ot.y-it.y,(qt=kt*kt+ha*ha)&&(qt=L*he[Pr]*((qt=Math.sqrt(qt))-ne[Pr])/qt,kt*=qt,ha*=qt,ot.x-=kt*(ct=it.weight+ot.weight?it.weight/(it.weight+ot.weight):.5),ot.y-=ha*ct,it.x+=kt*(ct=1-ct),it.y+=ha*ct);if((ct=L*K)&&(kt=C[0]/2,ha=C[1]/2,Pr=-1,ct))for(;++Pr<me;)Yr=Me[Pr],Yr.x+=(kt-Yr.x)*ct,Yr.y+=(ha-Yr.y)*ct;if(X)for(pd(Mr=e.geom.quadtree(Me),L,we),Pr=-1;++Pr<me;)(Yr=Me[Pr]).fixed||Mr.visit(Fe(Yr));for(Pr=-1;++Pr<me;)Yr=Me[Pr],Yr.fixed?(Yr.x=Yr.px,Yr.y=Yr.py):(Yr.x-=(Yr.px-(Yr.px=Yr.x))*I,Yr.y-=(Yr.py-(Yr.py=Yr.y))*I);y.tick({type:"tick",alpha:L})},h.nodes=function(me){return arguments.length?(Me=me,h):Me},h.links=function(me){return arguments.length?(qe=me,h):qe},h.size=function(me){return arguments.length?(C=me,h):C},h.linkDistance=function(me){return arguments.length?(F=typeof me=="function"?me:+me,h):F},h.distance=h.linkDistance,h.linkStrength=function(me){return arguments.length?(z=typeof me=="function"?me:+me,h):z},h.friction=function(me){return arguments.length?(I=+me,h):I},h.charge=function(me){return arguments.length?(X=typeof me=="function"?me:+me,h):X},h.chargeDistance=function(me){return arguments.length?(J=me*me,h):Math.sqrt(J)},h.gravity=function(me){return arguments.length?(K=+me,h):K},h.theta=function(me){return arguments.length?(ee=me*me,h):Math.sqrt(ee)},h.alpha=function(me){return arguments.length?(me=+me,L?me>0?L=me:(w.c=null,w.t=NaN,w=null,y.end({type:"end",alpha:L=0})):me>0&&(y.start({type:"start",alpha:L=me}),w=Ss(h.tick)),h):L},h.start=function(){var me,cr=Me.length,Mr=qe.length,Pr=C[0],Yr=C[1],it,ot;for(me=0;me<cr;++me)(ot=Me[me]).index=me,ot.weight=0;for(me=0;me<Mr;++me)ot=qe[me],typeof ot.source=="number"&&(ot.source=Me[ot.source]),typeof ot.target=="number"&&(ot.target=Me[ot.target]),++ot.source.weight,++ot.target.weight;for(me=0;me<cr;++me)ot=Me[me],isNaN(ot.x)&&(ot.x=qt("x",Pr)),isNaN(ot.y)&&(ot.y=qt("y",Yr)),isNaN(ot.px)&&(ot.px=ot.x),isNaN(ot.py)&&(ot.py=ot.y);if(ne=[],typeof F=="function")for(me=0;me<Mr;++me)ne[me]=+F.call(this,qe[me],me);else for(me=0;me<Mr;++me)ne[me]=F;if(he=[],typeof z=="function")for(me=0;me<Mr;++me)he[me]=+z.call(this,qe[me],me);else for(me=0;me<Mr;++me)he[me]=z;if(we=[],typeof X=="function")for(me=0;me<cr;++me)we[me]=+X.call(this,Me[me],me);else for(me=0;me<cr;++me)we[me]=X;function qt(ct,kt){if(!it){for(it=new Array(cr),_a=0;_a<cr;++_a)it[_a]=[];for(_a=0;_a<Mr;++_a){var ha=qe[_a];it[ha.source.index].push(ha.target),it[ha.target.index].push(ha.source)}}for(var an=it[me],_a=-1,zr=an.length,Ft;++_a<zr;)if(!isNaN(Ft=an[_a][ct]))return Ft;return Math.random()*kt}return h.resume()},h.resume=function(){return h.alpha(.1)},h.stop=function(){return h.alpha(0)},h.drag=function(){if(E||(E=e.behavior.drag().origin($).on("dragstart.force",J5).on("drag.force",Re).on("dragend.force",ul)),!arguments.length)return E;this.on("mouseover.force",dd).on("mouseout.force",xu).call(E)};function Re(me){me.px=e.event.x,me.py=e.event.y,h.resume()}return e.rebind(h,y,"on")};function J5(h){h.fixed|=2}function ul(h){h.fixed&=-7}function dd(h){h.fixed|=4,h.px=h.x,h.py=h.y}function xu(h){h.fixed&=-5}function pd(h,y,w){var C=0,E=0;if(h.charge=0,!h.leaf)for(var L=h.nodes,I=L.length,F=-1,z;++F<I;)z=L[F],z!=null&&(pd(z,y,w),h.charge+=z.charge,C+=z.charge*z.cx,E+=z.charge*z.cy);if(h.point){h.leaf||(h.point.x+=Math.random()-.5,h.point.y+=Math.random()-.5);var X=y*w[h.point.index];h.charge+=h.pointCharge=X,C+=X*h.point.x,E+=X*h.point.y}h.cx=C/h.charge,h.cy=E/h.charge}var fy=20,cy=1,vy=1/0;e.layout.hierarchy=function(){var h=K5,y=$5,w=Q5;function C(E){var L=[E],I=[],F;for(E.depth=0;(F=L.pop())!=null;)if(I.push(F),(X=y.call(C,F,F.depth))&&(z=X.length)){for(var z,X,J;--z>=0;)L.push(J=X[z]),J.parent=F,J.depth=F.depth+1;w&&(F.value=0),F.children=X}else w&&(F.value=+w.call(C,F,F.depth)||0),delete F.children;return Fo(E,function(K){var ee,Me;h&&(ee=K.children)&&ee.sort(h),w&&(Me=K.parent)&&(Me.value+=K.value)}),I}return C.sort=function(E){return arguments.length?(h=E,C):h},C.children=function(E){return arguments.length?(y=E,C):y},C.value=function(E){return arguments.length?(w=E,C):w},C.revalue=function(E){return w&&(Qf(E,function(L){L.children&&(L.value=0)}),Fo(E,function(L){var I;L.children||(L.value=+w.call(C,L,L.depth)||0),(I=L.parent)&&(I.value+=L.value)})),E},C};function _u(h,y){return e.rebind(h,y,"sort","children","value"),h.nodes=h,h.links=e_,h}function Qf(h,y){for(var w=[h];(h=w.pop())!=null;)if(y(h),(E=h.children)&&(C=E.length))for(var C,E;--C>=0;)w.push(E[C])}function Fo(h,y){for(var w=[h],C=[];(h=w.pop())!=null;)if(C.push(h),(I=h.children)&&(L=I.length))for(var E=-1,L,I;++E<L;)w.push(I[E]);for(;(h=C.pop())!=null;)y(h)}function $5(h){return h.children}function Q5(h){return h.value}function K5(h,y){return y.value-h.value}function e_(h){return e.merge(h.map(function(y){return(y.children||[]).map(function(w){return{source:y,target:w}})}))}e.layout.partition=function(){var h=e.layout.hierarchy(),y=[1,1];function w(L,I,F,z){var X=L.children;if(L.x=I,L.y=L.depth*z,L.dx=F,L.dy=z,X&&(K=X.length)){var J=-1,K,ee,Me;for(F=L.value?F/L.value:0;++J<K;)w(ee=X[J],I,Me=ee.value*F,z),I+=Me}}function C(L){var I=L.children,F=0;if(I&&(X=I.length))for(var z=-1,X;++z<X;)F=Math.max(F,C(I[z]));return 1+F}function E(L,I){var F=h.call(this,L,I);return w(F[0],0,y[0],y[1]/C(F[0])),F}return E.size=function(L){return arguments.length?(y=L,E):y},_u(E,h)},e.layout.pie=function(){var h=Number,y=qv,w=0,C=Wr,E=0;function L(I){var F=I.length,z=I.map(function(Fe,Re){return+h.call(L,Fe,Re)}),X=+(typeof w=="function"?w.apply(this,arguments):w),J=(typeof C=="function"?C.apply(this,arguments):C)-X,K=Math.min(Math.abs(J)/F,+(typeof E=="function"?E.apply(this,arguments):E)),ee=K*(J<0?-1:1),Me=e.sum(z),qe=Me?(J-F*ee)/Me:0,ne=e.range(F),he=[],we;return y!=null&&ne.sort(y===qv?function(Fe,Re){return z[Re]-z[Fe]}:function(Fe,Re){return y(I[Fe],I[Re])}),ne.forEach(function(Fe){he[Fe]={data:I[Fe],value:we=z[Fe],startAngle:X,endAngle:X+=we*qe+ee,padAngle:K}}),he}return L.value=function(I){return arguments.length?(h=I,L):h},L.sort=function(I){return arguments.length?(y=I,L):y},L.startAngle=function(I){return arguments.length?(w=I,L):w},L.endAngle=function(I){return arguments.length?(C=I,L):C},L.padAngle=function(I){return arguments.length?(E=I,L):E},L};var qv={};e.layout.stack=function(){var h=$,y=Kf,w=md,C=t_,E=Fv,L=r_;function I(F,z){if(!(qe=F.length))return F;var X=F.map(function(Fe,Re){return h.call(I,Fe,Re)}),J=X.map(function(Fe){return Fe.map(function(Re,me){return[E.call(I,Re,me),L.call(I,Re,me)]})}),K=y.call(I,J,z);X=e.permute(X,K),J=e.permute(J,K);var ee=w.call(I,J,z),Me=X[0].length,qe,ne,he,we;for(he=0;he<Me;++he)for(C.call(I,X[0][he],we=ee[he],J[0][he][1]),ne=1;ne<qe;++ne)C.call(I,X[ne][he],we+=J[ne-1][he][1],J[ne][he][1]);return F}return I.values=function(F){return arguments.length?(h=F,I):h},I.order=function(F){return arguments.length?(y=typeof F=="function"?F:hy.get(F)||Kf,I):y},I.offset=function(F){return arguments.length?(w=typeof F=="function"?F:Rv.get(F)||md,I):w},I.x=function(F){return arguments.length?(E=F,I):E},I.y=function(F){return arguments.length?(L=F,I):L},I.out=function(F){return arguments.length?(C=F,I):C},I};function Fv(h){return h.x}function r_(h){return h.y}function t_(h,y,w){h.y0=y,h.y=w}var hy=e.map({"inside-out":function(h){var y=h.length,w,C,E=h.map(dy),L=h.map(a_),I=e.range(y).sort(function(K,ee){return E[K]-E[ee]}),F=0,z=0,X=[],J=[];for(w=0;w<y;++w)C=I[w],F<z?(F+=L[C],X.push(C)):(z+=L[C],J.push(C));return J.reverse().concat(X)},reverse:function(h){return e.range(h.length).reverse()},default:Kf}),Rv=e.map({silhouette:function(h){var y=h.length,w=h[0].length,C=[],E=0,L,I,F,z=[];for(I=0;I<w;++I){for(L=0,F=0;L<y;L++)F+=h[L][I][1];F>E&&(E=F),C.push(F)}for(I=0;I<w;++I)z[I]=(E-C[I])/2;return z},wiggle:function(h){var y=h.length,w=h[0],C=w.length,E,L,I,F,z,X,J,K,ee,Me=[];for(Me[0]=K=ee=0,L=1;L<C;++L){for(E=0,F=0;E<y;++E)F+=h[E][L][1];for(E=0,z=0,J=w[L][0]-w[L-1][0];E<y;++E){for(I=0,X=(h[E][L][1]-h[E][L-1][1])/(2*J);I<E;++I)X+=(h[I][L][1]-h[I][L-1][1])/J;z+=X*h[E][L][1]}Me[L]=K-=F?z/F*J:0,K<ee&&(ee=K)}for(L=0;L<C;++L)Me[L]-=ee;return Me},expand:function(h){var y=h.length,w=h[0].length,C=1/y,E,L,I,F=[];for(L=0;L<w;++L){for(E=0,I=0;E<y;E++)I+=h[E][L][1];if(I)for(E=0;E<y;E++)h[E][L][1]/=I;else for(E=0;E<y;E++)h[E][L][1]=C}for(L=0;L<w;++L)F[L]=0;return F},zero:md});function Kf(h){return e.range(h.length)}function md(h){for(var y=-1,w=h[0].length,C=[];++y<w;)C[y]=0;return C}function dy(h){for(var y=1,w=0,C=h[0][1],E,L=h.length;y<L;++y)(E=h[y][1])>C&&(w=y,C=E);return w}function a_(h){return h.reduce(n_,0)}function n_(h,y){return h+y[1]}e.layout.histogram=function(){var h=!0,y=Number,w=o_,C=i_;function E(L,ee){for(var F=[],z=L.map(y,this),X=w.call(this,z,ee),J=C.call(this,X,z,ee),K,ee=-1,Me=z.length,qe=J.length-1,ne=h?1:1/Me,he;++ee<qe;)K=F[ee]=[],K.dx=J[ee+1]-(K.x=J[ee]),K.y=0;if(qe>0)for(ee=-1;++ee<Me;)he=z[ee],he>=X[0]&&he<=X[1]&&(K=F[e.bisect(J,he,1,qe)-1],K.y+=ne,K.push(L[ee]));return F}return E.value=function(L){return arguments.length?(y=L,E):y},E.range=function(L){return arguments.length?(w=Vt(L),E):w},E.bins=function(L){return arguments.length?(C=typeof L=="number"?function(I){return py(I,L)}:Vt(L),E):C},E.frequency=function(L){return arguments.length?(h=!!L,E):h},E};function i_(h,y){return py(h,Math.ceil(Math.log(y.length)/Math.LN2+1))}function py(h,y){for(var w=-1,C=+h[0],E=(h[1]-C)/y,L=[];++w<=y;)L[w]=E*w+C;return L}function o_(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(yd),y=0,w=[1,1],C;function E(L,I){var F=h.call(this,L,I),z=F[0],X=w[0],J=w[1],K=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(z.x=z.y=0,Fo(z,function(Me){Me.r=+K(Me.value)}),Fo(z,yy),y){var ee=y*(C?1:Math.max(2*z.r/X,2*z.r/J))/2;Fo(z,function(Me){Me.r+=ee}),Fo(z,yy),Fo(z,function(Me){Me.r-=ee})}return gy(z,X/2,J/2,C?1:1/Math.max(2*z.r/X,2*z.r/J)),F}return E.size=function(L){return arguments.length?(w=L,E):w},E.radius=function(L){return arguments.length?(C=L==null||typeof L=="function"?L:+L,E):C},E.padding=function(L){return arguments.length?(y=+L,E):y},_u(E,h)};function yd(h,y){return h.value-y.value}function gd(h,y){var w=h._pack_next;h._pack_next=y,y._pack_prev=h,y._pack_next=w,w._pack_prev=y}function bd(h,y){h._pack_next=y,y._pack_prev=h}function my(h,y){var w=y.x-h.x,C=y.y-h.y,E=h.r+y.r;return .999*E*E>w*w+C*C}function yy(h){if(!(y=h.children)||!(ee=y.length))return;var y,w=1/0,C=-1/0,E=1/0,L=-1/0,I,F,z,X,J,K,ee;function Me(me){w=Math.min(me.x-me.r,w),C=Math.max(me.x+me.r,C),E=Math.min(me.y-me.r,E),L=Math.max(me.y+me.r,L)}if(y.forEach(l_),I=y[0],I.x=-I.r,I.y=0,Me(I),ee>1&&(F=y[1],F.x=F.r,F.y=0,Me(F),ee>2))for(z=y[2],u_(I,F,z),Me(z),gd(I,z),I._pack_prev=z,gd(z,F),F=I._pack_next,X=3;X<ee;X++){u_(I,F,z=y[X]);var qe=0,ne=1,he=1;for(J=F._pack_next;J!==F;J=J._pack_next,ne++)if(my(J,z)){qe=1;break}if(qe==1)for(K=I._pack_prev;K!==J._pack_prev&&!my(K,z);K=K._pack_prev,he++);qe?(ne<he||ne==he&&F.r<I.r?bd(I,F=J):bd(I=K,F),X--):(gd(I,z),F=z,Me(z))}var we=(w+C)/2,Fe=(E+L)/2,Re=0;for(X=0;X<ee;X++)z=y[X],z.x-=we,z.y-=Fe,Re=Math.max(Re,z.r+Math.sqrt(z.x*z.x+z.y*z.y));h.r=Re,y.forEach(s_)}function l_(h){h._pack_next=h._pack_prev=h}function s_(h){delete h._pack_next,delete h._pack_prev}function gy(h,y,w,C){var E=h.children;if(h.x=y+=C*h.x,h.y=w+=C*h.y,h.r*=C,E)for(var L=-1,I=E.length;++L<I;)gy(E[L],y,w,C)}function u_(h,y,w){var C=h.r+w.r,E=y.x-h.x,L=y.y-h.y;if(C&&(E||L)){var I=y.r+w.r,F=E*E+L*L;I*=I,C*=C;var z=.5+(C-I)/(2*F),X=Math.sqrt(Math.max(0,2*I*(C+F)-(C-=F)*C-I*I))/(2*F);w.x=h.x+z*E+X*L,w.y=h.y+z*L-X*E}else w.x=h.x+C,w.y=h.y}e.layout.tree=function(){var h=e.layout.hierarchy().sort(null).value(null),y=by,w=[1,1],C=null;function E(J,K){var ee=h.call(this,J,K),Me=ee[0],qe=L(Me);if(Fo(qe,I),qe.parent.m=-qe.z,Qf(qe,F),C)Qf(Me,X);else{var ne=Me,he=Me,we=Me;Qf(Me,function(cr){cr.x<ne.x&&(ne=cr),cr.x>he.x&&(he=cr),cr.depth>we.depth&&(we=cr)});var Fe=y(ne,he)/2-ne.x,Re=w[0]/(he.x+y(he,ne)/2+Fe),me=w[1]/(we.depth||1);Qf(Me,function(cr){cr.x=(cr.x+Fe)*Re,cr.y=cr.depth*me})}return ee}function L(J){for(var K={A:null,children:[J]},ee=[K],Me;(Me=ee.pop())!=null;)for(var qe=Me.children,ne,he=0,we=qe.length;he<we;++he)ee.push((qe[he]=ne={_:qe[he],parent:Me,children:(ne=qe[he].children)&&ne.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:he}).a=ne);return K.children[0]}function I(J){var K=J.children,ee=J.parent.children,Me=J.i?ee[J.i-1]:null;if(K.length){xd(J);var qe=(K[0].z+K[K.length-1].z)/2;Me?(J.z=Me.z+y(J._,Me._),J.m=J.z-qe):J.z=qe}else Me&&(J.z=Me.z+y(J._,Me._));J.parent.A=z(J,Me,J.parent.A||ee[0])}function F(J){J._.x=J.z+J.parent.m,J.m+=J.parent.m}function z(J,K,ee){if(K){for(var Me=J,qe=J,ne=K,he=Me.parent.children[0],we=Me.m,Fe=qe.m,Re=ne.m,me=he.m,cr;ne=_y(ne),Me=xy(Me),ne&&Me;)he=xy(he),qe=_y(qe),qe.a=J,cr=ne.z+Re-Me.z-we+y(ne._,Me._),cr>0&&(f_(wy(ne,J,ee),J,cr),we+=cr,Fe+=cr),Re+=ne.m,we+=Me.m,me+=he.m,Fe+=qe.m;ne&&!_y(qe)&&(qe.t=ne,qe.m+=Re-Fe),Me&&!xy(he)&&(he.t=Me,he.m+=we-me,ee=J)}return ee}function X(J){J.x*=w[0],J.y=J.depth*w[1]}return E.separation=function(J){return arguments.length?(y=J,E):y},E.size=function(J){return arguments.length?(C=(w=J)==null?X:null,E):C?null:w},E.nodeSize=function(J){return arguments.length?(C=(w=J)==null?null:X,E):C?w:null},_u(E,h)};function by(h,y){return h.parent==y.parent?1:2}function xy(h){var y=h.children;return y.length?y[0]:h.t}function _y(h){var y=h.children,w;return(w=y.length)?y[w-1]:h.t}function f_(h,y,w){var C=w/(y.i-h.i);y.c-=C,y.s+=w,h.c+=C,y.z+=w,y.m+=w}function xd(h){for(var y=0,w=0,C=h.children,E=C.length,L;--E>=0;)L=C[E],L.z+=y,L.m+=y,y+=L.s+(w+=L.c)}function wy(h,y,w){return h.a.parent===y.parent?h.a:w}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),y=by,w=[1,1],C=!1;function E(L,I){var F=h.call(this,L,I),z=F[0],X,J=0;Fo(z,function(ne){var he=ne.children;he&&he.length?(ne.x=Ay(he),ne.y=Ro(he)):(ne.x=X?J+=y(ne,X):0,ne.y=0,X=ne)});var K=Ty(z),ee=My(z),Me=K.x-y(K,ee)/2,qe=ee.x+y(ee,K)/2;return Fo(z,C?function(ne){ne.x=(ne.x-z.x)*w[0],ne.y=(z.y-ne.y)*w[1]}:function(ne){ne.x=(ne.x-Me)/(qe-Me)*w[0],ne.y=(1-(z.y?ne.y/z.y:1))*w[1]}),F}return E.separation=function(L){return arguments.length?(y=L,E):y},E.size=function(L){return arguments.length?(C=(w=L)==null,E):C?null:w},E.nodeSize=function(L){return arguments.length?(C=(w=L)!=null,E):C?w:null},_u(E,h)};function Ro(h){return 1+e.max(h,function(y){return y.y})}function Ay(h){return h.reduce(function(y,w){return y+w.x},0)/h.length}function Ty(h){var y=h.children;return y&&y.length?Ty(y[0]):h}function My(h){var y=h.children,w;return y&&(w=y.length)?My(y[w-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),y=Math.round,w=[1,1],C=null,E=_d,L=!1,I,F="squarify",z=.5*(1+Math.sqrt(5));function X(ne,he){for(var we=-1,Fe=ne.length,Re,me;++we<Fe;)me=(Re=ne[we]).value*(he<0?0:he),Re.area=isNaN(me)||me<=0?0:me}function J(ne){var he=ne.children;if(he&&he.length){var we=E(ne),Fe=[],Re=he.slice(),me,cr=1/0,Mr,Pr=F==="slice"?we.dx:F==="dice"?we.dy:F==="slice-dice"?ne.depth&1?we.dy:we.dx:Math.min(we.dx,we.dy),Yr;for(X(Re,we.dx*we.dy/ne.value),Fe.area=0;(Yr=Re.length)>0;)Fe.push(me=Re[Yr-1]),Fe.area+=me.area,F!=="squarify"||(Mr=ee(Fe,Pr))<=cr?(Re.pop(),cr=Mr):(Fe.area-=Fe.pop().area,Me(Fe,Pr,we,!1),Pr=Math.min(we.dx,we.dy),Fe.length=Fe.area=0,cr=1/0);Fe.length&&(Me(Fe,Pr,we,!0),Fe.length=Fe.area=0),he.forEach(J)}}function K(ne){var he=ne.children;if(he&&he.length){var we=E(ne),Fe=he.slice(),Re,me=[];for(X(Fe,we.dx*we.dy/ne.value),me.area=0;Re=Fe.pop();)me.push(Re),me.area+=Re.area,Re.z!=null&&(Me(me,Re.z?we.dx:we.dy,we,!Fe.length),me.length=me.area=0);he.forEach(K)}}function ee(ne,he){for(var we=ne.area,Fe,Re=0,me=1/0,cr=-1,Mr=ne.length;++cr<Mr;)(Fe=ne[cr].area)&&(Fe<me&&(me=Fe),Fe>Re&&(Re=Fe));return we*=we,he*=he,we?Math.max(he*Re*z/we,we/(he*me*z)):1/0}function Me(ne,he,we,Fe){var Re=-1,me=ne.length,cr=we.x,Mr=we.y,Pr=he?y(ne.area/he):0,Yr;if(he==we.dx){for((Fe||Pr>we.dy)&&(Pr=we.dy);++Re<me;)Yr=ne[Re],Yr.x=cr,Yr.y=Mr,Yr.dy=Pr,cr+=Yr.dx=Math.min(we.x+we.dx-cr,Pr?y(Yr.area/Pr):0);Yr.z=!0,Yr.dx+=we.x+we.dx-cr,we.y+=Pr,we.dy-=Pr}else{for((Fe||Pr>we.dx)&&(Pr=we.dx);++Re<me;)Yr=ne[Re],Yr.x=cr,Yr.y=Mr,Yr.dx=Pr,Mr+=Yr.dy=Math.min(we.y+we.dy-Mr,Pr?y(Yr.area/Pr):0);Yr.z=!1,Yr.dy+=we.y+we.dy-Mr,we.x+=Pr,we.dx-=Pr}}function qe(ne){var he=I||h(ne),we=he[0];return we.x=we.y=0,we.value?(we.dx=w[0],we.dy=w[1]):we.dx=we.dy=0,I&&h.revalue(we),X([we],we.dx*we.dy/we.value),(I?K:J)(we),L&&(I=he),he}return qe.size=function(ne){return arguments.length?(w=ne,qe):w},qe.padding=function(ne){if(!arguments.length)return C;function he(Re){var me=ne.call(qe,Re,Re.depth);return me==null?_d(Re):Sy(Re,typeof me=="number"?[me,me,me,me]:me)}function we(Re){return Sy(Re,ne)}var Fe;return E=(C=ne)==null?_d:(Fe=typeof ne)=="function"?he:(Fe==="number"&&(ne=[ne,ne,ne,ne]),we),qe},qe.round=function(ne){return arguments.length?(y=ne?Math.round:Number,qe):y!=Number},qe.sticky=function(ne){return arguments.length?(L=ne,I=null,qe):L},qe.ratio=function(ne){return arguments.length?(z=ne,qe):z},qe.mode=function(ne){return arguments.length?(F=ne+"",qe):F},_u(qe,h)};function _d(h){return{x:h.x,y:h.y,dx:h.dx,dy:h.dy}}function Sy(h,y){var w=h.x+y[3],C=h.y+y[0],E=h.dx-y[1]-y[3],L=h.dy-y[0]-y[2];return E<0&&(w+=E/2,E=0),L<0&&(C+=L/2,L=0),{x:w,y:C,dx:E,dy:L}}e.random={normal:function(h,y){var w=arguments.length;return w<2&&(y=1),w<1&&(h=0),function(){var C,E,L;do C=Math.random()*2-1,E=Math.random()*2-1,L=C*C+E*E;while(!L||L>1);return h+y*C*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var y=e.random.irwinHall(h);return function(){return y()/h}},irwinHall:function(h){return function(){for(var y=0,w=0;w<h;w++)y+=Math.random();return y}}},e.scale={};function Pv(h){var y=h[0],w=h[h.length-1];return y<w?[y,w]:[w,y]}function Nv(h){return h.rangeExtent?h.rangeExtent():Pv(h.range())}function c_(h,y,w,C){var E=w(h[0],h[1]),L=C(y[0],y[1]);return function(I){return L(E(I))}}function wu(h,y){var w=0,C=h.length-1,E=h[w],L=h[C],I;return L<E&&(I=w,w=C,C=I,I=E,E=L,L=I),h[w]=y.floor(E),h[C]=y.ceil(L),h}function Pn(h){return h?{floor:function(y){return Math.floor(y/h)*h},ceil:function(y){return Math.ceil(y/h)*h}}:Au}var Au={floor:$,ceil:$};function Tu(h,y,w,C){var E=[],L=[],I=0,F=Math.min(h.length,y.length)-1;for(h[F]<h[0]&&(h=h.slice().reverse(),y=y.slice().reverse());++I<=F;)E.push(w(h[I-1],h[I])),L.push(C(y[I-1],y[I]));return function(z){var X=e.bisect(h,z,1,F)-1;return L[X](E[X](z))}}e.scale.linear=function(){return ky([0,1],[0,1],Wl,!1)};function ky(h,y,w,C){var E,L;function I(){var z=Math.min(h.length,y.length)>2?Tu:c_,X=C?ly:oy;return E=z(h,y,X,w),L=z(y,h,X,Wl),F}function F(z){return E(z)}return F.invert=function(z){return L(z)},F.domain=function(z){return arguments.length?(h=z.map(Number),I()):h},F.range=function(z){return arguments.length?(y=z,I()):y},F.rangeRound=function(z){return F.range(z).interpolate(vd)},F.clamp=function(z){return arguments.length?(C=z,I()):C},F.interpolate=function(z){return arguments.length?(w=z,I()):w},F.ticks=function(z){return ec(h,z)},F.tickFormat=function(z,X){return d3_scale_linearTickFormat(h,z,X)},F.nice=function(z){return wd(h,z),I()},F.copy=function(){return ky(h,y,w,C)},I()}function Rs(h,y){return e.rebind(h,y,"range","rangeRound","interpolate","clamp")}function wd(h,y){return wu(h,Pn(Xl(h,y)[2])),wu(h,Pn(Xl(h,y)[2])),h}function Xl(h,y){y==null&&(y=10);var w=Pv(h),C=w[1]-w[0],E=Math.pow(10,Math.floor(Math.log(C/y)/Math.LN10)),L=y/C*E;return L<=.15?E*=10:L<=.35?E*=5:L<=.75&&(E*=2),w[0]=Math.ceil(w[0]/E)*E,w[1]=Math.floor(w[1]/E)*E+E*.5,w[2]=E,w}function ec(h,y){return e.range.apply(e,Xl(h,y))}var Ad={s:1,g:1,p:1,r:1,e:1};function Iv(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function Cy(h,y){var w=Iv(y[2]);return h in Ad?Math.abs(w-Iv(Math.max(b(y[0]),b(y[1]))))+ +(h!=="e"):w-(h==="%")*2}e.scale.log=function(){return Ov(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Ov(h,y,w,C){function E(F){return(w?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(y)}function L(F){return w?Math.pow(y,F):-Math.pow(y,-F)}function I(F){return h(E(F))}return I.invert=function(F){return L(h.invert(F))},I.domain=function(F){return arguments.length?(w=F[0]>=0,h.domain((C=F.map(Number)).map(E)),I):C},I.base=function(F){return arguments.length?(y=+F,h.domain(C.map(E)),I):y},I.nice=function(){var F=wu(C.map(E),w?Math:zv);return h.domain(F),C=F.map(L),I},I.ticks=function(){var F=Pv(C),z=[],X=F[0],J=F[1],K=Math.floor(E(X)),ee=Math.ceil(E(J)),Me=y%1?2:y;if(isFinite(ee-K)){if(w){for(;K<ee;K++)for(var qe=1;qe<Me;qe++)z.push(L(K)*qe);z.push(L(K))}else for(z.push(L(K));K++<ee;)for(var qe=Me-1;qe>0;qe--)z.push(L(K)*qe);for(K=0;z[K]<X;K++);for(ee=z.length;z[ee-1]>J;ee--);z=z.slice(K,ee)}return z},I.copy=function(){return Ov(h.copy(),y,w,C)},Rs(I,h)}var zv={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return Td(e.scale.linear(),1,[0,1])};function Td(h,y,w){var C=rc(y),E=rc(1/y);function L(I){return h(C(I))}return L.invert=function(I){return E(h.invert(I))},L.domain=function(I){return arguments.length?(h.domain((w=I.map(Number)).map(C)),L):w},L.ticks=function(I){return ec(w,I)},L.tickFormat=function(I,F){return d3_scale_linearTickFormat(w,I,F)},L.nice=function(I){return L.domain(wd(w,I))},L.exponent=function(I){return arguments.length?(C=rc(y=I),E=rc(1/y),h.domain(w.map(C)),L):y},L.copy=function(){return Td(h.copy(),y,w)},Rs(L,h)}function rc(h){return function(y){return y<0?-Math.pow(-y,h):Math.pow(y,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Md([],{t:"range",a:[[]]})};function Md(h,y){var w,C,E;function L(F){return C[((w.get(F)||(y.t==="range"?w.set(F,h.push(F)):NaN))-1)%C.length]}function I(F,z){return e.range(h.length).map(function(X){return F+z*X})}return L.domain=function(F){if(!arguments.length)return h;h=[],w=new x;for(var z=-1,X=F.length,J;++z<X;)w.has(J=F[z])||w.set(J,h.push(J));return L[y.t].apply(L,y.a)},L.range=function(F){return arguments.length?(C=F,E=0,y={t:"range",a:arguments},L):C},L.rangePoints=function(F,z){arguments.length<2&&(z=0);var X=F[0],J=F[1],K=h.length<2?(X=(X+J)/2,0):(J-X)/(h.length-1+z);return C=I(X+K*z/2,K),E=0,y={t:"rangePoints",a:arguments},L},L.rangeRoundPoints=function(F,z){arguments.length<2&&(z=0);var X=F[0],J=F[1],K=h.length<2?(X=J=Math.round((X+J)/2),0):(J-X)/(h.length-1+z)|0;return C=I(X+Math.round(K*z/2+(J-X-(h.length-1+z)*K)/2),K),E=0,y={t:"rangeRoundPoints",a:arguments},L},L.rangeBands=function(F,z,X){arguments.length<2&&(z=0),arguments.length<3&&(X=z);var J=F[1]<F[0],K=F[J-0],ee=F[1-J],Me=(ee-K)/(h.length-z+2*X);return C=I(K+Me*X,Me),J&&C.reverse(),E=Me*(1-z),y={t:"rangeBands",a:arguments},L},L.rangeRoundBands=function(F,z,X){arguments.length<2&&(z=0),arguments.length<3&&(X=z);var J=F[1]<F[0],K=F[J-0],ee=F[1-J],Me=Math.floor((ee-K)/(h.length-z+2*X));return C=I(K+Math.round((ee-K-(h.length-z)*Me)/2),Me),J&&C.reverse(),E=Math.round(Me*(1-z)),y={t:"rangeRoundBands",a:arguments},L},L.rangeBand=function(){return E},L.rangeExtent=function(){return Pv(y.a[0])},L.copy=function(){return Md(h,y)},L.domain(h)}e.scale.category10=function(){return e.scale.ordinal().range(Ey)},e.scale.category20=function(){return e.scale.ordinal().range(Ly)},e.scale.category20b=function(){return e.scale.ordinal().range(Sd)},e.scale.category20c=function(){return e.scale.ordinal().range(kd)};var Ey=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Ts),Ly=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Ts),Sd=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Ts),kd=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Ts);e.scale.quantile=function(){return Cd([],[])};function Cd(h,y){var w;function C(){var L=0,I=y.length;for(w=[];++L<I;)w[L-1]=e.quantile(h,L/I);return E}function E(L){if(!isNaN(L=+L))return y[e.bisect(w,L)]}return E.domain=function(L){return arguments.length?(h=L.map(v).filter(d).sort(c),C()):h},E.range=function(L){return arguments.length?(y=L,C()):y},E.quantiles=function(){return w},E.invertExtent=function(L){return L=y.indexOf(L),L<0?[NaN,NaN]:[L>0?w[L-1]:h[0],L<w.length?w[L]:h[h.length-1]]},E.copy=function(){return Cd(h,y)},C()}e.scale.quantize=function(){return Ed(0,1,[0,1])};function Ed(h,y,w){var C,E;function L(F){return w[Math.max(0,Math.min(E,Math.floor(C*(F-h))))]}function I(){return C=w.length/(y-h),E=w.length-1,L}return L.domain=function(F){return arguments.length?(h=+F[0],y=+F[F.length-1],I()):[h,y]},L.range=function(F){return arguments.length?(w=F,I()):w},L.invertExtent=function(F){return F=w.indexOf(F),F=F<0?NaN:F/C+h,[F,F+1/C]},L.copy=function(){return Ed(h,y,w)},I()}e.scale.threshold=function(){return Ld([.5],[0,1])};function Ld(h,y){function w(C){if(C<=C)return y[e.bisect(h,C)]}return w.domain=function(C){return arguments.length?(h=C,w):h},w.range=function(C){return arguments.length?(y=C,w):y},w.invertExtent=function(C){return C=y.indexOf(C),[h[C-1],h[C]]},w.copy=function(){return Ld(h,y)},w}e.scale.identity=function(){return Dd([0,1])};function Dd(h){function y(w){return+w}return y.invert=y,y.domain=y.range=function(w){return arguments.length?(h=w.map(y),y):h},y.ticks=function(w){return ec(h,w)},y.tickFormat=function(w,C){return d3_scale_linearTickFormat(h,w,C)},y.copy=function(){return Dd(h)},y}e.svg={};function qd(){return 0}e.svg.arc=function(){var h=Dy,y=Fd,w=qd,C=tc,E=Bv,L=Rd,I=Pd;function F(){var X=Math.max(0,+h.apply(this,arguments)),J=Math.max(0,+y.apply(this,arguments)),K=E.apply(this,arguments)-$r,ee=L.apply(this,arguments)-$r,Me=Math.abs(ee-K),qe=K>ee?0:1;if(J<X&&(ne=J,J=X,X=ne),Me>=tt)return z(J,qe)+(X?z(X,1-qe):"")+"Z";var ne,he,we,Fe,Re=0,me=0,cr,Mr,Pr,Yr,it,ot,qt,ct,kt=[];if((Fe=(+I.apply(this,arguments)||0)/2)&&(we=C===tc?Math.sqrt(X*X+J*J):+C.apply(this,arguments),qe||(me*=-1),J&&(me=Ln(we/J*Math.sin(Fe))),X&&(Re=Ln(we/X*Math.sin(Fe)))),J){cr=J*Math.cos(K+me),Mr=J*Math.sin(K+me),Pr=J*Math.cos(ee-me),Yr=J*Math.sin(ee-me);var ha=Math.abs(ee-K-2*me)<=Ie?0:1;if(me&&ac(cr,Mr,Pr,Yr)===qe^ha){var an=(K+ee)/2;cr=J*Math.cos(an),Mr=J*Math.sin(an),Pr=Yr=null}}else cr=Mr=0;if(X){it=X*Math.cos(ee-Re),ot=X*Math.sin(ee-Re),qt=X*Math.cos(K+Re),ct=X*Math.sin(K+Re);var _a=Math.abs(K-ee+2*Re)<=Ie?0:1;if(Re&&ac(it,ot,qt,ct)===1-qe^_a){var zr=(K+ee)/2;it=X*Math.cos(zr),ot=X*Math.sin(zr),qt=ct=null}}else it=ot=0;if(Me>ye&&(ne=Math.min(Math.abs(J-X)/2,+w.apply(this,arguments)))>.001){he=X<J^qe?0:1;var Ft=ne,Ut=ne;if(Me<Ie){var ua=qt==null?[it,ot]:Pr==null?[cr,Mr]:Hf([cr,Mr],[qt,ct],[Pr,Yr],[it,ot]),Ba=cr-ua[0],cn=Mr-ua[1],Hn=Pr-ua[0],Kn=Yr-ua[1],gi=1/Math.sin(Math.acos((Ba*Hn+cn*Kn)/(Math.sqrt(Ba*Ba+cn*cn)*Math.sqrt(Hn*Hn+Kn*Kn)))/2),G=Math.sqrt(ua[0]*ua[0]+ua[1]*ua[1]);Ut=Math.min(ne,(X-G)/(gi-1)),Ft=Math.min(ne,(J-G)/(gi+1))}if(Pr!=null){var ie=nc(qt==null?[it,ot]:[qt,ct],[cr,Mr],J,Ft,qe),ue=nc([Pr,Yr],[it,ot],J,Ft,qe);ne===Ft?kt.push("M",ie[0],"A",Ft,",",Ft," 0 0,",he," ",ie[1],"A",J,",",J," 0 ",1-qe^ac(ie[1][0],ie[1][1],ue[1][0],ue[1][1]),",",qe," ",ue[1],"A",Ft,",",Ft," 0 0,",he," ",ue[0]):kt.push("M",ie[0],"A",Ft,",",Ft," 0 1,",he," ",ue[0])}else kt.push("M",cr,",",Mr);if(qt!=null){var We=nc([cr,Mr],[qt,ct],X,-Ut,qe),Ke=nc([it,ot],Pr==null?[cr,Mr]:[Pr,Yr],X,-Ut,qe);ne===Ut?kt.push("L",Ke[0],"A",Ut,",",Ut," 0 0,",he," ",Ke[1],"A",X,",",X," 0 ",qe^ac(Ke[1][0],Ke[1][1],We[1][0],We[1][1]),",",1-qe," ",We[1],"A",Ut,",",Ut," 0 0,",he," ",We[0]):kt.push("L",Ke[0],"A",Ut,",",Ut," 0 0,",he," ",We[0])}else kt.push("L",it,",",ot)}else kt.push("M",cr,",",Mr),Pr!=null&&kt.push("A",J,",",J," 0 ",ha,",",qe," ",Pr,",",Yr),kt.push("L",it,",",ot),qt!=null&&kt.push("A",X,",",X," 0 ",_a,",",1-qe," ",qt,",",ct);return kt.push("Z"),kt.join("")}function z(X,J){return"M0,"+X+"A"+X+","+X+" 0 1,"+J+" 0,"+-X+"A"+X+","+X+" 0 1,"+J+" 0,"+X}return F.innerRadius=function(X){return arguments.length?(h=Vt(X),F):h},F.outerRadius=function(X){return arguments.length?(y=Vt(X),F):y},F.cornerRadius=function(X){return arguments.length?(w=Vt(X),F):w},F.padRadius=function(X){return arguments.length?(C=X==tc?tc:Vt(X),F):C},F.startAngle=function(X){return arguments.length?(E=Vt(X),F):E},F.endAngle=function(X){return arguments.length?(L=Vt(X),F):L},F.padAngle=function(X){return arguments.length?(I=Vt(X),F):I},F.centroid=function(){var X=(+h.apply(this,arguments)+ +y.apply(this,arguments))/2,J=(+E.apply(this,arguments)+ +L.apply(this,arguments))/2-$r;return[Math.cos(J)*X,Math.sin(J)*X]},F};var tc="auto";function Dy(h){return h.innerRadius}function Fd(h){return h.outerRadius}function Bv(h){return h.startAngle}function Rd(h){return h.endAngle}function Pd(h){return h&&h.padAngle}function ac(h,y,w,C){return(h-w)*y-(y-C)*h>0?0:1}function nc(h,y,w,C,E){var L=h[0]-y[0],I=h[1]-y[1],F=(E?C:-C)/Math.sqrt(L*L+I*I),z=F*I,X=-F*L,J=h[0]+z,K=h[1]+X,ee=y[0]+z,Me=y[1]+X,qe=(J+ee)/2,ne=(K+Me)/2,he=ee-J,we=Me-K,Fe=he*he+we*we,Re=w-C,me=J*Me-ee*K,cr=(we<0?-1:1)*Math.sqrt(Math.max(0,Re*Re*Fe-me*me)),Mr=(me*we-he*cr)/Fe,Pr=(-me*he-we*cr)/Fe,Yr=(me*we+he*cr)/Fe,it=(-me*he+we*cr)/Fe,ot=Mr-qe,qt=Pr-ne,ct=Yr-qe,kt=it-ne;return ot*ot+qt*qt>ct*ct+kt*kt&&(Mr=Yr,Pr=it),[[Mr-z,Pr-X],[Mr*w/Re,Pr*w/Re]]}function Uv(){return!0}function Nd(h){var y=Hl,w=du,C=Uv,E=Ni,L=E.key,I=.7;function F(z){var X=[],J=[],K=-1,ee=z.length,Me,qe=Vt(y),ne=Vt(w);function he(){X.push("M",E(h(J),I))}for(;++K<ee;)C.call(this,Me=z[K],K)?J.push([+qe.call(this,Me,K),+ne.call(this,Me,K)]):J.length&&(he(),J=[]);return J.length&&he(),X.length?X.join(""):null}return F.x=function(z){return arguments.length?(y=z,F):y},F.y=function(z){return arguments.length?(w=z,F):w},F.defined=function(z){return arguments.length?(C=z,F):C},F.interpolate=function(z){return arguments.length?(typeof z=="function"?L=E=z:L=(E=Gv.get(z)||Ni).key,F):L},F.tension=function(z){return arguments.length?(I=z,F):I},F}e.svg.line=function(){return Nd($)};var Gv=e.map({linear:Ni,"linear-closed":Hv,step:ic,"step-before":Vv,"step-after":Mu,basis:Ns,"basis-open":Cu,"basis-closed":Eu,bundle:Id,cardinal:Su,"cardinal-open":fl,"cardinal-closed":Yv,monotone:qy});Gv.forEach(function(h,y){y.key=h,y.closed=/-closed$/.test(h)});function Ni(h){return h.length>1?h.join("L"):h+"Z"}function Hv(h){return h.join("L")+"Z"}function ic(h){for(var y=0,w=h.length,C=h[0],E=[C[0],",",C[1]];++y<w;)E.push("H",(C[0]+(C=h[y])[0])/2,"V",C[1]);return w>1&&E.push("H",C[0]),E.join("")}function Vv(h){for(var y=0,w=h.length,C=h[0],E=[C[0],",",C[1]];++y<w;)E.push("V",(C=h[y])[1],"H",C[0]);return E.join("")}function Mu(h){for(var y=0,w=h.length,C=h[0],E=[C[0],",",C[1]];++y<w;)E.push("H",(C=h[y])[0],"V",C[1]);return E.join("")}function fl(h,y){return h.length<4?Ni(h):h[1]+Ps(h.slice(1,-1),ku(h,y))}function Yv(h,y){return h.length<3?Hv(h):h[0]+Ps((h.push(h[0]),h),ku([h[h.length-2]].concat(h,[h[1]]),y))}function Su(h,y){return h.length<3?Ni(h):h[0]+Ps(h,ku(h,y))}function Ps(h,y){if(y.length<1||h.length!=y.length&&h.length!=y.length+2)return Ni(h);var w=h.length!=y.length,C="",E=h[0],L=h[1],I=y[0],F=I,z=1;if(w&&(C+="Q"+(L[0]-I[0]*2/3)+","+(L[1]-I[1]*2/3)+","+L[0]+","+L[1],E=h[1],z=2),y.length>1){F=y[1],L=h[z],z++,C+="C"+(E[0]+I[0])+","+(E[1]+I[1])+","+(L[0]-F[0])+","+(L[1]-F[1])+","+L[0]+","+L[1];for(var X=2;X<y.length;X++,z++)L=h[z],F=y[X],C+="S"+(L[0]-F[0])+","+(L[1]-F[1])+","+L[0]+","+L[1]}if(w){var J=h[z];C+="Q"+(L[0]+F[0]*2/3)+","+(L[1]+F[1]*2/3)+","+J[0]+","+J[1]}return C}function ku(h,y){for(var w=[],C=(1-y)/2,E,L=h[0],I=h[1],F=1,z=h.length;++F<z;)E=L,L=I,I=h[F],w.push([C*(I[0]-E[0]),C*(I[1]-E[1])]);return w}function Ns(h){if(h.length<3)return Ni(h);var y=1,w=h.length,C=h[0],E=C[0],L=C[1],I=[E,E,E,(C=h[1])[0]],F=[L,L,L,C[1]],z=[E,",",L,"L",Mi(Po,I),",",Mi(Po,F)];for(h.push(h[w-1]);++y<=w;)C=h[y],I.shift(),I.push(C[0]),F.shift(),F.push(C[1]),Zl(z,I,F);return h.pop(),z.push("L",C),z.join("")}function Cu(h){if(h.length<4)return Ni(h);for(var y=[],w=-1,C=h.length,E,L=[0],I=[0];++w<3;)E=h[w],L.push(E[0]),I.push(E[1]);for(y.push(Mi(Po,L)+","+Mi(Po,I)),--w;++w<C;)E=h[w],L.shift(),L.push(E[0]),I.shift(),I.push(E[1]),Zl(y,L,I);return y.join("")}function Eu(h){for(var y,w=-1,C=h.length,E=C+4,L,I=[],F=[];++w<4;)L=h[w%C],I.push(L[0]),F.push(L[1]);for(y=[Mi(Po,I),",",Mi(Po,F)],--w;++w<E;)L=h[w%C],I.shift(),I.push(L[0]),F.shift(),F.push(L[1]),Zl(y,I,F);return y.join("")}function Id(h,y){var w=h.length-1;if(w)for(var C=h[0][0],E=h[0][1],L=h[w][0]-C,I=h[w][1]-E,F=-1,z,X;++F<=w;)z=h[F],X=F/w,z[0]=y*z[0]+(1-y)*(C+X*L),z[1]=y*z[1]+(1-y)*(E+X*I);return Ns(h)}function Mi(h,y){return h[0]*y[0]+h[1]*y[1]+h[2]*y[2]+h[3]*y[3]}var oc=[0,2/3,1/3,0],Wv=[0,1/3,2/3,0],Po=[0,1/6,2/3,1/6];function Zl(h,y,w){h.push("C",Mi(oc,y),",",Mi(oc,w),",",Mi(Wv,y),",",Mi(Wv,w),",",Mi(Po,y),",",Mi(Po,w))}function Jl(h,y){return(y[1]-h[1])/(y[0]-h[0])}function v_(h){for(var y=0,w=h.length-1,C=[],E=h[0],L=h[1],I=C[0]=Jl(E,L);++y<w;)C[y]=(I+(I=Jl(E=L,L=h[y+1])))/2;return C[y]=I,C}function h_(h){for(var y=[],w,C,E,L,I=v_(h),F=-1,z=h.length-1;++F<z;)w=Jl(h[F],h[F+1]),b(w)<ye?I[F]=I[F+1]=0:(C=I[F]/w,E=I[F+1]/w,L=C*C+E*E,L>9&&(L=w*3/Math.sqrt(L),I[F]=L*C,I[F+1]=L*E));for(F=-1;++F<=z;)L=(h[Math.min(z,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+I[F]*I[F])),y.push([L||0,I[F]*L||0]);return y}function qy(h){return h.length<3?Ni(h):h[0]+Ps(h,h_(h))}e.svg.line.radial=function(){var h=Nd(Od);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function Od(h){for(var y,w=-1,C=h.length,E,L;++w<C;)y=h[w],E=y[0],L=y[1]-$r,y[0]=E*Math.cos(L),y[1]=E*Math.sin(L);return h}function zd(h){var y=Hl,w=Hl,C=0,E=du,L=Uv,I=Ni,F=I.key,z=I,X="L",J=.7;function K(ee){var Me=[],qe=[],ne=[],he=-1,we=ee.length,Fe,Re=Vt(y),me=Vt(C),cr=y===w?function(){return Pr}:Vt(w),Mr=C===E?function(){return Yr}:Vt(E),Pr,Yr;function it(){Me.push("M",I(h(ne),J),X,z(h(qe.reverse()),J),"Z")}for(;++he<we;)L.call(this,Fe=ee[he],he)?(qe.push([Pr=+Re.call(this,Fe,he),Yr=+me.call(this,Fe,he)]),ne.push([+cr.call(this,Fe,he),+Mr.call(this,Fe,he)])):qe.length&&(it(),qe=[],ne=[]);return qe.length&&it(),Me.length?Me.join(""):null}return K.x=function(ee){return arguments.length?(y=w=ee,K):w},K.x0=function(ee){return arguments.length?(y=ee,K):y},K.x1=function(ee){return arguments.length?(w=ee,K):w},K.y=function(ee){return arguments.length?(C=E=ee,K):E},K.y0=function(ee){return arguments.length?(C=ee,K):C},K.y1=function(ee){return arguments.length?(E=ee,K):E},K.defined=function(ee){return arguments.length?(L=ee,K):L},K.interpolate=function(ee){return arguments.length?(typeof ee=="function"?F=I=ee:F=(I=Gv.get(ee)||Ni).key,z=I.reverse||I,X=I.closed?"M":"L",K):F},K.tension=function(ee){return arguments.length?(J=ee,K):J},K}Vv.reverse=Mu,Mu.reverse=Vv,e.svg.area=function(){return zd($)},e.svg.area.radial=function(){var h=zd(Od);return h.radius=h.x,delete h.x,h.innerRadius=h.x0,delete h.x0,h.outerRadius=h.x1,delete h.x1,h.angle=h.y,delete h.y,h.startAngle=h.y0,delete h.y0,h.endAngle=h.y1,delete h.y1,h};function Fy(h){return h.source}function Is(h){return h.target}e.svg.chord=function(){var h=Fy,y=Is,w=Bd,C=Bv,E=Rd;function L(J,K){var ee=I(this,h,J,K),Me=I(this,y,J,K);return"M"+ee.p0+z(ee.r,ee.p1,ee.a1-ee.a0)+(F(ee,Me)?X(ee.r,ee.p1,ee.r,ee.p0):X(ee.r,ee.p1,Me.r,Me.p0)+z(Me.r,Me.p1,Me.a1-Me.a0)+X(Me.r,Me.p1,ee.r,ee.p0))+"Z"}function I(J,K,ee,Me){var qe=K.call(J,ee,Me),ne=w.call(J,qe,Me),he=C.call(J,qe,Me)-$r,we=E.call(J,qe,Me)-$r;return{r:ne,a0:he,a1:we,p0:[ne*Math.cos(he),ne*Math.sin(he)],p1:[ne*Math.cos(we),ne*Math.sin(we)]}}function F(J,K){return J.a0==K.a0&&J.a1==K.a1}function z(J,K,ee){return"A"+J+","+J+" 0 "+ +(ee>Ie)+",1 "+K}function X(J,K,ee,Me){return"Q 0,0 "+Me}return L.radius=function(J){return arguments.length?(w=Vt(J),L):w},L.source=function(J){return arguments.length?(h=Vt(J),L):h},L.target=function(J){return arguments.length?(y=Vt(J),L):y},L.startAngle=function(J){return arguments.length?(C=Vt(J),L):C},L.endAngle=function(J){return arguments.length?(E=Vt(J),L):E},L};function Bd(h){return h.radius}e.svg.diagonal=function(){var h=Fy,y=Is,w=Ry;function C(E,L){var I=h.call(this,E,L),F=y.call(this,E,L),z=(I.y+F.y)/2,X=[I,{x:I.x,y:z},{x:F.x,y:z},F];return X=X.map(w),"M"+X[0]+"C"+X[1]+" "+X[2]+" "+X[3]}return C.source=function(E){return arguments.length?(h=Vt(E),C):h},C.target=function(E){return arguments.length?(y=Vt(E),C):y},C.projection=function(E){return arguments.length?(w=E,C):w},C};function Ry(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),y=Ry,w=h.projection;return h.projection=function(C){return arguments.length?w(d_(y=C)):y},h};function d_(h){return function(){var y=h.apply(this,arguments),w=y[0],C=y[1]-$r;return[w*Math.cos(C),w*Math.sin(C)]}}e.svg.symbol=function(){var h=m_,y=p_;function w(C,E){return(Ny.get(h.call(this,C,E))||Py)(y.call(this,C,E))}return w.type=function(C){return arguments.length?(h=Vt(C),w):h},w.size=function(C){return arguments.length?(y=Vt(C),w):y},w};function p_(){return 64}function m_(){return"circle"}function Py(h){var y=Math.sqrt(h/Ie);return"M0,"+y+"A"+y+","+y+" 0 1,1 0,"+-y+"A"+y+","+y+" 0 1,1 0,"+y+"Z"}var Ny=e.map({circle:Py,cross:function(h){var y=Math.sqrt(h/5)/2;return"M"+-3*y+","+-y+"H"+-y+"V"+-3*y+"H"+y+"V"+-y+"H"+3*y+"V"+y+"H"+y+"V"+3*y+"H"+-y+"V"+y+"H"+-3*y+"Z"},diamond:function(h){var y=Math.sqrt(h/(2*Iy)),w=y*Iy;return"M0,"+-y+"L"+w+",0 0,"+y+" "+-w+",0Z"},square:function(h){var y=Math.sqrt(h)/2;return"M"+-y+","+-y+"L"+y+","+-y+" "+y+","+y+" "+-y+","+y+"Z"},"triangle-down":function(h){var y=Math.sqrt(h/jv),w=y*jv/2;return"M0,"+w+"L"+y+","+-w+" "+-y+","+-w+"Z"},"triangle-up":function(h){var y=Math.sqrt(h/jv),w=y*jv/2;return"M0,"+-w+"L"+y+","+w+" "+-y+","+w+"Z"}});e.svg.symbolTypes=Ny.keys();var jv=Math.sqrt(3),Iy=Math.tan(30*St);Ce.transition=function(h){for(var y=$l||++Zv,w=Jv(h),C=[],E,L,I=Lu||{time:Date.now(),ease:qs,delay:0,duration:250},F=-1,z=this.length;++F<z;){C.push(E=[]);for(var X=this[F],J=-1,K=X.length;++J<K;)(L=X[J])&&Du(L,J,w,y,I),E.push(L)}return Os(C,w,y)},Ce.interrupt=function(h){return this.each(h==null?Xv:Ud(Jv(h)))};var Xv=Ud(Jv());function Ud(h){return function(){var y,w,C;(y=this[h])&&(C=y[w=y.active])&&(C.timer.c=null,C.timer.t=NaN,--y.count?delete y[w]:delete this[h],y.active+=.5,C.event&&C.event.interrupt.call(this,this.__data__,C.index))}}function Os(h,y,w){return re(h,tn),h.namespace=y,h.id=w,h}var tn=[],Zv=0,$l,Lu;tn.call=Ce.call,tn.empty=Ce.empty,tn.node=Ce.node,tn.size=Ce.size,e.transition=function(h,y){return h&&h.transition?$l?h.transition(y):h:e.selection().transition(h)},e.transition.prototype=tn,tn.select=function(h){var y=this.id,w=this.namespace,C=[],E,L,I;h=Y(h);for(var F=-1,z=this.length;++F<z;){C.push(E=[]);for(var X=this[F],J=-1,K=X.length;++J<K;)(I=X[J])&&(L=h.call(I,I.__data__,J,F))?("__data__"in I&&(L.__data__=I.__data__),Du(L,J,w,y,I[w][y]),E.push(L)):E.push(null)}return Os(C,w,y)},tn.selectAll=function(h){var y=this.id,w=this.namespace,C=[],E,L,I,F,z;h=ae(h);for(var X=-1,J=this.length;++X<J;)for(var K=this[X],ee=-1,Me=K.length;++ee<Me;)if(I=K[ee]){z=I[w][y],L=h.call(I,I.__data__,ee,X),C.push(E=[]);for(var qe=-1,ne=L.length;++qe<ne;)(F=L[qe])&&Du(F,qe,w,y,z),E.push(F)}return Os(C,w,y)},tn.filter=function(h){var y=[],w,C,E;typeof h!="function"&&(h=de(h));for(var L=0,I=this.length;L<I;L++){y.push(w=[]);for(var C=this[L],F=0,z=C.length;F<z;F++)(E=C[F])&&h.call(E,E.__data__,F,L)&&w.push(E)}return Os(y,this.namespace,this.id)},tn.tween=function(h,y){var w=this.id,C=this.namespace;return arguments.length<2?this.node()[C][w].tween.get(h):Ue(this,y==null?function(E){E[C][w].tween.remove(h)}:function(E){E[C][w].tween.set(h,y)})};function lc(h,y,w,C){var E=h.id,L=h.namespace;return Ue(h,typeof w=="function"?function(I,F,z){I[L][E].tween.set(y,C(w.call(I,I.__data__,F,z)))}:(w=C(w),function(I){I[L][E].tween.set(y,w)}))}tn.attr=function(h,y){if(arguments.length<2){for(y in h)this.attr(y,h[y]);return this}var w=h=="transform"?hd:Wl,C=e.ns.qualify(h);function E(){this.removeAttribute(C)}function L(){this.removeAttributeNS(C.space,C.local)}function I(z){return z==null?E:(z+="",function(){var X=this.getAttribute(C),J;return X!==z&&(J=w(X,z),function(K){this.setAttribute(C,J(K))})})}function F(z){return z==null?L:(z+="",function(){var X=this.getAttributeNS(C.space,C.local),J;return X!==z&&(J=w(X,z),function(K){this.setAttributeNS(C.space,C.local,J(K))})})}return lc(this,"attr."+h,y,C.local?F:I)},tn.attrTween=function(h,y){var w=e.ns.qualify(h);function C(L,I){var F=y.call(this,L,I,this.getAttribute(w));return F&&function(z){this.setAttribute(w,F(z))}}function E(L,I){var F=y.call(this,L,I,this.getAttributeNS(w.space,w.local));return F&&function(z){this.setAttributeNS(w.space,w.local,F(z))}}return this.tween("attr."+h,w.local?E:C)},tn.style=function(h,y,w){var C=arguments.length;if(C<3){if(typeof h!="string"){C<2&&(y="");for(w in h)this.style(w,h[w],y);return this}w=""}function E(){this.style.removeProperty(h)}function L(I){return I==null?E:(I+="",function(){var F=i(this).getComputedStyle(this,null).getPropertyValue(h),z;return F!==I&&(z=Wl(F,I),function(X){this.style.setProperty(h,z(X),w)})})}return lc(this,"style."+h,y,L)},tn.styleTween=function(h,y,w){arguments.length<3&&(w="");function C(E,L){var I=y.call(this,E,L,i(this).getComputedStyle(this,null).getPropertyValue(h));return I&&function(F){this.style.setProperty(h,I(F),w)}}return this.tween("style."+h,C)},tn.text=function(h){return lc(this,"text",h,Gd)};function Gd(h){return h==null&&(h=""),function(){this.textContent=h}}tn.remove=function(){var h=this.namespace;return this.each("end.transition",function(){var y;this[h].count<2&&(y=this.parentNode)&&y.removeChild(this)})},tn.ease=function(h){var y=this.id,w=this.namespace;return arguments.length<1?this.node()[w][y].ease:(typeof h!="function"&&(h=e.ease.apply(e,arguments)),Ue(this,function(C){C[w][y].ease=h}))},tn.delay=function(h){var y=this.id,w=this.namespace;return arguments.length<1?this.node()[w][y].delay:Ue(this,typeof h=="function"?function(C,E,L){C[w][y].delay=+h.call(C,C.__data__,E,L)}:(h=+h,function(C){C[w][y].delay=h}))},tn.duration=function(h){var y=this.id,w=this.namespace;return arguments.length<1?this.node()[w][y].duration:Ue(this,typeof h=="function"?function(C,E,L){C[w][y].duration=Math.max(1,h.call(C,C.__data__,E,L))}:(h=Math.max(1,h),function(C){C[w][y].duration=h}))},tn.each=function(h,y){var w=this.id,C=this.namespace;if(arguments.length<2){var E=Lu,L=$l;try{$l=w,Ue(this,function(I,F,z){Lu=I[C][w],h.call(I,I.__data__,F,z)})}finally{Lu=E,$l=L}}else Ue(this,function(I){var F=I[C][w];(F.event||(F.event=e.dispatch("start","end","interrupt"))).on(h,y)});return this},tn.transition=function(){for(var h=this.id,y=++Zv,w=this.namespace,C=[],E,L,I,F,z=0,X=this.length;z<X;z++){C.push(E=[]);for(var L=this[z],J=0,K=L.length;J<K;J++)(I=L[J])&&(F=I[w][h],Du(I,J,w,y,{time:F.time,ease:F.ease,delay:F.delay+F.duration,duration:F.duration})),E.push(I)}return Os(C,w,y)};function Jv(h){return h==null?"__transition__":"__transition_"+h+"__"}function Du(h,y,w,C,E){var L=h[w]||(h[w]={active:0,count:0}),I=L[C],F,z,X,J,K;function ee(ne){var he=I.delay;if(z.t=he+F,he<=ne)return Me(ne-he);z.c=Me}function Me(ne){var he=L.active,we=L[he];we&&(we.timer.c=null,we.timer.t=NaN,--L.count,delete L[he],we.event&&we.event.interrupt.call(h,h.__data__,we.index));for(var Fe in L)if(+Fe<C){var Re=L[Fe];Re.timer.c=null,Re.timer.t=NaN,--L.count,delete L[Fe]}z.c=qe,Ss(function(){return z.c&&qe(ne||1)&&(z.c=null,z.t=NaN),1},0,F),L.active=C,I.event&&I.event.start.call(h,h.__data__,y),K=[],I.tween.forEach(function(me,cr){(cr=cr.call(h,h.__data__,y))&&K.push(cr)}),J=I.ease,X=I.duration}function qe(ne){for(var he=ne/X,we=J(he),Fe=K.length;Fe>0;)K[--Fe].call(h,we);if(he>=1)return I.event&&I.event.end.call(h,h.__data__,y),--L.count?delete L[C]:delete h[w],1}I||(F=E.time,z=Ss(ee,0,F),I=L[C]={tween:new x,time:F,timer:z,delay:E.delay,duration:E.duration,ease:E.ease,index:y},E=null,++L.count)}e.svg.axis=function(){var h=e.scale.linear(),y=$v,w=6,C=6,E=3,L=[10],I=null,F;function z(X){X.each(function(){var J=e.select(this),K=this.__chart__||h,ee=this.__chart__=h.copy(),Me=I==null?ee.ticks?ee.ticks.apply(ee,L):ee.domain():I,qe=F==null?ee.tickFormat?ee.tickFormat.apply(ee,L):$:F,ne=J.selectAll(".tick").data(Me,ee),he=ne.enter().insert("g",".domain").attr("class","tick").style("opacity",ye),we=e.transition(ne.exit()).style("opacity",ye).remove(),Fe=e.transition(ne.order()).style("opacity",1),Re=Math.max(w,0)+E,me,cr=Nv(ee),Mr=J.selectAll(".domain").data([0]),Pr=(Mr.enter().append("path").attr("class","domain"),e.transition(Mr));he.append("line"),he.append("text");var Yr=he.select("line"),it=Fe.select("line"),ot=ne.select("text").text(qe),qt=he.select("text"),ct=Fe.select("text"),kt=y==="top"||y==="left"?-1:1,ha,an,_a,zr;if(y==="bottom"||y==="top"?(me=Vd,ha="x",_a="y",an="x2",zr="y2",ot.attr("dy",kt<0?"0em":".71em").style("text-anchor","middle"),Pr.attr("d","M"+cr[0]+","+kt*C+"V0H"+cr[1]+"V"+kt*C)):(me=Yd,ha="y",_a="x",an="y2",zr="x2",ot.attr("dy",".32em").style("text-anchor",kt<0?"end":"start"),Pr.attr("d","M"+kt*C+","+cr[0]+"H0V"+cr[1]+"H"+kt*C)),Yr.attr(zr,kt*w),qt.attr(_a,kt*Re),it.attr(an,0).attr(zr,kt*w),ct.attr(ha,0).attr(_a,kt*Re),ee.rangeBand){var Ft=ee,Ut=Ft.rangeBand()/2;K=ee=function(ua){return Ft(ua)+Ut}}else K.rangeBand?K=ee:we.call(me,ee,K);he.call(me,K,ee),Fe.call(me,ee,ee)})}return z.scale=function(X){return arguments.length?(h=X,z):h},z.orient=function(X){return arguments.length?(y=X in Hd?X+"":$v,z):y},z.ticks=function(){return arguments.length?(L=t(arguments),z):L},z.tickValues=function(X){return arguments.length?(I=X,z):I},z.tickFormat=function(X){return arguments.length?(F=X,z):F},z.tickSize=function(X){var J=arguments.length;return J?(w=+X,C=+arguments[J-1],z):w},z.innerTickSize=function(X){return arguments.length?(w=+X,z):w},z.outerTickSize=function(X){return arguments.length?(C=+X,z):C},z.tickPadding=function(X){return arguments.length?(E=+X,z):E},z.tickSubdivide=function(){return arguments.length&&z},z};var $v="bottom",Hd={top:1,right:1,bottom:1,left:1};function Vd(h,y,w){h.attr("transform",function(C){var E=y(C);return"translate("+(isFinite(E)?E:w(C))+",0)"})}function Yd(h,y,w){h.attr("transform",function(C){var E=y(C);return"translate(0,"+(isFinite(E)?E:w(C))+")"})}e.svg.brush=function(){var h=se(J,"brushstart","brush","brushend"),y=null,w=null,C=[0,0],E=[0,0],L,I,F=!0,z=!0,X=sc[0];function J(ne){ne.each(function(){var he=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",qe).on("touchstart.brush",qe),we=he.selectAll(".background").data([0]);we.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),he.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Fe=he.selectAll(".resize").data(X,$);Fe.exit().remove(),Fe.enter().append("g").attr("class",function(Mr){return"resize "+Mr}).style("cursor",function(Mr){return Wd[Mr]}).append("rect").attr("x",function(Mr){return/[ew]$/.test(Mr)?-3:null}).attr("y",function(Mr){return/^[ns]/.test(Mr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Fe.style("display",J.empty()?"none":null);var Re=e.transition(he),me=e.transition(we),cr;y&&(cr=Nv(y),me.attr("x",cr[0]).attr("width",cr[1]-cr[0]),ee(Re)),w&&(cr=Nv(w),me.attr("y",cr[0]).attr("height",cr[1]-cr[0]),Me(Re)),K(Re)})}J.event=function(ne){ne.each(function(){var he=h.of(this,arguments),we={x:C,y:E,i:L,j:I},Fe=this.__chart__||we;this.__chart__=we,$l?e.select(this).transition().each("start.brush",function(){L=Fe.i,I=Fe.j,C=Fe.x,E=Fe.y,he({type:"brushstart"})}).tween("brush:brush",function(){var Re=Jf(C,we.x),me=Jf(E,we.y);return L=I=null,function(cr){C=we.x=Re(cr),E=we.y=me(cr),he({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=we.i,I=we.j,he({type:"brush",mode:"resize"}),he({type:"brushend"})}):(he({type:"brushstart"}),he({type:"brush",mode:"resize"}),he({type:"brushend"}))})};function K(ne){ne.selectAll(".resize").attr("transform",function(he){return"translate("+C[+/e$/.test(he)]+","+E[+/^s/.test(he)]+")"})}function ee(ne){ne.select(".extent").attr("x",C[0]),ne.selectAll(".extent,.n>rect,.s>rect").attr("width",C[1]-C[0])}function Me(ne){ne.select(".extent").attr("y",E[0]),ne.selectAll(".extent,.e>rect,.w>rect").attr("height",E[1]-E[0])}function qe(){var ne=this,he=e.select(e.event.target),we=h.of(ne,arguments),Fe=e.select(ne),Re=he.datum(),me=!/^(n|s)$/.test(Re)&&y,cr=!/^(e|w)$/.test(Re)&&w,Mr=he.classed("extent"),Pr=Ir(ne),Yr,it=e.mouse(ne),ot,qt=e.select(i(ne)).on("keydown.brush",ha).on("keyup.brush",an);if(e.event.changedTouches?qt.on("touchmove.brush",_a).on("touchend.brush",Ft):qt.on("mousemove.brush",_a).on("mouseup.brush",Ft),Fe.interrupt().selectAll("*").interrupt(),Mr)it[0]=C[0]-it[0],it[1]=E[0]-it[1];else if(Re){var ct=+/w$/.test(Re),kt=+/^n/.test(Re);ot=[C[1-ct]-it[0],E[1-kt]-it[1]],it[0]=C[ct],it[1]=E[kt]}else e.event.altKey&&(Yr=it.slice());Fe.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",he.style("cursor")),we({type:"brushstart"}),_a();function ha(){e.event.keyCode==32&&(Mr||(Yr=null,it[0]-=C[1],it[1]-=E[1],Mr=2),ve())}function an(){e.event.keyCode==32&&Mr==2&&(it[0]+=C[1],it[1]+=E[1],Mr=0,ve())}function _a(){var Ut=e.mouse(ne),ua=!1;ot&&(Ut[0]+=ot[0],Ut[1]+=ot[1]),Mr||(e.event.altKey?(Yr||(Yr=[(C[0]+C[1])/2,(E[0]+E[1])/2]),it[0]=C[+(Ut[0]<Yr[0])],it[1]=E[+(Ut[1]<Yr[1])]):Yr=null),me&&zr(Ut,y,0)&&(ee(Fe),ua=!0),cr&&zr(Ut,w,1)&&(Me(Fe),ua=!0),ua&&(K(Fe),we({type:"brush",mode:Mr?"move":"resize"}))}function zr(Ut,ua,Ba){var cn=Nv(ua),Hn=cn[0],Kn=cn[1],gi=it[Ba],G=Ba?E:C,ie=G[1]-G[0],ue,We;if(Mr&&(Hn-=gi,Kn-=ie+gi),ue=(Ba?z:F)?Math.max(Hn,Math.min(Kn,Ut[Ba])):Ut[Ba],Mr?We=(ue+=gi)+ie:(Yr&&(gi=Math.max(Hn,Math.min(Kn,2*Yr[Ba]-ue))),gi<ue?(We=ue,ue=gi):We=gi),G[0]!=ue||G[1]!=We)return Ba?I=null:L=null,G[0]=ue,G[1]=We,!0}function Ft(){_a(),Fe.style("pointer-events","all").selectAll(".resize").style("display",J.empty()?"none":null),e.select("body").style("cursor",null),qt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),Pr(),we({type:"brushend"})}}return J.x=function(ne){return arguments.length?(y=ne,X=sc[!y<<1|!w],J):y},J.y=function(ne){return arguments.length?(w=ne,X=sc[!y<<1|!w],J):w},J.clamp=function(ne){return arguments.length?(y&&w?(F=!!ne[0],z=!!ne[1]):y?F=!!ne:w&&(z=!!ne),J):y&&w?[F,z]:y?F:w?z:null},J.extent=function(ne){var he,we,Fe,Re,me;return arguments.length?(y&&(he=ne[0],we=ne[1],w&&(he=he[0],we=we[0]),L=[he,we],y.invert&&(he=y(he),we=y(we)),we<he&&(me=he,he=we,we=me),(he!=C[0]||we!=C[1])&&(C=[he,we])),w&&(Fe=ne[0],Re=ne[1],y&&(Fe=Fe[1],Re=Re[1]),I=[Fe,Re],w.invert&&(Fe=w(Fe),Re=w(Re)),Re<Fe&&(me=Fe,Fe=Re,Re=me),(Fe!=E[0]||Re!=E[1])&&(E=[Fe,Re])),J):(y&&(L?(he=L[0],we=L[1]):(he=C[0],we=C[1],y.invert&&(he=y.invert(he),we=y.invert(we)),we<he&&(me=he,he=we,we=me))),w&&(I?(Fe=I[0],Re=I[1]):(Fe=E[0],Re=E[1],w.invert&&(Fe=w.invert(Fe),Re=w.invert(Re)),Re<Fe&&(me=Fe,Fe=Re,Re=me))),y&&w?[[he,Fe],[we,Re]]:y?[he,we]:w&&[Fe,Re])},J.clear=function(){return J.empty()||(C=[0,0],E=[0,0],L=I=null),J},J.empty=function(){return!!y&&C[0]==C[1]||!!w&&E[0]==E[1]},e.rebind(J,h,"on")};var Wd={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},sc=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=bo(function(h){return h.responseText}),e.json=function(h,y){return Ul(h,"application/json",jd,y)};function jd(h){return JSON.parse(h.responseText)}e.html=function(h,y){return Ul(h,"text/html",Xd,y)};function Xd(h){var y=a.createRange();return y.selectNode(a.body),y.createContextualFragment(h.responseText)}e.xml=bo(function(h){return h.responseXML}),typeof Uy=="object"&&Uy.exports?Uy.exports=e:this.d3=e}).apply(self)});var y_=R((Gy,gM)=>{(function(e,r){typeof Gy=="object"&&typeof gM!="undefined"?r(Gy):(e=e||self,r(e.d3=e.d3||{}))})(Gy,function(e){"use strict";var r=new Date,t=new Date;function a(de,Oe,Ue,rt){function Ur(Ye){return de(Ye=arguments.length===0?new Date:new Date(+Ye)),Ye}return Ur.floor=function(Ye){return de(Ye=new Date(+Ye)),Ye},Ur.ceil=function(Ye){return de(Ye=new Date(Ye-1)),Oe(Ye,1),de(Ye),Ye},Ur.round=function(Ye){var Ve=Ur(Ye),pr=Ur.ceil(Ye);return Ye-Ve<pr-Ye?Ve:pr},Ur.offset=function(Ye,Ve){return Oe(Ye=new Date(+Ye),Ve==null?1:Math.floor(Ve)),Ye},Ur.range=function(Ye,Ve,pr){var Tr=[],mr;if(Ye=Ur.ceil(Ye),pr=pr==null?1:Math.floor(pr),!(Ye<Ve)||!(pr>0))return Tr;do Tr.push(mr=new Date(+Ye)),Oe(Ye,pr),de(Ye);while(mr<Ye&&Ye<Ve);return Tr},Ur.filter=function(Ye){return a(function(Ve){if(Ve>=Ve)for(;de(Ve),!Ye(Ve);)Ve.setTime(Ve-1)},function(Ve,pr){if(Ve>=Ve)if(pr<0)for(;++pr<=0;)for(;Oe(Ve,-1),!Ye(Ve););else for(;--pr>=0;)for(;Oe(Ve,1),!Ye(Ve););})},Ue&&(Ur.count=function(Ye,Ve){return r.setTime(+Ye),t.setTime(+Ve),de(r),de(t),Math.floor(Ue(r,t))},Ur.every=function(Ye){return Ye=Math.floor(Ye),!isFinite(Ye)||!(Ye>0)?null:Ye>1?Ur.filter(rt?function(Ve){return rt(Ve)%Ye===0}:function(Ve){return Ur.count(0,Ve)%Ye===0}):Ur}),Ur}var n=a(function(){},function(de,Oe){de.setTime(+de+Oe)},function(de,Oe){return Oe-de});n.every=function(de){return de=Math.floor(de),!isFinite(de)||!(de>0)?null:de>1?a(function(Oe){Oe.setTime(Math.floor(Oe/de)*de)},function(Oe,Ue){Oe.setTime(+Oe+Ue*de)},function(Oe,Ue){return(Ue-Oe)/de}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(de){de.setTime(de-de.getMilliseconds())},function(de,Oe){de.setTime(+de+Oe*o)},function(de,Oe){return(Oe-de)/o},function(de){return de.getUTCSeconds()}),v=c.range,d=a(function(de){de.setTime(de-de.getMilliseconds()-de.getSeconds()*o)},function(de,Oe){de.setTime(+de+Oe*l)},function(de,Oe){return(Oe-de)/l},function(de){return de.getMinutes()}),p=d.range,g=a(function(de){de.setTime(de-de.getMilliseconds()-de.getSeconds()*o-de.getMinutes()*l)},function(de,Oe){de.setTime(+de+Oe*s)},function(de,Oe){return(Oe-de)/s},function(de){return de.getHours()}),m=g.range,b=a(function(de){de.setHours(0,0,0,0)},function(de,Oe){de.setDate(de.getDate()+Oe)},function(de,Oe){return(Oe-de-(Oe.getTimezoneOffset()-de.getTimezoneOffset())*l)/u},function(de){return de.getDate()-1}),_=b.range;function A(de){return a(function(Oe){Oe.setDate(Oe.getDate()-(Oe.getDay()+7-de)%7),Oe.setHours(0,0,0,0)},function(Oe,Ue){Oe.setDate(Oe.getDate()+Ue*7)},function(Oe,Ue){return(Ue-Oe-(Ue.getTimezoneOffset()-Oe.getTimezoneOffset())*l)/f})}var x=A(0),T=A(1),S=A(2),M=A(3),k=A(4),D=A(5),P=A(6),N=x.range,q=T.range,O=S.range,U=M.range,$=k.range,W=D.range,H=P.range,B=a(function(de){de.setDate(1),de.setHours(0,0,0,0)},function(de,Oe){de.setMonth(de.getMonth()+Oe)},function(de,Oe){return Oe.getMonth()-de.getMonth()+(Oe.getFullYear()-de.getFullYear())*12},function(de){return de.getMonth()}),V=B.range,j=a(function(de){de.setMonth(0,1),de.setHours(0,0,0,0)},function(de,Oe){de.setFullYear(de.getFullYear()+Oe)},function(de,Oe){return Oe.getFullYear()-de.getFullYear()},function(de){return de.getFullYear()});j.every=function(de){return!isFinite(de=Math.floor(de))||!(de>0)?null:a(function(Oe){Oe.setFullYear(Math.floor(Oe.getFullYear()/de)*de),Oe.setMonth(0,1),Oe.setHours(0,0,0,0)},function(Oe,Ue){Oe.setFullYear(Oe.getFullYear()+Ue*de)})};var Q=j.range,ve=a(function(de){de.setUTCSeconds(0,0)},function(de,Oe){de.setTime(+de+Oe*l)},function(de,Oe){return(Oe-de)/l},function(de){return de.getUTCMinutes()}),xe=ve.range,se=a(function(de){de.setUTCMinutes(0,0,0)},function(de,Oe){de.setTime(+de+Oe*s)},function(de,Oe){return(Oe-de)/s},function(de){return de.getUTCHours()}),be=se.range,re=a(function(de){de.setUTCHours(0,0,0,0)},function(de,Oe){de.setUTCDate(de.getUTCDate()+Oe)},function(de,Oe){return(Oe-de)/u},function(de){return de.getUTCDate()-1}),ke=re.range;function ge(de){return a(function(Oe){Oe.setUTCDate(Oe.getUTCDate()-(Oe.getUTCDay()+7-de)%7),Oe.setUTCHours(0,0,0,0)},function(Oe,Ue){Oe.setUTCDate(Oe.getUTCDate()+Ue*7)},function(Oe,Ue){return(Ue-Oe)/f})}var Ee=ge(0),De=ge(1),Ce=ge(2),Y=ge(3),ae=ge(4),Z=ge(5),Te=ge(6),Pe=Ee.range,Ne=De.range,lr=Ce.range,Qe=Y.range,Je=ae.range,or=Z.range,yr=Te.range,ir=a(function(de){de.setUTCDate(1),de.setUTCHours(0,0,0,0)},function(de,Oe){de.setUTCMonth(de.getUTCMonth()+Oe)},function(de,Oe){return Oe.getUTCMonth()-de.getUTCMonth()+(Oe.getUTCFullYear()-de.getUTCFullYear())*12},function(de){return de.getUTCMonth()}),Xe=ir.range,Lr=a(function(de){de.setUTCMonth(0,1),de.setUTCHours(0,0,0,0)},function(de,Oe){de.setUTCFullYear(de.getUTCFullYear()+Oe)},function(de,Oe){return Oe.getUTCFullYear()-de.getUTCFullYear()},function(de){return de.getUTCFullYear()});Lr.every=function(de){return!isFinite(de=Math.floor(de))||!(de>0)?null:a(function(Oe){Oe.setUTCFullYear(Math.floor(Oe.getUTCFullYear()/de)*de),Oe.setUTCMonth(0,1),Oe.setUTCHours(0,0,0,0)},function(Oe,Ue){Oe.setUTCFullYear(Oe.getUTCFullYear()+Ue*de)})};var Ar=Lr.range;e.timeDay=b,e.timeDays=_,e.timeFriday=D,e.timeFridays=W,e.timeHour=g,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=T,e.timeMondays=q,e.timeMonth=B,e.timeMonths=V,e.timeSaturday=P,e.timeSaturdays=H,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=N,e.timeThursday=k,e.timeThursdays=$,e.timeTuesday=S,e.timeTuesdays=O,e.timeWednesday=M,e.timeWednesdays=U,e.timeWeek=x,e.timeWeeks=N,e.timeYear=j,e.timeYears=Q,e.utcDay=re,e.utcDays=ke,e.utcFriday=Z,e.utcFridays=or,e.utcHour=se,e.utcHours=be,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ve,e.utcMinutes=xe,e.utcMonday=De,e.utcMondays=Ne,e.utcMonth=ir,e.utcMonths=Xe,e.utcSaturday=Te,e.utcSaturdays=yr,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=Ee,e.utcSundays=Pe,e.utcThursday=ae,e.utcThursdays=Je,e.utcTuesday=Ce,e.utcTuesdays=lr,e.utcWednesday=Y,e.utcWednesdays=Qe,e.utcWeek=Ee,e.utcWeeks=Pe,e.utcYear=Lr,e.utcYears=Ar,Object.defineProperty(e,"__esModule",{value:!0})})});var Kv=R((Hy,bM)=>{(function(e,r){typeof Hy=="object"&&typeof bM!="undefined"?r(Hy,y_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Hy,function(e,r){"use strict";function t(oe){if(0<=oe.y&&oe.y<100){var ye=new Date(-1,oe.m,oe.d,oe.H,oe.M,oe.S,oe.L);return ye.setFullYear(oe.y),ye}return new Date(oe.y,oe.m,oe.d,oe.H,oe.M,oe.S,oe.L)}function a(oe){if(0<=oe.y&&oe.y<100){var ye=new Date(Date.UTC(-1,oe.m,oe.d,oe.H,oe.M,oe.S,oe.L));return ye.setUTCFullYear(oe.y),ye}return new Date(Date.UTC(oe.y,oe.m,oe.d,oe.H,oe.M,oe.S,oe.L))}function n(oe,ye,Ge){return{y:oe,m:ye,d:Ge,H:0,M:0,S:0,L:0}}function i(oe){var ye=oe.dateTime,Ge=oe.date,Ie=oe.time,Wr=oe.periods,tt=oe.days,$r=oe.shortDays,St=oe.months,ea=oe.shortMonths,ma=v(Wr),aa=d(Wr),en=v(tt),Ln=d(tt),si=v($r),Dn=d($r),Vi=v(St),Bn=d(St),qn=v(ea),yi=d(ea),_t={a:_s,A:ws,b:Bl,B:_v,c:null,d:B,e:B,f:xe,H:V,I:j,j:Q,L:ve,m:se,M:be,p:As,q:Bf,Q:Ve,s:pr,S:re,u:ke,U:ge,V:Ee,w:De,W:Ce,x:null,X:null,y:Y,Y:ae,Z,"%":Ye},Ma={a:Uf,A:ol,b:ui,B:ll,c:null,d:Te,e:Te,f:Je,H:Pe,I:Ne,j:lr,L:Qe,m:or,M:yr,p:Ts,q:go,Q:Ve,s:pr,S:ir,u:Xe,U:Lr,V:Ar,w:de,W:Oe,x:null,X:null,y:Ue,Y:rt,Z:Ur,"%":Ye},ra={a:rn,A:on,b:Yi,B:Wi,c:xn,d:k,e:k,f:U,H:P,I:P,j:D,L:O,m:M,M:N,p:La,q:S,Q:W,s:H,S:q,u:g,U:m,V:b,w:p,W:_,x:Aa,X:Un,y:x,Y:A,Z:T,"%":$};_t.x=Ra(Ge,_t),_t.X=Ra(Ie,_t),_t.c=Ra(ye,_t),Ma.x=Ra(Ge,Ma),Ma.X=Ra(Ie,Ma),Ma.c=Ra(ye,Ma);function Ra(yt,jt){return function(va){var jr=[],Gn=-1,Ea=0,Fn=yt.length,Vt,bo,Ul;for(va instanceof Date||(va=new Date(+va));++Gn<Fn;)yt.charCodeAt(Gn)===37&&(jr.push(yt.slice(Ea,Gn)),(bo=o[Vt=yt.charAt(++Gn)])!=null?Vt=yt.charAt(++Gn):bo=Vt==="e"?" ":"0",(Ul=jt[Vt])&&(Vt=Ul(va,bo)),jr.push(Vt),Ea=Gn+1);return jr.push(yt.slice(Ea,Gn)),jr.join("")}}function Xa(yt,jt){return function(va){var jr=n(1900,void 0,1),Gn=Sa(jr,yt,va+="",0),Ea,Fn;if(Gn!=va.length)return null;if("Q"in jr)return new Date(jr.Q);if("s"in jr)return new Date(jr.s*1e3+("L"in jr?jr.L:0));if(jt&&!("Z"in jr)&&(jr.Z=0),"p"in jr&&(jr.H=jr.H%12+jr.p*12),jr.m===void 0&&(jr.m="q"in jr?jr.q:0),"V"in jr){if(jr.V<1||jr.V>53)return null;"w"in jr||(jr.w=1),"Z"in jr?(Ea=a(n(jr.y,0,1)),Fn=Ea.getUTCDay(),Ea=Fn>4||Fn===0?r.utcMonday.ceil(Ea):r.utcMonday(Ea),Ea=r.utcDay.offset(Ea,(jr.V-1)*7),jr.y=Ea.getUTCFullYear(),jr.m=Ea.getUTCMonth(),jr.d=Ea.getUTCDate()+(jr.w+6)%7):(Ea=t(n(jr.y,0,1)),Fn=Ea.getDay(),Ea=Fn>4||Fn===0?r.timeMonday.ceil(Ea):r.timeMonday(Ea),Ea=r.timeDay.offset(Ea,(jr.V-1)*7),jr.y=Ea.getFullYear(),jr.m=Ea.getMonth(),jr.d=Ea.getDate()+(jr.w+6)%7)}else("W"in jr||"U"in jr)&&("w"in jr||(jr.w="u"in jr?jr.u%7:"W"in jr?1:0),Fn="Z"in jr?a(n(jr.y,0,1)).getUTCDay():t(n(jr.y,0,1)).getDay(),jr.m=0,jr.d="W"in jr?(jr.w+6)%7+jr.W*7-(Fn+5)%7:jr.w+jr.U*7-(Fn+6)%7);return"Z"in jr?(jr.H+=jr.Z/100|0,jr.M+=jr.Z%100,a(jr)):t(jr)}}function Sa(yt,jt,va,jr){for(var Gn=0,Ea=jt.length,Fn=va.length,Vt,bo;Gn<Ea;){if(jr>=Fn)return-1;if(Vt=jt.charCodeAt(Gn++),Vt===37){if(Vt=jt.charAt(Gn++),bo=ra[Vt in o?jt.charAt(Gn++):Vt],!bo||(jr=bo(yt,va,jr))<0)return-1}else if(Vt!=va.charCodeAt(jr++))return-1}return jr}function La(yt,jt,va){var jr=ma.exec(jt.slice(va));return jr?(yt.p=aa[jr[0].toLowerCase()],va+jr[0].length):-1}function rn(yt,jt,va){var jr=si.exec(jt.slice(va));return jr?(yt.w=Dn[jr[0].toLowerCase()],va+jr[0].length):-1}function on(yt,jt,va){var jr=en.exec(jt.slice(va));return jr?(yt.w=Ln[jr[0].toLowerCase()],va+jr[0].length):-1}function Yi(yt,jt,va){var jr=qn.exec(jt.slice(va));return jr?(yt.m=yi[jr[0].toLowerCase()],va+jr[0].length):-1}function Wi(yt,jt,va){var jr=Vi.exec(jt.slice(va));return jr?(yt.m=Bn[jr[0].toLowerCase()],va+jr[0].length):-1}function xn(yt,jt,va){return Sa(yt,ye,jt,va)}function Aa(yt,jt,va){return Sa(yt,Ge,jt,va)}function Un(yt,jt,va){return Sa(yt,Ie,jt,va)}function _s(yt){return $r[yt.getDay()]}function ws(yt){return tt[yt.getDay()]}function Bl(yt){return ea[yt.getMonth()]}function _v(yt){return St[yt.getMonth()]}function As(yt){return Wr[+(yt.getHours()>=12)]}function Bf(yt){return 1+~~(yt.getMonth()/3)}function Uf(yt){return $r[yt.getUTCDay()]}function ol(yt){return tt[yt.getUTCDay()]}function ui(yt){return ea[yt.getUTCMonth()]}function ll(yt){return St[yt.getUTCMonth()]}function Ts(yt){return Wr[+(yt.getUTCHours()>=12)]}function go(yt){return 1+~~(yt.getUTCMonth()/3)}return{format:function(yt){var jt=Ra(yt+="",_t);return jt.toString=function(){return yt},jt},parse:function(yt){var jt=Xa(yt+="",!1);return jt.toString=function(){return yt},jt},utcFormat:function(yt){var jt=Ra(yt+="",Ma);return jt.toString=function(){return yt},jt},utcParse:function(yt){var jt=Xa(yt+="",!0);return jt.toString=function(){return yt},jt}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(oe,ye,Ge){var Ie=oe<0?"-":"",Wr=(Ie?-oe:oe)+"",tt=Wr.length;return Ie+(tt<Ge?new Array(Ge-tt+1).join(ye)+Wr:Wr)}function c(oe){return oe.replace(u,"\\$&")}function v(oe){return new RegExp("^(?:"+oe.map(c).join("|")+")","i")}function d(oe){for(var ye={},Ge=-1,Ie=oe.length;++Ge<Ie;)ye[oe[Ge].toLowerCase()]=Ge;return ye}function p(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+1));return Ie?(oe.w=+Ie[0],Ge+Ie[0].length):-1}function g(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+1));return Ie?(oe.u=+Ie[0],Ge+Ie[0].length):-1}function m(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+2));return Ie?(oe.U=+Ie[0],Ge+Ie[0].length):-1}function b(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+2));return Ie?(oe.V=+Ie[0],Ge+Ie[0].length):-1}function _(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+2));return Ie?(oe.W=+Ie[0],Ge+Ie[0].length):-1}function A(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+4));return Ie?(oe.y=+Ie[0],Ge+Ie[0].length):-1}function x(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+2));return Ie?(oe.y=+Ie[0]+(+Ie[0]>68?1900:2e3),Ge+Ie[0].length):-1}function T(oe,ye,Ge){var Ie=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ye.slice(Ge,Ge+6));return Ie?(oe.Z=Ie[1]?0:-(Ie[2]+(Ie[3]||"00")),Ge+Ie[0].length):-1}function S(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+1));return Ie?(oe.q=Ie[0]*3-3,Ge+Ie[0].length):-1}function M(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+2));return Ie?(oe.m=Ie[0]-1,Ge+Ie[0].length):-1}function k(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+2));return Ie?(oe.d=+Ie[0],Ge+Ie[0].length):-1}function D(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+3));return Ie?(oe.m=0,oe.d=+Ie[0],Ge+Ie[0].length):-1}function P(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+2));return Ie?(oe.H=+Ie[0],Ge+Ie[0].length):-1}function N(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+2));return Ie?(oe.M=+Ie[0],Ge+Ie[0].length):-1}function q(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+2));return Ie?(oe.S=+Ie[0],Ge+Ie[0].length):-1}function O(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+3));return Ie?(oe.L=+Ie[0],Ge+Ie[0].length):-1}function U(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge,Ge+6));return Ie?(oe.L=Math.floor(Ie[0]/1e3),Ge+Ie[0].length):-1}function $(oe,ye,Ge){var Ie=s.exec(ye.slice(Ge,Ge+1));return Ie?Ge+Ie[0].length:-1}function W(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge));return Ie?(oe.Q=+Ie[0],Ge+Ie[0].length):-1}function H(oe,ye,Ge){var Ie=l.exec(ye.slice(Ge));return Ie?(oe.s=+Ie[0],Ge+Ie[0].length):-1}function B(oe,ye){return f(oe.getDate(),ye,2)}function V(oe,ye){return f(oe.getHours(),ye,2)}function j(oe,ye){return f(oe.getHours()%12||12,ye,2)}function Q(oe,ye){return f(1+r.timeDay.count(r.timeYear(oe),oe),ye,3)}function ve(oe,ye){return f(oe.getMilliseconds(),ye,3)}function xe(oe,ye){return ve(oe,ye)+"000"}function se(oe,ye){return f(oe.getMonth()+1,ye,2)}function be(oe,ye){return f(oe.getMinutes(),ye,2)}function re(oe,ye){return f(oe.getSeconds(),ye,2)}function ke(oe){var ye=oe.getDay();return ye===0?7:ye}function ge(oe,ye){return f(r.timeSunday.count(r.timeYear(oe)-1,oe),ye,2)}function Ee(oe,ye){var Ge=oe.getDay();return oe=Ge>=4||Ge===0?r.timeThursday(oe):r.timeThursday.ceil(oe),f(r.timeThursday.count(r.timeYear(oe),oe)+(r.timeYear(oe).getDay()===4),ye,2)}function De(oe){return oe.getDay()}function Ce(oe,ye){return f(r.timeMonday.count(r.timeYear(oe)-1,oe),ye,2)}function Y(oe,ye){return f(oe.getFullYear()%100,ye,2)}function ae(oe,ye){return f(oe.getFullYear()%1e4,ye,4)}function Z(oe){var ye=oe.getTimezoneOffset();return(ye>0?"-":(ye*=-1,"+"))+f(ye/60|0,"0",2)+f(ye%60,"0",2)}function Te(oe,ye){return f(oe.getUTCDate(),ye,2)}function Pe(oe,ye){return f(oe.getUTCHours(),ye,2)}function Ne(oe,ye){return f(oe.getUTCHours()%12||12,ye,2)}function lr(oe,ye){return f(1+r.utcDay.count(r.utcYear(oe),oe),ye,3)}function Qe(oe,ye){return f(oe.getUTCMilliseconds(),ye,3)}function Je(oe,ye){return Qe(oe,ye)+"000"}function or(oe,ye){return f(oe.getUTCMonth()+1,ye,2)}function yr(oe,ye){return f(oe.getUTCMinutes(),ye,2)}function ir(oe,ye){return f(oe.getUTCSeconds(),ye,2)}function Xe(oe){var ye=oe.getUTCDay();return ye===0?7:ye}function Lr(oe,ye){return f(r.utcSunday.count(r.utcYear(oe)-1,oe),ye,2)}function Ar(oe,ye){var Ge=oe.getUTCDay();return oe=Ge>=4||Ge===0?r.utcThursday(oe):r.utcThursday.ceil(oe),f(r.utcThursday.count(r.utcYear(oe),oe)+(r.utcYear(oe).getUTCDay()===4),ye,2)}function de(oe){return oe.getUTCDay()}function Oe(oe,ye){return f(r.utcMonday.count(r.utcYear(oe)-1,oe),ye,2)}function Ue(oe,ye){return f(oe.getUTCFullYear()%100,ye,2)}function rt(oe,ye){return f(oe.getUTCFullYear()%1e4,ye,4)}function Ur(){return"+0000"}function Ye(){return"%"}function Ve(oe){return+oe}function pr(oe){return Math.floor(+oe/1e3)}var Tr;mr({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 mr(oe){return Tr=i(oe),e.timeFormat=Tr.format,e.timeParse=Tr.parse,e.utcFormat=Tr.utcFormat,e.utcParse=Tr.utcParse,Tr}var vr="%Y-%m-%dT%H:%M:%S.%LZ";function Cr(oe){return oe.toISOString()}var Ir=Date.prototype.toISOString?Cr:e.utcFormat(vr);function Gr(oe){var ye=new Date(oe);return isNaN(ye)?null:ye}var Ze=+new Date("2000-01-01T00:00:00.000Z")?Gr:e.utcParse(vr);e.isoFormat=Ir,e.isoParse=Ze,e.timeFormatDefaultLocale=mr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var g_=R((Vy,xM)=>{(function(e,r){typeof Vy=="object"&&typeof xM!="undefined"?r(Vy):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Vy,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,k){if((D=(M=k?M.toExponential(k-1):M.toExponential()).indexOf("e"))<0)return null;var D,P=M.slice(0,D);return[P.length>1?P[0]+P.slice(2):P,+M.slice(D+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,k){return function(D,P){for(var N=D.length,q=[],O=0,U=M[0],$=0;N>0&&U>0&&($+U+1>P&&(U=Math.max(1,P-$)),q.push(D.substring(N-=U,N+U)),!(($+=U+1)>P));)U=M[O=(O+1)%M.length];return q.reverse().join(k)}}function i(M){return function(k){return k.replace(/[0-9]/g,function(D){return M[+D]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(k=o.exec(M)))throw new Error("invalid format: "+M);var k;return new s({fill:k[1],align:k[2],sign:k[3],symbol:k[4],zero:k[5],width:k[6],comma:k[7],precision:k[8]&&k[8].slice(1),trim:k[9],type:k[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 k=M.length,D=1,P=-1,N;D<k;++D)switch(M[D]){case".":P=N=D;break;case"0":P===0&&(P=D),N=D;break;default:if(!+M[D])break e;P>0&&(P=0);break}return P>0?M.slice(0,P)+M.slice(N+1):M}var f;function c(M,k){var D=t(M,k);if(!D)return M+"";var P=D[0],N=D[1],q=N-(f=Math.max(-8,Math.min(8,Math.floor(N/3)))*3)+1,O=P.length;return q===O?P:q>O?P+new Array(q-O+1).join("0"):q>0?P.slice(0,q)+"."+P.slice(q):"0."+new Array(1-q).join("0")+t(M,Math.max(0,k+q-1))[0]}function v(M,k){var D=t(M,k);if(!D)return M+"";var P=D[0],N=D[1];return N<0?"0."+new Array(-N).join("0")+P:P.length>N+1?P.slice(0,N+1)+"."+P.slice(N+1):P+new Array(N-P.length+2).join("0")}var d={"%":function(M,k){return(M*100).toFixed(k)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,k){return M.toExponential(k)},f:function(M,k){return M.toFixed(k)},g:function(M,k){return M.toPrecision(k)},o:function(M){return Math.round(M).toString(8)},p:function(M,k){return v(M*100,k)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var g=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var k=M.grouping===void 0||M.thousands===void 0?p:n(g.call(M.grouping,Number),M.thousands+""),D=M.currency===void 0?"":M.currency[0]+"",P=M.currency===void 0?"":M.currency[1]+"",N=M.decimal===void 0?".":M.decimal+"",q=M.numerals===void 0?p:i(g.call(M.numerals,String)),O=M.percent===void 0?"%":M.percent+"",U=M.minus===void 0?"-":M.minus+"",$=M.nan===void 0?"NaN":M.nan+"";function W(B){B=l(B);var V=B.fill,j=B.align,Q=B.sign,ve=B.symbol,xe=B.zero,se=B.width,be=B.comma,re=B.precision,ke=B.trim,ge=B.type;ge==="n"?(be=!0,ge="g"):d[ge]||(re===void 0&&(re=12),ke=!0,ge="g"),(xe||V==="0"&&j==="=")&&(xe=!0,V="0",j="=");var Ee=ve==="$"?D:ve==="#"&&/[boxX]/.test(ge)?"0"+ge.toLowerCase():"",De=ve==="$"?P:/[%p]/.test(ge)?O:"",Ce=d[ge],Y=/[defgprs%]/.test(ge);re=re===void 0?6:/[gprs]/.test(ge)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function ae(Z){var Te=Ee,Pe=De,Ne,lr,Qe;if(ge==="c")Pe=Ce(Z)+Pe,Z="";else{Z=+Z;var Je=Z<0||1/Z<0;if(Z=isNaN(Z)?$:Ce(Math.abs(Z),re),ke&&(Z=u(Z)),Je&&+Z==0&&Q!=="+"&&(Je=!1),Te=(Je?Q==="("?Q:U:Q==="-"||Q==="("?"":Q)+Te,Pe=(ge==="s"?m[8+f/3]:"")+Pe+(Je&&Q==="("?")":""),Y){for(Ne=-1,lr=Z.length;++Ne<lr;)if(Qe=Z.charCodeAt(Ne),48>Qe||Qe>57){Pe=(Qe===46?N+Z.slice(Ne+1):Z.slice(Ne))+Pe,Z=Z.slice(0,Ne);break}}}be&&!xe&&(Z=k(Z,1/0));var or=Te.length+Z.length+Pe.length,yr=or<se?new Array(se-or+1).join(V):"";switch(be&&xe&&(Z=k(yr+Z,yr.length?se-Pe.length:1/0),yr=""),j){case"<":Z=Te+Z+Pe+yr;break;case"=":Z=Te+yr+Z+Pe;break;case"^":Z=yr.slice(0,or=yr.length>>1)+Te+Z+Pe+yr.slice(or);break;default:Z=yr+Te+Z+Pe;break}return q(Z)}return ae.toString=function(){return B+""},ae}function H(B,V){var j=W((B=l(B),B.type="f",B)),Q=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,ve=Math.pow(10,-Q),xe=m[8+Q/3];return function(se){return j(ve*se)+xe}}return{format:W,formatPrefix:H}}var _;A({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function A(M){return _=b(M),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function x(M){return Math.max(0,-a(Math.abs(M)))}function T(M,k){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(k)/3)))*3-a(Math.abs(M)))}function S(M,k){return M=Math.abs(M),k=Math.abs(k)-M,Math.max(0,a(k)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=A,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=T,e.precisionRound=S,Object.defineProperty(e,"__esModule",{value:!0})})});var wM=R((JSe,_M)=>{"use strict";_M.exports=function(e){for(var r=e.length,t,a=0;a<r;a++)if(t=e.charCodeAt(a),(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 ia=R(($Se,AM)=>{"use strict";var Bne=wM();AM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Bne(t))return!1}else if(r!=="number")return!1;return e-e<1}});var _n=R((QSe,TM)=>{"use strict";TM.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 b_=R((Yy,MM)=>{(function(e,r){typeof Yy=="object"&&typeof MM!="undefined"?r(Yy):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Yy,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a<r.length;a++)t[r.charCodeAt(a)]=a;var n=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,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var g=new ArrayBuffer(l),m=new Uint8Array(g);for(u=0;u<s;u+=4)c=t[o.charCodeAt(u)],v=t[o.charCodeAt(u+1)],d=t[o.charCodeAt(u+2)],p=t[o.charCodeAt(u+3)],m[f++]=c<<2|v>>4,m[f++]=(v&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return g};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Ru=R((KSe,SM)=>{"use strict";SM.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 ro=R(cl=>{"use strict";var Une=b_().decode,Gne=Ru(),x_=Array.isArray,Hne=ArrayBuffer,Vne=DataView;function kM(e){return Hne.isView(e)&&!(e instanceof Vne)}cl.isTypedArray=kM;function Wy(e){return x_(e)||kM(e)}cl.isArrayOrTypedArray=Wy;function Yne(e){return!Wy(e[0])}cl.isArray1D=Yne;cl.ensureArray=function(e,r){return x_(e)||(e=[]),e.length=r,e};var ti={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};ti.uint8c=ti.u1c;ti.uint8=ti.u1;ti.int8=ti.i1;ti.uint16=ti.u2;ti.int16=ti.i2;ti.uint32=ti.u4;ti.int32=ti.i4;ti.float32=ti.f4;ti.float64=ti.f8;function __(e){return e.constructor===ArrayBuffer}cl.isArrayBuffer=__;cl.decodeTypedArraySpec=function(e){var r=[],t=Wne(e),a=t.dtype,n=ti[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;__(o)||(o=Une(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f<u;f++)r[f]=new n(o,d,c),d+=v;else if(s===3){u=+l[1];for(var p=+l[2],g=0;g<p;g++)for(r[g]=[],f=0;f<u;f++)r[g][f]=new n(o,d,c),d+=v}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};cl.isTypedArraySpec=function(e){return Gne(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||__(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function Wne(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}cl.concat=function(){var e=[],r=!0,t=0,a,n,i,o,l,s,u,f;for(i=0;i<arguments.length;i++)o=arguments[i],s=o.length,s&&(n?e.push(o):(n=o,l=s),x_(o)?a=!1:(r=!1,t?a!==o.constructor&&(a=!1):a=o.constructor),t+=s);if(!t)return[];if(!e.length)return n;if(r)return n.concat.apply(n,e);if(a){for(u=new a(t),u.set(n),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<n.length;f++)u[f]=n[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};cl.maxRowLength=function(e){return CM(e,Math.max,0)};cl.minRowLength=function(e){return CM(e,Math.min,1/0)};function CM(e,r,t){if(Wy(e))if(Wy(e[0])){for(var a=t,n=0;n<e.length;n++)a=r(a,e[n].length);return a}else return e.length;return 0}});var jy=R((rke,FM)=>{"use strict";var EM=ia(),A_=ro().isArrayOrTypedArray;FM.exports=function(r,t){if(EM(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l<a.length;l++)if(String(a[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<a.length;){if(n=String(a[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])a[l]=n[1];else if(l===0)a.splice(0,1);else throw"bad property string";for(i=n[2].substr(1,n[2].length-2).split("]["),o=0;o<i.length;o++)l++,a.splice(l,0,Number(i[o]))}l++}return typeof r!="object"?Jne(r,t,a):{set:DM(r,a,t),get:LM(r,a),astr:t,parts:a,obj:r}};function LM(e,r){return function(t){var a=e,n,i,o,l,s;for(l=0;l<r.length-1;l++){if(n=r[l],n===-1){for(i=!0,o=[],s=0;s<a.length;s++)o[s]=LM(a[s],r.slice(l+1))(t),o[s]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof n=="number"&&!A_(a)||(a=a[n],typeof a!="object"||a===null))return}if(!(typeof a!="object"||a===null)&&(o=a[r[l]],!(!t&&o===null)))return o}}var jne=/(^|\.)args\[/;function w_(e,r){return e===void 0||e===null&&!r.match(jne)}function DM(e,r,t){return function(a){var n=e,i="",o=[[e,i]],l=w_(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!A_(n))throw"array index but container is not an array";if(s===-1){if(l=!Zne(n,r.slice(u+1),a,t),l)break;return}if(!qM(n,s,r[u+1],l))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=Xne(i,s),o.push([n,i])}if(l){if(u===r.length-1&&(delete n[r[u]],Array.isArray(n)&&+r[u]===n.length-1))for(;n.length&&n[n.length-1]===void 0;)n.pop()}else n[r[u]]=a}}function Xne(e,r){var t=r;return EM(r)?t="["+r+"]":e&&(t="."+r),e+t}function Zne(e,r,t,a){var n=A_(t),i=!0,o=t,l=a.replace("-1",0),s=n?!1:w_(t,l),u=r[0],f;for(f=0;f<e.length;f++)l=a.replace("-1",f),n&&(o=t[f%t.length],s=w_(o,l)),s&&(i=!1),qM(e,f,u,s)&&DM(e[f],r,a.replace("-1",f))(o);return i}function qM(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function Jne(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var IM=R((tke,NM)=>{"use strict";var e0=jy(),$ne=/^\w*$/,Qne=0,RM=1,Xy=2,PM=3,uc=4;NM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=e0(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i<o.length;i++)u[o[i][a]]=i;var f=$ne.test(n),c={set:function(v,d){var p=d===null?uc:Qne;if(!o){if(!l||p===uc)return;o=[],l.set(o)}var g=u[v];if(g===void 0){if(p===uc)return;p=p|PM,g=o.length,u[v]=g}else d!==(f?o[g][n]:e0(o[g],n).get())&&(p=p|Xy);var m=o[g]=o[g]||{};return m[a]=v,f?m[n]=d:e0(m,n).set(d),d!==null&&(p=p&~uc),s[g]=s[g]|p,c},get:function(v){if(o){var d=u[v];if(d!==void 0)return f?o[d][n]:e0(o[d],n).get()}},rename:function(v,d){var p=u[v];return p===void 0||(s[p]=s[p]|RM,u[d]=p,delete u[v],o[p][a]=d),c},remove:function(v){var d=u[v];if(d===void 0)return c;var p=o[d];if(Object.keys(p).length>2)return s[d]=s[d]|Xy,c.set(v,null);if(f){for(i=d;i<o.length;i++)s[i]=s[i]|PM;for(i=d;i<o.length;i++)u[o[i][a]]--;o.splice(d,1),delete u[v]}else e0(p,n).set(null),s[d]=s[d]|Xy|uc;return c},constructUpdate:function(){for(var v,d,p={},g=Object.keys(s),m=0;m<g.length;m++)d=g[m],v=t+"["+d+"]",o[d]?(s[d]&RM&&(p[v+"."+a]=o[d][a]),s[d]&Xy&&(f?p[v+"."+n]=s[d]&uc?null:o[d][n]:p[v+"."+n]=s[d]&uc?null:e0(o[d],n).get())):p[v]=null;return p}};return c}});var zM=R((ake,OM)=>{"use strict";var Kne=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,eie=/^[^\.\[\]]+$/;OM.exports=function(e,r){for(;r;){var t=e.match(Kne);if(t)e=t[1];else if(e.match(eie))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 Zy=R((nke,BM)=>{"use strict";var rie=ia();BM.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return rie(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var HM=R((ike,GM)=>{"use strict";var UM=ro().isArrayOrTypedArray,Jd=Ru();GM.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(UM(n)&&UM(i)&&Jd(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l<o;l++)i[l]!==n[l]&&Jd(n[l])&&Jd(i[l])&&e(i[l],n[l])}else Jd(n)&&Jd(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var r0=R((oke,VM)=>{"use strict";function tie(e,r){var t=e%r;return t<0?t+r:t}function aie(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}VM.exports={mod:tie,modHalf:aie}});var vl=R((lke,Jy)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(Y,ae){if(Y=Y||"",ae=ae||{},Y instanceof s)return Y;if(!(this instanceof s))return new s(Y,ae);var Z=u(Y);this._originalInput=Y,this._r=Z.r,this._g=Z.g,this._b=Z.b,this._a=Z.a,this._roundA=n(100*this._a)/100,this._format=ae.format||Z.format,this._gradientType=ae.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=Z.ok,this._tc_id=a++}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 Y=this.toRgb();return(Y.r*299+Y.g*587+Y.b*114)/1e3},getLuminance:function(){var Y=this.toRgb(),ae,Z,Te,Pe,Ne,lr;return ae=Y.r/255,Z=Y.g/255,Te=Y.b/255,ae<=.03928?Pe=ae/12.92:Pe=e.pow((ae+.055)/1.055,2.4),Z<=.03928?Ne=Z/12.92:Ne=e.pow((Z+.055)/1.055,2.4),Te<=.03928?lr=Te/12.92:lr=e.pow((Te+.055)/1.055,2.4),.2126*Pe+.7152*Ne+.0722*lr},setAlpha:function(Y){return this._a=B(Y),this._roundA=n(100*this._a)/100,this},toHsv:function(){var Y=d(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=d(this._r,this._g,this._b),ae=n(Y.h*360),Z=n(Y.s*100),Te=n(Y.v*100);return this._a==1?"hsv("+ae+", "+Z+"%, "+Te+"%)":"hsva("+ae+", "+Z+"%, "+Te+"%, "+this._roundA+")"},toHsl:function(){var Y=c(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=c(this._r,this._g,this._b),ae=n(Y.h*360),Z=n(Y.s*100),Te=n(Y.l*100);return this._a==1?"hsl("+ae+", "+Z+"%, "+Te+"%)":"hsla("+ae+", "+Z+"%, "+Te+"%, "+this._roundA+")"},toHex:function(Y){return g(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return m(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(V(this._r,255)*100)+"%",g:n(V(this._g,255)*100)+"%",b:n(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%)":"rgba("+n(V(this._r,255)*100)+"%, "+n(V(this._g,255)*100)+"%, "+n(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:W[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(Y){var ae="#"+b(this._r,this._g,this._b,this._a),Z=ae,Te=this._gradientType?"GradientType = 1, ":"";if(Y){var Pe=s(Y);Z="#"+b(Pe._r,Pe._g,Pe._b,Pe._a)}return"progid:DXImageTransform.Microsoft.gradient("+Te+"startColorstr="+ae+",endColorstr="+Z+")"},toString:function(Y){var ae=!!Y;Y=Y||this._format;var Z=!1,Te=this._a<1&&this._a>=0,Pe=!ae&&Te&&(Y==="hex"||Y==="hex6"||Y==="hex3"||Y==="hex4"||Y==="hex8"||Y==="name");return Pe?Y==="name"&&this._a===0?this.toName():this.toRgbString():(Y==="rgb"&&(Z=this.toRgbString()),Y==="prgb"&&(Z=this.toPercentageRgbString()),(Y==="hex"||Y==="hex6")&&(Z=this.toHexString()),Y==="hex3"&&(Z=this.toHexString(!0)),Y==="hex4"&&(Z=this.toHex8String(!0)),Y==="hex8"&&(Z=this.toHex8String()),Y==="name"&&(Z=this.toName()),Y==="hsl"&&(Z=this.toHslString()),Y==="hsv"&&(Z=this.toHsvString()),Z||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Y,ae){var Z=Y.apply(null,[this].concat([].slice.call(ae)));return this._r=Z._r,this._g=Z._g,this._b=Z._b,this.setAlpha(Z._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(A,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(Y,ae){return Y.apply(null,[this].concat([].slice.call(ae)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(q,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(N,arguments)}},s.fromRatio=function(Y,ae){if(typeof Y=="object"){var Z={};for(var Te in Y)Y.hasOwnProperty(Te)&&(Te==="a"?Z[Te]=Y[Te]:Z[Te]=be(Y[Te]));Y=Z}return s(Y,ae)};function u(Y){var ae={r:0,g:0,b:0},Z=1,Te=null,Pe=null,Ne=null,lr=!1,Qe=!1;return typeof Y=="string"&&(Y=De(Y)),typeof Y=="object"&&(Ee(Y.r)&&Ee(Y.g)&&Ee(Y.b)?(ae=f(Y.r,Y.g,Y.b),lr=!0,Qe=String(Y.r).substr(-1)==="%"?"prgb":"rgb"):Ee(Y.h)&&Ee(Y.s)&&Ee(Y.v)?(Te=be(Y.s),Pe=be(Y.v),ae=p(Y.h,Te,Pe),lr=!0,Qe="hsv"):Ee(Y.h)&&Ee(Y.s)&&Ee(Y.l)&&(Te=be(Y.s),Ne=be(Y.l),ae=v(Y.h,Te,Ne),lr=!0,Qe="hsl"),Y.hasOwnProperty("a")&&(Z=Y.a)),Z=B(Z),{ok:lr,format:Y.format||Qe,r:i(255,o(ae.r,0)),g:i(255,o(ae.g,0)),b:i(255,o(ae.b,0)),a:Z}}function f(Y,ae,Z){return{r:V(Y,255)*255,g:V(ae,255)*255,b:V(Z,255)*255}}function c(Y,ae,Z){Y=V(Y,255),ae=V(ae,255),Z=V(Z,255);var Te=o(Y,ae,Z),Pe=i(Y,ae,Z),Ne,lr,Qe=(Te+Pe)/2;if(Te==Pe)Ne=lr=0;else{var Je=Te-Pe;switch(lr=Qe>.5?Je/(2-Te-Pe):Je/(Te+Pe),Te){case Y:Ne=(ae-Z)/Je+(ae<Z?6:0);break;case ae:Ne=(Z-Y)/Je+2;break;case Z:Ne=(Y-ae)/Je+4;break}Ne/=6}return{h:Ne,s:lr,l:Qe}}function v(Y,ae,Z){var Te,Pe,Ne;Y=V(Y,360),ae=V(ae,100),Z=V(Z,100);function lr(or,yr,ir){return ir<0&&(ir+=1),ir>1&&(ir-=1),ir<1/6?or+(yr-or)*6*ir:ir<1/2?yr:ir<2/3?or+(yr-or)*(2/3-ir)*6:or}if(ae===0)Te=Pe=Ne=Z;else{var Qe=Z<.5?Z*(1+ae):Z+ae-Z*ae,Je=2*Z-Qe;Te=lr(Je,Qe,Y+1/3),Pe=lr(Je,Qe,Y),Ne=lr(Je,Qe,Y-1/3)}return{r:Te*255,g:Pe*255,b:Ne*255}}function d(Y,ae,Z){Y=V(Y,255),ae=V(ae,255),Z=V(Z,255);var Te=o(Y,ae,Z),Pe=i(Y,ae,Z),Ne,lr,Qe=Te,Je=Te-Pe;if(lr=Te===0?0:Je/Te,Te==Pe)Ne=0;else{switch(Te){case Y:Ne=(ae-Z)/Je+(ae<Z?6:0);break;case ae:Ne=(Z-Y)/Je+2;break;case Z:Ne=(Y-ae)/Je+4;break}Ne/=6}return{h:Ne,s:lr,v:Qe}}function p(Y,ae,Z){Y=V(Y,360)*6,ae=V(ae,100),Z=V(Z,100);var Te=e.floor(Y),Pe=Y-Te,Ne=Z*(1-ae),lr=Z*(1-Pe*ae),Qe=Z*(1-(1-Pe)*ae),Je=Te%6,or=[Z,lr,Ne,Ne,Qe,Z][Je],yr=[Qe,Z,Z,lr,Ne,Ne][Je],ir=[Ne,Ne,Qe,Z,Z,lr][Je];return{r:or*255,g:yr*255,b:ir*255}}function g(Y,ae,Z,Te){var Pe=[se(n(Y).toString(16)),se(n(ae).toString(16)),se(n(Z).toString(16))];return Te&&Pe[0].charAt(0)==Pe[0].charAt(1)&&Pe[1].charAt(0)==Pe[1].charAt(1)&&Pe[2].charAt(0)==Pe[2].charAt(1)?Pe[0].charAt(0)+Pe[1].charAt(0)+Pe[2].charAt(0):Pe.join("")}function m(Y,ae,Z,Te,Pe){var Ne=[se(n(Y).toString(16)),se(n(ae).toString(16)),se(n(Z).toString(16)),se(re(Te))];return Pe&&Ne[0].charAt(0)==Ne[0].charAt(1)&&Ne[1].charAt(0)==Ne[1].charAt(1)&&Ne[2].charAt(0)==Ne[2].charAt(1)&&Ne[3].charAt(0)==Ne[3].charAt(1)?Ne[0].charAt(0)+Ne[1].charAt(0)+Ne[2].charAt(0)+Ne[3].charAt(0):Ne.join("")}function b(Y,ae,Z,Te){var Pe=[se(re(Te)),se(n(Y).toString(16)),se(n(ae).toString(16)),se(n(Z).toString(16))];return Pe.join("")}s.equals=function(Y,ae){return!Y||!ae?!1:s(Y).toRgbString()==s(ae).toRgbString()},s.random=function(){return s.fromRatio({r:l(),g:l(),b:l()})};function _(Y,ae){ae=ae===0?0:ae||10;var Z=s(Y).toHsl();return Z.s-=ae/100,Z.s=j(Z.s),s(Z)}function A(Y,ae){ae=ae===0?0:ae||10;var Z=s(Y).toHsl();return Z.s+=ae/100,Z.s=j(Z.s),s(Z)}function x(Y){return s(Y).desaturate(100)}function T(Y,ae){ae=ae===0?0:ae||10;var Z=s(Y).toHsl();return Z.l+=ae/100,Z.l=j(Z.l),s(Z)}function S(Y,ae){ae=ae===0?0:ae||10;var Z=s(Y).toRgb();return Z.r=o(0,i(255,Z.r-n(255*-(ae/100)))),Z.g=o(0,i(255,Z.g-n(255*-(ae/100)))),Z.b=o(0,i(255,Z.b-n(255*-(ae/100)))),s(Z)}function M(Y,ae){ae=ae===0?0:ae||10;var Z=s(Y).toHsl();return Z.l-=ae/100,Z.l=j(Z.l),s(Z)}function k(Y,ae){var Z=s(Y).toHsl(),Te=(Z.h+ae)%360;return Z.h=Te<0?360+Te:Te,s(Z)}function D(Y){var ae=s(Y).toHsl();return ae.h=(ae.h+180)%360,s(ae)}function P(Y){var ae=s(Y).toHsl(),Z=ae.h;return[s(Y),s({h:(Z+120)%360,s:ae.s,l:ae.l}),s({h:(Z+240)%360,s:ae.s,l:ae.l})]}function N(Y){var ae=s(Y).toHsl(),Z=ae.h;return[s(Y),s({h:(Z+90)%360,s:ae.s,l:ae.l}),s({h:(Z+180)%360,s:ae.s,l:ae.l}),s({h:(Z+270)%360,s:ae.s,l:ae.l})]}function q(Y){var ae=s(Y).toHsl(),Z=ae.h;return[s(Y),s({h:(Z+72)%360,s:ae.s,l:ae.l}),s({h:(Z+216)%360,s:ae.s,l:ae.l})]}function O(Y,ae,Z){ae=ae||6,Z=Z||30;var Te=s(Y).toHsl(),Pe=360/Z,Ne=[s(Y)];for(Te.h=(Te.h-(Pe*ae>>1)+720)%360;--ae;)Te.h=(Te.h+Pe)%360,Ne.push(s(Te));return Ne}function U(Y,ae){ae=ae||6;for(var Z=s(Y).toHsv(),Te=Z.h,Pe=Z.s,Ne=Z.v,lr=[],Qe=1/ae;ae--;)lr.push(s({h:Te,s:Pe,v:Ne})),Ne=(Ne+Qe)%1;return lr}s.mix=function(Y,ae,Z){Z=Z===0?0:Z||50;var Te=s(Y).toRgb(),Pe=s(ae).toRgb(),Ne=Z/100,lr={r:(Pe.r-Te.r)*Ne+Te.r,g:(Pe.g-Te.g)*Ne+Te.g,b:(Pe.b-Te.b)*Ne+Te.b,a:(Pe.a-Te.a)*Ne+Te.a};return s(lr)},s.readability=function(Y,ae){var Z=s(Y),Te=s(ae);return(e.max(Z.getLuminance(),Te.getLuminance())+.05)/(e.min(Z.getLuminance(),Te.getLuminance())+.05)},s.isReadable=function(Y,ae,Z){var Te=s.readability(Y,ae),Pe,Ne;switch(Ne=!1,Pe=Ce(Z),Pe.level+Pe.size){case"AAsmall":case"AAAlarge":Ne=Te>=4.5;break;case"AAlarge":Ne=Te>=3;break;case"AAAsmall":Ne=Te>=7;break}return Ne},s.mostReadable=function(Y,ae,Z){var Te=null,Pe=0,Ne,lr,Qe,Je;Z=Z||{},lr=Z.includeFallbackColors,Qe=Z.level,Je=Z.size;for(var or=0;or<ae.length;or++)Ne=s.readability(Y,ae[or]),Ne>Pe&&(Pe=Ne,Te=s(ae[or]));return s.isReadable(Y,Te,{level:Qe,size:Je})||!lr?Te:(Z.includeFallbackColors=!1,s.mostReadable(Y,["#fff","#000"],Z))};var $=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"},W=s.hexNames=H($);function H(Y){var ae={};for(var Z in Y)Y.hasOwnProperty(Z)&&(ae[Y[Z]]=Z);return ae}function B(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function V(Y,ae){ve(Y)&&(Y="100%");var Z=xe(Y);return Y=i(ae,o(0,parseFloat(Y))),Z&&(Y=parseInt(Y*ae,10)/100),e.abs(Y-ae)<1e-6?1:Y%ae/parseFloat(ae)}function j(Y){return i(1,o(0,Y))}function Q(Y){return parseInt(Y,16)}function ve(Y){return typeof Y=="string"&&Y.indexOf(".")!=-1&&parseFloat(Y)===1}function xe(Y){return typeof Y=="string"&&Y.indexOf("%")!=-1}function se(Y){return Y.length==1?"0"+Y:""+Y}function be(Y){return Y<=1&&(Y=Y*100+"%"),Y}function re(Y){return e.round(parseFloat(Y)*255).toString(16)}function ke(Y){return Q(Y)/255}var ge=function(){var Y="[-\\+]?\\d+%?",ae="[-\\+]?\\d*\\.\\d+%?",Z="(?:"+ae+")|(?:"+Y+")",Te="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?",Pe="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?";return{CSS_UNIT:new RegExp(Z),rgb:new RegExp("rgb"+Te),rgba:new RegExp("rgba"+Pe),hsl:new RegExp("hsl"+Te),hsla:new RegExp("hsla"+Pe),hsv:new RegExp("hsv"+Te),hsva:new RegExp("hsva"+Pe),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 Ee(Y){return!!ge.CSS_UNIT.exec(Y)}function De(Y){Y=Y.replace(r,"").replace(t,"").toLowerCase();var ae=!1;if($[Y])Y=$[Y],ae=!0;else if(Y=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Z;return(Z=ge.rgb.exec(Y))?{r:Z[1],g:Z[2],b:Z[3]}:(Z=ge.rgba.exec(Y))?{r:Z[1],g:Z[2],b:Z[3],a:Z[4]}:(Z=ge.hsl.exec(Y))?{h:Z[1],s:Z[2],l:Z[3]}:(Z=ge.hsla.exec(Y))?{h:Z[1],s:Z[2],l:Z[3],a:Z[4]}:(Z=ge.hsv.exec(Y))?{h:Z[1],s:Z[2],v:Z[3]}:(Z=ge.hsva.exec(Y))?{h:Z[1],s:Z[2],v:Z[3],a:Z[4]}:(Z=ge.hex8.exec(Y))?{r:Q(Z[1]),g:Q(Z[2]),b:Q(Z[3]),a:ke(Z[4]),format:ae?"name":"hex8"}:(Z=ge.hex6.exec(Y))?{r:Q(Z[1]),g:Q(Z[2]),b:Q(Z[3]),format:ae?"name":"hex"}:(Z=ge.hex4.exec(Y))?{r:Q(Z[1]+""+Z[1]),g:Q(Z[2]+""+Z[2]),b:Q(Z[3]+""+Z[3]),a:ke(Z[4]+""+Z[4]),format:ae?"name":"hex8"}:(Z=ge.hex3.exec(Y))?{r:Q(Z[1]+""+Z[1]),g:Q(Z[2]+""+Z[2]),b:Q(Z[3]+""+Z[3]),format:ae?"name":"hex"}:!1}function Ce(Y){var ae,Z;return Y=Y||{level:"AA",size:"small"},ae=(Y.level||"AA").toUpperCase(),Z=(Y.size||"small").toLowerCase(),ae!=="AA"&&ae!=="AAA"&&(ae="AA"),Z!=="small"&&Z!=="large"&&(Z="small"),{level:ae,size:Z}}typeof Jy!="undefined"&&Jy.exports?Jy.exports=s:window.tinycolor=s})(Math)});var hn=R(Kd=>{"use strict";var YM=Ru(),$d=Array.isArray;function nie(e,r){var t,a;for(t=0;t<e.length;t++){if(a=e[t],a!==null&&typeof a=="object")return!1;a!==void 0&&(r[t]=a)}return!0}Kd.extendFlat=function(){return Qd(arguments,!1,!1,!1)};Kd.extendDeep=function(){return Qd(arguments,!0,!1,!1)};Kd.extendDeepAll=function(){return Qd(arguments,!0,!0,!1)};Kd.extendDeepNoArrays=function(){return Qd(arguments,!0,!1,!0)};function Qd(e,r,t,a){var n=e[0],i=e.length,o,l,s,u,f,c,v;if(i===2&&$d(n)&&$d(e[1])&&n.length===0){if(v=nie(e[1],n),v)return n;n.splice(0,n.length)}for(var d=1;d<i;d++){o=e[d];for(l in o)s=n[l],u=o[l],a&&$d(u)?n[l]=u:r&&u&&(YM(u)||(f=$d(u)))?(f?(f=!1,c=s&&$d(s)?s:[]):c=s&&YM(s)?s:{},n[l]=Qd([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[l]=u)}return n}});var ci=R((uke,WM)=>{"use strict";WM.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.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:a},weight:n,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 e1=R((fke,jM)=>{"use strict";jM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var t0=R((cke,JM)=>{"use strict";var XM=e1(),ZM=ci(),T_=ZM({editType:"none"});T_.family.dflt=XM.HOVERFONT;T_.size.dflt=XM.HOVERFONTSIZE;JM.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:T_,grouptitlefont:ZM({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 Ky=R((vke,$M)=>{"use strict";var iie=ci(),$y=t0().hoverlabel,Qy=hn().extendFlat;$M.exports={hoverlabel:{bgcolor:Qy({},$y.bgcolor,{arrayOk:!0}),bordercolor:Qy({},$y.bordercolor,{arrayOk:!0}),font:iie({arrayOk:!0,editType:"none"}),align:Qy({},$y.align,{arrayOk:!0}),namelength:Qy({},$y.namelength,{arrayOk:!0}),editType:"none"}}});var hl=R((hke,QM)=>{"use strict";var oie=ci(),lie=Ky();QM.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:oie({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:lie.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 fc=R((dke,rS)=>{"use strict";var sie=vl(),eg={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)"]]},KM=eg.RdBu;function uie(e,r){if(r||(r=KM),!e)return r;function t(){try{e=eg[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),eS(e)?e:r}function eS(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 a=e[t];if(a.length!==2||+a[0]<r||!sie(a[1]).isValid())return!1;r=+a[0]}return!0}function fie(e){return eg[e]!==void 0?!0:eS(e)}rS.exports={scales:eg,defaultScale:KM,get:uie,isValid:fie}});var Ql=R(cc=>{"use strict";cc.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];cc.defaultLine="#444";cc.lightLine="#eee";cc.background="#fff";cc.borderLine="#BEC8D9";cc.lightFraction=100*10/11});var Kt=R((mke,tS)=>{"use strict";var to=vl(),cie=ia(),vie=ro().isTypedArray,Wn=tS.exports={},rg=Ql();Wn.defaults=rg.defaults;var hie=Wn.defaultLine=rg.defaultLine;Wn.lightLine=rg.lightLine;var S_=Wn.background=rg.background;Wn.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};Wn.rgb=function(e){return Wn.tinyRGB(to(e))};Wn.opacity=function(e){return e?to(e).getAlpha():0};Wn.addOpacity=function(e,r){var t=to(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};Wn.combine=function(e,r){var t=to(e).toRgb();if(t.a===1)return to(e).toRgbString();var a=to(r||S_).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return to(i).toRgbString()};Wn.interpolate=function(e,r,t){var a=to(e).toRgb(),n=to(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return to(i).toRgbString()};Wn.contrast=function(e,r,t){var a=to(e);a.getAlpha()!==1&&(a=to(Wn.combine(e,S_)));var n=a.isDark()?r?a.lighten(r):S_:t?a.darken(t):hie;return n.toString()};Wn.stroke=function(e,r){var t=to(r);e.style({stroke:Wn.tinyRGB(t),"stroke-opacity":t.getAlpha()})};Wn.fill=function(e,r){var t=to(r);e.style({fill:Wn.tinyRGB(t),"fill-opacity":t.getAlpha()})};Wn.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t<r.length;t++)if(n=r[t],i=e[n],n.substr(n.length-5)==="color")if(Array.isArray(i))for(a=0;a<i.length;a++)i[a]=M_(i[a]);else e[n]=M_(i);else if(n.substr(n.length-10)==="colorscale"&&Array.isArray(i))for(a=0;a<i.length;a++)Array.isArray(i[a])&&(i[a][1]=M_(i[a][1]));else if(Array.isArray(i)){var o=i[0];if(!Array.isArray(o)&&o&&typeof o=="object")for(a=0;a<i.length;a++)Wn.clean(i[a])}else i&&typeof i=="object"&&!vie(i)&&Wn.clean(i)}};function M_(e){if(cie(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 a=t[1].trim().split(/\s*[\s,]\s*/),n=r.charAt(3)==="a"&&a.length===4;if(!n&&a.length!==3)return e;for(var i=0;i<a.length;i++){if(!a[i].length||(a[i]=Number(a[i]),!(a[i]>=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var a0=R((yke,aS)=>{"use strict";aS.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var n0=R(nS=>{"use strict";nS.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var sS=R(ao=>{"use strict";var k_=ia(),iS=vl(),oS=hn().extendFlat,die=hl(),pie=fc(),mie=Kt(),yie=a0().DESELECTDIM,i0=jy(),lS=n0().counter,gie=r0().modHalf,Kl=ro().isArrayOrTypedArray,Pu=ro().isTypedArraySpec,Nu=ro().decodeTypedArraySpec;ao.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Kl(e)?e:Pu(e)?Nu(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;a<t.length;a++){var n=String(t[a]);if(n.charAt(0)==="/"&&n.charAt(n.length-1)==="/"){var i=new RegExp(n.substr(1,n.length-2));if(i.test(e))return!0}else if(e===t[a])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,a){Pu(e)&&(e=Nu(e)),!k_(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Pu(e)&&(e=Nu(e)),e%1||!k_(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Pu(e)&&(e=Nu(e)),iS(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return iS(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(pie.get(e,t))}},angle:{coerceFunction:function(e,r,t){Pu(e)&&(e=Nu(e)),e==="auto"?r.set("auto"):k_(e)?r.set(gie(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||lS(t);if(typeof e=="string"&&n.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:!!lS(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i<n.length;){var o=n[i];a.flags.indexOf(o)===-1||n.indexOf(o)<i?n.splice(i,1):i++}n.length?r.set(n.join("+")):r.set(t)}},any:{coerceFunction:function(e,r,t){e===void 0?r.set(t):r.set(Pu(e)?Nu(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(_,A,x){var T,S={set:function(M){T=M}};return x===void 0&&(x=A.dflt),ao.valObjectMeta[A.valType].coerceFunction(_,S,x,A),T}if(Pu(e)&&(e=Nu(e)),!Kl(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&Kl(e[0]),o=a.items,l=[],s=Array.isArray(o),u=s&&i&&Kl(o[0]),f=i&&s&&!u,c=s&&!f?o.length:e.length,v,d,p,g,m,b;if(t=Array.isArray(t)?t:[],i)for(v=0;v<c;v++)for(l[v]=[],p=Kl(e[v])?e[v]:[],f?m=o.length:s?m=o[v].length:m=p.length,d=0;d<m;d++)f?g=o[d]:s?g=o[v][d]:g=o,b=n(p[d],g,(t[v]||[])[d]),b!==void 0&&(l[v][d]=b);else for(v=0;v<c;v++)b=n(e[v],s?o[v]:o,t[v]),b!==void 0&&(l[v]=b);r.set(l)},validateFunction:function(e,r){if(!Kl(e))return!1;var t=r.items,a=Array.isArray(t),n=r.dimensions===2;if(!r.freeLength&&e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(n){if(!Kl(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!tg(e[i][o],a?t[i][o]:t))return!1}else if(!tg(e[i],a?t[i]:t))return!1;return!0}}};ao.coerce=function(e,r,t,a,n){var i=i0(t,a).get(),o=i0(e,a),l=i0(r,a),s=o.get(),u=r._template;if(s===void 0&&u&&(s=i0(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(Kl(s))return l.set(s),s;if(Pu(s))return s=Nu(s),l.set(s),s}var f=ao.valObjectMeta[i.valType].coerceFunction;f(s,l,n,i);var c=l.get();return u&&c===n&&!tg(s,i)&&(s=i0(u,a).get(),f(s,l,n,i),c=l.get()),c};ao.coerce2=function(e,r,t,a,n){var i=i0(e,a),o=ao.coerce(e,r,t,a,n),l=i.get();return l!=null?o:!1};ao.coerceFont=function(e,r,t,a){a||(a={}),t=oS({},t),t=oS(t,a.overrideDflt||{});var n={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(a.noFontVariant||(n.variant=e(r+".variant",t.variant)),a.noFontLineposition||(n.lineposition=e(r+".lineposition",t.lineposition)),a.noFontTextcase||(n.textcase=e(r+".textcase",t.textcase)),!a.noFontShadow){var i=t.shadow;i==="none"&&a.autoShadowDflt&&(i="auto"),n.shadow=e(r+".shadow",i)}return n};ao.coercePattern=function(e,r,t,a){var n=e(r+".shape");if(n){e(r+".solidity"),e(r+".size");var i=e(r+".fillmode"),o=i==="overlay";if(!a){var l=e(r+".bgcolor",o?t:void 0);e(r+".fgcolor",o?mie.contrast(l):t)}e(r+".fgopacity",o?.5:1)}};ao.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:die,i=n.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 ao.coerce(e,r,n,"hoverinfo",o)};ao.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!Kl(t)&&!e.selected&&!e.unselected&&(a=t,n=yie*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function tg(e,r){var t=ao.valObjectMeta[r.valType];if(r.arrayOk&&Kl(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var a={},n=a,i={set:function(o){n=o}};return t.coerceFunction(e,i,a,r),n!==a}ao.validate=tg});var vc=R((xke,vS)=>{"use strict";var uS={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:{}}},fS={};function cS(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),cS(a,r[t]))}}cS(uS,fS);vS.exports={configAttributes:uS,dfltConfig:fS}});var E_=R((_ke,hS)=>{"use strict";var C_=ta(),bie=ia(),r1=[];hS.exports=function(e,r){if(r1.indexOf(e)!==-1)return;r1.push(e);var t=1e3;bie(r)?t=r:r==="long"&&(t=3e3);var a=C_.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(r1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=r1.indexOf(l);s!==-1&&r1.splice(s,1),C_.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=C_.select(this);l.append("button").classed("notifier-close",!0).html("×").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 hc=R((wke,dS)=>{"use strict";var o0=vc().dfltConfig,L_=E_(),D_=dS.exports={};D_.log=function(){var e;if(o0.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(o0.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);L_(t.join("<br>"),"long")}};D_.warn=function(){var e;if(o0.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(o0.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);L_(t.join("<br>"),"stick")}};D_.error=function(){var e;if(o0.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(o0.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);L_(t.join("<br>"),"stick")}}});var ag=R((Ake,pS)=>{"use strict";pS.exports=function(){}});var q_=R((Tke,mS)=>{"use strict";mS.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n<r.length;n++)if(r[n]instanceof RegExp&&r[n].toString()===a)return r;r.push(t)}else(t||t===0)&&r.indexOf(t)===-1&&r.push(t);return r}});var gS=R((Mke,yS)=>{yS.exports=xie;function xie(){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 xS=R((Ske,bS)=>{bS.exports=_ie;function _ie(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 wS=R((kke,_S)=>{_S.exports=wie;function wie(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 F_=R((Cke,AS)=>{AS.exports=Aie;function Aie(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 MS=R((Eke,TS)=>{TS.exports=Tie;function Tie(e,r){if(e===r){var t=r[1],a=r[2],n=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]=a,e[9]=i,e[11]=r[14],e[12]=n,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 kS=R((Lke,SS)=>{SS.exports=Mie;function Mie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],g=r[13],m=r[14],b=r[15],_=t*l-a*o,A=t*s-n*o,x=t*u-i*o,T=a*s-n*l,S=a*u-i*l,M=n*u-i*s,k=f*g-c*p,D=f*m-v*p,P=f*b-d*p,N=c*m-v*g,q=c*b-d*g,O=v*b-d*m,U=_*O-A*q+x*N+T*P-S*D+M*k;return U?(U=1/U,e[0]=(l*O-s*q+u*N)*U,e[1]=(n*q-a*O-i*N)*U,e[2]=(g*M-m*S+b*T)*U,e[3]=(v*S-c*M-d*T)*U,e[4]=(s*P-o*O-u*D)*U,e[5]=(t*O-n*P+i*D)*U,e[6]=(m*x-p*M-b*A)*U,e[7]=(f*M-v*x+d*A)*U,e[8]=(o*q-l*P+u*k)*U,e[9]=(a*P-t*q-i*k)*U,e[10]=(p*S-g*x+b*_)*U,e[11]=(c*x-f*S-d*_)*U,e[12]=(l*D-o*N-s*k)*U,e[13]=(t*N-a*D+n*k)*U,e[14]=(g*A-p*T-m*_)*U,e[15]=(f*T-c*A+v*_)*U,e):null}});var ES=R((Dke,CS)=>{CS.exports=Sie;function Sie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],g=r[13],m=r[14],b=r[15];return e[0]=l*(v*b-d*m)-c*(s*b-u*m)+g*(s*d-u*v),e[1]=-(a*(v*b-d*m)-c*(n*b-i*m)+g*(n*d-i*v)),e[2]=a*(s*b-u*m)-l*(n*b-i*m)+g*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*b-d*m)-f*(s*b-u*m)+p*(s*d-u*v)),e[5]=t*(v*b-d*m)-f*(n*b-i*m)+p*(n*d-i*v),e[6]=-(t*(s*b-u*m)-o*(n*b-i*m)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*b-d*g)-f*(l*b-u*g)+p*(l*d-u*c),e[9]=-(t*(c*b-d*g)-f*(a*b-i*g)+p*(a*d-i*c)),e[10]=t*(l*b-u*g)-o*(a*b-i*g)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*m-v*g)-f*(l*m-s*g)+p*(l*v-s*c)),e[13]=t*(c*m-v*g)-f*(a*m-n*g)+p*(a*v-n*c),e[14]=-(t*(l*m-s*g)-o*(a*m-n*g)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var DS=R((qke,LS)=>{LS.exports=kie;function kie(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],g=e[14],m=e[15],b=r*o-t*i,_=r*l-a*i,A=r*s-n*i,x=t*l-a*o,T=t*s-n*o,S=a*s-n*l,M=u*p-f*d,k=u*g-c*d,D=u*m-v*d,P=f*g-c*p,N=f*m-v*p,q=c*m-v*g;return b*q-_*N+A*P+x*D-T*k+S*M}});var FS=R((Fke,qS)=>{qS.exports=Cie;function Cie(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],g=r[12],m=r[13],b=r[14],_=r[15],A=t[0],x=t[1],T=t[2],S=t[3];return e[0]=A*a+x*l+T*c+S*g,e[1]=A*n+x*s+T*v+S*m,e[2]=A*i+x*u+T*d+S*b,e[3]=A*o+x*f+T*p+S*_,A=t[4],x=t[5],T=t[6],S=t[7],e[4]=A*a+x*l+T*c+S*g,e[5]=A*n+x*s+T*v+S*m,e[6]=A*i+x*u+T*d+S*b,e[7]=A*o+x*f+T*p+S*_,A=t[8],x=t[9],T=t[10],S=t[11],e[8]=A*a+x*l+T*c+S*g,e[9]=A*n+x*s+T*v+S*m,e[10]=A*i+x*u+T*d+S*b,e[11]=A*o+x*f+T*p+S*_,A=t[12],x=t[13],T=t[14],S=t[15],e[12]=A*a+x*l+T*c+S*g,e[13]=A*n+x*s+T*v+S*m,e[14]=A*i+x*u+T*d+S*b,e[15]=A*o+x*f+T*p+S*_,e}});var PS=R((Rke,RS)=>{RS.exports=Eie;function Eie(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,g,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],g=r[9],m=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=g,e[10]=m,e[11]=b,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+g*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var IS=R((Pke,NS)=>{NS.exports=Lie;function Lie(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,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 zS=R((Nke,OS)=>{OS.exports=Die;function Die(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,g,m,b,_,A,x,T,S,M,k,D,P,N,q,O,U,$;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],g=r[4],m=r[5],b=r[6],_=r[7],A=r[8],x=r[9],T=r[10],S=r[11],M=n*n*f+u,k=i*n*f+o*s,D=o*n*f-i*s,P=n*i*f-o*s,N=i*i*f+u,q=o*i*f+n*s,O=n*o*f+i*s,U=i*o*f-n*s,$=o*o*f+u,e[0]=c*M+g*k+A*D,e[1]=v*M+m*k+x*D,e[2]=d*M+b*k+T*D,e[3]=p*M+_*k+S*D,e[4]=c*P+g*N+A*q,e[5]=v*P+m*N+x*q,e[6]=d*P+b*N+T*q,e[7]=p*P+_*N+S*q,e[8]=c*O+g*U+A*$,e[9]=v*O+m*U+x*$,e[10]=d*O+b*U+T*$,e[11]=p*O+_*U+S*$,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var US=R((Ike,BS)=>{BS.exports=qie;function qie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=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*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var HS=R((Oke,GS)=>{GS.exports=Fie;function Fie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=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*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var YS=R((zke,VS)=>{VS.exports=Rie;function Rie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=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*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var jS=R((Bke,WS)=>{WS.exports=Pie;function Pie(e,r,t){var a,n,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,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var ZS=R((Uke,XS)=>{XS.exports=Nie;function Nie(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,g=i*u,m=o*l,b=o*s,_=o*u;return e[0]=1-(d+g),e[1]=c+_,e[2]=v-b,e[3]=0,e[4]=c-_,e[5]=1-(f+g),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,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 $S=R((Gke,JS)=>{JS.exports=Iie;function Iie(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 KS=R((Hke,QS)=>{QS.exports=Oie;function Oie(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 rk=R((Vke,ek)=>{ek.exports=zie;function zie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ak=R((Yke,tk)=>{tk.exports=Bie;function Bie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,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]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ik=R((Wke,nk)=>{nk.exports=Uie;function Uie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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 R_=R((jke,ok)=>{ok.exports=Gie;function Gie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,g=i*o,m=i*l,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=v-m,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+g,e[7]=0,e[8]=v+m,e[9]=d-g,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var sk=R((Xke,lk)=>{lk.exports=Hie;function Hie(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),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]=(n+a)*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 fk=R((Zke,uk)=>{uk.exports=Vie;function Vie(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);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]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var vk=R((Jke,ck)=>{ck.exports=Yie;function Yie(e,r,t,a){var n=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/(n+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]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var dk=R(($ke,hk)=>{hk.exports=Wie;function Wie(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),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]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var mk=R((Qke,pk)=>{var jie=F_();pk.exports=Xie;function Xie(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],g=r[1],m=r[2],b=a[0],_=a[1],A=a[2],x=t[0],T=t[1],S=t[2];return Math.abs(p-x)<1e-6&&Math.abs(g-T)<1e-6&&Math.abs(m-S)<1e-6?jie(e):(f=p-x,c=g-T,v=m-S,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=_*v-A*c,i=A*f-b*v,o=b*c-_*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,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]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*g+o*m),e[13]=-(l*p+s*g+u*m),e[14]=-(f*p+c*g+v*m),e[15]=1,e)}});var gk=R((Kke,yk)=>{yk.exports=Zie;function Zie(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 P_=R((eCe,bk)=>{bk.exports={create:gS(),clone:xS(),copy:wS(),identity:F_(),transpose:MS(),invert:kS(),adjoint:ES(),determinant:DS(),multiply:FS(),translate:PS(),scale:IS(),rotate:zS(),rotateX:US(),rotateY:HS(),rotateZ:YS(),fromRotation:jS(),fromRotationTranslation:ZS(),fromScaling:$S(),fromTranslation:KS(),fromXRotation:rk(),fromYRotation:ak(),fromZRotation:ik(),fromQuat:R_(),frustum:sk(),perspective:fk(),perspectiveFromFieldOfView:vk(),ortho:dk(),lookAt:mk(),str:gk()}});var ng=R(dn=>{"use strict";var Jie=P_();dn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};dn.transposeRagged=function(e){var r=0,t=e.length,a,n;for(a=0;a<t;a++)r=Math.max(r,e[a].length);var i=new Array(r);for(a=0;a<r;a++)for(i[a]=new Array(t),n=0;n<t;n++)i[a][n]=e[n][a];return i};dn.dot=function(e,r){if(!(e.length&&r.length)||e.length!==r.length)return null;var t=e.length,a,n;if(e[0].length)for(a=new Array(t),n=0;n<t;n++)a[n]=dn.dot(e[n],r);else if(r[0].length){var i=dn.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=dn.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};dn.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};dn.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]]};dn.rotationXYMatrix=function(e,r,t){return dn.dot(dn.dot(dn.translationMatrix(r,t),dn.rotationMatrix(e)),dn.translationMatrix(-r,-t))};dn.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return dn.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};dn.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 dn.dot(e,[t[0],t[1],1]).slice(0,2)}};dn.apply2DTransform2=function(e){var r=dn.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};dn.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]};dn.inverseTransformMatrix=function(e){var r=[];return Jie.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 t1=R((tCe,Mk)=>{"use strict";var $ie=ta(),xk=hc(),Qie=ng(),Kie=P_();function eoe(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 roe(e){var r=$ie.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function _k(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function toe(e,r){wk("global",e,r)}function wk(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):xk.warn("addStyleRule failed"):xk.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function aoe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&_k(t)}function noe(e,r,t,a,n,i){var o=a.split(":"),l=n.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 ioe(e){var r=Tk(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=Ak(a);if(n){var i=Qie.convertCssMatrix(n);t=Kie.multiply(t,t,i)}}),t}function Ak(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(a){return+a})}function Tk(e){for(var r=[];ooe(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function ooe(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function loe(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}Mk.exports={getGraphDiv:eoe,isPlotDiv:roe,removeElement:_k,addStyleRule:toe,addRelatedStyleRule:wk,deleteRelatedStyleRule:aoe,setStyleOnHover:noe,getFullTransformMatrix:ioe,getElementTransformMatrix:Ak,getElementAndAncestors:Tk,equalDomRects:loe}});var a1=R((aCe,Sk)=>{"use strict";Sk.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 dl=R((nCe,Fk)=>{"use strict";var Ck=hn().extendFlat,soe=Ru(),Ek={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Lk={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},uoe=Ek.flags.slice().concat(["fullReplot"]),foe=Lk.flags.slice().concat("layoutReplot");Fk.exports={traces:Ek,layout:Lk,traceFlags:function(){return kk(uoe)},layoutFlags:function(){return kk(foe)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n<a.length;n++)e[a[n]]=!0},overrideAll:Dk};function kk(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function Dk(e,r,t){var a=Ck({},e);for(var n in a){var i=a[n];soe(i)&&(a[n]=qk(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function qk(e,r,t,a){if(e.valType){var n=Ck({},e);if(n.editType=r,Array.isArray(e.items)){n.items=new Array(e.items.length);for(var i=0;i<e.items.length;i++)n.items[i]=qk(e.items[i],r,"from-root")}return n}else return Dk(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var Iu=R(N_=>{"use strict";N_.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};N_.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 I_=R((oCe,Rk)=>{"use strict";Rk.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 l0=R(ig=>{"use strict";var Pk=I_(),lCe=Pk.FORMAT_LINK,sCe=Pk.DATE_FORMAT_LINK;function O_(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n<t.length;n++)a[n]="`"+t[n]+"`";r=r+"Finally, the template string has access to ",t.length===1?r=r+"variable "+a[0]:r=r+"variables "+a.slice(0,-1).join(", ")+" and "+a.slice(-1)+"."}return r}ig.hovertemplateAttrs=function(e,r){e=e||{},r=r||{};var t=O_(r),a={valType:"string",dflt:"",editType:e.editType||"none"};return e.arrayOk!==!1&&(a.arrayOk=!0),a};ig.texttemplateAttrs=function(e,r){e=e||{},r=r||{};var t=O_(r),a={valType:"string",dflt:"",editType:e.editType||"calc"};return e.arrayOk!==!1&&(a.arrayOk=!0),a};ig.shapeTexttemplateAttrs=function(e,r){e=e||{},r=r||{};var t=e.newshape?"new ":"",a=O_(r),n={valType:"string",dflt:"",editType:e.editType||"arraydraw"};return n}});var sg=R((fCe,Uk)=>{"use strict";function Ou(e,r){return r?r.d2l(e):e}function Nk(e,r){return r?r.l2d(e):e}function coe(e){return e.x0}function voe(e){return e.x1}function hoe(e){return e.y0}function doe(e){return e.y1}function Ik(e){return e.x0shift||0}function Ok(e){return e.x1shift||0}function zk(e){return e.y0shift||0}function Bk(e){return e.y1shift||0}function og(e,r){return Ou(e.x1,r)+Ok(e)-Ou(e.x0,r)-Ik(e)}function lg(e,r,t){return Ou(e.y1,t)+Bk(e)-Ou(e.y0,t)-zk(e)}function poe(e,r){return Math.abs(og(e,r))}function moe(e,r,t){return Math.abs(lg(e,r,t))}function yoe(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(og(e,r),2)+Math.pow(lg(e,r,t),2))}function goe(e,r){return Nk((Ou(e.x1,r)+Ok(e)+Ou(e.x0,r)+Ik(e))/2,r)}function boe(e,r,t){return Nk((Ou(e.y1,t)+Bk(e)+Ou(e.y0,t)+zk(e))/2,t)}function xoe(e,r,t){return e.type!=="line"?void 0:lg(e,r,t)/og(e,r)}Uk.exports={x0:coe,x1:voe,y0:hoe,y1:doe,slope:xoe,dx:og,dy:lg,width:poe,height:moe,length:yoe,xcenter:goe,ycenter:boe}});var Vk=R((cCe,Hk)=>{"use strict";var _oe=dl().overrideAll,dc=hl(),Gk=ci(),woe=Iu().dash,zu=hn().extendFlat,Aoe=l0().shapeTexttemplateAttrs,Toe=sg();Hk.exports=_oe({newshape:{visible:zu({},dc.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:zu({},dc.legend,{}),legendgroup:zu({},dc.legendgroup,{}),legendgrouptitle:{text:zu({},dc.legendgrouptitle.text,{}),font:Gk({})},legendrank:zu({},dc.legendrank,{}),legendwidth:zu({},dc.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:zu({},woe,{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:zu({},dc.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Aoe({newshape:!0},{keys:Object.keys(Toe)}),font:Gk({}),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 Wk=R((vCe,Yk)=>{"use strict";var Moe=Iu().dash,Soe=hn().extendFlat;Yk.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:Soe({},Moe,{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 ug=R((hCe,jk)=>{"use strict";jk.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 s0=R((dCe,$k)=>{"use strict";var z_=ci(),koe=a1(),fg=Ql(),Xk=Vk(),Zk=Wk(),Coe=ug(),Jk=hn().extendFlat,cg=z_({editType:"calc"});cg.family.dflt='"Open Sans", verdana, arial, sans-serif';cg.size.dflt=12;cg.color.dflt=fg.defaultLine;$k.exports={font:cg,title:{text:{valType:"string",editType:"layoutstyle"},font:z_({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:z_({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:Jk(Coe({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:fg.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:fg.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:fg.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:Xk.newshape,activeshape:Xk.activeshape,newselection:Zk.newselection,activeselection:Zk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Jk({},koe.transition,{editType:"none"})}});var Qk=Qv(()=>{});var Eoe={};var Kk=Qv(()=>{Qk()});var Ct=R(Xt=>{"use strict";var u0=hc(),eC=ag(),rC=q_(),Loe=Ru(),Doe=t1().addStyleRule,tC=hn(),qoe=hl(),Foe=s0(),Roe=tC.extendFlat,B_=tC.extendDeepAll;Xt.modules={};Xt.allCategories={};Xt.allTypes=[];Xt.subplotsRegistry={};Xt.componentsRegistry={};Xt.layoutArrayContainers=[];Xt.layoutArrayRegexes=[];Xt.traceLayoutAttributes={};Xt.localeRegistry={};Xt.apiMethodRegistry={};Xt.collectableSubplotTypes=null;Xt.register=function(r){if(Xt.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 a=r[t];if(!a)throw new Error("Invalid module was attempted to be registered!");switch(a.moduleType){case"trace":Poe(a);break;case"transform":Ooe(a);break;case"component":Ioe(a);break;case"locale":zoe(a);break;case"apiMethod":var n=a.name;Xt.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};Xt.getModule=function(e){var r=Xt.modules[oC(e)];return r?r._module:!1};Xt.traceIs=function(e,r){if(e=oC(e),e==="various")return!1;var t=Xt.modules[e];return t||(e&&u0.log("Unrecognized trace type "+e+"."),t=Xt.modules[qoe.type.dflt]),!!t.categories[r]};Xt.getComponentMethod=function(e,r){var t=Xt.componentsRegistry[e];return t&&t[r]||eC};Xt.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Xt.apiMethodRegistry[e].apply(null,r)};function Poe(e){var r=e.name,t=e.categories,a=e.meta;if(Xt.modules[r]){u0.log("Type "+r+" already registered");return}Xt.subplotsRegistry[e.basePlotModule.name]||Noe(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,Xt.allCategories[t[i]]=!0;Xt.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(Xt.modules[r].meta=a),Xt.allTypes.push(r);for(var o in Xt.componentsRegistry)nC(o,r);e.layoutAttributes&&Roe(Xt.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,s=l.name;if(s==="mapbox"){var u=l.constants.styleRules;for(var f in u)Doe(".js-plotly-plot .plotly .mapboxgl-"+f,u[f])}s==="map"&&(Kk(),dM(Eoe)),(s==="geo"||s==="mapbox"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function Noe(e){var r=e.name;if(Xt.subplotsRegistry[r]){u0.log("Plot type "+r+" already registered.");return}aC(e),Xt.subplotsRegistry[r]=e;for(var t in Xt.componentsRegistry)iC(t,e.name)}function Ioe(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;Xt.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&rC(Xt.layoutArrayContainers,r),aC(e));for(var t in Xt.modules)nC(r,t);for(var a in Xt.subplotsRegistry)iC(r,a);e.schema&&e.schema.layout&&B_(Foe,e.schema.layout)}function Ooe(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",a=typeof e.calcTransform=="function";if(!t&&!a)throw new Error(r+" is missing a *transform* or *calcTransform* method.");t&&a&&u0.log([r+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),Loe(e.attributes)||u0.log(r+" registered without an *attributes* object."),typeof e.supplyDefaults!="function"&&u0.log(r+" registered without a *supplyDefaults* method.")}function zoe(e){var r=e.name,t=r.split("-")[0],a=e.dictionary,n=e.format,i=a&&Object.keys(a).length,o=n&&Object.keys(n).length,l=Xt.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=a),o&&u.format===s.format&&(u.format=n)}i&&(s.dictionary=a),o&&(s.format=n)}function aC(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)rC(Xt.layoutArrayRegexes,r[t])}}function nC(e,r){var t=Xt.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&B_(Xt.modules[r]._module.attributes,a)}}function iC(e,r){var t=Xt.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=Xt.subplotsRegistry[r],n=a.layoutAttributes,i=a.attr==="subplot"?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var o=t.subplots[i];n&&o&&B_(n,o)}}function oC(e){return typeof e=="object"&&(e=e.type),e}});var pC=R(pn=>{"use strict";var Boe=Kv().timeFormat,hC=ia(),U_=hc(),Uu=r0().mod,v0=_n(),Io=v0.BADNUM,no=v0.ONEDAY,n1=v0.ONEHOUR,Bu=v0.ONEMIN,c0=v0.ONESEC,i1=v0.EPOCHJD,Bs=Ct(),lC=Kv().utcFormat,Uoe=/^\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,Goe=/^\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,sC=new Date().getFullYear()-70;function Us(e){return e&&Bs.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}pn.dateTick0=function(e,r){var t=Hoe(e,!!r);if(r<2)return t;var a=pn.dateTime2ms(t,e);return a+=no*(r-1),pn.ms2DateTime(a,0,e)};function Hoe(e,r){return Us(e)?r?Bs.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Bs.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}pn.dfltRange=function(e){return Us(e)?Bs.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};pn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var hg,dg;pn.dateTime2ms=function(e,r){if(pn.isJSDate(e)){var t=e.getTimezoneOffset()*Bu,a=(e.getUTCMinutes()-e.getMinutes())*Bu+(e.getUTCSeconds()-e.getSeconds())*c0+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Bu;t=t-n/2+Uu(a-t+n/2,n)}return e=Number(e)-t,e>=hg&&e<=dg?e:Io}if(typeof e!="string"&&typeof e!="number")return Io;e=String(e);var i=Us(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?Goe:Uoe);if(!s)return Io;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Io;u=Number(u);var g;try{var m=Bs.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),g=m.newDate(u,m.toMonthIndex(u,f,b),c)}else g=m.newDate(u,Number(f),c)}catch(A){return Io}return g?(g.toJD()-i1)*no+v*n1+d*Bu+p*c0:Io}u.length===2?u=(Number(u)+2e3-sC)%100+sC:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,v,d));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?Io:_.getTime()+p*c0};hg=pn.MIN_MS=pn.dateTime2ms("-9999");dg=pn.MAX_MS=pn.dateTime2ms("9999-12-31 23:59:59.9999");pn.isDateTime=function(e,r){return pn.dateTime2ms(e,r)!==Io};function f0(e,r){return String(e+Math.pow(10,r)).substr(1)}var vg=90*no,uC=3*n1,fC=5*Bu;pn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=hg&&e<=dg))return Io;r||(r=0);var a=Math.floor(Uu(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(Us(t)){var c=Math.floor(n/no)+i1,v=Math.floor(Uu(e,no));try{i=Bs.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=lC("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r<vg?Math.floor(v/n1):0,l=r<vg?Math.floor(v%n1/Bu):0,s=r<uC?Math.floor(v%Bu/c0):0,u=r<fC?v%c0*10+a:0}else f=new Date(n),i=lC("%Y-%m-%d")(f),o=r<vg?f.getUTCHours():0,l=r<vg?f.getUTCMinutes():0,s=r<uC?f.getUTCSeconds():0,u=r<fC?f.getUTCMilliseconds()*10+a:0;return dC(i,o,l,s,u)};pn.ms2DateTimeLocal=function(e){if(!(e>=hg+no&&e<=dg-no))return Io;var r=Math.floor(Uu(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Boe("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return dC(a,n,i,o,l)};function dC(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+f0(r,2)+":"+f0(t,2),(a||n)&&(e+=":"+f0(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+f0(n,i)}return e}pn.cleanDate=function(e,r,t){if(e===Io)return r;if(pn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Us(t))return U_.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=pn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!pn.isDateTime(e,t))return U_.error("unrecognized date",e),r;return e};var Voe=/%\d?f/g,Yoe=/%h/g,Woe={1:"1",2:"1",3:"2",4:"2"};function cC(e,r,t,a){e=e.replace(Voe,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 n=new Date(Math.floor(r+.05));if(e=e.replace(Yoe,function(){return Woe[t("%q")(n)]}),Us(a))try{e=Bs.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var joe=[59,59.9,59.99,59.999,59.9999];function Xoe(e,r){var t=Uu(e+.05,no),a=f0(Math.floor(t/n1),2)+":"+f0(Uu(Math.floor(t/Bu),60),2);if(r!=="M"){hC(r)||(r=0);var n=Math.min(Uu(e/c0,60),joe[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}pn.formatDate=function(e,r,t,a,n,i){if(n=Us(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+`
|